/* ===== Bhagat Baba Duni Chand College - Static Site ===== */
:root {
  --navy: #061A3D;
  --royal: #1E40AF;
  --gold: #D4AF37;
  --gold-hover: #B89B2B;
  --surface: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --border: #E5E7EB;
}

/* Fonts */
body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  padding-top: 0;
}
h1, h2, h3, h4, h5, .font-display {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.01em;
  color: var(--navy);
  font-weight: 700;
}

/* Utility classes */
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy { background-color: var(--navy) !important; color: #fff; }
.bg-gold { background-color: var(--gold) !important; }
.bg-surface { background-color: var(--surface) !important; }
.border-gold { border-color: var(--gold) !important; }

::selection { background: var(--gold); color: var(--navy); }
html { scroll-behavior: smooth; }
img { max-width: 100%; }

/* Buttons */
.btn-navy {
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
  padding: 0.7rem 1.6rem; font-weight: 500; border-radius: 0.6rem;
  transition: all .3s ease;
}
.btn-navy:hover { background: var(--royal); border-color: var(--royal); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,64,175,.25); }

.btn-gold {
  background: var(--gold); color: var(--navy); border: 2px solid var(--gold);
  padding: 0.7rem 1.6rem; font-weight: 600; border-radius: 0.6rem;
  transition: all .3s ease; box-shadow: 0 4px 12px rgba(212,175,55,.25);
}
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212,175,55,.35); }

.btn-outline-navy {
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
  padding: 0.7rem 1.6rem; font-weight: 500; border-radius: 0.6rem;
  transition: all .3s ease;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* Top bar */
.top-bar { background: var(--navy); color: rgba(255,255,255,.85); font-size: 0.8rem; padding: 0.5rem 0; }
.top-bar a { color: rgba(255,255,255,.85); text-decoration: none; }
.top-bar a:hover { color: var(--gold); }

/* Navbar */
.site-navbar { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.04); position: sticky; top: 0; z-index: 1000; transition: all .3s; }
.site-navbar.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(18px); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.navbar-brand-wrap { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.navbar-brand-wrap .logo { width: 75px; height: 75px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); }
.navbar-brand-wrap .brand-name { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); font-size: 1.15rem; line-height: 1; }
.navbar-brand-wrap .brand-sub { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: #64748B; }
.nav-link.custom-link { color: #475569 !important; font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.5rem 0.85rem !important; }
.nav-link.custom-link:hover { color: var(--navy) !important; }
.nav-link.custom-link.active { color: var(--navy) !important; }
.nav-link.custom-link.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0.85rem; right: 0.85rem; height: 2px; background: var(--gold); border-radius: 2px;
}

/* Hero */
.hero-section {
  position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden;
  background-size: cover; background-position: center;
}
.hero-section::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6,26,61,.88) 0%, rgba(6,26,61,.6) 60%, rgba(30,64,175,.4) 100%);
}
.hero-section > * { position: relative; z-index: 2; }

/* Page header (interior pages) */
.page-header {
  position: relative; padding: 6rem 0 4rem; color: #fff;
  background-size: cover; background-position: center;
}
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6,26,61,.85) 0%, rgba(6,26,61,.55) 60%, rgba(30,64,175,.35) 100%);
}
.page-header > * { position: relative; z-index: 2; }

/* Eyebrow */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold-hover); font-weight: 600;
}
.gold-divider { display: inline-block; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 1rem 0; }

/* Cards */
.card-elevated {
  background: #fff; border: 1px solid #F1F5F9; border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04);
  transition: all .3s ease; padding: 1.75rem;
}
.card-elevated:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(6,26,61,.10); }

.icon-box { width: 56px; height: 56px; border-radius: 0.9rem; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1.4rem; transition: all .3s; }
.card-elevated:hover .icon-box { background: var(--gold); color: var(--navy); }

/* Glass card */
.glass {
  background: rgba(255,255,255,.72); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 8px 32px rgba(6,26,61,.08);
  border-radius: 1rem; padding: 1.5rem; color: var(--navy);
}
.glass-dark {
  background: rgba(6,26,61,.55); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 0.75rem; padding: 1rem;
}

/* Section */
section { padding: 5rem 0; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.15; }

/* Stats counter */
.stat-num { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--navy); font-size: 2.5rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 4rem 0 1.5rem; margin-top: 5rem; }
.site-footer h5 { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-grid; place-items: center; transition: all .2s; color: #fff !important; }
.social-icon:hover { background: var(--gold); color: var(--navy) !important; }

/* Floating buttons */
.floating-actions { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1050; display: flex; flex-direction: column; gap: 0.75rem; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); color: #fff; text-decoration: none; font-size: 1.25rem; transition: transform .2s; }
.float-btn:hover { transform: scale(1.1); color: #fff; }
.float-whatsapp { background: #25D366; }
.float-call { background: var(--gold); color: var(--navy); }
.float-call:hover { color: var(--navy); }

/* Scroll to top */
.scroll-top { position: fixed; right: 1.5rem; bottom: 10rem; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: none; place-items: center; text-decoration: none; z-index: 1050; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.scroll-top.visible { display: grid; }
.scroll-top:hover { background: var(--royal); color: #fff; }

/* Gallery */
.gallery-item { position: relative; overflow: hidden; border-radius: 0.75rem; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(6,26,61,0); transition: background .3s; display: flex; align-items: flex-end; padding: 1rem; }
.gallery-item:hover .overlay { background: rgba(6,26,61,.5); }
.gallery-item .overlay span { color: #fff; text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .overlay span { opacity: 1; }

.category-btn {
  border: 1px solid #E2E8F0; background: #fff; color: #64748B;
  padding: 0.5rem 1.2rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  transition: all .2s; margin: 0.25rem;
}
.category-btn:hover { border-color: var(--navy); color: var(--navy); }
.category-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6,26,61,.95); backdrop-filter: blur(6px); z-index: 1100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 0.5rem; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* Testimonial */
.testimonial-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.25rem; color: var(--navy); }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.testimonial-dot { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; border: 0; margin: 0 4px; transition: all .3s; cursor: pointer; }
.testimonial-dot.active { background: var(--gold); width: 32px; border-radius: 999px; }

/* Notice card */
.notice-date { background: var(--navy); color: #fff; border-radius: 0.75rem; padding: 0.75rem 1rem; text-align: center; min-width: 90px; }
.notice-date .day { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--gold); font-weight: 700; line-height: 1; }
.notice-date .month { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem; margin-top: 0.25rem; }

/* Course card admin section */
.course-hero-side { background: var(--navy); color: #fff; padding: 2.5rem; border-radius: 1rem 0 0 1rem; position: relative; overflow: hidden; }
.course-hero-side::before {
  content: ""; position: absolute; top: -4rem; right: -4rem; width: 14rem; height: 14rem;
  background: rgba(212,175,55,.15); border-radius: 50%; filter: blur(48px);
}
.course-hero-side > * { position: relative; z-index: 2; }

/* Forms */
.form-control, .form-select { border-radius: 0.6rem; border-color: #E2E8F0; padding: 0.7rem 1rem; font-size: 0.95rem; }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(6,26,61,.1); }
.form-label { font-size: 0.875rem; font-weight: 500; color: #334155; margin-bottom: 0.4rem; }

/* Admission Poster card */
.poster-card { position: relative; border-radius: 1rem; overflow: hidden; min-height: 420px; }
.poster-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,26,61,.95), rgba(6,26,61,.6) 50%, transparent); padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }

/* Admission CTA banner */
.admission-banner {
  border-radius: 1rem; padding: 3rem; color: #fff;
  background: linear-gradient(to right, var(--navy), var(--royal));
  position: relative; overflow: hidden;
}
.admission-banner::before {
  content: ""; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: rgba(212,175,55,.2); border-radius: 50%; filter: blur(60px);
}
.admission-banner > * { position: relative; z-index: 2; }

/* Fade up animation on scroll */
.fade-up { opacity: 0; transform: translateY(24px); transition: all .8s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 767.98px) {
  .hero-section { min-height: 80vh; }
  section { padding: 3.5rem 0; }
  .course-hero-side { border-radius: 1rem 1rem 0 0; padding: 2rem; }
  .top-bar { display: none; }
}
