.make-sense-ranks-section {
  background-color: #fff;
  padding: 60px 40px;
  margin-top: 80px;
  margin-bottom: 100px;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container-max-width);
  border-radius: 32px;
  box-shadow: 0 0 0 2px rgba(243, 243, 243, 1),
    0 1.5px 16px 0 rgba(0, 0, 0, 0.1);
}

.make-sense-ranks {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

.make-sense-ranks h1 {
  font-weight: 500;
}

.make-sense-ranks p {
  font-size: 16px;
  font-weight: 400;
  color: #4a4a4a;
  line-height: 1.5;
}

.sense-ranks-grid {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}

.sense-ranks-left {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  margin: auto;
}

.sense-ranks-left-desc {
  font-size: 16px;
  font-weight: 400;
  color: #1e1e1e;
  line-height: 1.5;
}

.sense-ranks-right {
  flex: 2 1 60%;
}

.sense-ranks-table {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.sense-ranks-row {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}
.sense-ranks-row:last-child {
  border-bottom: none;
}
.sense-ranks-icon {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 20%;
  gap: 12px;
}

.sense-ranks-icon svg {
  min-width: 28px;
  min-height: 28px;
  color: #3f3b37;
}
.sense-ranks-arrow svg {
  min-width: 24px;
  min-height: 24px;
  margin-top: 8px;
}
.sense-ranks-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sense-ranks-title {
  font-size: 16px;
  font-weight: 500;
  color: #3f3b37;
}
.sense-ranks-desc {
  font-size: 16px;
  color: #1e1e1e;
}
.sense-ranks-indicators {
  display: flex;
  gap: 24px;
}
.sense-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.sense-indicator.good .green-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #339933;
}
.sense-indicator.bad .red-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e71313;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .make-sense-ranks h1 {
    font-size: 40px;
    letter-spacing: -0.8px;
  }

  .sense-ranks-grid {
    gap: 48px;
    flex-direction: column;
  }

  .sense-ranks-left {
    gap: 24px;
  }

  .sense-ranks-right {
    flex: 1;
    width: 100%;
  }

  .sense-ranks-row {
    gap: 20px;
  }

  .sense-ranks-icon {
    width: 18%;
  }

  .sense-ranks-indicators {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Disable tap highlight on mobile */
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .make-sense-ranks-section {
    padding: 40px 20px;
    box-shadow: none;
    border: 1px solid var(--color-border);
    margin-top: 60px;
    margin-bottom: 60px;
  }
  .make-sense-ranks h1 {
    font-size: 32px;
    letter-spacing: -0.64px;
  }

  .make-sense-ranks p {
    font-size: 15px;
  }

  .sense-ranks-grid {
    flex-direction: column;
    gap: 40px;
  }

  .sense-ranks-left {
    flex: none;
    width: 100%;
    gap: 16px;
  }

  .sense-ranks-left-desc {
    font-size: 15px;
  }

  .sense-ranks-right {
    flex: none;
    width: 100%;
  }

  .sense-ranks-table {
    gap: 20px;
  }

  .sense-ranks-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .sense-ranks-row:last-child {
    border-bottom: 1px solid var(--color-border);
  }

  .sense-ranks-row:hover {
    background-color: transparent;
  }

  .sense-ranks-row.active {
    background-color: transparent;
  }

  .sense-ranks-row:focus {
    outline: none;
    background-color: transparent;
  }

  .sense-ranks-row:active {
    background-color: transparent;
    outline: none;
  }

  .sense-ranks-icon {
    width: 100%;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .sense-ranks-icon:focus {
    outline: none;
  }

  .sense-ranks-icon:active {
    outline: none;
  }

  .sense-ranks-icon::after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("../../img/chevron-down.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .sense-ranks-row.active .sense-ranks-icon::after {
    transform: rotate(180deg);
  }

  .sense-ranks-icon svg {
    min-width: 24px;
    min-height: 24px;
  }

  .sense-ranks-arrow {
    display: none;
  }

  .sense-ranks-content {
    width: 100%;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding-top 0.3s ease;
    opacity: 0;
    padding-bottom: 16px;
  }

  .sense-ranks-row.active .sense-ranks-content {
    max-height: 200px;
    opacity: 1;
    padding: 16px 0;
  }

  .sense-ranks-title {
    font-size: 16px;
  }

  .sense-ranks-desc {
    font-size: 15px;
  }

  .sense-ranks-indicators {
    flex-direction: row;
    gap: 16px;
  }

  .sense-indicator {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .make-sense-ranks h1 {
    font-size: 28px;
    letter-spacing: -0.56px;
  }

  .make-sense-ranks p {
    font-size: 14px;
  }

  .sense-ranks-grid {
    gap: 32px;
  }

  .sense-ranks-left {
    gap: 20px;
  }

  .sense-ranks-left-desc {
    font-size: 14px;
  }

  .sense-ranks-table {
    gap: 16px;
  }

  .sense-ranks-icon svg {
    width: 20px;
    height: 20px;
  }

  .sense-ranks-title {
    font-size: 15px;
  }

  .sense-ranks-desc {
    font-size: 14px;
  }

  .sense-indicator {
    font-size: 13px;
  }

  .sense-indicator .green-dot,
  .sense-indicator .red-dot {
    width: 10px;
    height: 10px;
  }
}
