:root {
  --navy: #102a43;
  --blue: #2563a8;
  --cream: #f7f4ed;
  --paper: #ffffff;
  --text: #243b53;
  --muted: #627d98;
  --line: #d9e2ec;
  --shadow: 0 18px 45px rgba(16, 42, 67, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  min-height: 76px;
  padding: 14px clamp(20px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 18px;
    font-weight: 700;
}

.brand-text small {
    font-size: 12px;
    color: #6b7280;
}
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: var(--navy);
  font-family: "Playfair Display", serif; font-size: 25px;
}
.nav-button, .primary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 13px 20px; border-radius: 7px; color: #fff; background: var(--navy);
  font-weight: 700; transition: transform .2s, background .2s;
}
.nav-button:hover, .primary-button:hover { background: var(--blue); transform: translateY(-2px); }

.hero {
  min-height: 510px;
  padding: 85px clamp(24px, 8vw, 125px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(37, 99, 168, .15), transparent 30%),
    linear-gradient(135deg, #eef5fa, #f8f5ed 60%);
}
.eyebrow { color: var(--blue); font-size: 12px; letter-spacing: 2.2px; font-weight: 700; }
.hero h1, .section-heading h2, .panel-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
}
.hero h1 { max-width: 720px; margin: 16px 0 20px; font-size: clamp(42px, 5.4vw, 76px); line-height: 1.04; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 610px; margin: 0 0 32px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.score-card {
  max-width: 390px; padding: 42px; justify-self: center;
  background: rgba(255,255,255,.86); border: 1px solid #fff; border-radius: 20px;
  box-shadow: var(--shadow); transform: rotate(2deg);
}
.score-card span, .score-card small { color: var(--muted); }
.score-card strong { display: block; margin: 8px 0 22px; color: var(--navy); font: 700 48px "Playfair Display", serif; }
.score-line { height: 9px; overflow: hidden; border-radius: 10px; background: #dbe7f1; margin-bottom: 17px; }
.score-line i { display: block; width: 80%; height: 100%; background: var(--blue); border-radius: inherit; }

.practice-section { max-width: 1280px; margin: auto; padding: 90px 24px 110px; }
.section-heading { text-align: center; margin-bottom: 44px; }
.section-heading h2 { margin: 10px 0; font-size: clamp(32px, 4vw, 48px); }
.section-heading p { color: var(--muted); }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skill-card {
  min-height: 300px; padding: 28px; text-align: left; position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--text);
  box-shadow: 0 7px 20px rgba(16,42,67,.05); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.skill-card:hover, .skill-card.active { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--blue); }
.icon-box { width: 62px; height: 62px; display: grid; place-items: center; font-size: 29px; border-radius: 12px; background: #eaf2f8; }
.card-number { position: absolute; top: 26px; right: 26px; color: #bcccdc; font-size: 13px; font-weight: 700; }
.skill-card strong { margin-top: 29px; color: var(--navy); font: 700 28px "Playfair Display", serif; }
.skill-card small { margin-top: 9px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.explore { margin-top: auto; color: var(--blue); font-size: 14px; font-weight: 700; }
.explore b { margin-left: 6px; transition: margin .2s; }
.skill-card:hover .explore b { margin-left: 11px; }

.practice-panel { margin-top: 45px; padding: clamp(24px, 4vw, 48px); background: #fff; border-radius: 18px; box-shadow: var(--shadow); animation: reveal .35s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.panel-heading h2 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 40px); }
.close-button { width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; color: var(--navy); background: #eef3f7; font-size: 27px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.choice-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.choice-card .tag { display: inline-block; padding: 5px 9px; border-radius: 20px; color: var(--blue); background: #e8f1f8; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.choice-card h3 { margin: 17px 0 8px; color: var(--navy); font-size: 19px; }
.choice-card p { min-height: 46px; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.start-button { width: 100%; padding: 11px; border: 1px solid var(--navy); border-radius: 6px; cursor: pointer; color: var(--navy); background: transparent; font-weight: 700; }
.start-button:hover { color: #fff; background: var(--navy); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; padding: 15px 20px; border-radius: 8px; color: #fff; background: var(--navy); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(15px); transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }

/* IELTS TEST GUIDE */
.ielts-guide { max-width: 1280px; margin: 0 auto; padding: 20px 24px 110px; }
.guide-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.guide-heading h2, .band-scale-heading h2 { margin: 10px 0 14px; color: var(--navy); font: 700 clamp(32px,4vw,48px) "Playfair Display", Georgia, serif; }
.guide-heading p, .band-scale-heading p { margin: 0; color: var(--muted); line-height: 1.75; }
.guide-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 22px; }
.guide-tab { padding: 17px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-weight: 700; cursor: pointer; transition: .2s ease; }
.guide-tab:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.guide-tab.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.guide-panel { padding: clamp(26px,4vw,48px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(16,42,67,.06); }
.guide-panel[hidden] { display: none; }
.guide-panel.active { animation: reveal .3s ease; }
.guide-overview { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(35px,6vw,75px); align-items: center; }
.guide-number { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; }
.guide-copy h3 { margin: 10px 0 15px; color: var(--navy); font: 700 clamp(27px,3vw,36px) "Playfair Display", Georgia, serif; line-height: 1.2; }
.guide-copy h4 { margin: 25px 0 7px; color: var(--navy); }
.guide-copy p { margin: 0; color: var(--muted); line-height: 1.75; }
.fact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.fact-grid div { padding: 22px; border-radius: 11px; background: #eef5fa; }
.fact-grid strong { display: block; color: var(--navy); font-size: 27px; }
.fact-grid span { color: var(--muted); font-size: 12px; }
.scoring-card, .criteria-section { margin-top: 38px; padding: 28px; border-radius: 13px; background: #f8fafc; }
.scoring-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.scoring-heading span { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.scoring-heading h4 { margin: 5px 0 0; color: var(--navy); font-size: 22px; }
.scoring-heading small { padding: 6px 10px; border-radius: 20px; background: #e5eef5; color: var(--muted); }
.reading-score-tables { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.reading-score-tables > div, .listening-score-table { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.reading-score-tables h5 { margin: 0; padding: 14px 16px; color: var(--navy); font-size: 15px; }
.score-row { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 16px; border-top: 1px solid #e8edf2; }
.score-row span:last-child, .score-row strong { text-align: right; }
.score-row strong { color: var(--blue); }
.score-row-head { border-top: 0; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.score-disclaimer { margin: 14px 0 0; color: #829ab1; font-size: 12px; line-height: 1.5; }
.criteria-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.criterion { padding: 21px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.criterion b { color: var(--blue); font-size: 11px; }
.criterion h5 { min-height: 42px; margin: 10px 0 8px; color: var(--navy); font-size: 15px; }
.criterion p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.guide-note { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--blue); background: #eaf3f9; color: var(--muted); line-height: 1.6; }
.guide-note strong { color: var(--navy); }
.band-scale { margin-top: 80px; }
.band-scale-heading { max-width: 720px; margin-bottom: 30px; }
.band-scale-heading h2 { font-size: clamp(30px,3.5vw,42px); }
.band-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.band-item { display: flex; align-items: center; gap: 17px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.band-item > strong { flex: 0 0 50px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #eaf2f8; color: var(--blue); font-size: 21px; }
.band-item:first-child > strong { background: var(--navy); color: #fff; }
.band-item h4 { margin: 0 0 4px; color: var(--navy); }
.band-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.overall-score-example { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; margin-top: 30px; padding: 32px; border-radius: 14px; background: var(--navy); color: #fff; }
.overall-score-example span { color: #9fb3c8; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.overall-score-example h3 { margin: 7px 0; }
.overall-score-example p { margin: 0; color: #bcccdc; line-height: 1.6; }
.example-score { padding: 20px; border-radius: 10px; background: rgba(255,255,255,.09); }
.example-score small { color: #9fb3c8; }
.example-score p { margin: 7px 0; color: #fff; }
.example-score strong { font-size: 18px; }
footer { padding: 30px clamp(24px, 6vw, 90px); display: flex; justify-content: space-between; gap: 20px; color: #bcccdc; background: var(--navy); font-size: 13px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .score-card { display: none; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-overview, .overall-score-example { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .topbar { min-height: 68px; }
  .brand span:last-child { font-size: 14px; }
  .nav-button { display: none; }
  .hero { min-height: auto; padding: 65px 22px; }
  .hero h1 { font-size: 43px; }
  .skill-grid, .choice-grid { grid-template-columns: 1fr; }
  .guide-tabs { grid-template-columns: repeat(2,1fr); }
  .reading-score-tables, .criteria-grid, .band-list, .fact-grid { grid-template-columns: 1fr; }
  .guide-panel { padding: 24px 17px; }
  .scoring-card, .criteria-section { padding: 20px 14px; }
  .scoring-heading { align-items: flex-start; flex-direction: column; }
  .skill-card { min-height: 260px; }
  .choice-card p { min-height: 0; }
  footer { flex-direction: column; }
}
