/* ═══════════════════════════════════════════════════════════════
   Test Preparation — MentorMinds
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #FF6B00;
  --orange-dark: #E05E00;
  --orange-glow: rgba(255, 107, 0, 0.18);
  --navy: #0A1F44;
  --navy-light: #132D5E;
  --white: #FFFFFF;
  --light: #F8F9FA;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --red: #DC2626;
  --green: #16A34A;
  --ff: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); font-size: 16px; line-height: 1.7; color: var(--text-dark); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.tp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title { font-family: var(--ff); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 48px; font-size: 1.05rem; }

/* ── Header ─────────────────────────────────────────────────── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--white); transition: var(--transition); }
.header.scrolled { box-shadow: var(--shadow); }
.top-bar { background: var(--navy); color: var(--white); font-size: 13px; padding: 6px 0; }
.header.scrolled .top-bar { margin-top: -40px; }
.top-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-left i { color: var(--orange); margin-right: 5px; }
.lang-switch { display: flex; background: rgba(255,255,255,.12); border-radius: 50px; overflow: hidden; }
.lang-switch button { padding: 3px 12px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }
.lang-switch button.active { background: var(--orange); color: var(--white); }

.nav-bar { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--orange), #ff8a33); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 18px; }
.logo-text span:first-child { color: var(--navy); }
.logo-text span:last-child { color: var(--orange); }
.nav-menu { display: flex; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 5px; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--navy); border-radius: 8px; transition: var(--transition); }
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--orange); background: rgba(255,107,0,.06); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 220px; background: var(--white); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.12); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 100; }
.nav-menu > li:hover > .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; color: var(--navy); border-radius: 10px; }
.dropdown-menu li a:hover { background: rgba(255,107,0,.07); color: var(--orange); }
.dropdown-menu li a i { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--orange-glow); color: var(--orange); border-radius: 8px; font-size: 12px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-whatsapp { width: 42px; height: 42px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.btn-cta { padding: 10px 24px; background: var(--orange); color: var(--white); font-family: var(--ff); font-size: 14px; font-weight: 600; border-radius: 50px; border: 2px solid var(--orange); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 10px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(10,31,68,.5); z-index: 1049; opacity: 0; transition: opacity var(--transition); }
.mobile-overlay.show { display: block; opacity: 1; }
.mobile-menu { display: none; position: fixed; top: 0; right: -320px; width: 320px; max-width: 85vw; height: 100vh; background: var(--white); z-index: 1050; padding: 80px 24px 30px; overflow-y: auto; transition: right .35s ease; }
.mobile-menu.open { right: 0; }
.mobile-menu .mobile-nav li { border-bottom: 1px solid rgba(0,0,0,.06); }
.mobile-menu .mobile-nav > li > a { display: block; padding: 14px 0; font-weight: 600; color: var(--navy); }

/* ══════════════════════════════════════════════
   SECTION 1 — Hero (orange)
   ══════════════════════════════════════════════ */
.tp-hero {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8533 50%, var(--orange-dark) 100%);
  padding: 140px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(10,31,68,.08) 0%, transparent 40%);
  pointer-events: none;
}
.tp-hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.tp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.tp-hero h1 {
  font-family: var(--ff);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.tp-hero-sub {
  color: rgba(255,255,255,.92);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.75;
}
.tp-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-tp-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--white);
  color: var(--orange);
  font-family: var(--ff);
  font-weight: 700;
  font-size: 15px;
  border-radius: 50px;
  border: 2px solid var(--white);
  transition: var(--transition);
}
.btn-tp-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-tp-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-family: var(--ff);
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.75);
  transition: var(--transition);
}
.btn-tp-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ══════════════════════════════════════════════
   SECTION 2 — Comparison Table
   ══════════════════════════════════════════════ */
.tp-compare { padding: 80px 0; background: var(--light); }
.table-scroll {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--white);
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead th {
  background: var(--orange);
  color: var(--white);
  font-family: var(--ff);
  font-weight: 700;
  padding: 16px 18px;
  text-align: center;
  font-size: 15px;
}
.compare-table thead th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--orange);
  min-width: 140px;
}
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--white);
  font-family: var(--ff);
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  padding: 14px 18px;
  border-right: 2px solid var(--light);
  white-space: nowrap;
}
.compare-table tbody tr:nth-child(even) th { background: #f3f4f6; }
.compare-table tbody tr:nth-child(even) td { background: #f9fafb; }
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(10,31,68,.06);
  vertical-align: middle;
}
.compare-table tbody tr { transition: background var(--transition); }
.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th { background: var(--orange-glow) !important; }

/* ══════════════════════════════════════════════
   SECTION 3 — Exam Tabs
   ══════════════════════════════════════════════ */
.tp-exams { padding: 80px 0; }
.exam-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.exam-tab {
  padding: 12px 28px;
  font-family: var(--ff);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--light);
  border: 2px solid transparent;
  border-radius: 50px;
  transition: var(--transition);
}
.exam-tab:hover { color: var(--navy); border-color: rgba(255,107,0,.3); }
.exam-tab.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.exam-panel { display: none; animation: fadeIn .4s ease; }
.exam-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.exam-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--light);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(10,31,68,.06);
}
.exam-overview h3 {
  font-family: var(--ff);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.exam-overview p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.75; }
.band-visual { margin-bottom: 28px; }
.band-visual h4 {
  font-family: var(--ff);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.band-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.band-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.band-label { width: 72px; font-weight: 600; color: var(--navy); flex-shrink: 0; }
.band-track {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.band-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--orange), #ff9a4d); }
.exam-highlights h4 {
  font-family: var(--ff);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}
.exam-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-dark);
}
.exam-highlights li i { color: var(--orange); margin-top: 4px; flex-shrink: 0; }
.exam-meta {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.exam-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10,31,68,.06);
  font-size: 14px;
}
.exam-meta-item:last-of-type { border-bottom: none; margin-bottom: 20px; }
.exam-meta-item strong { color: var(--navy); font-family: var(--ff); }
.exam-meta-item span { color: var(--text-muted); text-align: right; }
.btn-enroll-exam {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--ff);
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  transition: var(--transition);
}
.btn-enroll-exam:hover { background: var(--orange-dark); }

/* ══════════════════════════════════════════════
   SECTION 4 — Study Resources
   ══════════════════════════════════════════════ */
.tp-resources { padding: 80px 0; background: var(--light); }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.resource-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid rgba(10,31,68,.06);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.resource-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(10,31,68,.1); }
.resource-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--orange-glow);
  color: var(--orange);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.resource-card h3 {
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.file-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  background: var(--light);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}
.btn-download:hover { background: var(--orange-dark); }

/* ══════════════════════════════════════════════
   SECTION 5 — Band Calculator
   ══════════════════════════════════════════════ */
.tp-calculator { padding: 80px 0; }
.calc-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--light);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(10,31,68,.08);
}
.calc-card h3 {
  font-family: var(--ff);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 32px;
}
.slider-group { margin-bottom: 24px; }
.slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.slider-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  min-width: 36px;
  text-align: right;
}
.slider-group input[type="range"] {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #e5e7eb;
  border-radius: 10px;
  outline: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--orange);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(255,107,0,.4);
}
.slider-group input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--orange);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
}
.calc-result {
  margin-top: 32px;
  padding: 24px;
  background: var(--white);
  border-radius: 16px;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.calc-result p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.calc-result .band-score {
  font-family: var(--ff);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.calc-result.band-low { border-color: var(--red); background: #fef2f2; }
.calc-result.band-low .band-score { color: var(--red); }
.calc-result.band-mid { border-color: var(--orange); background: #fff7ed; }
.calc-result.band-mid .band-score { color: var(--orange); }
.calc-result.band-high { border-color: var(--green); background: #f0fdf4; }
.calc-result.band-high .band-score { color: var(--green); }

/* ══════════════════════════════════════════════
   SECTION 6 — Mock Test CTA
   ══════════════════════════════════════════════ */
.tp-mock-cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 72px 24px;
  text-align: center;
}
.tp-mock-cta h2 {
  font-family: var(--ff);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.tp-mock-cta .mock-date {
  font-size: 1.15rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 8px;
}
.tp-mock-cta p {
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  font-size: 1rem;
}
.btn-register-mock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--ff);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-register-mock:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 24px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 16px; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 13px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .exam-panel-inner { grid-template-columns: 1fr; padding: 28px; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu, .btn-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .resources-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .exam-tabs { gap: 8px; }
  .exam-tab { padding: 10px 18px; font-size: 13px; }
}
