/* =========================================================
   Oriental Public School — Bootstrap 5.3 custom styles
   Palette: Royal Blue #0D47A1, Sky Blue #42A5F5, Gold #FFC107
   Fonts: Poppins (headings) + Open Sans (body)
   ========================================================= */
:root {
  --royal: #0D47A1;
  --royal-dark: #082F6B;
  --royal-50: #EAF1FB;
  --sky: #42A5F5;
  --gold: #FFC107;
  --gold-600: #F5B301;
  --bg: #F9FAFB;
  --ink: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', system-ui, sans-serif;
  letter-spacing: -0.01em;
}
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---------- Bootstrap overrides ---------- */
.bg-royal { background-color: var(--royal) !important; color: #fff; }
.bg-royal-dark { background-color: var(--royal-dark) !important; color: #fff; }
.bg-gold { background-color: var(--gold) !important; color: var(--royal-dark); }
.text-royal { color: var(--royal) !important; }
.text-royal-dark { color: var(--royal-dark) !important; }
.text-gold { color: var(--gold) !important; }
.border-gold { border-color: var(--gold) !important; }

.btn-royal {
  background: var(--royal); color: #fff; border: 0; border-radius: 999px;
  padding: .7rem 1.4rem; font-family: 'Poppins', sans-serif; font-weight: 600;
  transition: background .25s ease, transform .25s ease;
}
.btn-royal:hover { background: var(--royal-dark); color: #fff; }
.btn-gold {
  background: var(--gold); color: var(--royal-dark); border: 0; border-radius: 999px;
  padding: .7rem 1.4rem; font-family: 'Poppins', sans-serif; font-weight: 700;
  transition: background .25s ease;
}
.btn-gold:hover { background: var(--gold-600); color: var(--royal-dark); }
.btn-outline-royal {
  background: transparent; color: var(--royal); border: 2px solid var(--royal); border-radius: 999px;
  padding: .55rem 1.4rem; font-family: 'Poppins', sans-serif; font-weight: 600;
  transition: all .25s ease;
}
.btn-outline-royal:hover { background: var(--royal); color: #fff; }

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--royal);
  color: rgba(255,255,255,.95);
  font-size: .85rem;
}
.utility-bar a { color: rgba(255,255,255,.95); transition: color .2s ease; }
.utility-bar a:hover { color: var(--gold); }

/* ---------- Sticky header ---------- */
.site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 1px 0 rgba(13,71,161,.04);
}
.brand-title { color: var(--royal); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand-sub { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.brand-logo { height: 48px; width: 48px; border-radius: 999px; background: #fff; padding: 2px; border: 2px solid rgba(255,193,7,.6); }

/* ---------- Navbar ---------- */
.nav-primary .nav-link {
  color: #334155; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; position: relative;
}
.nav-primary .nav-link:hover, .nav-primary .nav-link.active { color: var(--royal); }
.nav-primary .dropdown-menu {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: .35rem;
  box-shadow: 0 20px 45px -15px rgba(13,71,161,.25);
  min-width: 240px;
  margin-top: .25rem;
}
.nav-primary .dropdown-item {
  border-radius: 10px; padding: .55rem .8rem; font-size: .92rem; color: #334155;
}
.nav-primary .dropdown-item:hover, .nav-primary .dropdown-item.active {
  background: var(--royal-50); color: var(--royal);
}

/* Enable hover-open dropdowns on desktop */
@media (min-width: 992px) {
  .nav-primary .dropdown:hover > .dropdown-menu { display: block; }
  .nav-primary .dropdown-toggle::after { margin-left: .3rem; opacity: .7; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: 640px; overflow: hidden; background: #082F6B; }
@media (max-width: 767px) { .hero { height: 560px; } }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.hero .slide.active { opacity: 1; z-index: 2; }
.hero .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .slide .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,47,107,.85) 0%, rgba(13,71,161,.55) 55%, rgba(13,71,161,.15) 100%);
}
.hero .content { position: relative; z-index: 5; color: #fff; padding: 5rem 0; max-width: 640px; }
.hero .eyebrow {
  display: inline-block; background: var(--gold); color: var(--royal-dark);
  padding: .35rem 1rem; border-radius: 999px; font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.05; font-weight: 700;
  margin-top: 1.2rem; text-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.hero p { font-size: 1.05rem; margin-top: 1rem; color: rgba(255,255,255,.92); max-width: 520px; }
.hero .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.hero .arrow:hover { background: #fff; color: var(--royal); }
.hero .arrow.left { left: 1.5rem; }
.hero .arrow.right { right: 1.5rem; }
.hero .dots { position: absolute; bottom: 6.5rem; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: .5rem; }
.hero .dot {
  width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.5);
  border: 0; cursor: pointer; transition: width .25s ease, background .25s ease;
}
.hero .dot.active { background: var(--gold); width: 28px; }

/* ---------- Marquee ---------- */
.marquee-bar { background: var(--gold); color: var(--royal-dark); border-top: 1px solid rgba(13,71,161,.08); border-bottom: 1px solid rgba(13,71,161,.08); }
.marquee-label {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--royal-dark); color: #fff; padding: .3rem .9rem;
  border-radius: 999px; font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.marquee-viewport { flex: 1; overflow: hidden; position: relative; }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 45s linear infinite; }
.marquee-track span { white-space: nowrap; font-weight: 500; font-size: .95rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative; overflow: hidden; color: #fff;
  padding: 6rem 0 5rem;
}
.page-banner .bg { position: absolute; inset: 0; }
.page-banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner .bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,47,107,.9), rgba(13,71,161,.7), rgba(13,71,161,.4));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; margin-top: .6rem; }
.page-banner .subtitle { font-size: 1.05rem; max-width: 640px; color: rgba(255,255,255,.9); margin-top: .8rem; }
.page-banner .breadcrumb-row a { color: rgba(255,255,255,.85); }
.page-banner .breadcrumb-row a:hover { color: var(--gold); }
.page-banner .breadcrumb-row .current { color: var(--gold); }

/* ---------- Common building blocks ---------- */
.eyebrow-inline {
  display: inline-block; background: rgba(13,71,161,.08); color: var(--royal);
  padding: .25rem .8rem; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.section { padding: 4rem 0; }
.section.section-alt { background: #fff; }
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); color: var(--royal-dark); font-weight: 700; }
.section .lead-text { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

/* Card lift */
.feature-card {
  background: #fff; border: 1px solid #eef2f7; border-radius: 18px;
  padding: 1.6rem; height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(13,71,161,.35); }
.feature-card .icon-box {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--royal-50); color: var(--royal);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
  transition: background .25s ease, color .25s ease;
}
.feature-card:hover .icon-box { background: var(--gold); color: var(--royal-dark); }
.feature-card h3 { font-size: 1.2rem; font-weight: 600; color: var(--royal-dark); margin-top: 1rem; }
.feature-card p { color: var(--muted); margin-top: .5rem; margin-bottom: 0; }

/* Two big cards (Vision & Mission) */
.big-card {
  border-radius: 20px; padding: 2.4rem; height: 100%;
  box-shadow: 0 10px 40px -20px rgba(13,71,161,.3);
  transition: transform .35s ease;
}
.big-card:hover { transform: translateY(-6px); }
.big-card.filled { background: var(--royal); color: #fff; }
.big-card.filled .icon-box { background: var(--gold); color: var(--royal-dark); }
.big-card.plain { background: #fff; border: 1px solid #eef2f7; }
.big-card .icon-box {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.big-card.plain .icon-box { background: var(--royal-50); color: var(--royal); }
.big-card h3 { font-weight: 700; font-size: 1.6rem; margin-top: 1rem; }

/* Wing card */
.wing-card {
  display: block; background: #F9FAFB; border: 1px solid #eef2f7;
  border-radius: 18px; padding: 2rem; color: inherit; height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
}
.wing-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(13,71,161,.35); color: inherit; }
.wing-card .icon-box { width: 56px; height: 56px; background: var(--royal); color: #fff; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.wing-card h3 { color: var(--royal-dark); font-weight: 600; font-size: 1.4rem; margin-top: 1.2rem; }

/* Infra grid image card */
.image-card { display: block; background: #fff; border: 1px solid #eef2f7; border-radius: 18px; overflow: hidden; color: inherit; height: 100%; transition: transform .35s ease, box-shadow .35s ease; }
.image-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(13,71,161,.35); color: inherit; }
.image-card .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f7; }
.image-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.image-card:hover .img-wrap img { transform: scale(1.08); }
.image-card .body { padding: 1rem 1.25rem 1.35rem; }
.image-card .icon-inline { width: 40px; height: 40px; border-radius: 10px; background: var(--royal-50); color: var(--royal); display: inline-flex; align-items: center; justify-content: center; }
.image-card h3 { font-size: 1.1rem; color: var(--royal-dark); font-weight: 600; margin: 0; }

/* Life card (overlay) */
.life-card { position: relative; display: block; border-radius: 18px; overflow: hidden; height: 280px; color: #fff; }
.life-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.life-card:hover img { transform: scale(1.08); }
.life-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,47,107,.95), rgba(8,47,107,.35), transparent);
}
.life-card .caption { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.3rem; z-index: 2; color: #fff; }
.life-card .caption h3 { font-weight: 700; font-size: 1.4rem; }

/* Highlight stat strip */
.stats-strip { background: var(--royal); color: #fff; padding: 2rem 0; }
.stats-strip .stat { display: flex; align-items: center; gap: 1rem; border-left: 2px solid rgba(255,193,7,.4); padding-left: 1rem; }
.stats-strip .stat i { color: var(--gold); font-size: 1.8rem; }
.stats-strip .stat .num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.8rem; line-height: 1; }
.stats-strip .stat .lbl { font-size: .85rem; color: rgba(255,255,255,.8); }

/* Table */
.tbl-wrap { background: #fff; border: 1px solid #eef2f7; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px -12px rgba(13,71,161,.2); }
.tbl-wrap table { width: 100%; border-collapse: collapse; }
.tbl-wrap thead { background: var(--royal); color: #fff; }
.tbl-wrap th, .tbl-wrap td { padding: .9rem 1.15rem; text-align: left; font-size: .95rem; }
.tbl-wrap tbody tr:nth-child(odd) { background: #fff; }
.tbl-wrap tbody tr:nth-child(even) { background: #F9FAFB; }
.tbl-wrap tbody td { border-top: 1px solid #eef2f7; color: #334155; }

/* Steps */
.step { position: relative; background: #fff; border: 1px solid #eef2f7; border-radius: 18px; padding: 1.4rem; height: 100%; }
.step .n { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.2rem; color: rgba(255,193,7,.75); }
.step h3 { font-size: 1.05rem; color: var(--royal-dark); font-weight: 600; margin-top: .3rem; }
.step p { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }

/* Timeline */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: rgba(13,71,161,.2); }
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-1px); } }
.tl-item { position: relative; margin-bottom: 1.5rem; padding-left: 3rem; }
@media (min-width: 768px) { .tl-item { padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } .tl-item.even { direction: rtl; } .tl-item.even > * { direction: ltr; } }
.tl-item .dot { position: absolute; left: 8px; top: 20px; width: 18px; height: 18px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 5px rgba(255,193,7,.25); }
@media (min-width: 768px) { .tl-item .dot { left: 50%; transform: translateX(-50%); } }
.tl-card { background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 1.2rem 1.4rem; box-shadow: 0 6px 18px -12px rgba(13,71,161,.2); }
.tl-card .month { font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-600); }
.tl-card h3 { font-size: 1.1rem; color: var(--royal-dark); font-weight: 600; margin-top: .2rem; }
.tl-card p { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }

/* Quote / principal */
.quote-block { background: linear-gradient(135deg, var(--royal), var(--royal-dark)); color: #fff; border-radius: 24px; padding: 2.8rem; position: relative; overflow: hidden; }
.quote-block::before { content: ''; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 999px; background: rgba(255,193,7,.14); filter: blur(30px); }
.quote-block .avatar { width: 180px; height: 180px; border-radius: 20px; object-fit: cover; box-shadow: 0 0 0 4px rgba(255,193,7,.4); }

/* CTA banner */
.cta-banner { background: var(--royal); color: #fff; border-radius: 24px; padding: 3rem; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 999px; background: rgba(255,193,7,.2); filter: blur(40px); }

/* People/faculty card */
.person-card { background: #fff; border: 1px solid #eef2f7; border-radius: 18px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.person-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(13,71,161,.35); }
.person-card .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f7; }
.person-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.person-card .body { padding: 1rem 1.15rem 1.2rem; }
.person-card .name { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--royal-dark); font-size: 1.05rem; }
.person-card .role { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .68rem; color: var(--gold-600); text-transform: uppercase; letter-spacing: .12em; margin-top: .25rem; }
.person-card .sub { color: var(--muted); font-size: .85rem; margin-top: .15rem; }

/* Gallery */
.gallery-filter .btn { background: #fff; border: 1px solid #e5e7eb; color: #334155; border-radius: 999px; padding: .5rem 1.2rem; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .88rem; }
.gallery-filter .btn.active, .gallery-filter .btn:hover { background: var(--royal); color: #fff; border-color: var(--royal); }
.gal-tile { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; cursor: pointer; background: #eef2f7; border: 0; padding: 0; width: 100%; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-tile:hover img { transform: scale(1.1); }
.gal-tile .cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; color: #fff; background: linear-gradient(to top, rgba(8,47,107,.9), transparent 55%); opacity: 0; transition: opacity .3s ease; text-align: left; font-family: 'Poppins', sans-serif; font-weight: 500; }
.gal-tile:hover .cap { opacity: 1; }

/* Info note */
.info-note { background: rgba(13,71,161,.05); border: 1px solid rgba(13,71,161,.15); border-radius: 12px; padding: .95rem 1.2rem; color: #334155; font-size: .92rem; }
.info-note i { color: var(--royal); margin-right: .4rem; }

/* Footer */
.site-footer { background: var(--royal-dark); color: rgba(255,255,255,.85); padding: 4rem 0 0; margin-top: 5rem; }
.site-footer h4 { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.75); transition: color .2s ease; }
.site-footer a:hover { color: var(--gold); }
.site-footer .social-icon { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-right: .5rem; transition: background .2s ease, color .2s ease; }
.site-footer .social-icon:hover { background: var(--gold); color: var(--royal-dark); }
.site-footer .quick-links li { list-style: none; padding: 0; }
.site-footer .quick-links a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem 0; }
.site-footer .quick-links a:hover { padding-left: .3rem; transition: padding-left .2s ease; }
.site-footer .map-embed { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.2rem 0; font-size: .82rem; color: rgba(255,255,255,.6); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Toast (simple) */
.toast-region { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.toast-msg { pointer-events: auto; background: #fff; border: 1px solid #eef2f7; border-left: 4px solid var(--royal); border-radius: 12px; box-shadow: 0 20px 45px -15px rgba(13,71,161,.35); padding: .8rem 1rem; min-width: 260px; max-width: 360px; font-size: .92rem; }
.toast-msg.success { border-left-color: #16a34a; }
.toast-msg.error { border-left-color: #dc2626; }

/* Utility */
.text-muted-2 { color: var(--muted); }
.rounded-2xl { border-radius: 20px; }
.shadow-soft { box-shadow: 0 10px 40px -25px rgba(13,71,161,.35); }
.zoom-hover { overflow: hidden; }
.zoom-hover img { transition: transform .5s ease; }
.zoom-hover:hover img { transform: scale(1.05); }
.aspect-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
