/* =====================================================================
   NATIONAL EXAM DOWNLOADS — teachers' page. Mobile-first: one card per
   row on phones, two on tablets, three on desktop. Uses the site's
   green / gold / navy family; each stream has its own accent colour.
   ===================================================================== */

.mt-ned-page{
  --ned-green:#0E9A6E; --ned-green-deep:#0A7A56;
  --ned-navy:#16273A; --ned-gold:#C8902A;
  --ned-cloud:#F5F8F7; --ned-line:#E6ECE9;
  --ned-ink:#1D2B26; --ned-soft:#55645D;
  background:#fff; color:var(--ned-ink);
  font-family:'Nunito',sans-serif;
}
.mt-ned-page [hidden]{ display:none !important; }
.mt-ned-wrap{ max-width:1080px; margin:0 auto; padding:0 16px; }

/* ---------------- HERO ---------------- */
.mt-ned-hero{
  background:
    radial-gradient(ellipse at top left, rgba(14,154,110,.12), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(200,144,42,.12), transparent 55%),
    var(--ned-cloud);
  padding:44px 0 34px; text-align:center;
}
.mt-ned-badge{
  display:inline-block; font-family:'Poppins',sans-serif; font-weight:800;
  font-size:.72rem; letter-spacing:1.3px; text-transform:uppercase;
  color:#fff; background:var(--ned-green);
  padding:7px 16px; border-radius:999px; margin-bottom:18px;
  box-shadow:0 8px 18px rgba(14,154,110,.26);
}
.mt-ned-hero h1{
  font-family:'Poppins',sans-serif; font-weight:800;
  font-size:clamp(1.8rem,5.4vw,2.9rem); line-height:1.15;
  color:var(--ned-navy); margin:0 0 14px; letter-spacing:-.4px;
}
.mt-ned-lead{
  font-size:1.02rem; color:var(--ned-soft); font-weight:600;
  max-width:62ch; margin:0 auto; line-height:1.65;
}
.mt-ned-count{
  display:inline-block; margin:20px 0 0; padding:8px 18px;
  background:#fff; border:1px solid var(--ned-line); border-radius:999px;
  font-size:.9rem; font-weight:700; color:var(--ned-navy);
  box-shadow:0 4px 12px rgba(22,39,58,.06);
}
.mt-ned-count strong{ color:var(--ned-green-deep); font-weight:800; }

/* ---------------- FILTERS ---------------- */
.mt-ned-filters{
  display:flex; flex-direction:column; gap:10px;
  padding:26px 0 6px; align-items:center;
}
.mt-ned-filter-group{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.mt-ned-chip{
  font-family:'Nunito',sans-serif; font-weight:800; font-size:.86rem;
  color:var(--ned-navy); background:#fff;
  border:2px solid var(--ned-line); border-radius:999px;
  padding:9px 16px; min-height:44px; cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.mt-ned-chip:hover{ border-color:var(--ned-green); }
.mt-ned-chip.is-active{
  background:var(--ned-navy); border-color:var(--ned-navy); color:#fff;
}
.mt-ned-chip:focus-visible,
.mt-ned-btn:focus-visible,
.mt-ned-note-btn:focus-visible{
  outline:3px solid var(--ned-gold); outline-offset:3px;
}

/* ---------------- YEAR SECTIONS ---------------- */
.mt-ned-year{ padding:34px 0 8px; border-top:1px solid var(--ned-line); margin-top:26px; }
.mt-ned-year:first-of-type{ border-top:0; margin-top:0; }
.mt-ned-year-title{
  display:flex; align-items:center; gap:14px; margin:0 0 6px;
  font-family:'Poppins',sans-serif; font-weight:800; color:var(--ned-navy);
  font-size:1.25rem; line-height:1.2;
}
.mt-ned-year-badge{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:78px; padding:10px 14px; border-radius:14px; flex-shrink:0;
  background:linear-gradient(135deg,var(--ned-navy),#27496E);
  color:#fff; font-size:1.25rem; font-weight:800; letter-spacing:.5px;
  box-shadow:0 8px 18px rgba(22,39,58,.22);
}
.mt-ned-year-text small{
  display:block; font-family:'Nunito',sans-serif; font-weight:700;
  font-size:.82rem; color:var(--ned-soft); margin-top:3px;
}

.mt-ned-session{ margin-top:20px; }
.mt-ned-session-title{
  display:flex; align-items:center; gap:10px; margin:0 0 14px;
  font-family:'Poppins',sans-serif; font-weight:700; font-size:.82rem;
  letter-spacing:1.2px; text-transform:uppercase; color:var(--ned-soft);
}
.mt-ned-session-title::after{
  content:""; flex:1; height:1px; background:var(--ned-line);
}

/* ---------------- CARDS ---------------- */
.mt-ned-grid{ display:grid; grid-template-columns:1fr; gap:16px; }

.mt-ned-card{
  position:relative; display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--ned-line); border-radius:20px;
  padding:22px 20px 20px; overflow:hidden;
  box-shadow:0 6px 18px rgba(22,39,58,.06);
  transition:transform .18s ease, box-shadow .18s ease;
}
.mt-ned-card::before{
  content:""; position:absolute; inset:0 0 auto 0; height:5px;
  background:var(--ned-c);
}
.mt-ned-card:hover{ transform:translateY(-3px); box-shadow:0 16px 32px rgba(22,39,58,.12); }

.mt-ned-card-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:14px;
}
.mt-ned-card-icon{
  display:flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:14px; font-size:1.4rem; flex-shrink:0;
  background:color-mix(in srgb, var(--ned-c) 14%, #fff);
}
.mt-ned-pill{
  font-family:'Nunito',sans-serif; font-weight:800; font-size:.72rem;
  color:var(--ned-d); background:color-mix(in srgb, var(--ned-c) 12%, #fff);
  padding:5px 11px; border-radius:999px; white-space:nowrap;
}
.mt-ned-card-title{
  font-family:'Poppins',sans-serif; font-weight:800; font-size:1.3rem;
  color:var(--ned-navy); margin:0 0 2px; line-height:1.2;
}
.mt-ned-card-track{
  margin:0 0 10px; font-size:.8rem; font-weight:800; color:var(--ned-d);
}
.mt-ned-card-text{
  margin:0 0 18px; font-size:.92rem; line-height:1.6; color:var(--ned-soft);
  font-weight:600; flex:1;
}

.mt-ned-btn{
  display:flex; align-items:center; justify-content:center; gap:9px;
  min-height:48px; padding:12px 18px; border-radius:999px;
  background:var(--ned-d); color:#fff !important;
  font-family:'Poppins',sans-serif; font-weight:700; font-size:.92rem;
  text-decoration:none !important;
  box-shadow:0 8px 18px rgba(22,39,58,.18);
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.mt-ned-btn:hover{
  transform:translateY(-2px); filter:brightness(1.08);
  box-shadow:0 12px 24px rgba(22,39,58,.24); color:#fff !important;
}
.mt-ned-btn-size{
  font-family:'Nunito',sans-serif; font-weight:700; font-size:.76rem;
  background:rgba(255,255,255,.2); padding:3px 9px; border-radius:999px;
}
.mt-ned-soon{
  display:flex; align-items:center; justify-content:center;
  min-height:48px; border-radius:999px; border:2px dashed var(--ned-line);
  font-weight:800; font-size:.86rem; color:var(--ned-soft);
}

/* ---------------- AD SLOT (reserved space, labelled) ---------------- */
.mt-ned-ad{ margin:44px auto 10px; max-width:728px; min-height:120px; }
.mt-ned-ad .mt-seo-ad{ min-height:120px; text-align:center; }
.mt-ned-ad .mt-seo-ad-label{
  display:block; font-size:.68rem; letter-spacing:1.2px; text-transform:uppercase;
  color:#6b7770; font-weight:700; margin-bottom:6px;
}

/* ---------------- INTERACTIVE-EXAMS NOTE ---------------- */
.mt-ned-note{
  display:flex; flex-direction:column; align-items:flex-start; gap:12px;
  margin:46px 0 56px; padding:22px 20px; border-radius:20px;
  background:linear-gradient(135deg,#0A2E3F 0%,#0E7D5C 100%); color:#fff;
}
.mt-ned-note-icon{ font-size:1.6rem; }
.mt-ned-note strong{ font-family:'Poppins',sans-serif; font-weight:800; font-size:1.08rem; }
.mt-ned-note p{ margin:4px 0 0; color:rgba(255,255,255,.9); font-weight:600; font-size:.94rem; line-height:1.55; }
.mt-ned-note-btn{
  display:inline-block; background:#fff; color:var(--ned-green-deep) !important;
  font-family:'Poppins',sans-serif; font-weight:800; font-size:.9rem;
  padding:12px 22px; border-radius:999px; text-decoration:none !important;
  min-height:44px;
}
.mt-ned-note-btn:hover{ color:var(--ned-green-deep) !important; transform:translateY(-2px); }

.mt-ned-empty{
  text-align:center; padding:40px 0; font-weight:700; color:var(--ned-soft);
}

/* ---------------- LARGER SCREENS ---------------- */
@media (min-width:640px){
  .mt-ned-wrap{ padding:0 24px; }
  .mt-ned-hero{ padding:60px 0 44px; }
  .mt-ned-filters{ flex-direction:row; justify-content:center; gap:26px; flex-wrap:wrap; }
  .mt-ned-grid{ grid-template-columns:repeat(2,1fr); }
  .mt-ned-year-title{ font-size:1.45rem; }
  .mt-ned-note{ flex-direction:row; align-items:center; gap:18px; padding:26px 30px; }
  .mt-ned-note > div{ flex:1; }
}
@media (min-width:960px){
  .mt-ned-grid{ grid-template-columns:repeat(3,1fr); gap:20px; }
}

@media (prefers-reduced-motion:reduce){
  .mt-ned-card, .mt-ned-btn, .mt-ned-note-btn{ transition:none; }
  .mt-ned-card:hover, .mt-ned-btn:hover{ transform:none; }
}

/* ---------------- RTL (Arabic-ready) ---------------- */
[dir="rtl"] .mt-ned-page{ direction:rtl; }
[dir="rtl"] .mt-ned-year-title,
[dir="rtl"] .mt-ned-card-head{ flex-direction:row-reverse; }
