/* =========================================================
   SURAJ SHIKSHA — RESOURCE PAGES BASE & NAVIGATION (Scaled +40%)
   Visual Language: Exact match to finalized index.html
   Palette: Warm Ivory, Deep Navy, Brand Gold, Subtle Cream
========================================================= */

:root {
  --bg-primary: #FFFDF7;
  --bg-secondary: #FFF8E7;
  --bg-surface: #FFFFFF;
  --bg-card-soft: #FDF9F0;
  
  --yellow-brand: #FFD93D;
  --gold-sun: #F5B700;
  --gold-glow: rgba(245, 183, 0, 0.28);
  
  --navy-deep: #172554;
  --navy-body: #1E293B;
  --navy-muted: #64748B;
  --navy-dim: #94A3B8;
  
  --teal-accent: #0D9488;
  --teal-light: #F0FDFA;
  --teal-border: #99F6E4;
  
  --border-subtle: #E2D9C8;
  --border-light: #EFE8DA;
  --border-card: #ECE4D4;
  
  --shadow-sm: 0 2px 8px rgba(23, 37, 84, 0.05);
  --shadow-md: 0 8px 24px rgba(23, 37, 84, 0.08);
  --shadow-lg: 0 16px 40px rgba(23, 37, 84, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --nav-height: 80px;
  --nav-height-mobile: 66px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 22.4px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-primary);
  color: var(--navy-body);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Grid */
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(226, 217, 200, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 217, 200, 0.28) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
}

main {
  flex: 1 0 auto;
  padding-bottom: 70px;
}

/* =========================================================
   HEADER & NAVBAR (100% Consistent with index.html)
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  transition: all 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(245, 183, 0, 0.3));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1.15;
}

.nav-brand-sub {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-sun);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.loc-bullet {
  margin: 0 4px;
  opacity: 0.8;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 6px 4px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-deep);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--gold-sun);
  border-radius: 2px;
}

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

.btn-demo-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--yellow-brand);
  color: var(--navy-deep);
  border: 1.5px solid var(--gold-sun);
  border-radius: var(--radius-full);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(255, 217, 61, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-demo-nav:hover {
  background: var(--gold-sun);
  transform: translateY(-1px);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(23, 37, 84, 0.04);
  border: 1px solid var(--border-light);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.hamburger-bar {
  width: 20px;
  height: 2.5px;
  background-color: var(--navy-deep);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-height, 80px);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--gold-sun);
  padding: 20px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 99;
  box-shadow: 0 15px 35px rgba(23, 37, 84, 0.1);
  transform: translateY(-120%);
  transition: transform 0.3s ease;
}

.mobile-drawer.open {
  transform: translateY(0);
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--navy-deep);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.mobile-drawer a:hover,
.mobile-drawer a.active {
  border-color: var(--gold-sun);
  background: #FFFDF5;
}

@media (max-width: 600px) {
  .navbar {
    padding: 9px 0;
  }
  .nav-inner {
    gap: 8px;
  }
  .nav-brand {
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
  }
  .nav-logo {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .nav-brand-text {
    min-width: 0;
    line-height: 1.15;
  }
  .nav-brand-title {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-brand-sub {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .btn-demo-nav {
    padding: 7px 12px;
    font-size: 14.5px;
    height: 36px;
    border-radius: var(--radius-full);
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  .mobile-drawer {
    top: var(--nav-height-mobile, 66px);
  }
}

/* =========================================================
   PAGE HERO & CATEGORY SWITCHER RIBBON (Scaled +40%)
========================================================= */
.resource-hero {
  padding: 38px 0 26px;
  text-align: center;
  position: relative;
}

.resource-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 22px;
  border-radius: var(--radius-full);
  background: #FFF7D6;
  border: 1.5px solid #FFE58F;
  color: #B45309;
  font-size: 16.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(245, 183, 0, 0.15);
}

.resource-hero-title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 900;
  color: var(--navy-deep);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.resource-hero-subtitle {
  font-size: clamp(18px, 2.5vw, 23px);
  color: var(--navy-muted);
  max-width: 820px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* Quick Category Switcher Ribbon (4 categories) */
.resource-category-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 36px;
  max-width: 860px;
}

.ribbon-pill {
  padding: 10px 22px;
  font-size: 17px;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ribbon-pill:hover {
  border-color: var(--gold-sun);
  background: #FFFDF5;
  transform: translateY(-1px);
}

.ribbon-pill.active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(23, 37, 84, 0.28);
}

/* =========================================================
   FOOTER (100% Consistent with index.html)
========================================================= */
footer {
  background: var(--navy-deep);
  color: #FFFFFF;
  padding: 60px 0 40px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand strong {
  font-size: 24px;
  display: block;
}

.footer-brand span {
  font-size: 18px;
  color: #94A3B8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  font-size: 19px;
  color: #CBD5E1;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--yellow-brand);
}

.footer-copy {
  font-size: 17px;
  color: #94A3B8;
  text-align: center;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 14px;
}
