/* Digital SAT Explorer - Premium Polish */

/* Main area */

.dsat-explorer {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafe 55%, #ffffff 100%);
  padding: 34px 0 64px;
}

.dsat-explorer-card {
  max-width: 1160px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(44, 62, 80, .08);
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 24px 65px rgba(31, 50, 70, .09),
    0 2px 6px rgba(31, 50, 70, .04);
}


/* Header */

.dsat-explorer-top {
  position: relative;
  margin: 0;
  padding: 31px 34px 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(52,152,219,.12), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 65%);
  border-bottom: 1px solid #edf1f5;
}

.dsat-explorer-top::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(#3498db, #236e9f);
}

.dsat-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(52,152,219,.09);
  color: #2375a8;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .09em;
  margin-bottom: 10px;
}

.dsat-explorer-top h2 {
  font-size: 2.15rem;
  line-height: 1.15;
  color: #25384b;
  letter-spacing: -.025em;
  margin-bottom: 9px;
}

.dsat-explorer-top p {
  max-width: 690px;
  color: #69798b;
  font-size: .94rem;
  line-height: 1.65;
}

.dsat-close {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #e3e9ef;
  box-shadow: 0 4px 12px rgba(31,50,70,.05);
  transition: .2s ease;
}

.dsat-close:hover {
  color: #fff;
  background: #2c3e50;
  border-color: #2c3e50;
  transform: translateY(-1px);
}


/* Main body */

.dsat-explorer-card > .dsat-counts,
.dsat-explorer-card > .dsat-tab-panel {
  margin-left: 34px;
  margin-right: 34px;
}


/* Stats / navigation */

.dsat-counts {
  margin-top: 28px;
  margin-bottom: 30px;
  gap: 13px;
}

.dsat-count {
  position: relative;
  min-height: 92px;
  padding: 17px 18px;
  border-radius: 17px;
  border: 1px solid #e7ebf0;
  background: #fafbfd;
  overflow: hidden;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.dsat-count::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.dsat-count:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: #d5e0e9;
  box-shadow: 0 10px 25px rgba(31,50,70,.07);
}

.dsat-count strong {
  font-size: 1.8rem;
  font-weight: 760;
  color: #263b4f;
  margin-bottom: 8px;
}

.dsat-count span {
  font-size: .78rem;
  color: #718096;
  font-weight: 650;
}

.dsat-count.active {
  background: linear-gradient(145deg, #edf7fd, #f8fcff);
  border-color: rgba(52,152,219,.32);
  box-shadow: 0 8px 20px rgba(52,152,219,.08);
}

.dsat-count.active::after {
  background: #3498db;
}

.dsat-count:nth-child(2).active::after {
  background: #f39c12;
}

.dsat-count:nth-child(3).active::after {
  background: #10a277;
}

.dsat-count:nth-child(4).active::after {
  background: #2c3e50;
}


/* Content section */

.dsat-tab-panel {
  padding-bottom: 34px;
}

.dsat-panel-title {
  margin-bottom: 17px;
  padding-bottom: 13px;
  border-bottom: 1px solid #eef1f4;
}

.dsat-panel-title h3 {
  color: #25384b;
  font-size: 1.28rem;
  letter-spacing: -.015em;
}

.dsat-panel-title p {
  font-size: .76rem;
  color: #95a1ae;
}


/* Course cards */

[data-dsat-panel="courses"] .dsat-content-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 13px;
  max-height: none;
}

[data-dsat-panel="courses"] .dsat-content-item {
  min-height: 105px;
  align-items: flex-start;
  padding: 18px;
  background: linear-gradient(145deg, #fbfcfd, #f5f8fb);
  border-radius: 17px;
}

[data-dsat-panel="courses"] .dsat-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

[data-dsat-panel="courses"] .dsat-item-copy strong {
  white-space: normal;
  line-height: 1.4;
  font-size: .86rem;
}

[data-dsat-panel="courses"] .dsat-content-item:hover {
  background: #eef8fe;
  border-color: rgba(52,152,219,.28);
  transform: translateY(-3px);
}


/* Test groups */

.dsat-test-groups {
  gap: 13px;
}

.dsat-test-group {
  border: 1px solid #e5eaf0;
  border-radius: 17px;
  box-shadow: 0 3px 10px rgba(31,50,70,.025);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.dsat-test-group:hover {
  border-color: #d7e1ea;
  box-shadow: 0 9px 24px rgba(31,50,70,.06);
}

.dsat-test-group.open {
  border-color: rgba(52,152,219,.26);
  box-shadow: 0 10px 28px rgba(52,152,219,.07);
}

.dsat-test-group-toggle {
  min-height: 82px;
  padding: 15px 18px;
  background: #fbfcfd;
}

.dsat-test-group.open .dsat-test-group-toggle {
  background: linear-gradient(90deg, #eef8fe 0%, #fbfdff 100%);
}

.dsat-test-group-icon {
  width: 47px;
  height: 47px;
  border-radius: 13px;
  background: #e9f5fc;
}

.dsat-test-group-left strong {
  color: #293e52;
  font-size: .93rem;
  line-height: 1.4;
}

.dsat-test-group-left span {
  margin-top: 4px;
  color: #8c99a6;
}

.dsat-test-count-badge {
  min-width: 40px;
  height: 30px;
  background: #eaf5fc;
  color: #2676a7;
  font-size: .75rem;
}

.dsat-test-group-content {
  background: #fff;
  padding: 14px;
  gap: 10px;
}

.dsat-grouped-test {
  min-height: 62px;
  background: #fafbfd;
  border-radius: 12px;
}

.dsat-grouped-test:hover {
  background: #f0f8fd;
}


/* Lectures / Books */

[data-dsat-panel="lectures"] .dsat-content-item,
[data-dsat-panel="books"] .dsat-content-item {
  background: #fafbfd;
}

[data-dsat-panel="lectures"] .dsat-content-item:hover,
[data-dsat-panel="books"] .dsat-content-item:hover {
  background: #eef8fe;
}


/* Scrollbar */

.dsat-content-grid::-webkit-scrollbar {
  width: 6px;
}

.dsat-content-grid::-webkit-scrollbar-track {
  background: #f3f5f7;
  border-radius: 10px;
}

.dsat-content-grid::-webkit-scrollbar-thumb {
  background: #c7d2dc;
  border-radius: 10px;
}


/* Mobile */

@media (max-width: 767px) {

  .dsat-explorer {
    padding: 20px 10px 44px;
  }

  .dsat-explorer-card {
    border-radius: 21px;
  }

  .dsat-explorer-top {
    padding: 24px 21px;
  }

  .dsat-explorer-card > .dsat-counts,
  .dsat-explorer-card > .dsat-tab-panel {
    margin-left: 18px;
    margin-right: 18px;
  }

  .dsat-counts {
    margin-top: 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .dsat-count {
    min-height: 82px;
  }

  [data-dsat-panel="courses"] .dsat-content-grid {
    grid-template-columns: 1fr;
  }

  .dsat-test-group-toggle {
    padding: 13px;
  }

  .dsat-test-group-left strong {
    font-size: .84rem;
  }
}
