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

:root{
  --ink:#0f1117;--ink-soft:#3a3d4a;--ink-mute:#7a7f92;
  --cream:#faf8f4;--cream2:#f3f0ea;--white:#fff;
  --accent:#e8481c;--accent-dark:#c03a12;--accent-light:#fdeee9;
  --gold:#d4a017;--gold-light:#fdf6e3;
  --teal:#0d7a6e;--teal-light:#e6f5f3;
  --purple:#6b46c1;--purple-light:#f3eafe;
  --border:rgba(15,17,23,0.09);
  --shadow-sm:0 2px 12px rgba(15,17,23,0.07);
  --shadow-md:0 8px 32px rgba(15,17,23,0.11);
  --shadow-lg:0 24px 64px rgba(15,17,23,0.14);
  --shadow-xl:0 40px 100px rgba(15,17,23,0.18);
  --r:14px;--rl:24px;--rxl:36px;
  --nav-h:68px;
  --font-heading:'Playfair Display',serif;
  --font-label:'DM Sans',sans-serif;
}

html{scroll-behavior:smooth}
body{font-family:'DM Sans',sans-serif;background:var(--cream);color:var(--ink);overflow-x:hidden;line-height:1.6}

/* ══════════ NOISE TEXTURE OVERLAY ══════════ */
body::before{
  content:'';position:fixed;inset:0;z-index:999;pointer-events:none;
  opacity:0.015;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px 200px;
  transform:translateZ(0);
}

/* ══════════ FLOATING-GLASS NAV (RECTANGULAR WITH SOFT EDGES) ══════════ */
#main-nav, nav#main-nav{
  position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:200;
  width:min(92%, 1240px);height:68px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 24px;border-radius:18px;
  background:rgba(250,248,244,0.88);backdrop-filter:blur(20px) saturate(1.5);
  border:1px solid rgba(255,255,255,0.6);
  box-shadow:0 12px 36px rgba(15,17,23,0.08), 0 2px 8px rgba(15,17,23,0.04);
  transition:all .3s cubic-bezier(.34,1.26,.64,1);
}
#main-nav.scrolled, nav#main-nav.scrolled{
  background:rgba(255,255,255,0.96);
  box-shadow:0 18px 42px rgba(15,17,23,0.12), 0 4px 12px rgba(15,17,23,0.06);
  top:12px;
}
#main-nav:hover, nav#main-nav:hover{
  box-shadow:0 20px 48px rgba(15,17,23,0.14);
}

.nav-logo{
  font-family:'Playfair Display',serif;font-size:22px;font-weight:800;
  color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px;flex-shrink:0;
}
.nav-logo-icon{
  background:var(--accent);color:#fff;width:42px;height:42px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;
  box-shadow:0 6px 18px rgba(232,72,28,0.4);
  transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s;
}
.nav-logo:hover .nav-logo-icon{transform:rotate(-8deg) scale(1.1);box-shadow:0 8px 24px rgba(232,72,28,0.5)}

.nav-pill-wrapper{
  background:rgba(15,17,23,0.03);border:1px solid rgba(15,17,23,0.05);
  padding:4px 6px;border-radius:12px;display:flex;align-items:center;
}

.nav-links{display:flex;align-items:center;gap:6px;list-style:none}
.nav-links a{
  text-decoration:none;color:var(--ink-soft);font-size:14px;font-weight:600;
  transition:all .2s ease;position:relative;padding:8px 16px;border-radius:8px;
}
.nav-links a::after{
  content:'';position:absolute;left:14px;right:14px;bottom:6px;height:2.5px;
  background:var(--accent);border-radius:2px;transform:scaleX(0);
  transform-origin:center;transition:transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nav-links a:hover,.nav-links a:focus-visible{
  color:var(--accent);background:#fff;box-shadow:0 4px 12px rgba(15,17,23,0.06);
}
.nav-links a:hover::after,.nav-links a:focus-visible::after{transform:scaleX(1)}
.nav-links a.is-active{color:var(--accent);background:#fff;box-shadow:0 4px 14px rgba(15,17,23,0.08);font-weight:700}
.nav-links a.is-active::after{transform:scaleX(1)}
.nav-links a:focus-visible,.nav-logo:focus-visible,.footer-col ul li a:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:4px}

.nav-right{display:flex;align-items:center;gap:12px}

.btn-ghost{
  padding:9px 20px;border:1px solid var(--border);border-radius:12px;
  background:transparent;color:var(--ink);font-family:'DM Sans',sans-serif;
  font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;text-decoration:none;white-space:nowrap;
}
.btn-ghost:hover{background:#fff;border-color:var(--ink-mute);box-shadow:var(--shadow-sm)}

.btn-nav-back {
  padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--border);
  background: #fff; font-size: 13px; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: all 0.2s ease; font-family: 'DM Sans', sans-serif;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-decoration: none; line-height: 1;
}
.btn-nav-back:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: translateX(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.page-back-bar {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8);
  cursor: pointer; transition: all 0.2s ease; background: rgba(255,255,255,0.1);
  padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.15);
  font-family: 'DM Sans', sans-serif; text-decoration: none;
}
.page-back-bar:hover {
  background: rgba(255,255,255,0.25); color: #fff; transform: translateX(-3px);
}

.btn-primary{
  padding:10px 22px;border:none;border-radius:12px;
  background:var(--accent);color:#fff;font-family:'DM Sans',sans-serif;
  font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;text-decoration:none;white-space:nowrap;
  box-shadow:0 4px 14px rgba(232,72,28,0.3);
}
.btn-primary:hover{background:var(--accent-dark);transform:translateY(-1px);box-shadow:0 8px 22px rgba(232,72,28,0.4)}

/* Hamburger */
.hamburger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:40px;height:40px;padding:7px;cursor:pointer;border:none;
  background:transparent;border-radius:8px;transition:background .2s;flex-shrink:0;
}
.hamburger:hover{background:rgba(15,17,23,0.06)}
.hamburger span{display:block;width:100%;height:2px;background:var(--ink);border-radius:2px;transition:transform .3s,opacity .3s;transform-origin:center}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-menu{
  display:none;position:fixed;top:90px;left:50%;transform:translateX(-50%) translateY(-12px);z-index:190;
  width:min(90%, 480px);background:rgba(250,248,244,0.98);backdrop-filter:blur(24px);
  border:1px solid var(--border);border-radius:18px;padding:24px;box-shadow:0 20px 48px rgba(15,17,23,0.15);
  opacity:0;transition:transform .3s ease,opacity .3s ease;pointer-events:none;
}
.mobile-menu.open{transform:translateX(-50%) translateY(0);opacity:1;pointer-events:all}
.mobile-menu ul{list-style:none;margin-bottom:20px}
.mobile-menu ul li a{display:block;padding:13px 0;border-bottom:1px solid var(--border);text-decoration:none;color:var(--ink);font-size:16px;font-weight:600}
.mobile-menu ul li:last-child a{border-bottom:none}
.mobile-menu-actions{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.mobile-menu-actions .btn-ghost,.mobile-menu-actions .btn-primary{text-align:center;padding:14px 20px;font-size:16px;border-radius:12px}

/* ══════════ ENHANCED HERO WITH ANIMATED DYNAMIC BACKGROUND ══════════ */
.hero{
  min-height:92vh;display:grid;grid-template-columns:1.1fr 0.9fr;
  align-items:center;padding:calc(var(--nav-h) + 70px) 52px 70px;gap:64px;
  position:relative;overflow:hidden;z-index:1;
  background: radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #f7f4ed 60%, var(--cream) 100%);
}

.hero-content { position: relative; z-index: 2; }
.hero-visual { position: relative; z-index: 2; }

/* Dynamic Background Layer */
.hero-bg-wrapper {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}

.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: auto; opacity: 0.88;
}

/* Rotating Conic Spotlight Beam Rays */
.hero-conic-beam {
  position: absolute; top: -40%; left: 15%; width: 1100px; height: 1100px;
  background: conic-gradient(from 0deg at 50% 50%, rgba(232,72,28,0.07) 0deg, transparent 60deg, rgba(13,122,110,0.07) 120deg, transparent 180deg, rgba(107,70,193,0.06) 240deg, transparent 300deg, rgba(232,72,28,0.07) 360deg);
  animation: rotateBeam 50s linear infinite; pointer-events: none; z-index: 0; filter: blur(50px);
  will-change: transform; transform: translateZ(0);
}
@keyframes rotateBeam { from { transform: rotate(0deg) translateZ(0); } to { transform: rotate(360deg) translateZ(0); } }

/* Ambient Animated Radial Glows */
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(55px); pointer-events: none; z-index: 0; opacity: 0.7;
  will-change: transform; transform: translateZ(0);
}

.glow-1 {
  top: -10%; right: -5%; width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(232,72,28,0.25) 0%, rgba(232,72,28,0.03) 70%, transparent 100%);
  animation: floatGlow1 12s ease-in-out infinite alternate;
}

.glow-2 {
  bottom: -15%; left: -8%; width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(13,122,110,0.22) 0%, rgba(13,122,110,0.03) 70%, transparent 100%);
  animation: floatGlow2 15s ease-in-out infinite alternate;
}

.glow-3 {
  top: 25%; left: 30%; width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(107,70,193,0.18) 0%, rgba(107,70,193,0.02) 70%, transparent 100%);
  animation: floatGlow3 14s ease-in-out infinite alternate;
}

.glow-4 {
  bottom: 10%; right: 15%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,160,23,0.2) 0%, rgba(212,160,23,0.03) 70%, transparent 100%);
  animation: floatGlow1 18s ease-in-out infinite alternate-reverse;
}

/* Modern Architectural Dot Matrix Grid */
.hero-grid-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(15, 17, 23, 0.09) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
}

/* Floating Academic Symbols */
.hero-symbol {
  position: absolute; z-index: 2; font-family: 'Playfair Display', serif; font-weight: 700;
  user-select: none; pointer-events: none; opacity: 0.25; color: var(--ink);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08)); transition: all 0.3s ease;
}

.sym-1 { top: 18%; left: 6%; font-size: 44px; color: var(--accent); animation: floatSym 7s ease-in-out infinite; }
.sym-2 { top: 72%; left: 10%; font-size: 38px; color: var(--teal); animation: floatSym 9s ease-in-out infinite 1s; }
.sym-3 { top: 20%; right: 46%; font-size: 40px; color: var(--purple); animation: floatSym 8s ease-in-out infinite 2s; }
.sym-4 { top: 78%; right: 48%; font-size: 32px; color: var(--gold); animation: floatSym 6s ease-in-out infinite 0.5s; }
.sym-5 { top: 10%; right: 10%; font-size: 34px; color: var(--accent); animation: floatSym 10s ease-in-out infinite 1.5s; }
.sym-6 { bottom: 12%; right: 6%; font-size: 36px; color: var(--teal); animation: floatSym 8.5s ease-in-out infinite 3s; }

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 25px) scale(1.08); }
  100% { transform: translate(30px, -20px) scale(0.92); }
}

@keyframes floatGlow3 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(30px, 30px) scale(1.15); }
  100% { transform: translate(-30px, -25px) scale(1); }
}

@keyframes floatSym {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

.hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(232,72,28,0.08);color:var(--accent);
  border:1px solid rgba(232,72,28,0.2);border-radius:100px;
  padding:7px 18px;font-size:13px;font-weight:700;margin-bottom:28px;
  box-shadow:0 4px 16px rgba(232,72,28,0.1);backdrop-filter:blur(10px);
}
.hero-badge::before{
  content:'';width:8px;height:8px;background:var(--accent);border-radius:50%;
  box-shadow:0 0 10px var(--accent);animation:pulse 2s infinite;
}

@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.5)}}

.hero h1{
  font-family:'Playfair Display',serif;
  font-size:clamp(40px,5.2vw,72px);font-weight:800;line-height:1.08;
  color:var(--ink);margin-bottom:22px;letter-spacing:-0.02em;
}
.hero h1 em{
  font-style:italic;
  background: linear-gradient(120deg, #e8481c 0%, #ff7a45 25%, #d4a017 50%, #0d7a6e 75%, #e8481c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s linear infinite;
  font-weight:800;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 4px 15px rgba(232, 72, 28, 0.25));
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-desc{
  font-size:17px;color:var(--ink-soft);line-height:1.75;
  margin-bottom:36px;max-width:480px;
}

.search-wrapper{
  display:flex;align-items:center;background:#fff;
  border:1.5px solid var(--border);border-radius:100px;
  padding:14px 24px;max-width:510px;margin-bottom:32px;
  box-shadow:0 8px 24px rgba(15,17,23,0.06);transition:all .25s ease;
}
.search-wrapper:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px rgba(232,72,28,0.12),0 12px 32px rgba(15,17,23,0.08)}
.search-wrapper input{flex:1;min-width:0;border:none;outline:none;font-family:'DM Sans',sans-serif;font-size:15px;color:var(--ink);background:transparent}
.search-wrapper input::placeholder{color:var(--ink-mute)}
.search-btn{padding:12px 26px;border-radius:100px;border:none;background:var(--ink);color:#fff;font-family:'DM Sans',sans-serif;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;transition:all .2s ease;flex-shrink:0}
.search-btn:hover{background:var(--accent);transform:scale(1.03);box-shadow:0 4px 14px rgba(232,72,28,0.3)}

.hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:32px}

.btn-large{
  padding:16px 34px;font-size:16px;border-radius:100px;border:none;
  background:var(--ink);color:#fff;font-family:'DM Sans',sans-serif;font-weight:700;
  cursor:pointer;transition:all .25s ease;text-decoration:none;display:inline-flex;align-items:center;gap:10px;
  box-shadow:0 8px 24px rgba(15,17,23,0.18);
}
.btn-large:hover{background:var(--accent);transform:translateY(-3px);box-shadow:0 14px 32px rgba(232,72,28,0.4)}

.btn-outline-large{
  padding:15px 32px;font-size:16px;border-radius:100px;border:1.5px solid var(--border);
  background:#fff;color:var(--ink);font-family:'DM Sans',sans-serif;
  font-weight:600;cursor:pointer;transition:all .25s ease;text-decoration:none;
  display:inline-flex;align-items:center;gap:8px;box-shadow:var(--shadow-sm);
}
.btn-outline-large:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow-md)}

/* HERO LIVE STATS ROW */
.hero-stats-row {
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding-top:20px;border-top:1px solid rgba(15,17,23,0.08);
}
.hero-stat-item {
  display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink-soft);font-weight:600;
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(12px);
  padding: 8px 16px; border-radius: 100px; border: 1px solid rgba(15, 17, 23, 0.08);
  box-shadow: 0 4px 12px rgba(15,17,23,0.04); transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
}
.hero-stat-item:hover {
  background: #fff; transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(15,17,23,0.08); border-color: rgba(232,72,28,0.25);
}
.hero-stat-item strong { color:var(--ink);font-weight:700; }

/* ══════════ ENHANCED HERO VISUAL STACK ══════════ */
.hero-visual{position:relative}

/* Floating Feature Badges over visual card */
.hero-float-badge {
  position:absolute;z-index:10;padding:8px 16px;border-radius:100px;
  background:rgba(255,255,255,0.95);backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,0.8);box-shadow:0 12px 28px rgba(15,17,23,0.12);
  font-size:12px;font-weight:700;color:var(--ink);display:inline-flex;align-items:center;gap:6px;
  animation:floatBadge 4s ease-in-out infinite;
}
.badge-top-right { top:-14px;right:20px;border-left:3px solid var(--accent); }
.badge-bottom-left { bottom:-14px;left:20px;border-left:3px solid var(--teal);animation-delay:-2s; }

@keyframes floatBadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.hero-card-stack{position:relative;width:100%;max-width:480px;margin:0 auto}
.card-bg{position:absolute;inset:0;background:#fff;border-radius:28px;box-shadow:var(--shadow-lg);transform:rotate(3.5deg) translateY(14px);opacity:.35;border:1px solid var(--border)}
.card-bg2{position:absolute;inset:0;background:#fff;border-radius:28px;box-shadow:var(--shadow-md);transform:rotate(-2deg) translateY(7px);opacity:.65;border:1px solid var(--border)}

.hero-main-card{
  position:relative;background:#fff;border-radius:28px;
  box-shadow:0 24px 70px rgba(15,17,23,0.14);overflow:hidden;
  border:1px solid rgba(15,17,23,0.08);transition:transform .3s ease,box-shadow .3s ease;
}
.hero-main-card:hover { transform:translateY(-4px);box-shadow:0 32px 84px rgba(15,17,23,0.18); }

.card-header-bar{
  background:linear-gradient(135deg, var(--ink) 0%, #1c2230 100%);
  padding:22px 28px;display:flex;align-items:center;justify-content:space-between;
}
.card-header-bar .title{font-family:'Playfair Display',serif;color:#fff;font-size:18px;font-weight:700}
.card-header-bar .badge{background:var(--accent);color:#fff;font-size:10px;font-weight:800;padding:4px 12px;border-radius:100px;letter-spacing:.8px;text-transform:uppercase}

.card-body{padding:20px 26px}
.resource-item{display:flex;align-items:center;gap:14px;padding:12px 8px;border-bottom:1px solid var(--border);cursor:pointer;transition:all .2s ease;border-radius:12px}
.resource-item:last-child{border-bottom:none}
.resource-item:hover{background:var(--cream);transform:translateX(4px)}
.resource-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}
.resource-item-info{flex:1;min-width:0}
.resource-item-title{font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.resource-item-sub{font-size:12px;color:var(--ink-mute);margin-top:2px}
.resource-item-action{font-size:13px;font-weight:700;color:var(--accent);white-space:nowrap}

/* ══════════ TRUST BAR ══════════ */
.trust-bar{
  background:linear-gradient(135deg, #0b0d14 0%, #141824 100%);
  padding:22px 52px;display:flex;align-items:center;justify-content:center;gap:56px;
  flex-wrap:wrap;position:relative;z-index:1;overflow:hidden;border-top:1px solid rgba(255,255,255,0.06);
}
.trust-item{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,0.75);font-size:14px;font-weight:600;white-space:nowrap}
.trust-item span:first-child{font-size:22px}

/* ══════════ SECTIONS ══════════ */
.section{padding:54px 52px;position:relative;z-index:1}
.section-label{font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--accent);margin-bottom:10px}
.section-title{font-family:'Playfair Display',serif;font-size:clamp(32px,3.6vw,48px);font-weight:400;color:var(--ink);line-height:1.04;margin-bottom:14px;letter-spacing:-0.03em}
.section-sub{font-size:15px;color:var(--ink-soft);max-width:520px;margin-bottom:20px;line-height:1.65}

/* ══════════ ULTRA-ELEGANT LUMINOUS LIGHT THEME CATEGORIES SECTION ══════════ */
.categories-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f4f0e6 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 85px 52px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cat-glow-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.glow-cat-1 {
  top: -20%; left: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232, 72, 28, 0.1) 0%, transparent 70%);
}
.glow-cat-2 {
  bottom: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13, 122, 110, 0.09) 0%, transparent 70%);
}
.cat-grid-overlay {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(15, 17, 23, 0.05) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ══════════ ENHANCED EXAM HUB SECTION ("EVERYTHING YOU NEED TO CLEAR YOUR EXAM") ══════════ */
.exam-hub-container {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.exam-hub-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.exam-hub-header .section-label {
  display: inline-block;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.exam-hub-header .section-title {
  color: var(--ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.exam-hub-header .section-sub {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 auto 28px;
  max-width: 680px;
}

/* STREAM FILTER PILLS */
.exam-stream-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.stream-filter-btn {
  background: #ffffff;
  border: 1.5px solid rgba(15, 17, 23, 0.12);
  color: var(--ink-soft);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.stream-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.stream-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(232, 72, 28, 0.3);
}

/* RESPONSIVE 3-COLUMN CARD GRID */
.exam-portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

@media (max-width: 1024px) {
  .exam-portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .exam-portals-grid {
    grid-template-columns: 1fr;
  }
}

/* EXAM PORTAL CARD */
.exam-portal-card {
  background: #ffffff;
  border: 1.5px solid rgba(15, 17, 23, 0.09);
  border-top: 4.5px solid var(--accent);
  border-radius: 20px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(15, 17, 23, 0.04);
  position: relative;
  overflow: hidden;
}

.exam-portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 17, 23, 0.09), 0 0 0 1px rgba(15, 17, 23, 0.06);
}

/* Card Accent Borders */
.card-accent-cgl  { border-top-color: #e8481c; }
.card-accent-chsl { border-top-color: #0d7a6e; }
.card-accent-gate { border-top-color: #0284c7; }
.card-accent-je   { border-top-color: #7c3aed; }
.card-accent-upsc { border-top-color: #d97706; }
.card-accent-bank { border-top-color: #2563eb; }

/* CARD TOP ROW */
.exam-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.exam-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.25s ease;
}

.exam-portal-card:hover .exam-icon-badge {
  transform: scale(1.1) rotate(-4deg);
}

.badge-cgl-bg  { background: #fdeee9; border: 1px solid rgba(232, 72, 28, 0.25); }
.badge-chsl-bg { background: #e6f5f3; border: 1px solid rgba(13, 122, 110, 0.25); }
.badge-gate-bg { background: #e0f2fe; border: 1px solid rgba(2, 132, 199, 0.25); }
.badge-je-bg   { background: #f3e8ff; border: 1px solid rgba(124, 58, 237, 0.25); }
.badge-upsc-bg { background: #fef3c7; border: 1px solid rgba(217, 119, 6, 0.25); }
.badge-bank-bg { background: #eff6ff; border: 1px solid rgba(37, 99, 235, 0.25); }

.exam-status-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 100px;
}

.status-live-orange { background: #fdeee9; color: #e8481c; border: 1px solid rgba(232, 72, 28, 0.3); }
.status-live-teal   { background: #e6f5f3; color: #0d7a6e; border: 1px solid rgba(13, 122, 110, 0.3); }
.status-live-blue   { background: #e0f2fe; color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.3); }
.status-live-upsc   { background: #fef3c7; color: #b45309; border: 1px solid rgba(180, 83, 9, 0.3); }
.status-dev-tag     { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

.exam-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}

.exam-card-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 16px;
}

/* FEATURE BULLETS */
.exam-features-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.exam-features-list li {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exam-features-list li .check-icon {
  color: #10b981;
  font-weight: 800;
  font-size: 14px;
}

/* BUTTONS */
.exam-portal-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-portal-cgl {
  background: #e8481c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(232, 72, 28, 0.25);
}
.btn-portal-cgl:hover {
  background: #c63a14;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 72, 28, 0.35);
}

.btn-portal-teal {
  background: #0d7a6e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 122, 110, 0.25);
}
.btn-portal-teal:hover {
  background: #095c53;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 122, 110, 0.35);
}

.btn-portal-blue {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.btn-portal-blue:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-portal-upsc {
  background: #b45309;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}
.btn-portal-upsc:hover {
  background: #92400e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35);
}

.btn-portal-locked {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.btn-portal-locked:hover {
  background: #f1f5f9;
  color: var(--ink);
  border-color: #cbd5e1;
}

/* FOOTER STRIP */
.exam-hub-footer-strip {
  background: #ffffff;
  border: 1.5px solid rgba(15, 17, 23, 0.1);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.strip-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.strip-icon {
  font-size: 28px;
}

.strip-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}

.strip-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.btn-strip-directory {
  background: var(--ink);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-strip-directory:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 72, 28, 0.3);
}

/* ══════════ CATEGORY CARDS ══════════ */
.category-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;max-width:840px}
.cat-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--rl);padding:30px 24px;
  cursor:pointer;transition:all .3s cubic-bezier(.34,1.56,.64,1);text-decoration:none;color:inherit;
  display:block;position:relative;overflow:hidden;
  opacity: 1 !important; transform: none !important;
}
.cat-card::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(232,72,28,0.04) 0%,transparent 60%);
  opacity:0;transition:opacity .3s;
}
.cat-card::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:3.5px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
  transform:scaleX(0);transition:transform .3s cubic-bezier(.34,1.56,.64,1);transform-origin:left;
}
.cat-card:hover,.cat-card.active{transform:translateY(-6px) !important;box-shadow:var(--shadow-md);border-color:transparent}
.cat-card:hover::before,.cat-card.active::before{opacity:1}
.cat-card:hover::after,.cat-card.active::after{transform:scaleX(1)}
.cat-card:hover .cat-icon,.cat-card.active .cat-icon{transform:scale(1.12) rotate(-4deg)}

.cat-icon{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:26px;margin-bottom:18px;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.cat-title{font-size:19px;font-weight:700;color:var(--ink);margin-bottom:5px}
.cat-count{font-size:13px;color:var(--accent);font-weight:700}
.cat-arrow{font-size:14px;color:var(--ink-mute);margin-top:14px;transition:transform .2s;display:block;font-weight:600}
.cat-card:hover .cat-arrow,.cat-card.active .cat-arrow{transform:translateX(4px);color:var(--accent)}

/* ══════════ HOW IT WORKS ══════════ */
.how-section{
  background:linear-gradient(170deg,#0d0f18 0%,#111525 60%,#0d0f18 100%);
  position:relative;overflow:hidden;
}
.how-section .section-label{color:#f9a98b}
.how-section .section-title{color:#fff}
.how-section .section-sub{color:rgba(255,255,255,.5)}

.steps-wrapper{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:20px;position:relative;z-index:1;
}

.step-card{
  padding:44px 36px 40px;text-align:center;position:relative;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:var(--rl);
  transition:all .4s cubic-bezier(.34,1.2,.64,1);cursor:default;
  opacity: 1 !important; transform: none !important;
}
.step-card:hover{
  background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.14);
  transform:translateY(-8px) !important;
  box-shadow:0 28px 60px rgba(0,0,0,.35);
}

.step-num{
  width:72px;height:72px;border-radius:50%;margin:0 auto 24px;
  display:flex;align-items:center;justify-content:center;
  font-family:'Playfair Display',serif;font-size:26px;font-weight:800;color:#fff;
}
.num-1{background:linear-gradient(135deg,#e8481c,#c03a12);box-shadow:0 8px 28px rgba(232,72,28,.4)}
.num-2{background:linear-gradient(135deg,#d4a017,#a87c0f);box-shadow:0 8px 28px rgba(212,160,23,.4)}
.num-3{background:linear-gradient(135deg,#0d7a6e,#085950);box-shadow:0 8px 28px rgba(13,122,110,.4)}

.step-title{font-family:'Playfair Display',serif;font-size:22px;font-weight:700;color:#fff;margin-bottom:10px}
.step-desc{font-size:14px;color:rgba(255,255,255,.5);line-height:1.75}

/* ══════════ FEATURED RESOURCES ══════════ */
.section-bg{
  background:linear-gradient(160deg,#0d0f18 0%,#141824 50%,#0d0f18 100%);
  color:#fff;position:relative;overflow:hidden;
}

.res-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:40px}
.resources-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}

.res-hero-card{
  grid-column:1/-1;
  background:linear-gradient(120deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,.03) 100%);
  border:1px solid rgba(255,255,255,.1);border-radius:28px;
  padding:36px 40px;display:grid;grid-template-columns:1fr 1fr;gap:32px;
  position:relative;transition:transform .35s,box-shadow .35s;
  opacity: 1 !important; transform: none !important;
}
.res-hero-card:hover{transform:translateY(-5px) !important;box-shadow:0 32px 80px rgba(0,0,0,.4)}

.res-type-badge{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 13px;border-radius:100px;font-size:10px;font-weight:700;
  text-transform:uppercase;letter-spacing:.7px;margin-bottom:18px;
}
.badge-study{background:rgba(13,122,110,.25);color:#5de8d4;border:1px solid rgba(13,122,110,.3)}

.res-title{font-family:'Playfair Display',serif;font-size:26px;font-weight:800;color:#fff;line-height:1.25;margin-bottom:12px}
.res-desc{font-size:14px;color:rgba(255,255,255,.5);line-height:1.7;margin-bottom:22px}

.res-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.res-pill{padding:5px 12px;border-radius:100px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);font-size:12px;color:rgba(255,255,255,.6)}

.btn-res-large{
  padding:14px 28px;border-radius:100px;border:none;background:var(--accent);color:#fff;
  font-family:'DM Sans',sans-serif;font-size:15px;font-weight:700;cursor:pointer;
  transition:all .25s;text-decoration:none;display:inline-flex;align-items:center;gap:7px;
}
.btn-res-large:hover{background:#ff5a2d;transform:translateY(-2px)}

.res-card{
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:22px;padding:26px;cursor:pointer;
  transition:all .3s cubic-bezier(.34,1.2,.64,1);
  position:relative;overflow:hidden;display:flex;flex-direction:column;
  opacity: 1 !important; transform: none !important;
}
.res-card:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);transform:translateY(-5px) !important;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.res-card-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:18px}

.res-small-title{font-family:'Playfair Display',serif;font-size:18px;font-weight:700;color:#fff;line-height:1.3;margin-bottom:8px}
.res-small-desc{font-size:13px;color:rgba(255,255,255,.45);line-height:1.65;flex:1;margin-bottom:20px}
.res-small-footer{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid rgba(255,255,255,.07)}

.btn-res{
  padding:9px 18px;border-radius:100px;border:1px solid rgba(255,255,255,.15);
  background:transparent;color:#fff;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;
  cursor:pointer;transition:all .2s;text-decoration:none;
}
.btn-res:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3)}
.btn-res.primary{background:var(--accent);border-color:var(--accent)}

/* ══════════ ULTRA-REAL ENHANCED FAQ SECTION ══════════ */
.faq-section {
  background: linear-gradient(180deg, #f9f8f4 0%, #f3efe6 100%);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 80px 52px;
}

.faq-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}
.faq-header-center .section-label { margin-bottom: 8px; }
.faq-header-center .section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.faq-header-center .section-sub {
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
}

/* Category Filters */
.faq-filter-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.faq-filter-chip {
  padding: 9px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.faq-filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.faq-filter-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(15,17,23,0.2);
}

/* FAQ Grid Layout */
.faq-container-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto 48px;
}

.faq-card {
  background: #fff;
  border: 1px solid rgba(15,17,23,0.09);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(15,17,23,0.04);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}
.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,17,23,0.09);
  border-color: rgba(232,72,28,0.25);
}
.faq-card.open {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(232,72,28,0.12);
  background: #ffffff;
}

.faq-card-header {
  padding: 22px 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-card-question-box {
  flex: 1;
  min-width: 0;
}
.faq-category-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232,72,28,0.08);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 8px;
}
.faq-card-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.38;
  margin: 0;
}

.faq-toggle-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15,17,23,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
}
.faq-card:hover .faq-toggle-pill {
  background: rgba(232,72,28,0.1);
  color: var(--accent);
}
.faq-card.open .faq-toggle-pill {
  transform: rotate(135deg);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232,72,28,0.35);
}

.faq-card-answer-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 26px;
}
.faq-card.open .faq-card-answer-box {
  max-height: 500px;
  padding: 0 26px 24px;
}
.faq-card-answer {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px dashed rgba(15,17,23,0.08);
}
.faq-card-answer ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.faq-card-answer li {
  margin-bottom: 6px;
}
.faq-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal);
  background: #e6f5f3;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 14px;
  border: 1px solid rgba(13,122,110,0.2);
}

/* Support Help Banner */
.faq-support-banner {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f1117 0%, #1c2230 100%);
  border-radius: 24px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(15,17,23,0.18);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.faq-support-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,72,28,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.faq-support-info { position: relative; z-index: 1; }
.faq-support-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}
.faq-support-info p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.faq-support-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

@media(max-width: 900px) {
  .faq-container-grid { grid-template-columns: 1fr; }
  .faq-support-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
  .faq-support-actions { flex-direction: column; width: 100%; }
  .faq-support-actions a { width: 100%; justify-content: center; }
}

/* ══════════ HIGHLY INTERACTIVE FOOTER ══════════ */
footer, .site-footer {
  background: linear-gradient(180deg, #120c10 0%, #0a0709 100%);
  color: #94a3b8;
  position: relative;
  overflow: hidden;
  border-top: 2px solid #e8481c;
  box-shadow: inset 0 20px 40px -20px rgba(232, 72, 28, 0.25);
}

.footer-top-interactive-bar {
  background: rgba(232, 72, 28, 0.04);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-quick-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-chip-label { font-size: 12px; font-weight: 700; color: #ff6b35; text-transform: uppercase; letter-spacing: 1px; }
.footer-chip {
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-chip:hover {
  background: linear-gradient(135deg, #e8481c, #ff6b35);
  border-color: #ff6b35;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232, 72, 28, 0.4);
}

.footer-share-tools { display: flex; align-items: center; gap: 10px; }
.btn-footer-tool {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-footer-tool:hover {
  background: rgba(232, 72, 28, 0.15);
  border-color: #ff6b35;
  color: #ff6b35;
}
.btn-whatsapp-tool:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #4ade80;
  color: #4ade80;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding: 56px 52px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 800; color: #fff; margin-left: 8px; }
.footer-brand-desc { font-size: 14px; line-height: 1.7; color: #94a3b8; margin: 16px 0 20px; max-width: 360px; }
.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 72, 28, 0.1);
  border: 1px solid rgba(232, 72, 28, 0.25);
  color: #ff7d45;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* Interactive Social Icons */
.footer-social-bar { display: flex; gap: 10px; }
.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(.34, 1.56, .64, 1);
}
.social-icon-btn:hover {
  transform: translateY(-4px) scale(1.08);
  color: #fff;
  background: linear-gradient(135deg, #e8481c, #ff6b35);
  border-color: #ff6b35;
  box-shadow: 0 6px 18px rgba(232, 72, 28, 0.4);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
}
.footer-col h4::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: #e8481c;
  border-radius: 2px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.footer-col ul li a:hover { color: #ff6b35; transform: translateX(4px); }

/* Footer Interactive Newsletter Widget */
.footer-nl-card {
  background: linear-gradient(145deg, rgba(32, 18, 22, 0.8), rgba(12, 8, 11, 0.9));
  border: 1px solid rgba(232, 72, 28, 0.25);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.footer-nl-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; }
.footer-nl-desc { font-size: 13px; color: #94a3b8; margin-bottom: 16px; line-height: 1.5; }
.footer-nl-input-group { display: flex; flex-direction: column; gap: 10px; }
.footer-nl-input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 7, 9, 0.8);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.footer-nl-input::placeholder { color: #64748b; }
.footer-nl-input:focus { border-color: #ff6b35; box-shadow: 0 0 0 3px rgba(232, 72, 28, 0.2); }
.footer-nl-submit {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #e8481c, #ff6b35);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-nl-submit:hover { opacity: 0.95; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232, 72, 28, 0.45); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-copyright { color: #94a3b8; }
.footer-legal-row { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-row a { color: #94a3b8; text-decoration: none; font-size: 13px; transition: color 0.2s ease; }
.footer-legal-row a:hover { color: #ff6b35; }
.footer-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 16px;
  border-radius: 100px;
  font-weight: 600;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }

/* ══════════ MODAL STYLING ══════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15, 17, 23, 0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #fff; border-radius: var(--rl); width: 100%; max-width: 680px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid var(--border);
  transform: translateY(20px) scale(0.97); transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-header {
  padding: 20px 28px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; }
.modal-close { background: transparent; border: none; color: rgba(255,255,255,0.6); font-size: 20px; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 28px; overflow-y: auto; flex: 1; }

.modal-sheet-paper {
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--ink);
}
.modal-sheet-paper pre {
  font-family: monospace; font-size: 13px; background: #fff; padding: 16px; border-radius: 8px; border: 1px solid var(--border); margin-top: 14px; white-space: pre-wrap;
}

/* Toast styling */
.toast-msg {
  position: fixed; bottom: 28px; right: 28px; z-index: 600;
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
}

/* BACK TO TOP */
.back-top{
  position:fixed;bottom:28px;right:28px;z-index:300;
  width:44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;border:none;
  display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;
  box-shadow:var(--shadow-md);transition:all .2s;opacity:0;pointer-events:none;
}
.back-top.show{opacity:1;pointer-events:all}
.back-top:hover{background:var(--accent);transform:scale(1.05)}

/* BREAKPOINTS */
/* ══════════ REVIEWS & ASPIRANT SUCCESS STORIES ══════════ */
.reviews-section {
  position: relative;
  overflow: hidden;
}
.reviews-header-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.reviews-score-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 18px 24px; box-shadow: var(--shadow-sm); text-align: right;
  min-width: 240px;
}
.reviews-score-num {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 800;
  color: #f59e0b; line-height: 1; margin-bottom: 4px;
}
.reviews-score-sub { font-size: 12px; font-weight: 700; color: var(--ink-soft); }

.review-filter-tabs {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
}
.rev-filter-chip {
  padding: 9px 20px; border-radius: 100px; border: 1.5px solid var(--border);
  background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: all 0.25s ease; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.rev-filter-chip:hover {
  border-color: var(--accent); color: var(--accent); transform: translateY(-2px);
}
.rev-filter-chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: 0 4px 14px rgba(15,17,23,0.2);
}

.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.review-card {
  background: #fff; border: 1px solid var(--border); border-radius: 22px;
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; flex-direction: column; justify-content: space-between; position: relative;
}
.review-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(232,72,28,0.25);
}

.review-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.review-stars { font-size: 16px; color: #f59e0b; letter-spacing: 2px; }
.review-verified-badge {
  font-size: 11px; font-weight: 800; color: var(--teal); background: #e6f5f3;
  padding: 3px 10px; border-radius: 100px; border: 1px solid rgba(13,122,110,0.2);
}

.review-text {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 22px;
  font-style: italic; flex: 1;
}

.review-user-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.review-user-info { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.review-name { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.review-rank { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 2px; }

.review-helpful-btn {
  padding: 6px 14px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--cream); font-size: 12px; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 5px;
  font-family: 'DM Sans', sans-serif;
}
.review-helpful-btn:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.review-helpful-btn.is-upvoted { background: var(--accent-light); color: var(--accent); border-color: var(--accent); font-weight: 800; }

/* Star Rating Selector in Review Modal */
.star-rating-select { display: flex; gap: 6px; font-size: 24px; cursor: pointer; color: #d1d5db; margin: 10px 0; }
.star-rating-select .star-item { transition: color 0.2s ease; }
.star-rating-select .star-item.active { color: #f59e0b; }

@media(max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: calc(var(--nav-h) + 40px); }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .res-hero-card { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .categories-intro { flex-direction: column; gap: 32px; min-height: 0; }
  .category-dark-hub { width: 100%; max-width: 540px; flex-basis: auto; margin: 0 auto; }
  .nav-pill-wrapper { display: none; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-float-badge { display: none; }

  /* GPU Lag Fixes for Mobile & Tablet: Pause heavy continuous keyframe animations */
  .hero-glow, .hero-conic-beam, .hero-symbol {
    animation: none !important;
  }
}
@media(max-width: 768px) {
  :root { --nav-h: 60px; }
  #main-nav, nav#main-nav { width: 94%; top: 10px; padding: 0 16px; border-radius: 14px; }
  .nav-links, .nav-right .btn-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; border-radius: 14px; }
  .hero { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 32px) 20px 48px; min-height: auto; gap: 32px; text-align: left; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 44px); margin-bottom: 16px; }
  .hero-desc { font-size: 15px; margin-bottom: 24px; max-width: 100%; }
  .search-wrapper { max-width: 100%; margin-bottom: 24px; }
  .trust-bar { padding: 16px 20px; gap: 24px; }
  .section { padding: 48px 20px; }
  .categories-intro { display: flex; flex-direction: column; min-height: 0; gap: 24px; }
  .category-dark-hub { width: 100%; max-width: 100%; flex-basis: auto; margin: 0; }
  .categories-copy .section-sub { margin-bottom: 18px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .resources-grid { grid-template-columns: 1fr; }
  .res-hero-card { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding: 36px 20px; gap: 32px; }
  .footer-top-interactive-bar { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
  .footer-bottom { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media(max-width: 1180px) and (min-width: 769px) {
  .footer-main { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 44px 32px; }
}
@media(max-width: 480px) {
  .hero { padding: calc(var(--nav-h) + 24px) 16px 40px; }
  .hero h1 { font-size: clamp(28px, 9vw, 36px); }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-bar { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ==========================================================================
   CODING & TECH INTERVIEW HUB STYLES
   ========================================================================== */
.coding-section {
  background: #0f172a;
  color: #f8fafc;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.coding-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
}
.coding-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}
.coding-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.code-filter-chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}
.code-filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.code-filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(224, 90, 71, 0.35);
}
.coding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.code-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.code-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border-color: rgba(56, 189, 248, 0.3);
}
.code-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.code-company-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.code-diff-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.diff-easy { color: #4ade80; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.2); }
.diff-medium { color: #fbbf24; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.2); }
.diff-hard { color: #f87171; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.2); }

.code-title {
  font-size: 19px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
}
.code-question {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
}
.code-terminal-box {
  background: #080a0f;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
  position: relative;
}
.terminal-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-snippet {
  font-size: 13px;
  line-height: 1.55;
  color: #5de8d4;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-height: 220px;
}
.code-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.code-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  border: none;
}
.code-btn-primary {
  background: #38bdf8;
  color: #0f172a;
}
.code-btn-primary:hover {
  background: #7dd3fc;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}
.code-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.code-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.solution-box {
  display: none;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #bae6fd;
}
.solution-box.active {
  display: block;
}

@media(max-width: 1024px) {
  .coding-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SHOWCASE SECTION ANIMATIONS
   ========================================================================== */
@keyframes codeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.45); }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes codeFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.code-terminal-preview-card {
  animation: codeFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.code-terminal-preview-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.4) !important;
}

.portal-release-pill {
  animation: pulseGlow 3s infinite ease-in-out;
}

.showcase-pill-item {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.showcase-pill-item:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.showcase-pill-item:hover .pill-icon {
  transform: scale(1.25) rotate(8deg);
}
.pill-icon {
  transition: transform 0.25s ease;
  display: inline-block;
}

.code-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #38bdf8;
  margin-left: 3px;
  vertical-align: middle;
  animation: cursorBlink 1s infinite;
}

.code-fade-anim {
  animation: codeFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.btn-animated-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-animated-glow:hover {
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   E-BOOK LIBRARY & BOOK CARD STYLES (REFERENCE MATCHED)
   ========================================================================== */
.library-section {
  background: linear-gradient(180deg, #0d111a 0%, #151c2c 100%);
  color: #f8fafc;
  padding: 80px 52px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* CREATIVE HOME LIBRARY SHOWCASE SECTION */
.creative-library-section {
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 70%, #090d16 100%);
  color: #f8fafc;
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dynamic Floating Auroras */
.creative-lib-aurora-1 {
  position: absolute;
  top: -120px;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.02) 65%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  animation: floatAurora1 14s ease-in-out infinite alternate;
}

.creative-lib-aurora-2 {
  position: absolute;
  bottom: -120px;
  right: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.02) 65%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  animation: floatAurora2 18s ease-in-out infinite alternate;
}

.creative-lib-aurora-3 {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, transparent 70%);
  filter: blur(110px);
  pointer-events: none;
}

.creative-lib-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes floatAurora1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

@keyframes floatAurora2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.15); }
  100% { transform: translate(30px, 20px) scale(0.9); }
}

/* Header Upgrades */
.creative-lib-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.creative-lib-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.creative-lib-pill-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.5);
}

.pill-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px #f97316;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.creative-lib-title {
  color: #ffffff;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.18;
  letter-spacing: -0.5px;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.creative-lib-subtitle {
  color: #cbd5e1;
  max-width: 720px;
  font-size: 15.5px;
  margin-bottom: 0;
  line-height: 1.65;
}

/* Primary Section Button */
.creative-lib-btn-primary {
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.creative-lib-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.75s ease;
}

.creative-lib-btn-primary:hover::before {
  left: 100%;
}

.creative-lib-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.5);
}

.btn-arrow-icon {
  transition: transform 0.3s ease;
}
.creative-lib-btn-primary:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.home-lib-control-bar {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 18px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease;
}

.home-lib-control-bar:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.home-lib-search-box {
  flex: 1;
  min-width: 270px;
  position: relative;
}

.home-lib-search-input {
  width: 100%;
  padding: 12px 20px 12px 46px;
  border-radius: 100px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.home-lib-search-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
  background: rgba(30, 41, 59, 0.98);
}

.home-lib-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.7;
  pointer-events: none;
}

.home-lib-spotlight-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.35);
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(249, 115, 22, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-lib-spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(249, 115, 22, 0.22);
}

.spotlight-glass-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.spotlight-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.1) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
  transition: transform 0.3s ease;
}

.home-lib-spotlight-card:hover .spotlight-icon-box {
  transform: scale(1.05) rotate(-3deg);
}

.spotlight-emoji {
  font-size: 38px;
  animation: floatIcon 3.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes floatIcon {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.spotlight-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.topper-pick-badge {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.spotlight-tag {
  color: #38bdf8;
  font-size: 13px;
  font-weight: 700;
}

.spotlight-title {
  color: #ffffff;
  font-size: 19.5px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
}

.spotlight-desc {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}

.spotlight-btn {
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 14px;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spotlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
}

@media (max-width: 768px) {
  .home-lib-spotlight-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .spotlight-icon-box {
    margin: 0 auto;
  }
  .spotlight-badge-row {
    justify-content: center;
  }
  .spotlight-action {
    display: flex;
    justify-content: center;
  }
}

.library-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lib-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lib-filter-chip {
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lib-filter-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.lib-filter-chip.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

/* Footer Stats Bar */
.home-lib-footer-bar {
  margin-top: 38px;
  padding: 18px 28px;
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease;
}

.home-lib-footer-bar:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.footer-stat-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #cbd5e1;
  font-weight: 600;
}

.footer-icon-glow {
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.footer-browse-link {
  color: #fb923c;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.footer-browse-link:hover {
  color: #f97316;
}

.arrow-hover {
  transition: transform 0.25s ease;
}

.footer-browse-link:hover .arrow-hover {
  transform: translateX(4px);
}

.lib-search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 10px 20px;
  width: 100%;
  max-width: 380px;
}
.lib-search-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}
.lib-search-wrapper input::placeholder { color: #64748b; }

/* SIDE-BY-SIDE ANIMATED BOOK CATALOGUE SLIDER */
/* SIDE-BY-SIDE ANIMATED BOOK CATALOGUE SLIDER */
.home-lib-slider-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}

.books-slider-viewport {
  width: 100%;
  overflow: hidden;
  padding: 16px 6px;
}

.books-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.4, 1);
  will-change: transform;
}

.books-slider-track .book-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 270px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
}

.book-card.slide-active {
  opacity: 1;
  filter: none;
}

.book-card.slide-inactive {
  opacity: 0.85;
}

@media (max-width: 1200px) {
  .books-slider-track .book-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 900px) {
  .books-slider-track .book-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 600px) {
  .books-slider-track .book-card {
    flex: 0 0 100%;
  }
}

.slider-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(249, 115, 22, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-nav-btn.prev-btn {
  left: -20px;
}

.slider-nav-btn.next-btn {
  right: -20px;
}

.slider-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: #f97316;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.6);
  transform: translateY(-50%) scale(1.12);
}

.slider-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

.slider-pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 28px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* REFERENCE MATCHED BOOK CARD & 3D BOOK FLIPPING CATALOGUE */
.book-card {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.book-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 28px rgba(249, 115, 22, 0.25);
  border-color: rgba(249, 115, 22, 0.45);
}

.book-cover-container {
  position: relative;
  width: 100%;
  height: 310px;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  cursor: pointer;
}

/* Ambient backdrop blur behind full uncropped cover */
.book-cover-blur-bg {
  position: absolute;
  inset: -15px;
  width: 120%;
  height: 120%;
  object-fit: cover;
  filter: blur(28px) opacity(0.35) brightness(0.65);
  pointer-events: none;
  z-index: 0;
}

/* 3D Book Stage Wrapper */
.book-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inside Revealed Page Sheet */
.book-inner-sheet {
  position: absolute;
  top: 4px; bottom: 4px; left: 16px; right: 16px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inner-sheet-badge {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  letter-spacing: 0.5px;
}

.inner-sheet-pages {
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
}

.inner-sheet-title {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  margin: 10px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inner-sheet-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-line {
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inner-sheet-footer {
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 8px;
  font-weight: 600;
}

/* 3D Front Cover Flipping Panel */
.book-front-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.34, 1.25, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FULL UNCROPPED COVER IMAGE FIT */
.book-front-cover img,
.book-front-cover .book-cover-img,
.book-cover-container > img,
.book-cover-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain; /* 100% UNTIPPED & UNCROPPED FULL IMAGE SHOWING */
  object-position: center;
  border-radius: 6px;
  box-shadow: -4px 6px 16px rgba(0, 0, 0, 0.5), inset 2px 0 3px rgba(255, 255, 255, 0.25);
  transition: transform 0.5s ease;
}

.book-spine {
  position: absolute;
  top: 5%; bottom: 5%; left: 10%;
  width: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(255, 255, 255, 0.25));
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  pointer-events: none;
}

/* 3D FLIP OPEN TRIGGER ON HOVER OR TAP */
.book-card:hover .book-front-cover,
.book-cover-container.flipped .book-front-cover {
  transform: rotateY(-135deg);
  filter: drop-shadow(-12px 10px 18px rgba(0, 0, 0, 0.7));
}

/* Flip Hint Badge */
.badge-flip-hint {
  position: absolute;
  top: 44px; right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fb923c;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  z-index: 3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.book-card:hover .badge-flip-hint,
.book-cover-container.flipped .badge-flip-hint {
  opacity: 0.4;
  transform: scale(0.9);
}

/* Generated Fallback Cover */
.book-cover-fallback {
  width: 100%;
  height: 100%;
  padding: 24px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.book-cover-fallback::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #e8481c, #d4a017, #38bdf8);
}
.fallback-book-subject {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
}
.fallback-book-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-top: 12px;
}
.fallback-book-author {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}

/* Cover Overlay Badges - Clean Non-Overlapping Position */
.badge-featured {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  z-index: 2;
}
.badge-free {
  position: absolute;
  top: 12px; right: 12px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  z-index: 2;
}
.badge-edition {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 2;
}
.badge-size {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 2;
}

/* Book Body Copy */
.book-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.book-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.38;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.book-author {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.book-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags Row */
.book-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tag-year {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #fb923c;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.tag-lang {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.tag-exam {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}
.tag-pages {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.book-card-actions {
  display: grid;
  grid-template-columns: 1fr;
}
.btn-book-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
  border: none;
  cursor: pointer;
}
.btn-book-download:hover {
  background: linear-gradient(135deg, #ff7a54 0%, #f97316 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
  color: #ffffff;
}

/* ══════════ NAVBAR WHATSAPP BUTTON ══════════ */
.btn-whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
  white-space: nowrap;
}
.btn-whatsapp-nav:hover {
  background: #1ebc57;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,211,102,0.4);
  color: #ffffff !important;
}
@media(max-width: 768px) {
  .btn-whatsapp-nav span { display: none; }
  .btn-whatsapp-nav { padding: 8px; border-radius: 50%; }
}

/* ══════════ UNDER CONSTRUCTION MODAL ══════════ */
.uc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15,17,23,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.uc-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.uc-modal-card {
  background: #ffffff;
  border: 1px solid rgba(15,17,23,0.12);
  border-radius: 24px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.uc-modal-overlay.open .uc-modal-card {
  transform: translateY(0) scale(1);
}
.uc-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15,17,23,0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 0.2s;
}
.uc-close-btn:hover { background: rgba(15,17,23,0.15); }
.uc-icon-badge {
  font-size: 44px;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulseUc 2s infinite alternate;
}
@keyframes pulseUc { from { transform: scale(1); } to { transform: scale(1.08); } }
.uc-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.uc-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 20px;
}
.uc-badge-cgl {
  background: #fdeee9;
  border: 1px solid rgba(232,72,28,0.2);
  color: #c03a12;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.uc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-uc-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s, background 0.2s;
}
.btn-uc-wa:hover {
  background: #1ebc57;
  transform: translateY(-2px);
  color: #ffffff !important;
}
.btn-uc-cgl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-uc-cgl:hover { background: var(--accent); color: #ffffff !important; }

/* Under Construction Badges & Buttons on Hub Cards */
.tag-under-construction {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 700 !important;
}
.tag-live-portal {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
  font-weight: 700 !important;
}
.btn-uc-lock {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s !important;
}
.btn-uc-lock:hover {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

/* UNIVERSAL PAGINATION STYLES */
.page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 36px;
  font-size: 14px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 2px;
  user-select: none;
}

/* ══════════ ADSENSE RESPONSIVE UNIT & BANNER STYLES ══════════ */
.adsense-unit {
  min-height: 90px;
  margin: 28px auto;
  text-align: center;
  max-width: 1200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  clear: both;
  box-sizing: border-box;
}

.adsense-unit-top {
  margin: 16px auto 24px;
  max-width: 970px;
}

.adsense-unit-sidebar {
  min-height: 250px;
  margin: 20px 0;
  max-width: 336px;
}

.adsense-unit-infeed {
  margin: 28px auto;
  max-width: 820px;
}

.adsense-unit-bottom {
  margin: 40px auto 20px;
  max-width: 1200px;
}

.examnetwork-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 880px;
  margin: 0 auto;
  background: #0f172a;
  border: 1px solid rgba(232, 72, 28, 0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  border-radius: 16px;
  padding: 18px 24px;
  z-index: 999999;
  color: #cbd5e1;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideUpCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cookie-primary {
  background: linear-gradient(135deg, #e8481c, #ff6b35);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-cookie-primary:hover { opacity: 0.9; }

.btn-cookie-secondary {
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cookie-secondary:hover { background: rgba(255,255,255,0.14); }

@keyframes slideUpCookie {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media(max-width: 600px) {
  .examnetwork-cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 16px;
  }
}


