
:root {
  --primary: #0b5d57;
  --primary-2: #14756d;
  --accent: #d7a82f;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #eef7f5;
  --text: #18343b;
  --muted: #6d8087;
  --line: #dbe7e9;
  --shadow: 0 18px 42px rgba(20, 56, 65, .10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(20,117,109,.10), transparent 28%),
    var(--bg);
  padding-bottom: 92px;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #083b43 0%, #0b5d57 52%, #21877b 100%);
  padding: 78px 20px 110px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

.hero-decor {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.hero-decor-one {
  width: 360px;
  height: 360px;
  top: -180px;
  right: -110px;
}

.hero-decor-two {
  width: 220px;
  height: 220px;
  bottom: -100px;
  left: -80px;
}

.brand-mark {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.08;
}

.hero h1 span {
  color: #f4cf67;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  opacity: .94;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-block;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-weight: 900;
}

.primary-action {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.08);
}

.content {
  max-width: 1180px;
  margin: -58px auto 0;
  padding: 0 18px 54px;
  position: relative;
  z-index: 3;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  color: var(--primary);
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.search-section {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(20,56,65,.06);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

#clearSearch {
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--primary);
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
}

.howto-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, #fffdf5, #fff);
  border: 1px solid #eadca9;
  border-left: 6px solid var(--accent);
  border-radius: 18px;
  padding: 20px;
}

.howto-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.howto-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.howto-card p {
  margin: 0;
  color: #6b5a2a;
  line-height: 1.6;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 30px 0 18px;
}

.section-heading span {
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 30px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.subject-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(20,56,65,.14);
}

.subject-header {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
}

.subject-icon {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 30px;
  box-shadow: 0 12px 24px rgba(11,93,87,.20);
}

.subject-number {
  display: inline-block;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.subject-copy h3 {
  margin: 5px 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.subject-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.subject-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.exam-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.exam-link {
  text-decoration: none;
  text-align: center;
  padding: 11px 8px;
  border-radius: 12px;
  border: 1px solid #cfe1df;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 900;
  transition: .18s ease;
}

.exam-link:hover,
.exam-link:active {
  color: #fff;
  background: var(--primary);
  transform: translateY(-1px);
}

.empty-state {
  display: none;
  margin-top: 20px;
  padding: 38px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
}

.empty-state h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.empty-state p {
  margin: 0;
}

.disclaimer {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8fafb;
  border: 1px solid var(--line);
}

.disclaimer p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(210,225,229,.95);
  box-shadow: 0 16px 38px rgba(20,56,65,.18);
  border-radius: 18px;
  z-index: 20;
}

.mobile-nav a {
  text-decoration: none;
  text-align: center;
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 900;
}

.mobile-nav a span {
  display: block;
  margin-bottom: 2px;
  font-size: 19px;
}

.mobile-nav a:hover {
  color: var(--primary);
  background: var(--surface-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}

@media (max-width: 820px) {
  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .subject-grid {
    grid-template-columns: 1fr;
  }

  .search-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 58px 16px 86px;
  }

  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stat-card {
    padding: 16px 10px;
  }

  .subject-card {
    padding: 18px;
  }

  .subject-header {
    grid-template-columns: 54px 1fr;
  }

  .subject-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 26px;
  }

  .exam-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .exam-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
