:root{
  --bg: #f6f3eb;
  --bg2: #e8e2d6;
  --card: #fffdf8;
  --card2: #f2ede4;
  --text: #1c1917;
  --muted: #57534e;
  --line: #cfc7b8;
  --brand: #0f766e;
  --brand2: #134e4a;
  --shadow: 0 16px 44px rgba(28, 25, 23, .11);
  --radius: 18px;
  --focus: rgba(15, 118, 110, 0.45);
  --focus-ring: rgba(15, 118, 110, 0.18);
}

*{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(880px 500px at 12% 8%, rgba(15, 118, 110, .16), transparent 58%),
    radial-gradient(760px 480px at 88% 12%, rgba(180, 83, 9, .10), transparent 55%),
    radial-gradient(720px 420px at 40% 92%, rgba(19, 78, 74, .08), transparent 58%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg2) 100%);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width:min(1100px, calc(100% - clamp(16px, 5vw, 40px)));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:8px;
  padding:10px 12px;
  background:#fff;
  color:#000;
  border-radius:10px;
  z-index:9999;
}
.skip-link:focus{ left:12px; }

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(246, 243, 235, .82);
  border-bottom:1px solid rgba(207, 199, 184, .85);
  /* Nav dropdown positions against the header */
  isolation: isolate;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}
.brand-logo{
  border-radius:12px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .14);
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-weight:700; letter-spacing:.2px; }
.brand-tagline{ font-size:12px; color:var(--muted); margin-top:2px; }

.nav{
  display:flex;
  align-items:center;
  gap:14px;
}
.nav a{
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
}
.nav a:hover{ background: rgba(16,24,40,.06); color:var(--text); }

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(208,213,221,.95);
  background: rgba(255,255,255,.70);
  color:var(--text);
}
.nav-toggle-bar{
  display:block;
  width:18px;
  height:2px;
  background: var(--text);
  margin:4px auto;
  border-radius:2px;
}

.hero{
  padding:56px 0 24px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:28px;
  align-items:start;
}

.hero--stacked{
  padding-bottom: 44px;
}

.hero--split{
  padding-bottom: 44px;
}
.hero-split-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 4.5vw, 44px);
  align-items: center;
}
.hero-copy{
  min-width: 0;
}
.hero-visual{
  min-width: 0;
}
.hero-photo-frame{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(207, 199, 184, 0.88);
  background: var(--card2);
}
.hero-photo{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  vertical-align: middle;
}
.hero-step-outer{
  margin-top: 28px;
}

.hero-copy--center{
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.hero-actions--center{
  justify-content: center;
}
.hero-copy--center .hero-cta-note{
  text-align: center;
}
.hero-stats--center{
  justify-content: center;
  border-top: none;
  padding-top: 6px;
}
.hero-points--center{
  max-width: 440px;
  margin-inline: auto;
  text-align: left;
}

.hero-step-strip{
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}
.hero-step-strip-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(208,213,221,.9);
  box-shadow: 0 12px 28px rgba(16, 24, 40, .08);
}
.hero-step-num{
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 118, 110, .2), rgba(19, 78, 74, .14));
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.hero-step-text{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.hero-step-text strong{
  color: var(--text);
}

.section-head--block{
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 22px;
}
.section-head--block .muted{
  max-width: 560px;
}

.home-journey-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.home-journey-heading{
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.2px;
}
.home-journey-lead{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
}
.plan-grid--journey{
  min-width: 0;
  width: 100%;
}
.home-journey-tools{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-journey-anchor{
  display: inline-block;
  margin-top: 14px;
  font-weight: 500;
}
.card--compact{
  padding: 14px 16px;
}
.card--compact p{
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.card-heading-sm{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.75);
  border:1px solid rgba(208,213,221,.9);
  color: var(--muted);
  margin:0 0 14px;
  font-weight:600;
  font-size:13px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing:-.6px;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size: 16px;
  line-height:1.6;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 10px 0 16px;
}
.hero-points{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.7;
}

.hero-cta-note{
  margin: 0 0 14px;
  font-size: 14px;
}
.hero-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  list-style: none;
  padding: 14px 0 0;
  margin: 0 0 14px;
  border-top: 1px solid rgba(208,213,221,.65);
}
.hero-stats li{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-stats strong{
  color: var(--text);
  font-weight: 600;
}

.hero-card-links{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.hero-card{
  background: rgba(255,255,255,.78);
  border:1px solid rgba(208,213,221,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px 18px 16px;
}
.card-title{
  margin:0 0 10px;
  font-size:18px;
}
.steps{
  margin:0 0 10px;
  padding-left:18px;
  color:var(--muted);
  line-height:1.7;
}

.section{
  padding: 42px 0;
}
.section.alt{
  background: rgba(255, 253, 248, .62);
  border-top:1px solid rgba(207, 199, 184, .65);
  border-bottom:1px solid rgba(207, 199, 184, .65);
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom: 18px;
}
.section-head h2{
  margin:0;
  font-size: 26px;
  letter-spacing:-.3px;
}
.muted{ color: var(--muted); }

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

.card{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(208,213,221,.9);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .10);
}
.card h3{ margin:0 0 8px; font-size:18px; }
.card p{ margin:0 0 12px; line-height:1.6; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 78, 74, .25);
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand2) 100%);
  color: #fafaf9;
  font-weight: 700;
  cursor:pointer;
  transition: transform .08s ease, filter .2s ease;
  box-shadow: 0 14px 32px rgba(15, 118, 110, .22);
}
.btn:hover{ filter: brightness(1.03); }
.btn:active{ transform: translateY(1px); }
.btn.btn-ghost{
  background: rgba(255, 253, 248, .55);
  color: var(--text);
  border: 1px solid rgba(207, 199, 184, .95);
  box-shadow:none;
}
.btn.btn-small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

button, .btn, .nav-toggle, .modal-close, .link-btn{
  touch-action: manipulation;
}

.link{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, .45);
  text-underline-offset: 4px;
}

.plan{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
}
.plan-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 460px;
}
.plan-item{
  border:1px solid rgba(208,213,221,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.70);
  padding: 12px 12px;
}
.plan-week{ font-weight:700; margin-bottom:4px; }
.plan-text{ color: var(--muted); }

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:center;
}
.form{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:flex-end;
  flex-wrap:wrap;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 260px;
}
.field span{ color: var(--muted); font-size: 13px; }
.field input{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(208,213,221,.95);
  background: rgba(255,255,255,.85);
  color: var(--text);
  outline:none;
}
.field input:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.form-hint{ margin: 4px 0 0; width:100%; text-align:right; }

.site-footer{
  padding: 22px 0 28px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-top: 1px solid rgba(207, 199, 184, .75);
  padding-top: 18px;
}

.footer-visitors{
  margin-left: 12px;
}

.modal{
  width:min(640px, calc(100% - 28px));
  max-height: min(92vh, 900px);
  max-height: min(92dvh, 900px);
  border:none;
  border-radius: 18px;
  padding:0;
  background: rgba(255,255,255,.98);
  color: var(--text);
  box-shadow: 0 28px 70px rgba(16, 24, 40, .26);
  overflow: hidden;
}
.modal::backdrop{ background: rgba(0,0,0,.55); }
.modal-inner{
  padding: 18px;
  border:1px solid rgba(208,213,221,.95);
  border-radius: 18px;
  max-height: min(85vh, 780px);
  max-height: min(85dvh, 780px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal h2{ margin: 6px 0 10px; }
.modal-close{
  margin-left:auto;
  display:grid;
  place-items:center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(208,213,221,.95);
  background: rgba(255,255,255,.85);
  color: var(--text);
  cursor:pointer;
  font-size: 20px;
}
.modal-actions{ display:flex; justify-content:flex-end; margin-top: 14px; }

.modal-actions-row{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  width:100%;
  margin-top:8px;
}

.link-btn{
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.is-hidden{ display:none; }

.btn.is-disabled{
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}

.mock-test-layout{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items:start;
  margin-top: 10px;
}

.mock-test-right{
  position: sticky;
  top: 88px;
}

.mock-signin-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 420px;
}

.signin-card{
  width:100%;
  max-width: 520px;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
  color: #000000;
  padding: 18px;
}

.signin-card h3{ color:#000; }
.signin-card .muted{ color:#111827; opacity: .85; }

.signin-card .field span{
  text-align: center;
  width:100%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.signin-card .field{
  max-width: 360px;
  width: 360px !important; /* override inline width:100% */
  margin-inline:auto;
}

.signin-card .field input{
  background: #ffffff;
  border: 1px solid #000000;
  color:#000000;
  padding: 10px 10px;
}

.mock-test-page{
  min-height: 72vh;
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.mock-test-topbar{
  display:flex;
  justify-content:flex-end;
}

.mock-test-top-right{
  width: 340px;
}

.mock-signin-center{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 10px 0;
}

.mock-top-strip{
  width:100%;
  background: linear-gradient(95deg, #0f766e 0%, #115e59 45%, #134e4a 100%);
  color: #fafaf9;
  position: relative;
  overflow: hidden;
}

.mock-top-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding: 12px 14px;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.mock-top-brand{
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 14px;
  line-height: 0;
}
.mock-top-brand:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mock-top-icon{
  border-radius: 14px;
  background: rgba(255,255,255,.85);
  padding: 6px;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

.mock-top-right{
  flex:1;
  display:flex;
  justify-content:flex-end;
  gap: 14px;
  align-items:flex-start;
}

.mock-top-box{
  min-width: 320px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  padding: 12px 14px;
}

.mock-top-label{
  font-size: 12px;
  letter-spacing:.3px;
  opacity: .95;
  font-weight: 600;
}

.mock-top-value{
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px;
  word-break: break-word;
}

.mock-top-exam-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
}

.mock-photo-box{
  width: 86px;
  height: 96px;
  border: 2px dashed rgba(0,0,0,.65);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
}

.mock-top-photo{
  /* legacy */
}

.mock-top-photo-corner{
  width: 96px;
  height: 104px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.04);
}

.mock-signin-form{
  justify-content:center;
  flex-direction:column;
  align-items:stretch;
}

.mock-signin-action{
  width:100%;
  display:flex;
  justify-content:center;
  margin-top: 8px;
}

@media (max-width: 900px){
  .header-inner{
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .brand{
    min-width: 0;
    flex: 1;
  }
  /* Collapsible menu only when a toggle button exists (e.g. index.html) */
  .site-header:has([data-nav-toggle]) .nav-toggle{
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
  }
  .site-header:has([data-nav-toggle]) .nav{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 12px 16px 16px;
    background: rgba(246, 243, 235, .97);
    border-bottom: 1px solid rgba(207, 199, 184, .85);
    box-shadow: 0 12px 28px rgba(28, 25, 23, .08);
    max-height: min(72vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header:has([data-nav-toggle]) .nav[data-open="true"]{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-header:has([data-nav-toggle]) .nav a{
    padding: 14px 12px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
  .site-header:has([data-nav-toggle]) .nav .btn{
    justify-content: center;
  }
  /* Simple headers (mock flow pages): links wrap on small screens */
  .site-header:not(:has([data-nav-toggle])) .nav{
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 10px;
  }

  .section-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head .muted{
    max-width: none;
  }

  .hero{ padding: 40px 0 20px; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-split-inner{
    grid-template-columns: 1fr;
  }
  .hero-visual{
    order: 1;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-copy{
    order: 0;
  }
  .hero-step-strip{
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  .home-journey-grid{
    grid-template-columns: 1fr;
  }
  .plan{ flex-direction:column; align-items:flex-start; }
  .plan-grid{ min-width: unset; width: 100%; }
  .grid{ grid-template-columns: 1fr; }
  .grid.grid-3{ grid-template-columns: 1fr; }

  .contact{ grid-template-columns: 1fr; }
  .form{
    justify-content:flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .field{
    min-width: 0;
    width: 100%;
  }
  .form .btn{
    width: 100%;
  }
  .form-hint{ text-align:left; }

  /* Reduces unwanted zoom on focus in iOS Safari */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea{
    font-size: 16px;
  }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-visitors{
    display: inline-block;
    margin-left: 0;
    margin-top: 2px;
  }

  .mock-test-layout{
    grid-template-columns: 1fr;
  }
  .mock-test-right{
    position: static;
    width: 100%;
    max-width: 100%;
  }
  .mock-top-inner{
    flex-wrap: wrap;
    gap: 12px;
  }
  .mock-top-right{
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }
  .mock-top-box{
    min-width: 0;
    flex: 1 1 min(320px, 100%);
    width: 100%;
  }

  .modal-actions,
  .modal-actions-row{
    flex-wrap: wrap;
  }
}

.mock-test-section{
  padding: 22px 0 26px;
}

/* Instructions page: instructions left ~75%, side column ~25% */
.mock-instructions-wrap{
  width: 100%;
}

.mock-instructions-layout{
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
  width: 100%;
}

.mock-instructions-main{
  min-width: 0;
}

.mock-instructions-card{
  max-width: none;
  width: 100%;
  margin: 0;
}

.mock-instructions-title{
  margin-top: 0;
}

.mock-instructions-list{
  margin: 1rem 0 1.25rem;
  padding-left: 1.35rem;
  line-height: 1.65;
}

.mock-instructions-list li{
  margin-bottom: 0.5rem;
}

.mock-instructions-confirm{
  font-size: 0.9rem;
}

.mock-instructions-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.mock-instructions-aside{
  min-height: 160px;
  border-radius: 18px;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  background: rgba(247, 248, 251, 0.65);
}

@media (max-width: 900px){
  .mock-instructions-layout{
    grid-template-columns: 1fr;
  }

  .mock-instructions-aside{
    min-height: 72px;
  }
}

/* Exam pattern & rules page + full-width bottom strip (~2in tall) */
.mock-patterns-section{
  padding-bottom: 0;
}

.mock-patterns-page-inner{
  padding-bottom: 28px;
}

.mock-patterns-card{
  max-width: none;
}

.mock-patterns-lead{
  margin-top: 0;
  margin-bottom: 1rem;
}

.mock-patterns-heading{
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
}

.mock-patterns-heading:first-of-type{
  margin-top: 0;
}

.mock-patterns-list{
  margin: 0 0 0.25rem;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.mock-patterns-list li{
  margin-bottom: 0.45rem;
}

.mock-patterns-back-row{
  margin-top: 1.25rem;
}

.mock-patterns-bottom-strip{
  width: 100%;
  min-height: 2in;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 14px 0 18px;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(232, 226, 214, 0.92));
  box-shadow: 0 -6px 24px rgba(28, 25, 23, 0.06);
}

.mock-patterns-bottom-strip-inner{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-patterns-strip-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.mock-patterns-strip-block{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.mock-patterns-strip-label{
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  width: 100%;
}

.mock-patterns-strip-lang .mock-patterns-strip-label{
  width: auto;
  margin-right: 4px;
}

.mock-patterns-lang-options{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.mock-patterns-lang-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.mock-patterns-lang-label input{
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #0f766e;
}

.mock-patterns-ack{
  flex: 1 1 220px;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.35;
  gap: 10px;
}

.mock-patterns-ack input{
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: #0f766e;
}

.mock-patterns-strip-action{
  flex-shrink: 0;
}

.mock-patterns-strip-hint{
  margin: 0;
  min-height: 1.25em;
}

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

  .mock-patterns-strip-action .btn{
    width: 100%;
  }
}

/* ——— IBPS-style mock exam attempt (mock-attempt.html) ——— */
html.mock-exam-html,
html.mock-exam-html body{
  height: 100%;
  overflow: hidden;
}

html:has(body.mock-exam-body){
  height: 100%;
  overflow: hidden;
}

.mock-exam-body{
  margin: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background: #f0f2f5;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: #212529;
}

.mock-exam-app{
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.mock-exam-topbar,
.mock-exam-bar--dark,
.mock-exam-tabs-wrap,
.mock-exam-footerbar{
  flex-shrink: 0;
}

.mock-exam-topbar{
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding: 6px 16px;
}

.mock-exam-topbar-inner{
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mock-exam-brand{
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}
.mock-exam-brand:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mock-exam-logo{
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mock-exam-title{
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.mock-exam-topbar-spacer{
  width: 40px;
  flex-shrink: 0;
}

.mock-exam-bar--dark{
  background: #2c2c2c;
  color: #fff;
  padding: 6px 16px;
}

.mock-exam-bar-inner{
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.mock-exam-bar-inner--split{
  justify-content: space-between;
  gap: 12px;
}

.mock-exam-dark-title{
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.mock-exam-btn-instructions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #0d6efd;
  border: 1px solid #0b5ed7;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}

.mock-exam-btn-instructions:hover{
  background: #0b5ed7;
}

.mock-exam-icon-info{
  flex-shrink: 0;
}

.mock-exam-tabs-wrap{
  background: #f0f0f0;
  border-bottom: 1px solid #c8c8c8;
}

.mock-exam-tabs-row{
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid #dcdcdc;
}

.mock-exam-tabs{
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px 0 0;
}

.mock-exam-tab{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #bdbdbd;
  background: #e8e8e8;
  color: #333333;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
}

.mock-exam-tab .mock-exam-tab-check{
  display: none;
  color: #fff;
}

.mock-exam-tab.is-active{
  background: #1a5490;
  color: #fff;
  border-color: #154a80;
}

.mock-exam-tab.is-active .mock-exam-tab-check{
  display: block;
}

.mock-exam-tab:disabled{
  cursor: not-allowed;
  opacity: 0.55;
  background: #e0e0e0;
  color: #666;
}

.mock-exam-section-row{
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #ffffff;
  box-sizing: border-box;
}

.mock-exam-section-label{
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
}

.mock-exam-qtype-line{
  margin: 0 auto;
  width: 100%;
  max-width: none;
  padding: 4px 16px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c82333;
  background: #ffffff;
  box-sizing: border-box;
}

.mock-exam-timer{
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

.mock-exam-timer strong{
  font-variant-numeric: tabular-nums;
  color: #b02a37;
}

.mock-exam-layout{
  flex: 1;
  min-height: 0;
  display: flex;
  max-width: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 8px 14px;
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
}

.mock-exam-main{
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0 0 4px 4px;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  overflow: hidden;
}

.mock-exam-qbar{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #2e75b6;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  border-bottom: 2px solid #1a5490;
}

.mock-exam-qbar-no{
  font-weight: 700;
}

.mock-exam-lang{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
}

.mock-exam-lang select{
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.78rem;
  color: #212529;
}

.mock-exam-question-block{
  padding: 14px 16px 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  scrollbar-gutter: stable;
}

.mock-exam-qtext{
  margin: 0 0 14px;
  line-height: 1.45;
  font-size: 0.95rem;
}

.mock-exam-options{
  list-style: none;
  margin: 0;
  padding: 0;
}

.mock-exam-options li{
  margin-bottom: 12px;
}

.mock-exam-opt{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.4;
}

.mock-exam-opt input{
  margin-top: 3px;
  accent-color: #2e75b6;
}

.mock-exam-btn{
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}

.mock-exam-btn--outline{
  background: #fff;
  border: 1px solid #adb5bd;
  color: #495057;
}

.mock-exam-btn--outline:hover{
  background: #e9ecef;
}

.mock-exam-btn--primary{
  background: #0d47a1;
  border: 1px solid #0a3d91;
  color: #fff;
}

.mock-exam-btn--primary:hover{
  background: #0a3d91;
}

.mock-exam-sidebar{
  flex: 0 0 clamp(300px, 32vw, 520px);
  width: clamp(300px, 32vw, 520px);
  min-width: 280px;
  max-width: none;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 10px 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  box-shadow: -4px 0 14px rgba(0, 0, 0, 0.06);
}

.mock-exam-profile{
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.mock-exam-profile-photo{
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  background: #e9ecef;
  border: 2px solid #9e9e9e;
  border-radius: 50%;
}

.mock-exam-profile-name{
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  word-break: break-word;
}

.mock-exam-legend{
  font-size: 0.65rem;
  line-height: 1.25;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 6px 6px 4px;
  background: #fafafa;
  flex-shrink: 0;
}

.mock-exam-legend-title{
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.mock-exam-legend-list{
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-exam-legend-list li{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.mock-exam-swatch{
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.mock-exam-swatch--hex{
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.mock-exam-swatch--square{
  border-radius: 2px;
  border: 1px solid #999;
}

.mock-exam-swatch--circle{
  border-radius: 50%;
}

.mock-exam-swatch--answered{ background: #44aa00; }
.mock-exam-swatch--unanswered{ background: #dd2200; }
.mock-exam-swatch--unvisited{ background: #ffffff; }
.mock-exam-swatch--review{ background: #7744aa; }
.mock-exam-swatch--review-answered{
  background: #7744aa;
  position: relative;
  box-shadow: inset 0 -5px 0 #44aa00;
}

.mock-exam-palette-card{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #c5d5e8;
  border-radius: 4px;
}

.mock-exam-palette-head{
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  text-align: center;
  padding: 8px 6px;
  background: #2e75b6;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-exam-palette-head span:first-child{
  font-size: 0.82rem;
}

.mock-exam-palette-sub{
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.95;
}

.mock-exam-palette{
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(56px, 1fr));
  grid-auto-rows: minmax(52px, 56px);
  gap: 8px;
  padding: 10px 8px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #f7f8fa;
  scrollbar-gutter: stable;
}

.mock-exam-cell{
  min-width: 0;
  min-height: 52px;
  height: 100%;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-size: clamp(0.85rem, 1.25vw, 1.05rem);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.08s ease, transform 0.08s ease;
}

.mock-exam-cell--shape-hex{
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.mock-exam-cell--shape-square{
  clip-path: none;
  border-radius: 2px;
}

.mock-exam-cell--shape-circle{
  clip-path: none;
  border-radius: 50%;
}

.mock-exam-cell:hover{
  z-index: 1;
  filter: brightness(1.05);
}

.mock-exam-cell.is-current{
  box-shadow: 0 0 0 2px #1a1a1a;
  z-index: 2;
}

.mock-exam-cell--unvisited{
  background: #ffffff;
  color: #333;
  border-color: #b0b0b0;
}

.mock-exam-cell--answered{
  background: #44aa00;
  color: #fff;
  border-color: #367a00;
}

.mock-exam-cell--unanswered{
  background: #dd2200;
  color: #fff;
  border-color: #b01b00;
}

.mock-exam-cell--current-unanswered{
  background: #dd2200;
  color: #fff;
  border-color: #8a1500;
  box-shadow: 0 0 0 2px #5c0e00;
}

.mock-exam-cell--review{
  background: #7744aa;
  color: #fff;
  border-color: #5c3382;
}

.mock-exam-cell--review-answered{
  background: #7744aa;
  color: #fff;
  border-color: #5c3382;
  box-shadow: inset 0 -5px 0 #44aa00;
}

.mock-exam-footerbar{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  background: #e8e8e8;
  border-top: 1px solid #c4c4c4;
  font-size: 0.7rem;
  color: #555;
  flex-shrink: 0;
}

.mock-exam-version{
  font-variant-numeric: tabular-nums;
}

.mock-exam-footer-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.mock-exam-btn--submit{
  background: #5bc0de;
  border: 1px solid #39aecf;
  color: #fff;
  padding: 8px 22px;
  font-weight: 700;
}

.mock-exam-btn--submit:hover{
  background: #39b3d7;
}

@media (max-width: 900px){
  .mock-exam-topbar-inner{
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 8px;
    box-sizing: border-box;
  }
  .mock-exam-logo{
    flex-shrink: 0;
  }
  .mock-exam-title{
    flex: 1;
    min-width: 0;
    font-size: clamp(0.78rem, 2.6vw, 1rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .mock-exam-layout{
    flex-direction: column;
    min-height: 0;
    padding: 0 8px 6px;
  }

  .mock-exam-main{
    flex: 1;
    min-height: 0;
  }

  .mock-exam-sidebar{
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    max-width: none;
    flex-basis: auto;
    min-height: 0;
    flex-direction: column;
    border-right: 1px solid #c8c8c8;
    border-radius: 6px;
    box-shadow: none;
  }

  .mock-exam-palette{
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    grid-auto-rows: minmax(48px, 52px);
    max-height: min(42vh, 360px);
    flex: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }

  .mock-exam-footerbar{
    padding: 10px;
  }
  .mock-exam-footer-actions{
    flex: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .mock-exam-footer-actions .mock-exam-btn,
  .mock-exam-footer-actions .mock-exam-btn--submit{
    min-height: 44px;
    padding-inline: 12px;
  }
}

@media (max-width: 480px){
  .mock-exam-tabs-row{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin: 0 -4px;
  }
  .mock-exam-tabs{
    flex-wrap: nowrap;
  }
  .mock-exam-palette{
    grid-template-columns: repeat(5, minmax(38px, 1fr));
    grid-auto-rows: minmax(44px, 50px);
    max-height: min(36vh, 300px);
  }
  .mock-exam-qtext{
    font-size: 0.92rem;
  }
  .mock-exam-opt{
    min-height: 44px;
    align-items: center;
    padding: 6px 0;
  }
  .mock-exam-footer-actions{
    flex-direction: column;
    align-items: stretch;
  }
  .mock-exam-footer-actions .mock-exam-btn,
  .mock-exam-footer-actions .mock-exam-btn--submit{
    width: 100%;
    justify-content: center;
  }

  .section{ padding: 30px 0; }
  .hero{ padding: 28px 0 14px; }
}


/* Homepage: display headings (index.html uses body.theme-heritage) */
body.theme-heritage h1{
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
body.theme-heritage .section-head h2,
body.theme-heritage #contact-title,
body.theme-heritage .home-journey-heading{
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ——— Mock test results (mock-results.html) ——— */
.mock-results-hero h1{
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
}

.mock-results-summary{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 52rem;
}

.mock-results-meta{
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.mock-results-actions{
  margin-top: 16px;
}

.mock-results-list{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.mock-results-row{
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(207, 199, 184, 0.95);
  background: rgba(255, 253, 248, 0.85);
  box-shadow: 0 8px 22px rgba(28, 25, 23, .06);
  border-left-width: 4px;
}

.mock-results-row--ok{
  border-left-color: #15803d;
}

.mock-results-row--bad{
  border-left-color: #c2410c;
}

.mock-results-row--na{
  border-left-color: #78716c;
}

.mock-results-row-head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.mock-results-qno{
  font-size: 1rem;
}

.mock-results-badge{
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.mock-results-badge--ok{
  background: rgba(21, 128, 61, 0.12);
  color: #166534;
}

.mock-results-badge--bad{
  background: rgba(194, 65, 12, 0.12);
  color: #9a3412;
}

.mock-results-badge--na{
  background: rgba(120, 113, 108, 0.15);
  color: #57534e;
}

.mock-results-stem{
  margin: 0 0 12px;
  line-height: 1.5;
  font-size: 0.98rem;
}

.mock-results-pairs{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 0.92rem;
}

.mock-results-pairs dt{
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.mock-results-pairs dd{
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 560px){
  .mock-results-pairs{
    grid-template-columns: 1fr;
  }
  .mock-results-pairs dt{
    padding-top: 6px;
  }
}