/* ========================================
   SHREE JAGANNATH EDUCATIONAL SERVICES
   Unified Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --forest:        #0E4D2C;
  --forest-mid:    #1A6B3C;
  --forest-light:  #2E8A52;
  --leaf:          #3DB56D;
  --leaf-light:    #6FD19A;
  --gold:          #D4A017;
  --gold-light:    #F0C84A;
  --cream:         #F8F5EE;
  --cream-dark:    #EDE8DD;
  --ink:           #0D1F14;
  --ink-mid:       #2E4A38;
  --ink-soft:      #5C7A66;
  --ink-faint:     #9AB5A2;
  --white:         #FFFFFF;
  --border:        rgba(14, 77, 44, 0.12);
  --border-mid:    rgba(14, 77, 44, 0.22);
  --shadow-sm:     0 2px 12px rgba(14, 77, 44, 0.08);
  --shadow-md:     0 8px 32px rgba(14, 77, 44, 0.14);
  --shadow-lg:     0 20px 60px rgba(14, 77, 44, 0.18);

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--forest-mid); border-radius: 3px; }

/* ─── SELECTION ─── */
::selection { background: var(--leaf); color: var(--white); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; color: var(--ink); }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
}
.nav-logo-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--forest); background: rgba(14, 77, 44, 0.06); }
.nav-links a.active { color: var(--forest); background: rgba(14, 77, 44, 0.08); }

.nav-cta {
  background: var(--forest) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(14, 77, 44, 0.3);
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--forest-mid) !important; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14, 77, 44, 0.4) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  animation: slideDown 0.25s ease;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--forest); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PAGE HERO BANNER ─── */
.page-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 50%, var(--forest-light) 100%);
  color: var(--white);
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 0, transparent 50%);
  background-size: cover, 30px 30px;
}
.page-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--leaf-light); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ─── SECTION SPACING ─── */
.section { padding: 5rem 2rem; }
.section-sm { padding: 3.5rem 2rem; }
.container { max-width: 1240px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--leaf);
  display: inline-block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-desc { color: var(--ink-soft); font-size: 1.05rem; max-width: 600px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
  box-shadow: 0 4px 16px rgba(14,77,44,0.3);
}
.btn-primary:hover { background: var(--forest-mid); border-color: var(--forest-mid); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(14,77,44,0.4); }
.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212,160,23,0.3);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-white {
  background: var(--white);
  color: var(--forest);
  border-color: var(--white);
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--black);
  padding: 3rem 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.stat-item-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}
.stat-item-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.04em;
}
.stat-item-divider {
  width: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 4rem 2rem 0;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}
.footer-contact p { margin-bottom: 0.35rem; font-size: 0.875rem; }
.footer-contact strong { color: rgba(255,255,255,0.85); }
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--forest-mid); color: var(--white); }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--leaf-light); }

.footer-newsletter p { font-size: 0.875rem; margin-bottom: 1rem; }
.footer-nl-form { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nl-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  color: var(--white);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.footer-nl-form input:focus { border-color: var(--leaf); }
.footer-nl-form input::placeholder { color: rgba(255,255,255,0.35); }
.footer-nl-form button {
  background: var(--forest-mid);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}
.footer-nl-form button:hover { background: var(--forest-light); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--leaf-light); text-decoration: none; }

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: #25D366;
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse-wa 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* ─── SCROLL TOP ─── */
.scroll-top {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 9998;
  background: var(--forest);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--forest-mid); transform: translateY(-2px); }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-up { animation: fadeInUp 0.65s ease both; }
.animate-fade-in { animation: fadeIn 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .section { padding: 3.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

.cbc-thumb {
  height: 180px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #0E4D2C, #2E8A52);

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cbc-thumb img {
  width: 500px;
  height: 250px;
  object-fit: contain;
}
