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

:root {
  --ink:          #111210;
  --paper:        #F8F7F3;
  --muted:        #6B6A63;
  --border:       #E0DED6;
  --accent:       #1A6B45;
  --accent-light: #EBF4EE;
  --serif:        'Instrument Serif', Georgia, serif;
  --sans:         'DM Sans', sans-serif;

  /* subject accent colours */
  --english:      #1A5FA6;
  --english-bg:   #EBF2FC;
  --math:         #1A6B45;
  --math-bg:      #EBF4EE;
  --analytical:   #7B3FA0;
  --analytical-bg:#F3EBFB;
  --essay:        #B35A1A;
  --essay-bg:     #FBF0E8;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

.auth-hidden { display: none; }

/* ── NAV ──────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.logo span { color: var(--accent); }

.tagline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  transition: color .2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-auth {
  display: flex;
  align-items: center;
}

.nav-cta {
  background: var(--accent);
  color: var(--paper);
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}

.nav-cta:hover { opacity: .8; }

.nav-links a:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── MAIN ─────────────────────────────────────────── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── PAGE HEADER ──────────────────────────────────── */
.page-header {
  margin-bottom: 44px;
}
.exam-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}
.page-header p {
  font-size: 15px;
  color: var(--muted);
}

/* ── SUBJECT GRID ─────────────────────────────────── */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* ── SUBJECT CARD ─────────────────────────────────── */
.subject-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: border-color .22s, box-shadow .22s, transform .18s;
  overflow: hidden;
}





/* per-subject top border colour on hover */
#card-english:hover  { border-color: var(--english); }
#card-english:hover::before  { background: var(--english);  opacity: 1; }

#card-math:hover     { border-color: var(--math); }
#card-math:hover::before     { background: var(--math);     opacity: 1; }

#card-analytical:hover { border-color: var(--analytical); }
#card-analytical:hover::before { background: var(--analytical); opacity: 1; }

#card-essay:hover    { border-color: var(--essay); }
#card-essay:hover::before    { background: var(--essay);    opacity: 1; }

/* ── CARD ICON ────────────────────────────────────── */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }

.english-icon    { background: var(--english-bg);    color: var(--english); }
.math-icon       { background: var(--math-bg);       color: var(--math); }
.analytical-icon { background: var(--analytical-bg); color: var(--analytical); }
.essay-icon      { background: var(--essay-bg);      color: var(--essay); }

/* ── CARD BODY ────────────────────────────────────── */
.card-body { flex: 1; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.card-top h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}
.card-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--border);
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ── CARD META ────────────────────────────────────── */
.card-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.meta-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* ── PROGRESS BAR ─────────────────────────────────── */
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.progress-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── CARD ARROW ───────────────────────────────────── */
.card-arrow {
  position: absolute;
  bottom: 22px;
  right: 24px;
  font-size: 16px;
  color: var(--border);
  transition: color .2s, transform .2s;
}



/* ── MOCK TEST BANNER ────────────────────────────── */
.mock-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.mock-banner:hover .mock-cta {
  background: #155c39;
}



.mock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 28px;
  margin-top: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mock-banner:hover {
  border-color: var(--ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

/* ── LEFT SIDE ───────────────────────────────────── */
.mock-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mock-icon {
  width: 44px;
  height: 44px;
  /* background: var(--surface); */
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* transition: background 0.2s ease; */
}



.mock-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  transition: stroke 0.2s ease;
}



/* ── START HERE BUTTON ───────────────────────────── */
.card-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0;
  width: 50%;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.subject-card:hover .card-start-btn {
  background: #155c39;
}


/* ── TEXT ────────────────────────────────────────── */
.mock-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.2;
}

.mock-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}



/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 480px) {
  .mock-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }

  .mock-cta {
    align-self: flex-end;
  }
}
/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 980px) {
  nav {
    padding: 16px 24px;
  }

  main {
    max-width: 760px;
    padding: 44px 20px 64px;
  }

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

@media (max-width: 680px) {
  nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }

  .tagline {
    display: none;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    order: 3;
    width: 100%;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  main {
    padding: 32px 14px 52px;
  }

  .page-header {
    margin-bottom: 28px;
  }

  .page-header h1 {
    line-height: 1.2;
  }

  .page-header p {
    font-size: 14px;
  }

  .subject-grid {
    gap: 12px;
  }

  .subject-card {
    padding: 20px 16px 18px;
    border-radius: 12px;
  }

  .subject-card::before {
    border-radius: 12px 12px 0 0;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }

  .card-icon svg {
    width: 20px;
    height: 20px;
  }

  .card-top {
    align-items: flex-start;
    gap: 8px;
  }

  .card-top h2 {
    font-size: 18px;
  }

  .card-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .card-desc {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .card-meta {
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }

  .meta-value {
    font-size: 15px;
  }

  .progress-row {
    gap: 8px;
  }

  .card-arrow {
    right: 16px;
    bottom: 18px;
  }

  .mock-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    gap: 14px;
  }

  .mock-left {
    width: 100%;
    gap: 12px;
  }

  .mock-title {
    font-size: 17px;
  }

  .mock-sub {
    font-size: 12px;
  }

  .mock-cta {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .exam-badge {
    font-size: 10px;
    letter-spacing: .8px;
    padding: 4px 10px;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-meta {
    gap: 10px;
  }

  .meta-item {
    min-width: 110px;
  }
}
footer {
border-top:1px solid var(--border);
  padding:28px 48px;
  display:flex;
  justify-content:space-between;
  align-items:center; font-size:12px; color:var(--muted);
}


