:root{--primary:#1a56db;--primary-dark:#1d4ed8;--accent:#f59e0b;--orange:#f59e0b;--orange-dark:#d97706;--success:#059669;--danger:#dc2626;--gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;--gray-300:#d1d5db;--gray-400:#9ca3af;--gray-500:#6b7280;--gray-600:#4b5563;--gray-700:#374151;--gray-800:#1f2937;--gray-900:#111827;--font:'Inter',system-ui,sans-serif;--radius:10px;--shadow:0 4px 6px -1px rgb(0 0 0/.07)}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:var(--font);color:var(--gray-800);background:var(--gray-50);line-height:1.6;min-height:100vh;display:flex;flex-direction:column}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%}button,input,select,textarea{font-family:inherit}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1.25rem}
.site-header{background:#fff;border-bottom:1px solid var(--gray-200);position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;gap:1rem}
.logo{display:flex;align-items:center;gap:.6rem;font-weight:700;font-size:1.25rem;color:var(--gray-900);text-decoration:none}.logo span{color:var(--primary)}
.nav{display:flex;align-items:center;gap:.25rem}.nav a{padding:.5rem .85rem;border-radius:6px;color:var(--gray-600);font-weight:500;font-size:.925rem;text-decoration:none}.nav a:hover,.nav a.active{background:var(--gray-100);color:var(--primary);text-decoration:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.6rem 1.2rem;border-radius:8px;font-weight:600;font-size:.9rem;border:none;cursor:pointer;transition:all .15s;text-decoration:none}
.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark);color:#fff;text-decoration:none}
.btn-outline{background:transparent;border:1.5px solid var(--gray-300);color:var(--gray-700)}.btn-outline:hover{border-color:var(--primary);color:var(--primary);text-decoration:none}
.btn-success{background:var(--success);color:#fff}.btn-sm{padding:.4rem .8rem;font-size:.8rem}.btn:disabled{opacity:.6;cursor:not-allowed}
.hero{background:linear-gradient(135deg,#1d4ed8 0%,#1a56db 55%,#f59e0b 100%);color:#fff;padding:3.5rem 0;text-align:center}
.hero h1{font-size:clamp(1.75rem,4vw,2.5rem);font-weight:800;margin-bottom:1rem}.hero p{font-size:1.1rem;opacity:.92;max-width:600px;margin:0 auto 1.5rem}
.hero-actions{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}
.hero .btn-primary{background:#fff;color:var(--primary)}.hero .btn-outline{border-color:rgba(255,255,255,.6);color:#fff}
.section{padding:2.5rem 0}.section-title{font-size:1.5rem;font-weight:700;margin-bottom:.35rem}.section-sub{color:var(--gray-500);margin-bottom:1.5rem}
.card{background:#fff;border-radius:var(--radius);border:1px solid var(--gray-200);box-shadow:var(--shadow);overflow:hidden}
.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
@media(max-width:1000px){.resource-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.resource-grid{grid-template-columns:1fr}}
.resource-card{padding:.65rem 1rem;display:flex;flex-direction:column}
.resource-row{padding:.55rem .75rem}
.resource-row-main{display:flex;align-items:center;gap:.5rem;flex-wrap:nowrap}
.resource-row .resource-title,.resource-row h3{
  font-size:.88rem;font-weight:600;margin:0;line-height:1.3;
  flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.resource-row-actions{display:flex;align-items:center;gap:.35rem;flex:0 0 auto;margin-left:auto}
.resource-price-tag{
  font-size:.75rem;font-weight:600;color:var(--primary,#1d4ed8);
  background:#eff6ff;padding:.18rem .45rem;border-radius:999px;white-space:nowrap
}
.resource-row .btn{padding:.28rem .55rem;font-size:.75rem;white-space:nowrap}
@media(max-width:600px){
  .resource-row-main{gap:.4rem}
  .resource-row .resource-title,.resource-row h3{font-size:.85rem}
}
.badge{display:inline-block;font-size:.7rem;font-weight:600;padding:.2rem .55rem;border-radius:999px;margin-bottom:.6rem}
.badge-free{background:#d1fae5;color:#065f46}.badge-paid{background:#dbeafe;color:#1d4ed8}.badge-membership{background:#fce7f3;color:#9d174d}.badge-premium{background:#fef3c7;color:#92400e}
.resource-card h3{font-size:.95rem;font-weight:600;margin:0;line-height:1.35}
.resource-card p{display:none}
.resource-meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.75rem;color:var(--gray-500);margin-bottom:1rem}
.resource-card .actions{display:flex;gap:.5rem;margin-top:auto}
.plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}
.plan-card{padding:1.75rem 1.5rem;text-align:center;position:relative}
.plan-card.popular{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary)}
.plan-card .plan-name{font-size:1.15rem;font-weight:700}.plan-card .plan-price{font-size:2rem;font-weight:800;color:var(--primary);margin:.5rem 0}
.plan-card .plan-price span{font-size:.9rem;font-weight:500;color:var(--gray-500)}
.plan-card ul{list-style:none;text-align:left;margin:1.25rem 0;font-size:.875rem;color:var(--gray-600)}
.plan-card ul li{padding:.3rem 0;padding-left:1.4rem;position:relative}.plan-card ul li::before{content:"✓";position:absolute;left:0;color:var(--success);font-weight:700}
.form-group{margin-bottom:1.1rem}.form-group label{display:block;font-weight:500;font-size:.875rem;margin-bottom:.35rem;color:var(--gray-700)}
.form-control{width:100%;padding:.65rem .85rem;border:1.5px solid var(--gray-300);border-radius:8px;font-size:.95rem;background:#fff}
.form-control:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(26,86,219,.12)}
.site-footer{background:var(--gray-900);color:var(--gray-400);padding:2.5rem 0 1.5rem;margin-top:auto;font-size:.9rem}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1.5rem;margin-bottom:1.5rem}
.footer-grid h4{color:#fff;font-size:.95rem;margin-bottom:.75rem}.footer-grid a{display:block;color:var(--gray-400);padding:.2rem 0;text-decoration:none}.footer-grid a:hover{color:#fff}
.footer-bottom{border-top:1px solid var(--gray-700);padding-top:1rem;text-align:center;font-size:.8rem}
.text-center{text-align:center}.mt-2{margin-top:1rem}.mb-2{margin-bottom:1rem}.hidden{display:none!important}
.spinner{display:inline-block;width:1.1em;height:1.1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.mobile-toggle{display:none;background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--gray-700)}
@media(max-width:768px){.mobile-toggle{display:block}.nav{display:none;position:absolute;top:64px;left:0;right:0;background:#fff;flex-direction:column;padding:1rem;border-bottom:1px solid var(--gray-200)}.nav.open{display:flex}.nav a{width:100%;padding:.75rem 1rem}.resource-grid{display:flex;flex-direction:column}}
.dash-layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 64px)}
.dash-sidebar{background:#fff;border-right:1px solid var(--gray-200);padding:1.25rem 0}
.dash-sidebar a{display:flex;align-items:center;gap:.55rem;padding:.65rem 1.1rem;color:var(--gray-600);font-weight:500;text-decoration:none;font-size:.9rem}
.dash-sidebar a:hover,.dash-sidebar a.active{background:var(--gray-100);color:var(--primary)}
.dash-content{padding:1.5rem}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem}
.stat-card{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);padding:1.1rem}
.stat-card .value{font-size:1.5rem;font-weight:700}.stat-card .label{font-size:.8rem;color:var(--gray-500)}
/* Mobile dashboard: off-canvas sidebar (not horizontal scroll) */
@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr !important;
  }
  .dash-sidebar,
  .teacher-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(280px, 86vw) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 1200 !important;
    transform: translateX(-105%);
    transition: transform .28s ease;
    overflow-y: auto !important;
    padding: 4.5rem 0 1.5rem !important;
    border-right: none !important;
    border-bottom: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 8px 0 28px rgba(0,0,0,.18);
  }
  .dash-sidebar.open,
  .teacher-sidebar.open {
    transform: translateX(0);
  }
  .dash-sidebar a,
  .teacher-sidebar a,
  .dash-sidebar .nav-item,
  .teacher-sidebar .nav-item {
    white-space: normal;
    width: 100%;
    padding: .85rem 1.25rem !important;
    font-size: .95rem !important;
  }
  .dash-content {
    padding: 1rem !important;
    width: 100%;
  }
  .dash-menu-toggle {
    display: inline-flex !important;
  }
  .dash-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 1190;
  }
  .dash-sidebar-overlay.open {
    display: block;
  }
}
.dash-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  margin-right: .5rem;
  flex-shrink: 0;
}
.dash-menu-toggle:hover { background: #1e40af; }

.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:200;padding:1rem;opacity:0;visibility:hidden;transition:all .2s}
.modal-overlay.active{opacity:1;visibility:visible}
.modal{background:#fff;border-radius:12px;width:100%;max-width:420px;max-height:90vh;overflow-y:auto;padding:1.5rem;box-shadow:0 10px 25px rgba(0,0,0,.15)}
.modal h2{font-size:1.2rem;margin-bottom:1rem}.modal-close{float:right;background:none;border:none;font-size:1.4rem;cursor:pointer;color:var(--gray-400)}
.alert{padding:.75rem 1rem;border-radius:8px;font-size:.875rem;margin-bottom:1rem}
.alert-success{background:#d1fae5;color:#065f46}.alert-error{background:#fee2e2;color:#991b1b}.alert-info{background:#dbeafe;color:#1d4ed8}
.table{width:100%;border-collapse:collapse;font-size:.875rem}.table th,.table td{padding:.65rem .75rem;text-align:left;border-bottom:1px solid var(--gray-200)}.table th{font-weight:600;color:var(--gray-600);background:var(--gray-50)}

/* Animations */
@keyframes fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.animate-fade-up{animation:fadeUp .6s ease forwards}
.animate-delay-1{animation-delay:.1s;opacity:0}
.animate-delay-2{animation-delay:.2s;opacity:0}
.animate-delay-3{animation-delay:.3s;opacity:0}
.logo img{height:40px;width:auto}
.site-header .logo{gap:.5rem}
.badge-membership{background:#fef3c7;color:#92400e}
.btn-accent{background:var(--orange);color:#fff}.btn-accent:hover{background:var(--orange-dark);color:#fff;text-decoration:none}
.hero h1 span{color:#fbbf24}

.dash-sidebar, .teacher-sidebar {
  background: #1d4ed8 !important;
  color: #fff;
}
.dash-sidebar a, .teacher-sidebar a,
.dash-sidebar .nav-item, .teacher-sidebar .nav-item {
  color: rgba(255,255,255,.9) !important;
}
.dash-sidebar a:hover, .dash-sidebar .nav-item:hover,
.dash-sidebar .nav-item.active, .teacher-sidebar a:hover,
.teacher-sidebar .nav-item.active {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

/* Dashboard sidebars – keep text visible when active */
.dash-sidebar .nav-item.active,
.dash-sidebar a.active,
.teacher-sidebar .nav-item.active,
.teacher-sidebar a.active {
  background: rgba(255,255,255,.22) !important;
  color: #ffffff !important;
  font-weight: 600;
}
.dash-sidebar .nav-item,
.dash-sidebar a,
.teacher-sidebar a {
  color: #e8eefc !important;
}
.dash-sidebar .nav-item i,
.teacher-sidebar i {
  color: #fff !important;
}

/* === Guided browse redesign === */
:root {
  --brand-blue: #1d4ed8;
  --brand-blue-dark: #1d4ed8;
  --brand-gold: #f59e0b;

  --primary: #1d4ed8;
  --primary-light: #1a56db;
  --accent: #f59e0b;
  --accent-dark: #d97706;
}
.logo-accent { color: var(--primary-light); }
.btn-accent { background: var(--accent); color: #1f2937; border: none; font-weight: 700; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.hero-home {
  background: linear-gradient(120deg, #1d4ed8 0%, #1a56db 55%, #f59e0b 130%);
  text-align: left; padding: 3rem 0 3.5rem;
}
.hero-grid { display: grid; gap: 1.5rem; }
.hero-kicker { font-size: .85rem; font-weight: 600; opacity: .95; margin-bottom: .5rem; }
.hero-copy h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.hero-search { display: flex; gap: .5rem; max-width: 520px; margin: 1rem 0 1rem; }
.hero-search input { flex: 1; border-radius: 10px; border: none; padding: .7rem 1rem; font-size: 1rem; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.level-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .level-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .level-grid.four { grid-template-columns: 1fr; } }
.level-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 1.25rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.level-card:hover { border-color: var(--primary-light); transform: translateY(-2px); text-decoration: none; color: inherit; }
.level-card-icon { width: 42px; height: 42px; border-radius: 10px; background: #eff6ff; color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.level-card h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.level-card p { font-size: .85rem; color: var(--gray-500); margin: 0 0 .75rem; }
.link-arrow { font-size: .85rem; font-weight: 600; color: var(--primary-light); }
.quick-access { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.quick-access a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--gray-200); font-size: .875rem; font-weight: 500; color: var(--gray-700); text-decoration: none;
}
.quick-access a:hover { border-color: var(--primary); color: var(--primary); }
.section-muted { background: #f8fafc; }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .split-cards { grid-template-columns: 1fr; } }
.card.pad { padding: 1.5rem; }
.highlight-card { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff); }
.breadcrumbs { font-size: .85rem; color: var(--gray-500); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.bc-sep { margin: 0 .25rem; color: var(--gray-400); }
.bc-current { color: var(--gray-800); font-weight: 600; }
.browse-hero {
  background: linear-gradient(110deg, #1d4ed8, #1a56db); color: #fff; border-radius: 16px;
  padding: 1.35rem 1.5rem; margin-bottom: 1.25rem; position: relative; overflow: hidden;
}
.browse-hero h1 { margin: 0 0 .35rem; font-size: 1.45rem; }
.browse-hero p { margin: 0; opacity: .92; font-size: .95rem; }
.pill-badge {
  display: inline-block; margin-top: .75rem; background: var(--accent); color: #1f2937;
  font-size: .75rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px;
}
.grade-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.grade-chip {
  padding: .65rem 1.1rem; border-radius: 10px; border: 1px solid var(--gray-200); background: #fff;
  font-weight: 600; text-decoration: none; color: var(--gray-800);
}
.grade-chip:hover { border-color: var(--primary); color: var(--primary); }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.subject-card {
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: #fff;
  border: 1px solid var(--gray-200); border-radius: 12px; text-decoration: none; color: inherit;
}
.subject-card:hover { border-color: var(--primary-light); text-decoration: none; color: inherit; }
.subject-card-body { flex: 1; }
.subject-card h3 { margin: 0 0 .15rem; font-size: 1rem; }
.subject-card p { margin: 0; font-size: .8rem; color: var(--gray-500); }
.subject-arrow { color: var(--gray-400); }
.category-grid { display: grid; gap: .5rem; }
.category-card {
  display: grid; grid-template-columns: 28px 1fr auto 16px; align-items: center; gap: .5rem;
  padding: .75rem 1rem; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px;
  text-decoration: none; color: inherit; font-weight: 500;
}
.category-card:hover { border-color: var(--primary); color: inherit; text-decoration: none; }
.category-card i:first-child { color: var(--primary); }
.cat-chevron { color: var(--gray-400); font-size: .8rem; }
.cat-year-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; }
@media (max-width: 800px) { .cat-year-layout { grid-template-columns: 1fr; } }
.h-section { font-size: 1rem; margin: 0 0 .75rem; }
.info-banner {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 1rem; font-size: .9rem; color: #1d4ed8;
}
.filter-toolbar { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chip-label { font-size: .8rem; font-weight: 600; color: var(--gray-500); margin-right: .25rem; }
.chip {
  border: 1px solid var(--gray-200); background: #fff; border-radius: 999px; padding: .3rem .75rem;
  font-size: .8rem; cursor: pointer; font-weight: 500;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.doc-search { max-width: 320px; }
.doc-list { display: flex; flex-direction: column; gap: .55rem; }
.doc-row {
  display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.1rem; background: #fff;
  border: 1px solid var(--gray-200); border-radius: 12px;
}
.doc-row-link { text-decoration: none; color: inherit; }
.doc-row-link:hover { border-color: var(--primary-light); }
.doc-icon {
  width: 40px; height: 40px; border-radius: 8px; background: #fef2f2; color: #dc2626;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-body { flex: 1; min-width: 0; }
.doc-title {
  margin: 0 0 .35rem; font-size: 1rem; font-weight: 600; line-height: 1.4;
  white-space: normal; overflow: visible; text-overflow: unset;
}
.doc-meta { margin: 0; font-size: .8rem; color: var(--gray-500); line-height: 1.35; }
.doc-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
@media (max-width: 640px) {
  .doc-row { flex-wrap: wrap; }
  .doc-actions { width: 100%; justify-content: flex-end; }
}
.empty-state { padding: 2rem; text-align: center; color: var(--gray-500); background: #fff; border-radius: 12px; border: 1px dashed var(--gray-300); }
.wa-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 50; text-decoration: none;
}
.footer-muted { font-size: .85rem; color: #94a3b8; }
.site-footer a { display: block; color: #cbd5e1; font-size: .875rem; margin: .25rem 0; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ===== Classic Chosen Resources nav (former site pattern) ===== */
:root {
  --primary: #1d4ed8;
  --primary-light: #2563eb;
  --accent: #f59e0b;
  --accent-dark: #d97706;
}
.navbar .header-inner { min-height: 72px; }
.nav-desktop { display: flex; align-items: center; }
.nav-links {
  display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.7rem; font-size: 0.9rem; font-weight: 500;
  color: #374151; text-decoration: none; border-radius: 8px;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--primary); }
.nav-links > li > a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.dropdown-toggle i { font-size: 0.65rem; opacity: 0.7; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% - 4px); left: 0; min-width: 190px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12); padding: 0.6rem 0 0.45rem; z-index: 200; list-style: none; margin: 0;
}
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu { display: block; }
.dropdown-menu > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 1rem; font-size: 0.875rem; color: #374151; text-decoration: none; white-space: nowrap;
}
.dropdown-menu > li > a:hover { background: #eff6ff; color: var(--primary); }
.dropdown-sub-menu {
  display: none; position: absolute; left: calc(100% - 2px); top: -0.35rem; min-width: 230px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14); padding: 0.45rem 0; list-style: none; margin: 0; z-index: 210;
}
.dropdown-menu > li { position: relative; }
.dropdown-menu > li:hover > .dropdown-sub-menu,
.dropdown-menu > li:focus-within > .dropdown-sub-menu { display: block; }
.dropdown-sub-menu a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.85rem; color: #374151; text-decoration: none;
}
.dropdown-sub-menu a:hover { background: #fff7ed; color: var(--accent-dark); }
.dropdown-sub-menu a i { color: var(--accent); width: 1rem; text-align: center; }
.btn-nav-outline {
  border: 1.5px solid #d1d5db !important; border-radius: 8px !important; margin-left: 0.25rem;
}
.btn-nav-accent {
  background: var(--accent) !important; color: #1f2937 !important; border-radius: 8px !important;
  font-weight: 700 !important; margin-left: 0.25rem;
}
.btn-nav-accent:hover { background: var(--accent-dark) !important; color: #fff !important; }

/* Mobile drawer */
.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90;
}
.mobile-overlay.open { display: block; }
.mobile-menu {
  position: fixed; top: 0; right: 0; width: min(340px, 92vw); height: 100%;
  background: #fff; z-index: 100; transform: translateX(100%); transition: transform .25s ease;
  padding: 1rem; overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.mobile-menu.open { transform: translateX(0); }
.close-menu {
  border: none; background: #f3f4f6; width: 40px; height: 40px; border-radius: 50%;
  margin-bottom: 1rem; cursor: pointer;
}
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-list > li > a,
.mobile-dropdown-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 0.85rem 0.5rem; border: none; background: none; font-size: 1rem; font-weight: 500;
  color: #1f2937; text-decoration: none; border-bottom: 1px solid #f3f4f6; cursor: pointer; text-align: left;
}
.mobile-sub-menu { display: none; list-style: none; padding: 0 0 0 0.75rem; margin: 0; background: #f9fafb; }
.mobile-sub-menu.open { display: block; }
.mobile-sub-menu a {
  display: block; padding: 0.65rem 0.5rem; color: #4b5563; text-decoration: none; font-size: 0.9rem;
  border-bottom: 1px solid #f3f4f6;
}
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
}
@media (min-width: 981px) {
  .mobile-toggle { display: none; }
}

/* Classic hero */
.hero-classic {
  position: relative; min-height: 420px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-classic-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(0.45);
}
.hero-classic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,58,138,.75), rgba(17,24,39,.55));
}
.hero-classic-content { position: relative; z-index: 1; padding: 3.5rem 0; text-align: center; }
.hero-classic h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.text-accent { color: var(--accent); }
.hero-classic p { max-width: 560px; margin: 0 auto 1.5rem; font-size: 1.05rem; opacity: 0.95; }
.hero-classic-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-outline-light {
  background: transparent; border: 2px solid rgba(255,255,255,.85); color: #fff; border-radius: 999px;
  padding: 0.7rem 1.4rem; font-weight: 600; text-decoration: none;
}
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-lg { padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 600; }
.btn-accent { background: var(--accent); color: #1f2937; border: none; font-weight: 700; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem;
}
.service-card {
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.35rem 1rem;
  text-align: center; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: #bfdbfe; color: inherit; text-decoration: none; }
.service-icon {
  width: 52px; height: 52px; margin: 0 auto 0.75rem; border-radius: 12px; background: #eff6ff;
  color: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.service-card h3 { font-size: 0.95rem; margin: 0 0 0.25rem; }
.service-card p { font-size: 0.8rem; color: #6b7280; margin: 0; }
.level-quick { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.level-quick a {
  padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff;
  font-weight: 600; text-decoration: none; color: #1f2937;
}
.level-quick a:hover { border-color: var(--primary); color: var(--primary); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-bar .form-control { max-width: 160px; }
.filter-bar input[type="search"] { max-width: 220px; }

.doc-list { display: flex; flex-direction: column; gap: 0.55rem; }
.doc-row {
  display: flex; align-items: flex-start; gap: 0.85rem; padding: 1rem 1.1rem;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
}
.doc-row-link { text-decoration: none; color: inherit; }
.doc-icon {
  width: 40px; height: 40px; border-radius: 8px; background: #fef2f2; color: #dc2626;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-body { flex: 1; min-width: 0; }
.doc-title {
  margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600; line-height: 1.45;
  white-space: normal; word-break: break-word;
}
.doc-meta { margin: 0; font-size: 0.8rem; color: #6b7280; }
.doc-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.resource-price-tag {
  font-size: 0.8rem; font-weight: 600; color: var(--primary); background: #eff6ff;
  padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 640px) {
  .doc-row { flex-wrap: wrap; }
  .doc-actions { width: 100%; justify-content: flex-end; }
}
.breadcrumbs { font-size: 0.85rem; color: #6b7280; margin-bottom: 0.75rem; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.bc-sep { margin: 0 0.25rem; }
.bc-current { color: #111827; font-weight: 600; }
.empty-state {
  padding: 2rem; text-align: center; color: #6b7280; background: #fff;
  border: 1px dashed #d1d5db; border-radius: 12px;
}
.section-muted { background: #f8fafc; }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .split-cards { grid-template-columns: 1fr; } }
.card.pad { padding: 1.5rem; }
.highlight-card { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff); }
.wa-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 50; text-decoration: none;
}
.footer-muted { font-size: 0.85rem; color: #94a3b8; }
.site-footer a { color: #cbd5e1; text-decoration: none; font-size: 0.875rem; display: block; margin: 0.25rem 0; }
.site-footer a:hover { color: #fff; }
.hidden { display: none !important; }
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: 14px; max-width: 420px; width: 100%; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; }
.modal-body { padding: 1.25rem; }
.modal-close { border: none; background: none; font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* Brand hero – logo blue + gold, no portrait */
.hero-brand {
  min-height: 400px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1a56db 45%, #1d4ed8 70%, #0f172a 100%);
}
.hero-brand-overlay {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,158,11,.18), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.08), transparent 40%),
    linear-gradient(180deg, rgba(15,23,42,.25), rgba(15,23,42,.45));
}
.hero-kicker {
  font-size: .9rem; font-weight: 600; letter-spacing: .02em; margin-bottom: .75rem; opacity: .95;
}

/* Grade page banner */
.grade-hero {
  background: linear-gradient(110deg, #1d4ed8, #2563eb);
  color: #fff;
  padding: 1.75rem 0 1.5rem;
}
.grade-hero h1 { margin: 0.35rem 0 0.35rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.grade-hero p { margin: 0; opacity: .9; font-size: .95rem; }

.filter-bar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: .75rem;
  margin-bottom: 1rem;
}
.result-meta { font-size: .875rem; color: #6b7280; margin-bottom: .75rem; }

.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.res-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
}
.res-card:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(30,58,138,.08); }
.res-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .65rem; }
.res-file-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #eff6ff; color: #1d4ed8;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.badge-featured {
  font-size: .65rem; font-weight: 700; background: #fef3c7; color: #92400e;
  padding: .2rem .5rem; border-radius: 999px;
}
.res-card-title {
  font-size: .95rem; font-weight: 600; line-height: 1.4; margin: 0 0 .4rem;
  /* full title, wrap */
  white-space: normal; word-break: break-word;
}
.res-card-meta { font-size: .78rem; color: #6b7280; margin: 0 0 .55rem; }
.res-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.res-card-tags .tag {
  font-size: .7rem; font-weight: 600; background: #f1f5f9; color: #334155;
  padding: .15rem .45rem; border-radius: 999px;
}
.res-card-actions { margin-top: auto; display: flex; gap: .4rem; justify-content: flex-end; }

/* Swiper hero (classroom / education photos, blurred via overlay) */
.hero-swiper-wrap { position: relative; height: min(78vh, 560px); min-height: 380px; overflow: hidden; }
.hero-swiper-wrap .swiper { width: 100%; height: 100%; }
.hero-swiper-wrap .swiper-slide { position: relative; }
.hero-swiper-wrap .swiper-slide img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(1.05);
}
.hero-content-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; z-index: 2;
  background: linear-gradient(180deg, rgba(30,58,138,.45), rgba(15,23,42,.55));
  padding: 2rem 1rem;
}
.hero-content-overlay h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 0.75rem;
}
.hero-content-overlay h1 span { color: #f59e0b; }
.hero-content-overlay p { max-width: 560px; margin: 0 auto 1.25rem; opacity: 0.95; font-size: 1.05rem; }
.hero-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-swiper-wrap .swiper-pagination-bullet-active { background: #f59e0b; }
.hero-swiper-wrap .swiper-button-prev,
.hero-swiper-wrap .swiper-button-next { color: #fff; }

.btn-brand {
  background: #1d4ed8 !important; color: #fff !important; border: none;
  font-weight: 600;
}
.btn-brand:hover { background: #1a56db !important; color: #fff !important; text-decoration: none; }
.tag-price { background: #eff6ff !important; color: #1d4ed8 !important; }

.animate-fade-up {
  animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.service-card:nth-child(1) { animation-delay: .05s; }
.service-card:nth-child(2) { animation-delay: .1s; }
.service-card:nth-child(3) { animation-delay: .15s; }
.service-card:nth-child(4) { animation-delay: .2s; }
.service-card:nth-child(5) { animation-delay: .25s; }
.service-card:nth-child(6) { animation-delay: .3s; }

.blog-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.blog-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem;
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.blog-card:hover { border-color: #93c5fd; box-shadow: 0 8px 20px rgba(30,58,138,.08); text-decoration: none; color: inherit; }
.blog-card h3 { font-size: 1rem; margin: 0 0 .5rem; color: #1d4ed8; }
.blog-card p { font-size: .875rem; color: #6b7280; margin: 0 0 .5rem; }
.blog-meta { font-size: .75rem; color: #9ca3af; }
.blog-article {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem;
}
.blog-article h2 { font-size: 1.25rem; color: #1d4ed8; margin: 0 0 .35rem; }
.modal-lg { max-width: 900px; }

/* footer brand */
.site-footer { background: #1d4ed8 !important; color: #fff !important; }
.site-footer a { color: #e0e7ff !important; }
.site-footer a:hover { color: #f59e0b !important; }
.site-footer h4 { color: #fff !important; }
.footer-muted { color: #c7d2fe !important; }
.footer-bottom { border-top-color: rgba(255,255,255,.2) !important; color: #e0e7ff !important; }
.grade-hero { background: linear-gradient(110deg, #1d4ed8, #2563eb) !important; }
.btn-primary { background: #1d4ed8 !important; border-color: #1d4ed8 !important; color: #fff !important; }
.btn-primary:hover { background: #1e40af !important; }

.mem-float {
  position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 90;
  background: #f59e0b; color: #1e3a8a; font-weight: 700; font-size: .9rem;
  padding: .75rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  text-decoration: none; display: flex; align-items: center; gap: .4rem;
}
.mem-float:hover { background: #d97706; color: #fff; text-decoration: none; }
.mem-popup {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 95; max-width: 420px; width: calc(100% - 2rem);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.15); padding: 1rem 1.15rem;
  display: none;
}
.mem-popup.show { display: block; animation: fadeUp .35s ease; }
.mem-popup h4 { margin: 0 0 .35rem; color: #1d4ed8; font-size: 1rem; }
.mem-popup p { margin: 0 0 .75rem; font-size: .875rem; color: #4b5563; }
.mem-popup .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.scroll-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.scroll-reveal.visible { opacity: 1; transform: none; }
.preview-iframe-wrap { height: min(75vh, 720px); overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e5e7eb; border-radius: 8px; }
.preview-iframe-wrap iframe { width: 100%; height: 100%; min-height: 70vh; border: 0; }
.hero-search {
  display: flex; gap: .5rem; max-width: 520px; margin: 0 auto 1.25rem; flex-wrap: wrap; justify-content: center;
}
.hero-search input {
  flex: 1; min-width: 200px; border: none; border-radius: 10px; padding: .75rem 1rem; font-size: 1rem;
}
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; text-align: center;
}
.stat-block { background: #fff; border-radius: 12px; padding: 1.25rem; border: 1px solid #e5e7eb; }
.stat-num { font-size: 2rem; font-weight: 800; color: #1d4ed8; }
.stat-label { font-size: .85rem; color: #6b7280; margin-top: .25rem; }
.why-grid, .testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.why-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem;
}
.why-card i { color: #1d4ed8; font-size: 1.4rem; margin-bottom: .5rem; }
.why-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: #1d4ed8; }
.testimonial {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem; margin: 0;
}
.testimonial p { font-style: italic; color: #374151; }
.testimonial footer { margin-top: .75rem; font-size: .85rem; font-weight: 600; color: #1d4ed8; }
.cta-band {
  background: linear-gradient(110deg, #1d4ed8, #2563eb); color: #fff; padding: 3rem 1rem;
}
.cta-band h2 { margin: 0 0 .5rem; }
.cta-band p { opacity: .95; margin-bottom: 1rem; }
.reg-popup {
  display: none; position: fixed; top: 72px; right: 1rem; z-index: 96;
  background: #fff; border: 2px solid #1d4ed8; border-radius: 12px; padding: 1rem 1.1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.15); max-width: 260px;
}
.reg-popup.show { display: block; animation: fadeUp .4s ease; }
.reg-popup h4 { margin: 0 0 .35rem; color: #1d4ed8; }
.reg-popup p { font-size: .85rem; color: #4b5563; margin: 0 0 .6rem; }
.reg-popup-close {
  position: absolute; top: .35rem; right: .5rem; border: none; background: transparent;
  font-size: 1.2rem; cursor: pointer; color: #6b7280;
}
.reg-arrow {
  position: absolute; top: -12px; right: 48px; color: #1d4ed8; font-size: 1.25rem; font-weight: 700;
}

/* CTA not glued to footer */
.cta-band { margin-bottom: 2rem !important; border-radius: 0; }
.site-footer { margin-top: 0; }

/* Sticky admin sidebar — desktop only (mobile uses off-canvas drawer) */
@media (min-width: 901px) {
  .dash-layout { align-items: start; }
  .dash-sidebar {
    position: sticky !important;
    top: 64px !important;
    height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    align-self: start !important;
    z-index: 5;
  }
}

/* Teacher/admin content visible immediately on mobile */
@media (max-width: 900px) {
  .dash-layout {
    display: block !important;
    min-height: auto !important;
  }
  .dash-content {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 0.85rem 2.5rem !important;
    margin: 0 !important;
  }
  body .site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #fff;
  }
}

/* Hero search fixed overlay (not inside fading slides) */

.hero-search-fixed {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 18%; z-index: 5; width: min(560px, calc(100% - 5rem));
  display: flex; gap: .5rem; align-items: stretch;
}
.hero-search-fixed input {
  flex: 1; border: none; border-radius: 10px; padding: .8rem 1rem; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-search-fixed button { border-radius: 10px; white-space: nowrap; }
.hero-suggest {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px;
  background: #fff; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.18);
  max-height: 220px; overflow-y: auto; display: none; z-index: 6; text-align: left;
}
.hero-suggest.show { display: block; }
.hero-suggest a {
  display: block; padding: .55rem .85rem; color: #1e293b; text-decoration: none; font-size: .9rem;
  border-bottom: 1px solid #f1f5f9;
}
.hero-suggest a:hover { background: #eff6ff; color: #1d4ed8; }
.hero-search-wrap { position: relative; flex: 1; }
/* Hero search: single tight row (bar + button) */
.hero-search-fixed {
  gap: 0 !important;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  overflow: hidden;
  padding: 0;
  align-items: stretch;
}
.hero-search-fixed .hero-search-wrap {
  flex: 1;
  min-width: 0;
}
.hero-search-fixed input {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  background: transparent;
}
.hero-search-fixed button {
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
  border-radius: 0 !important;
  margin: 0;
  flex-shrink: 0;
  border: none;
}

@media (max-width: 640px) {
  .hero-swiper-wrap {
    height: min(52vh, 380px);
    min-height: 260px;
  }
  .hero-content-overlay {
    padding: 1.1rem 0.75rem;
    align-items: flex-end;
    padding-bottom: 4.75rem;
  }
  .hero-content-overlay h1 {
    font-size: clamp(1.2rem, 5.5vw, 1.65rem);
    margin-bottom: 0.4rem;
    line-height: 1.2;
  }
  .hero-content-overlay p {
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
    max-width: 95%;
  }
  .hero-buttons {
    gap: 0.45rem;
  }
  .hero-buttons .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
  .hero-search-fixed {
    bottom: 10%;
    width: calc(100% - 1.25rem);
    left: 50%;
    border-radius: 10px;
  }
  .hero-search-fixed input {
    padding: 0.65rem 0.8rem;
    font-size: 0.88rem;
  }
  .hero-search-fixed button {
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
  }
  .hero-swiper-wrap .swiper-button-prev { left: 2px; }
  .hero-swiper-wrap .swiper-button-next { right: 2px; }
  .hero-content-overlay .hero-buttons { margin-top: .35rem; }
  /* Hide floating membership if any leftover */
  .mem-float { display: none !important; }
}
.mem-float { display: none !important; }


.mkt-banner {
  display: none; position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 97; max-width: 520px; width: calc(100% - 1.5rem);
  background: #1d4ed8; color: #fff; border-radius: 12px; padding: 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.mkt-banner.show { display: block; }
.mkt-banner a { color: #fde68a; font-weight: 600; }
.mkt-banner .close-mkt { float: right; background: transparent; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
