.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1e293b;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-outline:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.badge-slate {
  background: #f1f5f9;
  color: #475569;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

.exams-index-hero {
  background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 70%);
  padding: 40px 0 48px;
}

.exams-index-hero-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.exams-index-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 12px;
}

.exams-index-hero p {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 28px;
}

.exams-hero-search {
  max-width: 32rem;
  margin: 0 auto;
}

.exams-hero-search .search-wrap input {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.exams-platform-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.exams-platform-stat {
  text-align: center;
  min-width: 90px;
}

.exams-platform-stat .value {
  font-size: 22px;
  font-weight: 800;
  color: #1d4ed8;
}

.exams-platform-stat .label {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.exams-stats-bar {
  background: #1e3a8a;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.exams-stats-bar-inner {
  display: flex;
  min-width: min-content;
}

.exams-stats-bar-item {
  flex: 1;
  min-width: 140px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.exams-stats-bar-item:last-child {
  border-right: none;
}

.exams-stats-bar-item .title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.exams-stats-bar-item .sub {
  font-size: 12px;
  color: #93c5fd;
  margin-top: 2px;
}

.exams-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}

.exams-filters-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-right: 4px;
}

.exams-results-meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

.exam-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
  height: 100%;
}

.exam-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.exam-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exam-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.exam-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.exam-card-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
}

.exam-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exam-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  margin-top: auto;
  transition: opacity 0.15s;
}

.exam-card:hover .exam-card-cta {
  filter: brightness(0.97);
}

.exams-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.exams-empty {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
}

.exams-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.exams-empty p {
  color: #64748b;
  margin: 0 0 20px;
}

.exams-bottom-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 20px;
  padding: clamp(36px, 6vw, 56px) 32px;
  text-align: center;
  border: 1.5px solid #bfdbfe;
  margin-top: 48px;
}

.exams-bottom-cta h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 10px;
}

.exams-bottom-cta p {
  font-size: 16px;
  color: #1d4ed8;
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.exams-bottom-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.subject-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}

.subject-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
}

.mock-test-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  flex-wrap: wrap;
}

.mock-test-row:hover {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.mock-test-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.mock-test-index {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #1d4ed8;
  flex-shrink: 0;
}

.mock-test-copy {
  min-width: 0;
}

.mock-test-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.mock-test-meta {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.mock-test-row-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.mock-test-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  white-space: nowrap;
}

.mock-test-row:hover .mock-test-cta {
  background: #1d4ed8;
}

.test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  gap: 14px;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}

.test-row:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

@media (max-width: 640px) {
  .mock-test-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mock-test-row-side {
    justify-content: space-between;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
  }

  .mock-test-cta {
    flex: 1;
  }

  .d-none-mobile {
    display: none !important;
  }
}

.exam-subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.mcq-prep-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mcq-practice-card {
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
}

.mcq-practice-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.mcq-practice-copy {
  flex: 1;
  min-width: 0;
}

.mcq-practice-stem {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.55;
  margin-bottom: 10px;
}

.mcq-practice-stem-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mcq-practice-stem-link:hover .mcq-practice-stem {
  color: #2563eb;
}

.mcq-prep-open-link {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.mcq-prep-open-link:hover {
  text-decoration: underline;
}

.mcq-prep-index {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.mcq-prep-copy {
  min-width: 0;
}

.mcq-prep-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}

.mcq-practice-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mcq-practice-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font: inherit;
  color: inherit;
}

.mcq-practice-option:hover:not(:disabled) {
  border-color: #93c5fd;
  background: #f8fbff;
}

.mcq-practice-option:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.mcq-practice-option:disabled {
  cursor: default;
}

.mcq-practice-option.is-correct {
  border-color: #16a34a;
  background: #f0fdf4;
}

.mcq-practice-option.is-wrong {
  border-color: #ef4444;
  background: #fef2f2;
}

.mcq-practice-option-label {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #64748b;
  flex-shrink: 0;
}

.mcq-practice-option.is-correct .mcq-practice-option-label {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.mcq-practice-option.is-wrong .mcq-practice-option-label {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff;
}

.mcq-practice-option-body {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  padding-top: 3px;
}

.mcq-practice-feedback {
  margin-top: 14px;
}

.mcq-practice-result-msg {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.mcq-practice-result-msg.is-correct {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.mcq-practice-result-msg.is-wrong {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.mcq-practice-explanation {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.mcq-practice-explanation-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.mcq-practice-explanation-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.65;
}

.mcq-practice-empty {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.subject-prep-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 1024px) {
  .subject-prep-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }

  .subject-prep-sidebar {
    position: sticky;
    top: 88px;
  }
}

@media (min-width: 640px) {
  .exams-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .exams-list-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .exams-platform-stats {
    gap: 12px;
    padding: 16px;
  }

  .exams-platform-stat .value {
    font-size: 18px;
  }
}
