/* =============================================
   SHARED CSS — Yogeshwar Bal Niketan Shiksha Deep
   ============================================= */

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

:root {
  --navy:       #0f2044;
  --navy-light: #1a3260;
  --gold:       #d4af37;
  --gold-light: #e8cc6a;
  --gold-dark:  #b8941f;
  --cream:      #faf8f3;
  --white:      #ffffff;
  --text:       #1c1c1e;
  --text-mid:   #4b5563;
  --text-light: #9ca3af;
  --border:     rgba(212,175,55,0.15);
  --shadow-sm:  0 4px 20px rgba(15,32,68,0.08);
  --shadow-md:  0 12px 40px rgba(15,32,68,0.12);
  --shadow-lg:  0 24px 60px rgba(15,32,68,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,13,31,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(7,13,31,0.98);
  border-bottom-color: rgba(212,175,55,0.2);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.brand-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(212,175,55,0.12);
}

.nav-link.active { color: var(--gold); }

.nav-cta {
  display: block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  margin-left: 8px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

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

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 130px 8% 70px;
  background: linear-gradient(160deg, #070d1f 0%, #0f2044 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero-inner { position: relative; z-index: 2; }

.page-hero-tag {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero-tag::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--gold);
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ===== SECTION HEADERS ===== */
.sec-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}
.sec-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 2px;
  background: var(--gold-dark);
}

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 14px;
}

.sec-desc {
  font-size: 15.5px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 560px;
}

/* On dark bg */
.sec-title.light { color: #fff; }
.sec-desc.light { color: rgba(255,255,255,0.65); }
.sec-tag.light { color: var(--gold); }
.sec-tag.light::before { background: var(--gold); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(212,175,55,0.3);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212,175,55,0.45);
}

.btn-navy {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: white;
}

/* ===== CARDS ===== */
.card-3d {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
}
.card-3d:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: var(--shadow-lg);
}

/* ===== DIVIDER ===== */
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ===== FOOTER ===== */
.site-footer {
  background: #070d1f;
  border-top: 1px solid rgba(212,175,55,0.12);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 5% 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 8px;
}

.footer-links-group h4 {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links-group a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-links-group a:hover { color: var(--gold); }

.footer-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 5%;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12.5px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(7,13,31,0.99);
    flex-direction: column;
    padding: 24px 5%;
    gap: 4px;
    border-bottom: 1px solid rgba(212,175,55,0.15);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-link, .nav-cta { width: 100%; text-align: center; margin-left: 0; padding: 12px; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .page-hero { padding: 110px 5% 50px; }
}
