:root{
  --bg:#f8f9fa;--bg2:#ffffff;--bg3:#f1f3f4;--bg4:#e8eaed;
  --text:#202124;--text2:#5f6368;--text3:#80868b;
  --border:#dadce0;--border2:#e8eaed;
  --blue:#1a73e8;--blue-bg:#e8f0fe;--blue-dark:#1557b0;
  --green:#1e8e3e;--green-bg:#e6f4ea;--green-border:#34a853;
  --red:#d93025;--red-bg:#fce8e6;--red-border:#ea4335;
  --orange:#e37400;--orange-bg:#fef7e0;
  --purple:#7b2ff7;--purple-bg:#f3e8fd;
  --shadow:0 1px 3px rgba(60,64,67,.12),0 1px 2px rgba(60,64,67,.24);
  --shadow2:0 3px 6px rgba(0,0,0,.05),0 3px 6px rgba(0,0,0,.1);
  --radius:12px;--radius-sm:8px;--radius-full:999px;
  --font:'Google Sans',sans-serif;
  --font-mono:'Google Sans Mono',monospace;
  --nav-h:64px;
}
[data-theme="dark"]{
  --bg:#111315;--bg2:#1c1e21;--bg3:#242628;--bg4:#2d2f33;
  --text:#e8eaed;--text2:#9aa0a6;--text3:#5f6368;
  --border:#3c4043;--border2:#2d2f33;
  --blue:#8ab4f8;--blue-bg:rgba(138,180,248,.12);--blue-dark:#aecbfa;
  --green:#81c995;--green-bg:rgba(52,168,83,.15);--green-border:#34a853;
  --red:#f28b82;--red-bg:rgba(234,67,53,.15);--red-border:#ea4335;
  --orange:#fdd663;--orange-bg:rgba(253,214,99,.12);
  --purple:#c58af9;--purple-bg:rgba(197,138,249,.12);
  --shadow:0 1px 3px rgba(0,0,0,.4),0 1px 2px rgba(0,0,0,.3);
  --shadow2:0 4px 12px rgba(0,0,0,.5),0 2px 4px rgba(0,0,0,.4);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  transition:background .25s,color .25s;
}
a{text-decoration:none;color:inherit}
button{cursor:pointer;font-family:var(--font);border:none;outline:none}
img{max-width:100%}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ─── MAIN APP CONTAINER ─── */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ─── LEFT SIDEBAR (COLUMN 1) ─── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 260px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s ease,
              border-color 0.3s ease;
  z-index: 100;
}
.sidebar-header {
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border2);
}
.sidebar-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--text);
  white-space: nowrap;
}
.sidebar-logo span { color: var(--blue); }

.sidebar-menu {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}
.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: var(--radius-full);
}
.sidebar-menu:hover::-webkit-scrollbar-thumb {
  background: var(--border);
}

.app-container.sidebar-collapsed .sidebar {
  width: 0;
  opacity: 0;
  pointer-events: none;
  border-right-color: transparent;
}

.sidebar-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}
.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-links li a {
  display: block;
  font-size: 14px;
  color: var(--text2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}
.sidebar-links li a:hover {
  background: var(--blue-bg);
  color: var(--blue);
  padding-left: 14px;
}
.sidebar-links li a.active {
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 500;
}

/* ─── RIGHT MAIN COLUMN (CONTAINS HEADER + CONTENT + FOOTER) ─── */
.main-column {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER NAV ─── */
.header-nav {
  height: var(--nav-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background .25s, border-color .25s;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.menu-toggle-btn:hover {
  background: var(--bg4);
}
.menu-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text2);
  fill: none;
}

.navbar-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}
.navbar-brand span { color: var(--blue); }
.app-container.sidebar-collapsed .navbar-brand {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.nav-search {
  flex: 1;
  max-width: 440px;
  position: relative;
  margin: 0 16px;
}
.nav-search input {
  width: 100%;
  height: 40px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-full);
  padding: 0 16px 0 40px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.nav-search input:focus {
  background: var(--bg2);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}
.nav-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text3);
  fill: none;
  pointer-events: none;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background .2s;
}
.theme-btn:hover {
  background: var(--bg4);
}

/* ─── MAIN CONTENT ─── */
.main-content {
  flex-grow: 1;
  padding: 24px;
}

/* ─── SEO BREADCRUMBS ─── */
.breadcrumbs {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: var(--blue);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span.active {
  color: var(--text3);
}

/* ─── 3-COLUMN CONTENT GRID ─── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Desktop layout configurations */
@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 300px; /* Middle Content + Right Sidebar */
  }
}

/* ─── MIDDLE PRIMARY COLUMN (COLUMN 2) ─── */
.quiz-primary-col {
  min-width: 0;
}

/* QUIZ HEADER META */
.quiz-header {
  margin-bottom: 24px;
}
.quiz-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.quiz-header h1 span {
  color: var(--green);
}

.meta-bar{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-bottom: 16px;
}
.meta-badge{
  display:flex;align-items:center;gap:5px;
  height:28px;padding:0 10px;
  border-radius:var(--radius-full);
  font-size:12px;font-weight:500;
  background:var(--bg2);border:1px solid var(--border);
  color:var(--text2);
}
.meta-badge svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}
.badge-flag{font-size:14px}

/* QUESTION CARD */
.q-card{
  background:var(--bg2);border:1px solid var(--border2);
  border-radius:var(--radius);padding:22px 20px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}
.q-tag-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.q-tag{
  height:22px;padding:0 10px;border-radius:var(--radius-full);
  font-size:11px;font-weight:500;letter-spacing:.3px;
}
.q-num-pill{
  font-size:12px;font-weight:600;color:var(--text3);
  background:var(--bg3);padding:3px 10px;border-radius:var(--radius-full);
}
.q-text{
  font-size:16px;font-weight:500;color:var(--text);
  line-height:1.6;margin-bottom:20px;
}
.q-text code{
  font-family:var(--font-mono);font-size:14px;
  background:var(--bg3);padding:1px 6px;border-radius:4px;
  color:var(--blue);
}

/* OPTIONS */
.options{display:flex;flex-direction:column;gap:10px}
.opt{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;border-radius:var(--radius-sm);
  border:1.5px solid var(--border);
  background:var(--bg2);cursor:pointer;
  transition:border-color .15s,background .15s,transform .1s;
  text-align:left;width:100%;
}
.opt:hover:not(:disabled){
  border-color:var(--blue);background:var(--blue-bg);
  transform:translateX(2px);
}
.opt:active:not(:disabled){transform:scale(.99)}
.opt-key{
  width:28px;height:28px;border-radius:6px;
  background:var(--bg3);border:1px solid var(--border);
  font-size:13px;font-weight:600;color:var(--text2);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:background .15s,color .15s,border-color .15s;
  font-family:var(--font-mono);
}
.opt-text{font-size:14px;color:var(--text);line-height:1.5;flex:1;text-align:left}

/* Answer states */
.opt.correct{
  border-color:var(--green-border);background:var(--green-bg);
}
.opt.correct .opt-key{
  background:var(--green);border-color:var(--green);color:#fff;
}
.opt.correct .opt-text{color:var(--green)}
.opt.wrong{
  border-color:var(--red-border);background:var(--red-bg);
}
.opt.wrong .opt-key{
  background:var(--red);border-color:var(--red);color:#fff;
}
.opt.wrong .opt-text{color:var(--red)}
.opt.dimmed{opacity:.45}
.opt:disabled{cursor:not-allowed}

/* ACTION SECTION FOR QUESTIONS */
.q-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border2);
}
.view-ans-btn {
  height: 36px;
  padding: 0 16px;
  background: var(--blue-bg);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.view-ans-btn:hover {
  background: var(--blue);
  color: #fff;
}
.bookmark-inline-btn {
  background: transparent;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.bookmark-inline-btn:hover {
  background: var(--orange-bg);
  color: var(--orange);
}
.bookmark-inline-btn.saved {
  color: var(--orange);
}
.bookmark-inline-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.bookmark-inline-btn.saved svg {
  fill: var(--orange);
}

/* EXPLANATION */
.explanation{
  margin-top: 14px;
  background:var(--bg3);border:1px solid var(--border2);
  border-left:3px solid var(--blue);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  padding:14px 16px;
  display:none;
  animation:fadeIn .25s ease;
}
.explanation.show{display:block}
@keyframes fadeIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.exp-label{
  font-size:12px;font-weight:600;color:var(--blue);
  letter-spacing:.5px;text-transform:uppercase;margin-bottom:6px;
  display:flex;align-items:center;gap:5px;
}
.exp-label svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.exp-text{font-size:13px;color:var(--text2);line-height:1.7}


/* ─── RIGHT ADS & WIDGET COLUMN (COLUMN 3) ─── */
.right-ads-col {
  display: none; /* Hidden on mobile/tablets by default */
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .right-ads-col {
    display: flex; /* Display only on Desktop */
  }
}

/* General Widget Box */
.widget-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.widget-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.widget-box p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* QUICK LINKS WIDGET */
.quick-links-widget {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.quick-links-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border2);
  padding-bottom: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.quick-links-group {
  margin-bottom: 14px;
}
.quick-links-group:last-child {
  margin-bottom: 0;
}
.quick-links-group-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}
.quick-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 4px;
}
.quick-links-list li a {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s, transform .15s;
}
.quick-links-list li a::before {
  content: "›";
  font-weight: 700;
  color: var(--text3);
  margin-right: 2px;
}
.quick-links-list li a:hover {
  color: var(--blue);
  transform: translateX(2px);
}

/* Sticky Container for 300x250 or 300x600 Display Ads */
.sticky-ad-box {
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 12px;
  position: sticky;
  top: 84px; /* Sticks nicely during scrolling */
  box-shadow: var(--shadow);
}

/* Inline content banner style */
.ad-slot{
  background:var(--bg3);border:1px dashed var(--border);
  border-radius:var(--radius-sm);
  min-height:80px;display:flex;align-items:center;justify-content:center;
  color:var(--text3);font-size:12px;margin:24px 0;
}

/* ─── BOTTOM FOOTER ─── */
footer{
  background:var(--bg2);border-top:1px solid var(--border2);
  padding:40px 24px 24px;margin-top:40px;
  transition:background .25s, border-color .25s;
}
.footer-inner{
  display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:32px;
}
.footer-brand h3{
  font-size:18px;font-weight:700;color:var(--text);margin-bottom:8px;
}
.footer-brand h3 span{color:var(--blue)}
.footer-brand p{font-size:13px;color:var(--text2);line-height:1.75;max-width:240px}
.footer-col h4{font-size:13px;font-weight:600;color:var(--text);margin-bottom:14px}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer-col ul li a{font-size:13px;color:var(--text2);transition:color .15s}
.footer-col ul li a:hover{color:var(--blue)}
.footer-bottom{
  margin-top:32px;
  padding-top:20px;border-top:1px solid var(--border2);
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:10px;
}
.footer-bottom p{font-size:12px;color:var(--text3)}

/* ─── MOBILE BACKDROP OVERLAY ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 95;
}

/* ─── RESPONSIVE RULES ─── */
@media(max-width:768px){
  .nav-search{display:none}
  
  /* Mobile Sidebar Overlays Above Content */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow2);
  }
  
  .app-container.mobile-sidebar-open .sidebar-overlay {
    display: block;
  }
  .app-container.mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }
  
  .navbar-brand {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  
  .main-content {
    padding: 16px;
  }
  .footer-inner{grid-template-columns:1fr 1fr;gap:28px}
  .footer-brand{grid-column:1/-1}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:8px}

  .q-text{font-size:15px}
  .opt-text{font-size:13px}
}
@media(max-width:480px){
  .footer-inner{grid-template-columns:1fr}
}


/* ─── QUIZ PROGRESS BAR (sticky, above questions) ─── */
.quiz-progress-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 80;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: background .25s, border-color .25s;
}
.qpb-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.qpb-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  flex-shrink: 0;
}
.qpb-track {
  flex: 1;
  min-width: 60px;
  height: 6px;
  background: var(--bg4);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.qpb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #34a8fb);
  border-radius: var(--radius-full);
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.qpb-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 34px;
  text-align: right;
}

/* ─── Q NUMBER — show total ─── */
.q-total-of {
  color: var(--text3);
  font-weight: 400;
}

/* ─── LOAD SENTINEL ─── */
.load-sentinel {
  height: 1px;
  margin: 8px 0;
}

/* ─── COMPLETION BANNER ─── */
.completion-banner {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  margin-top: 32px;
  box-shadow: var(--shadow2);
}
.cb-icon { font-size: 48px; margin-bottom: 12px; }
.completion-banner h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.completion-banner > p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
}
.cb-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cb-stat {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 80px;
}
.cb-stat span {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.cb-stat small { font-size: 12px; color: var(--text2); }
.cb-correct span { color: var(--green); }
.cb-wrong   span { color: var(--red); }
.cb-pct     span { color: var(--blue); }
.cb-restart-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, transform .1s;
  border: none;
  cursor: pointer;
}
.cb-restart-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ─── SCROLL TO TOP BUTTON ─── */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,115,232,.45);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  transition: opacity .25s, transform .25s;
  z-index: 200;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top-btn:hover { background: var(--blue-dark); transform: translateY(-2px) scale(1.05); }
.scroll-top-btn svg { width: 20px; height: 20px; }

@media(max-width:768px){
  .qpb-label { font-size: 11px; }
  .qpb-pct   { font-size: 11px; min-width: 28px; }
  .scroll-top-btn { bottom: 18px; right: 16px; width: 40px; height: 40px; }
  .cb-stats { gap: 10px; }
  .cb-stat { padding: 10px 14px; min-width: 64px; }
  .cb-stat span { font-size: 20px; }
}

/* ─── COMPLETION BANNER HISTORY ─── */
.cb-history {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border2);
}
.cb-hist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}
.cb-hist-item svg {
  width: 15px; height: 15px;
  stroke: var(--blue);
  flex-shrink: 0;
}
.cb-hist-item strong { color: var(--text); }

/* ═══════════════════════════════════════════════
   HOMEPAGE — index.php specific styles
   ═══════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero{
  background:var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding:36px 24px;
  text-align:center;
  margin-bottom: 32px;
}
.hero-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--blue-bg);color:var(--blue);
  font-size:12px;font-weight:500;
  padding:6px 14px;border-radius:var(--radius-full);
  margin-bottom:14px;
  letter-spacing: .2px;
}
.hero h1{
  font-size: clamp(24px, 4vw, 32px);
  font-weight:700;line-height:1.25;
  color:var(--text);margin-bottom:10px;
  letter-spacing: -.5px;
}
.hero h1 em{
  font-style:normal;color:var(--blue);
}
.hero-sub{
  font-size:14px;color:var(--text2);
  max-width:540px;margin:0 auto;line-height:1.65;
}

/* ─── SECTION HEADER ─── */
.sec-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:16px;
}
.sec-title{
  font-size:16px;font-weight:600;color:var(--text);
  display:flex;align-items:center;gap:8px;
}
.sec-title-dot{
  width:8px;height:8px;border-radius:50%;background:var(--blue);
  flex-shrink:0;
}
.see-all{
  font-size:13px;color:var(--blue);font-weight:500;
  display:flex;align-items:center;gap:3px;
}
.see-all:hover{text-decoration:underline}

/* ─── DIRECTORY GRID (IndiaBIX Style Panels) ─── */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.directory-panel {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.directory-panel:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 14px;
}
.panel-icon {
  font-size: 20px;
  background: var(--bg3);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.panel-title {
  font-size: 16px;
  font-weight: 700;
}
.panel-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-links li a {
  font-size: 14px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease, padding-left .2s ease;
}
.panel-links li a::before {
  content: "›";
  font-size: 18px;
  font-weight: bold;
  color: var(--text3);
  line-height: 1;
}
.panel-links li a:hover {
  color: var(--blue);
  padding-left: 6px;
}
.panel-footer-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  text-align: right;
  margin-top: auto;
  padding-top: 10px;
  transition: color .2s;
}
.panel-footer-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ─── QUIZ CARDS ─── */
.quiz-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:16px;margin-bottom:36px;
}
.quiz-card{
  background:var(--bg2);
  border: 1px solid var(--border2);
  border-radius:var(--radius);
  padding:18px;
  display:flex;flex-direction:column;gap:12px;
  transition:box-shadow .2s ease, border-color .2s ease;
}
.quiz-card:hover{
  box-shadow:var(--shadow2);border-color:var(--blue);
}
.quiz-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.quiz-card-left{flex:1}
.quiz-title{font-size:14px;font-weight:600;color:var(--text);line-height:1.45;margin-bottom:6px}
.quiz-sub{font-size:12px;color:var(--text2);line-height:1.5}
.quiz-badge-wrap{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.badge{
  font-size:12px;font-weight:500;padding:4px 10px;
  border-radius:var(--radius-full);white-space:nowrap;
}
.badge-easy{background:var(--green-bg);color:var(--green)}
.badge-med{background:var(--orange-bg);color:var(--orange)}
.badge-hard{background:var(--red-bg);color:var(--red)}
.badge-new{background:var(--blue-bg);color:var(--blue)}
.badge-hot{background:var(--red-bg);color:var(--red)}
.quiz-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:12px;border-top:1px solid var(--border2);
}
.quiz-stats{font-size:12px;color:var(--text3);display:flex;gap:12px}
.quiz-stat{display:flex;align-items:center;gap:4px}
.quiz-stat svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.start-btn{
  height:32px;padding:0 16px;
  background:var(--blue);color:#fff;
  border:none;border-radius:var(--radius-full);
  font-size:13px;font-weight:500;
  transition:background .15s ease, transform .1s ease;
  white-space:nowrap;
}
.start-btn:hover{background:var(--blue-dark);transform:scale(1.02)}

/* ─── FEATURED BANNER ─── */
.featured{
  background:linear-gradient(135deg,var(--blue) 0%,#1557b0 100%);
  border-radius:var(--radius);padding:28px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin-bottom:36px;overflow:hidden;position:relative;
}
.featured::before{
  content:'';position:absolute;
  right:-40px;top:-40px;
  width:180px;height:180px;border-radius:50%;
  background:rgba(255,255,255,.06);
}
.featured::after{
  content:'';position:absolute;
  right:60px;bottom:-60px;
  width:140px;height:140px;border-radius:50%;
  background:rgba(255,255,255,.04);
}
.featured-text{position:relative;z-index:1}
.featured-text h3{font-size:18px;font-weight:700;color:#fff;margin-bottom:6px}
.featured-text p{font-size:13px;color:rgba(255,255,255,.85);line-height:1.55;max-width:320px}
.featured-btn{
  position:relative;z-index:1;
  height:40px;padding:0 20px;
  background:#fff;color:var(--blue);
  border:none;border-radius:var(--radius-full);
  font-size:14px;font-weight:600;
  white-space:nowrap;flex-shrink:0;
  transition:transform .15s,box-shadow .15s;
}
.featured-btn:hover{transform:scale(1.03);box-shadow:0 4px 12px rgba(0,0,0,.2)}

/* ─── HOMEPAGE RESPONSIVE ─── */
@media(max-width:768px){
  .directory-grid{grid-template-columns:1fr;gap:16px}
  .quiz-grid{grid-template-columns:1fr}
  .featured{flex-direction:column;align-items:flex-start}
  .featured-btn{width:100%}
}
