/* ======================================================================
   Progressive Academy of Commerce — Design System
   Royal Blue + Gold · Glassmorphism · Light/Dark · Premium
   ====================================================================== */

:root {
  /* Brand: deep Navy + warm Gold + soft Cream (#FFDAA3) — premium education */
  --blue-900: #06203f;
  --blue-700: #0a2a5e;
  --blue-600: #103a73;
  --blue-500: #1a4f93;
  --gold-600: #b8860b;
  --gold-500: #c79324;
  --gold-400: #e6b54e;
  --cream:     #ffdaa3;   /* requested warm tone */
  --cream-200: #fff1dd;   /* light cream tint */
  --cream-50:  #fffaf2;   /* near-white warm */
  --ink: #142036;
  --ink-2: #5b6781;
  --bg: #fbf7f0;          /* warm off-white (paper) */
  --surface: #ffffff;
  --border: #efe6d6;      /* warm hairline */
  --border-cool: #e7ecf4;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 18px -8px rgba(20, 32, 54, .14);
  --shadow: 0 26px 60px -22px rgba(10, 42, 94, .34);
  --shadow-gold: 0 16px 40px -14px rgba(199, 147, 36, .5);
  --grad-blue: linear-gradient(140deg, var(--blue-900) 0%, var(--blue-600) 100%);
  --grad-gold: linear-gradient(135deg, var(--cream) 0%, var(--gold-500) 100%);
  --grad-hero: radial-gradient(1100px 560px at 84% -8%, rgba(255,218,163,.55), transparent 60%),
               radial-gradient(900px 520px at -8% 12%, rgba(26,79,147,.10), transparent 55%),
               linear-gradient(180deg, var(--cream-50), var(--bg));
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
h3, h4, h5, .navbar-brand { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; }
.font-head { font-family: var(--font-head) !important; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
.text-muted-2 { color: var(--ink-2) !important; }
section { position: relative; }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-gold); border-radius: 2px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
/* Premium accent under centered section headings */
.text-center > .eyebrow + h2::after,
.text-center > h2::after {
  content: ""; display: block; width: 66px; height: 4px; margin: 16px auto 0;
  border-radius: 999px; background: var(--grad-gold);
}
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: var(--blue-700); color:#fff; padding:.5rem .9rem; border-radius:8px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; padding: .62rem 1.4rem; font-weight: 600; transition: .25s ease; }
.btn-gold { background: linear-gradient(135deg, var(--cream) 0%, var(--gold-400) 60%, var(--gold-500) 100%); color: #4a3410; border: none; box-shadow: var(--shadow-gold); font-weight: 700; }
.btn-gold:hover { transform: translateY(-2px); color: #4a3410; filter: brightness(1.04); }
.btn-blue { background: var(--grad-blue); color: #fff; border: none; box-shadow: var(--shadow); }
.btn-blue:hover { transform: translateY(-2px); color: #fff; }
.btn-outline-blue { border: 1.5px solid var(--blue-600); color: var(--blue-600); }
.btn-outline-blue:hover { background: var(--blue-600); color: #fff; }
/* Premium animated "Our Results" CTA — gold gradient, auto shine sweep + pulsing glow */
.btn-results-premium { position: relative; overflow: hidden; border: none; font-weight: 700; color: #4a3410;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 50%, var(--gold-400) 100%);
  box-shadow: 0 8px 22px -6px rgba(199,147,36,.6); animation: results-glow 2.4s ease-in-out infinite; }
.btn-results-premium:hover { color: #4a3410; transform: translateY(-2px); filter: brightness(1.05); }
.btn-results-premium .bi { color: #7a5510; }
.btn-results-premium::after { content: ""; position: absolute; top: 0; left: -140%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg); animation: results-shine 3s ease-in-out infinite; pointer-events: none; }
@keyframes results-shine { 0%, 55% { left: -140%; } 100% { left: 150%; } }
@keyframes results-glow { 0%, 100% { box-shadow: 0 8px 22px -6px rgba(199,147,36,.5); } 50% { box-shadow: 0 10px 30px -4px rgba(199,147,36,.85); } }
@media (prefers-reduced-motion: reduce) { .btn-results-premium { animation: none; } .btn-results-premium::after { animation: none; } }
.btn-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); padding: 0; }

/* ---------- Glassmorphism ---------- */
.glass {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: var(--radius);
}

/* ---------- Announcement + Header ---------- */
.announcement-bar { background: var(--grad-blue); color: #fff; padding: .5rem 0; font-weight: 500; }
.announcement-bar .alert-link { color: var(--gold-400); }
/* Solid (opaque) sticky header — no backdrop-filter, so scrolling stays smooth.
   A blurred sticky header re-paints the whole page every frame → scroll jank. */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 1px 10px rgba(6,32,63,.06); }
.navbar { padding: .7rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-text strong { font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }
.brand-text small { font-size: .69rem; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }

/* Premium nav links with a sliding gold underline (desktop) */
.navbar .nav-link {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: .45rem .7rem;
  margin: 0 .05rem;
  border-radius: 8px;
  transition: color .2s ease;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .7rem; right: .7rem; bottom: .28rem;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transform: scaleX(0); transform-origin: center;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.navbar .nav-link:hover { color: var(--blue-700); }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--blue-700); font-weight: 600; }

/* Gap between the nav and the right-side actions */
.navbar-collapse .d-flex.align-items-center { margin-left: .6rem; }

/* Premium call button */
.btn-icon { transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.btn-icon:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); transform: translateY(-1px); }

/* Premium CTA button with a shine sweep on hover */
.nav-cta { position: relative; overflow: hidden; padding: .55rem 1.4rem; border-radius: 999px; letter-spacing: .01em; box-shadow: 0 8px 20px -6px rgba(199, 147, 36, .55); }
.nav-cta::after {
  content: ""; position: absolute; top: 0; left: -125%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.nav-cta:hover::after { left: 140%; }

.navbar-toggler { border: none; font-size: 1.5rem; color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }

/* On mobile (stacked menu), use a soft pill for hover/active instead of the underline */
@media (max-width: 991.98px) {
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link:hover, .navbar .nav-link.active { background: var(--cream-200); }
}

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1, .hero .hero-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; }
.hero .lead { color: var(--ink-2); font-size: 1.12rem; max-width: 38rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--cream-200); color: var(--blue-700); border: 1px solid var(--cream); padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .85rem; max-width: 100%; flex-wrap: wrap; justify-content: center; text-align: center; }
/* Hero trust chips — spaced pills with a soft blue touch */
.hero-trust { gap: .55rem .8rem; margin-top: .25rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1.05rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--blue-700); background: rgba(16, 58, 115, .07); border: 1px solid rgba(16, 58, 115, .14); transition: background .2s ease, transform .2s ease; }
.hero-trust span:hover { background: rgba(16, 58, 115, .12); transform: translateY(-1px); }
.hero-trust .bi { color: var(--blue-600); font-size: 1rem; }
.hero-badge i { color: var(--gold-600); }
.gradient-text { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.hero-visual { background: var(--grad-blue); border-radius: var(--radius); color: #fff; padding: 2rem; box-shadow: var(--shadow); }

/* ---------- Stats ---------- */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm); height: 100%; position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.stat-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-gold); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; background: linear-gradient(135deg, var(--blue-600), var(--gold-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--ink-2); font-size: .9rem; font-weight: 500; }

/* ---------- Cards ---------- */
.card-premium { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; height: 100%; overflow: hidden; }
.card-premium:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--cream); }
.card-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: var(--blue-700); background: linear-gradient(135deg, var(--cream-200), var(--cream)); border: 1px solid var(--cream); }
.pill { display: inline-block; background: var(--border-cool); color: var(--blue-600); border-radius: 999px; padding: .28rem .75rem; font-size: .76rem; font-weight: 600; }
.pill-gold { background: var(--cream-200); color: var(--gold-600); border: 1px solid var(--cream); }

/* ---------- Topper / result ---------- */
.topper-card { text-align: center; }
.topper-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .75rem; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #fff; background: var(--grad-blue); border: 3px solid var(--gold-400); }
.topper-photo { padding: 0; overflow: hidden; background: var(--surface); }
.topper-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
/* Square profile box (results page) */
.topper-box { width: 100%; max-width: 150px; aspect-ratio: 1 / 1; margin: 0 auto .8rem; border-radius: 14px; overflow: hidden; border: 2px solid var(--gold-400); background: var(--surface); }
.topper-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topper-box--letter { display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: #fff; background: var(--grad-blue); }
/* Man/woman placeholder icon (when no photo) */
.topper-box--icon { display: grid; place-items: center; }
.topper-box--icon svg { width: 62%; height: 62%; color: #fff; }
.topper-avatar.topper-box--icon svg { width: 58%; height: 58%; }
.topper-male { background: linear-gradient(135deg, #3a6fc4, #0a2a5e); }
.topper-female { background: linear-gradient(135deg, #d15c8a, #9c3568); }
/* Trophy medallion overlapping the photo box */
.topper-figure { position: relative; width: 100%; max-width: 150px; margin: 0 auto .9rem; }
.topper-figure .topper-box { margin: 0 auto; }
.topper-trophy { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f6c453, #d4a017); color: #3a2600; display: grid; place-items: center; font-size: .9rem; border: 2px solid var(--surface, #fff); box-shadow: 0 3px 8px rgba(0,0,0,.22); }

/* Highlight ribbon (sale-tag style corner) */
.topper-highlight { position: relative; overflow: hidden; border: 1px solid var(--gold-400); box-shadow: 0 10px 30px -12px rgba(212,160,23,.5); }
.topper-ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); z-index: 4; background: linear-gradient(135deg, #f6c453, #d4a017); color: #3a2600; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .28rem 2.6rem; box-shadow: 0 2px 6px rgba(0,0,0,.22); }
.topper-ribbon .bi { font-size: .6rem; }
.topper-score { font-family: var(--font-head); font-weight: 800; color: var(--gold-500); font-size: 1.5rem; }
.topper-score.topper-marks { font-size: .95rem; line-height: 1.3; font-weight: 700; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); height: 100%; position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.quote-card::before { content: "\201C"; position: absolute; top: .2rem; right: 1.1rem; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--cream); }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { color: var(--gold-500); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta-card { background: var(--grad-blue); color: #fff; border: none; padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-gold); }
.cta-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,218,163,.28), transparent 70%); }
.cta-title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); position: relative; }
.cta-sub { color: rgba(255,255,255,.88); position: relative; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap { background: var(--cream-50); border-bottom: 1px solid var(--border); padding: .75rem 0; }
.breadcrumb-item a { color: var(--ink-2); text-decoration: none; transition: color .2s ease; }
.breadcrumb-item a:hover { color: var(--blue-700); }
.breadcrumb-item.active { color: var(--ink); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gold-500); font-weight: 600; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--grad-hero); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.4rem); }
.form-control, .form-select { border-radius: 12px; padding: .7rem .9rem; border: 1px solid var(--border); background: var(--bg); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 .2rem rgba(46,107,240,.18); background: var(--surface); }

/* ---------- Article ---------- */
.article-body { font-size: 1.06rem; line-height: 1.85; color: var(--ink); }
.article-body h2 { margin: 1.8rem 0 .8rem; font-size: 1.45rem; }
.article-body p { margin-bottom: 1rem; }
.article-body strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #c9d4e8; padding: 3.5rem 0 1.5rem; margin-top: 1rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-gold); }
.footer-brand { font-family: var(--font-head); font-weight: 700; color: #fff; line-height: 1.1; }
.footer-brand small { color: #9fb0cc; font-weight: 400; }
.footer-head { font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cream); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .55rem; }
.footer-links a { color: #c9d4e8; transition: .2s; display: inline-flex; align-items: center; }
.footer-links a i { color: var(--gold-400); margin-right: .55rem; font-size: .95rem; flex: none; }
.footer-links a:hover { color: var(--cream); padding-left: 4px; }
.footer-contact li { display: flex; gap: .6rem; color: #c9d4e8; }
/* NAP contact list on light sections (readable dark text) */
.nap-contact { list-style: none; padding: 0; margin: 0; }
.nap-contact li { display: flex; gap: .6rem; margin-bottom: .6rem; color: var(--ink); line-height: 1.5; }
.nap-contact i { color: var(--gold-500); margin-top: .2rem; flex-shrink: 0; }
.nap-contact a { color: var(--blue-700); font-weight: 600; text-decoration: none; }
.nap-contact a:hover { text-decoration: underline; }
.footer-contact i { color: var(--gold-400); margin-top: .2rem; }
.footer-contact a { color: #c9d4e8; }
.footer-contact a:hover { color: var(--cream); }
.site-footer .text-muted-2 { color: #9fb0cc !important; }
.footer-socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: .25s; }
.footer-socials a:hover { background: var(--grad-gold); color: var(--blue-900); transform: translateY(-2px); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1rem; }
.footer-legal a { color: #9fb0cc; }
.footer-legal a:hover { color: var(--cream); }

/* ---------- Floating actions ---------- */
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: .7rem; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; box-shadow: var(--shadow); transition: transform .2s ease; }
.fab:hover { transform: scale(1.08); color: #fff; }
.fab-whatsapp { background: #25d366; }
.fab-call { background: var(--blue-600); }
/* Back-to-top: hidden at the top of the page, slides in when scrolled down */
.fab-top { background: var(--grad-blue, #0a2a5e); border: none; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
.fab-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.fab-top:hover { transform: translateY(-2px) scale(1.08); }

/* ---------- Map ---------- */
.map-frame { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Scroll reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto; } }

/* ---------- Utilities ---------- */
.divider-soft { height: 1px; background: var(--border); border: 0; }
.bg-soft { background: linear-gradient(180deg, var(--cream-50), var(--cream-200)); border-block: 1px solid var(--cream); }
.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.list-check li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--gold-600); }

/* ======================================================================
   Brand logo chip — keeps the PAC logo legible on any background/theme
   ====================================================================== */
.brand-logo { background:#fff; border-radius:12px; padding:4px 8px; box-shadow: var(--shadow-sm); display:grid; place-items:center; }
.brand-logo img { display:block; height:34px; width:auto; }
.footer-logo { background:#fff; border-radius:12px; padding:8px 12px; display:inline-grid; place-items:center; }
.footer-logo img { height:42px; width:auto; display:block; }

/* ---------- Hero with real image ---------- */
.hero-photo { position:relative; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.hero-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.hero-photo .badge-float {
  position:absolute; left:14px; bottom:14px; background: color-mix(in srgb, var(--surface) 96%, transparent);
  border:1px solid var(--border); border-radius:14px; padding:.7rem 1rem; box-shadow: var(--shadow-sm);
}
.hero-banner-img { width:100%; height:auto; border-radius: var(--radius); box-shadow: var(--shadow); display:block; }

/* Full-width official banner at the very top of the home page */
.home-banner { display:block; line-height:0; background: var(--blue-900); }
.home-banner img { width:100%; max-width:1600px; height:auto; margin:0 auto; display:block; }

/* ---------- Director feature ---------- */
.director-photo { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); border:3px solid var(--gold-400); }
.director-photo img { width:100%; height:100%; object-fit:cover; display:block; aspect-ratio: 1/1; }
.director-sign { font-family: var(--font-head); font-weight:700; color: var(--blue-600); }

/* ---------- Faculty / people photos ---------- */
.person-photo { width:110px; height:110px; border-radius:50%; object-fit:cover; margin:0 auto .75rem; display:block; border:3px solid var(--gold-400); box-shadow: var(--shadow-sm); }

/* ---------- Banner image (results toppers) ---------- */
.banner-img { width:100%; height:auto; border-radius: var(--radius); box-shadow: var(--shadow); display:block; }

/* ---------- Gallery masonry-ish grid ---------- */
.gallery-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { position:relative; border-radius: var(--radius-sm); overflow:hidden; box-shadow: var(--shadow-sm); cursor:pointer; aspect-ratio: 4/3; background: var(--surface); }
.gallery-item img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content:"\F4D6"; font-family:"bootstrap-icons"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:1.6rem; background: rgba(10,42,94,.0); opacity:0; transition:.3s; }
.gallery-item:hover::after { background: rgba(10,42,94,.45); opacity:1; }
@media (max-width: 991px){ .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px){ .gallery-grid { grid-template-columns: repeat(2, 1fr); gap:10px; } }

/* ---------- Lightbox ---------- */
.lightbox { position:fixed; inset:0; z-index:2000; background:rgba(5,11,24,.92); display:none; align-items:center; justify-content:center; padding:20px; }
.lightbox.open { display:flex; }
.lightbox img { max-width:92vw; max-height:86vh; border-radius:12px; box-shadow: var(--shadow); }
.lightbox .lb-close { position:absolute; top:18px; right:24px; color:#fff; font-size:2rem; background:none; border:none; cursor:pointer; line-height:1; }
.lightbox .lb-nav { position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-size:2.4rem; background:none; border:none; cursor:pointer; padding:0 1rem; }
.lightbox .lb-prev { left:8px; } .lightbox .lb-next { right:8px; }

/* ---------- Trust / marquee strip ---------- */
.trust-strip { background: var(--grad-blue); color:#fff; padding:1.1rem 0; }
.trust-strip .ts-item { display:flex; align-items:center; gap:.6rem; font-weight:600; font-size:.95rem; }
.trust-strip i { color: var(--gold-400); font-size:1.3rem; }

/* ======================================================================
   Responsive refinements (mobile-first polish)
   ====================================================================== */
@media (max-width: 991.98px) {
  /* Mobile nav panel gets a solid surface so links are readable */
  .navbar-collapse {
    background: var(--surface); border:1px solid var(--border); border-radius:16px;
    padding: 1rem; margin-top:.6rem; box-shadow: var(--shadow);
  }
  .navbar .nav-link { padding:.7rem .9rem; }
  .navbar-collapse .d-flex { justify-content:center; }
  .hero { text-align:center; }
  .hero .hero-badge, .hero .d-flex.flex-wrap { justify-content:center; }
  .hero .lead { margin-left:auto; margin-right:auto; }
}
@media (max-width: 575.98px) {
  .section { padding: 2.5rem 0; }
  .btn-lg { padding:.6rem 1.1rem; font-size:.98rem; }
  .hero h1 { font-size: 1.95rem; }
  .stat-num { font-size: 1.6rem; }
  .cta-card { padding: 1.6rem 1.1rem; }
  .floating-actions { right:12px; bottom:12px; }
  .fab { width:50px; height:50px; font-size:1.25rem; }
  .announcement-bar { font-size:.78rem; }
  .display-1 { font-size: 4rem; }
  h2 { font-size: 1.5rem; }
}
/* Ensure media never overflow on any device */
html { overflow-x: hidden; }
img, iframe, svg, video { max-width: 100%; }
h1, h2, h3, h4, .lead, p, a { overflow-wrap: break-word; }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Mobile nav: scroll inside the panel on short/landscape screens */
@media (max-width: 991.98px) {
  .navbar-collapse { max-height: calc(100dvh - 90px); overflow-y: auto; }
}

/* ---------- Small phones (≤ 400px: iPhone SE/12 mini, compact Androids) ---------- */
@media (max-width: 400.98px) {
  .section { padding: 2.2rem 0; }
  .hero h1, .hero .hero-title { font-size: 1.7rem; }
  .hero .lead { font-size: 1rem; }
  .hero-badge { font-size: .78rem; padding: .4rem .8rem; }
  h2 { font-size: 1.38rem; }
  .btn-lg { padding: .55rem 1rem; font-size: .92rem; }
  /* CTA buttons stack full-width for easy tapping */
  .hero .d-flex.flex-wrap .btn-lg,
  .cta-card .btn-lg { flex: 1 1 100%; }
  .stat-card { padding: 1.1rem .7rem; }
  .stat-num { font-size: 1.45rem; }
  .stat-label { font-size: .78rem; }
  .quote-card { padding: 1.3rem 1.1rem; }
  .map-frame { height: 290px; }
  .topper-avatar { width: 72px; height: 72px; font-size: 1.35rem; }
  .person-photo { width: 96px; height: 96px; }
  .accordion-button { font-size: .92rem; }
}

/* ---------- Topper cards on phones (2-up results grid + trophy/ribbon/icons) ---------- */
@media (max-width: 575.98px) {
  .topper-card.p-4 { padding: 1.05rem !important; }
  .topper-figure { max-width: 120px; }
  .topper-score { font-size: 1.28rem; }
  .topper-score.topper-marks { font-size: .85rem; }
  .topper-trophy { width: 27px; height: 27px; font-size: .78rem; bottom: -7px; }
  .topper-ribbon { font-size: .54rem; padding: .22rem 2.2rem; top: 12px; right: -36px; }
  .topper-card h3 { font-size: .95rem; }
}

/* ---------- Extra-small phones (≤ 360px) ---------- */
@media (max-width: 360.98px) {
  .hero h1, .hero .hero-title { font-size: 1.55rem; }
  h2 { font-size: 1.28rem; }
  .announcement-bar { font-size: .72rem; }
  .brand-logo img { height: 30px; }
  .fab { width: 46px; height: 46px; font-size: 1.15rem; }
  .floating-actions { right: 10px; bottom: 10px; gap: .55rem; }
  .trust-strip .ts-item { font-size: .82rem; }
  .card-premium.p-4 { padding: 1rem !important; }
}

/* ======================================================================
   CODED HOME BANNER (.pac-banner) — replaces the flat hero graphic.
   Real H1 + text for SEO, fully responsive. Brand: Navy + Gold + Cream.
   ====================================================================== */
.pac-banner {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,218,163,.30), transparent 55%),
    linear-gradient(180deg, var(--cream-50), var(--bg));
  padding: clamp(3rem, 6vw, 5rem) clamp(.75rem, 3vw, 1.5rem) clamp(1rem, 2.5vw, 1.75rem);
}
.pac-banner-inner {
  max-width: 1240px; margin: 0 auto; padding: clamp(1.1rem,2.4vw,1.9rem);
  background: linear-gradient(135deg, #fffdf9 0%, #fff 55%, var(--cream-200) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
/* decorative navy arcs (left + behind director) */
.pac-banner-inner::before {
  content:""; position:absolute; left:-160px; top:-120px; width:340px; height:340px;
  background: radial-gradient(circle at center, rgba(10,42,94,.10), transparent 68%);
  border-radius:50%; pointer-events:none;
}
.pac-banner-grid {
  display:grid; grid-template-columns: 1.55fr .95fr; gap: clamp(1rem,2.5vw,2.2rem);
  align-items:center;
}

/* ---- LEFT ---- */
.pac-bn-main { text-align:center; }
/* faint study-themed decorative icons in the banner's vacant lower area */
.pac-bn-decor { display:flex; justify-content:center; flex-wrap:wrap; gap:clamp(1rem,3vw,2.2rem); margin-top:clamp(1.4rem,3vw,2.6rem); opacity:.12; pointer-events:none; }
.pac-bn-decor i { font-size:clamp(1.8rem,3.4vw,2.9rem); color:var(--blue-900); }
@media (max-width:860px){ .pac-bn-decor { margin-top:1rem; opacity:.1; } }
.pac-bn-tagline {
  font-family: var(--font-display); font-style:italic; font-weight:600;
  color: var(--gold-600); font-size: clamp(1rem,1.7vw,1.4rem); margin:0 0 .55rem;
  letter-spacing:.01em;
}
.pac-bn-brand { display:flex; align-items:center; justify-content:center; gap:1rem; margin-bottom:1rem; }
.pac-bn-logo { width:clamp(58px,6vw,86px); height:auto; flex:none; }
.pac-bn-h1 { margin:0; line-height:.95; font-family: var(--font-head); letter-spacing:-.01em; }
.pac-bn-h1 .l1 {
  display:block; font-weight:800; color: var(--blue-900);
  font-size: clamp(1.9rem, 4.4vw, 3.5rem); letter-spacing:.02em;
}
.pac-bn-h1 .l2 {
  display:block; font-weight:700; color: var(--gold-600);
  font-size: clamp(1.05rem, 2.35vw, 1.85rem); letter-spacing:.06em; text-transform:uppercase;
  margin-top:.12rem;
}
.pac-bn-rule {
  margin:.5rem 0 0; font-weight:700; letter-spacing:.22em; text-transform:uppercase;
  color: var(--blue-700); font-size: clamp(.62rem,1vw,.82rem);
}
.pac-bn-rule b { color: var(--gold-500); font-weight:700; margin:0 .35rem; }

.pac-bn-subjects { display:grid; grid-template-columns: repeat(3,1fr); gap:.6rem; margin:1.2rem 0 1.1rem; }
.pac-bn-subj {
  display:flex; gap:.6rem; align-items:flex-start;
  background: var(--grad-blue); color:#fff; border-radius: var(--radius-sm);
  padding:.7rem .75rem; box-shadow: var(--shadow-sm);
}
.pac-bn-subj .ic {
  flex:none; width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  background: var(--grad-gold); color: var(--blue-900); font-size:1.05rem;
}
.pac-bn-subj .tx { font-size:.72rem; line-height:1.25; color: #e8eefb; }
.pac-bn-subj .tx b { display:block; color:#fff; font-size:.92rem; letter-spacing:.02em; margin-bottom:.12rem; font-family: var(--font-head); }

.pac-bn-features {
  list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:.55rem 1.4rem;
}
.pac-bn-features li {
  display:flex; align-items:center; gap:.5rem; font-weight:600; font-size:.86rem; color: var(--ink);
}
.pac-bn-features i {
  color: var(--gold-600); font-size:1.15rem;
}

/* ---- RIGHT (director) ---- */
.pac-bn-director { position:relative; align-self:stretch; display:flex; flex-direction:column; justify-content:center; }
.pac-bn-15 {
  position:absolute; top:-4px; right:0; z-index:3; text-align:center; line-height:1;
  background: var(--grad-blue); color:#fff; border:2px solid var(--gold-400);
  border-radius:14px; padding:.5rem .55rem; box-shadow: var(--shadow-sm);
}
.pac-bn-15 .num { display:block; font-family: var(--font-head); font-weight:800; font-size:1.5rem; color: var(--gold-400); }
.pac-bn-15 .num sup { font-size:.7em; }
.pac-bn-15 .lbl { display:block; font-size:.52rem; letter-spacing:.08em; text-transform:uppercase; margin-top:.15rem; }
.pac-bn-photo {
  margin:0 auto; width:min(100%,300px); aspect-ratio: 300/360; overflow:hidden;
  border-radius: 50% 50% 46% 46% / 38% 38% 12% 12%;
  border:4px solid var(--gold-400);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(255,255,255,.6);
  background: var(--blue-900);
}
.pac-bn-photo img { width:100%; height:100%; object-fit:cover; object-position:50% 8%; display:block; }
.pac-bn-name { display:block; text-align:center; margin-top:.7rem; }
.pac-bn-name .nm { display:block; font-family: var(--font-display); font-weight:700; font-size: clamp(1.25rem,2.4vw,1.7rem); color: var(--blue-900); }
.pac-bn-name .ql { display:block; color: var(--gold-600); font-weight:600; font-size:.9rem; margin:.1rem 0 .25rem; }
.pac-bn-name .dg {
  display:inline-block; background: var(--grad-blue); color:#fff; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; font-size:.72rem; padding:.25rem 1.1rem; border-radius:999px;
}

/* ---- bottom strip ---- */
.pac-bn-strip {
  margin-top: clamp(1rem,2.2vw,1.6rem); padding-top:1rem; border-top:1px solid var(--border);
  display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; align-items:center; justify-content:space-between;
  font-size:.82rem; font-weight:600; color: var(--ink-2);
}
.pac-bn-strip > * { min-width:0; overflow-wrap:anywhere; }
.pac-bn-strip i { color: var(--gold-600); margin-right:.35rem; }
.pac-bn-strip a { color: var(--ink-2); }
.pac-bn-strip a:hover { color: var(--blue-700); }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .pac-banner-grid { grid-template-columns: 1fr; }
  .pac-bn-director { order:-1; margin-bottom:.5rem; }
  .pac-bn-photo { width:min(100%,240px); }
  .pac-bn-15 { right:8px; }
  .pac-bn-subjects { grid-template-columns: 1fr; }
  .pac-bn-features { gap:.5rem 1rem; }
  .pac-bn-strip { justify-content:center; text-align:center; }
}
@media (max-width: 420px) {
  .pac-banner-inner { padding:.9rem .8rem; border-radius: var(--radius-sm); }
  .pac-bn-brand { gap:.65rem; }
  .pac-bn-logo { width:52px; }
  .pac-bn-h1 .l1 { font-size:1.55rem; }
  .pac-bn-h1 .l2 { font-size:.92rem; }
  .pac-bn-rule { font-size:.56rem; letter-spacing:.16em; }
  .pac-bn-tagline { font-size:.92rem; }
  .pac-bn-subj { padding:.6rem .65rem; }
  .pac-bn-features li { font-size:.8rem; }
  .pac-bn-photo { width:min(100%,200px); }
  .pac-bn-15 { padding:.4rem .45rem; border-radius:11px; }
  .pac-bn-15 .num { font-size:1.2rem; }
  .pac-bn-15 .lbl { font-size:.46rem; }
  .pac-bn-name .nm { font-size:1.15rem; }
  .pac-bn-name .ql { font-size:.8rem; }
  .pac-bn-strip { font-size:.74rem; }
}
@media (max-width: 330px) {
  .pac-bn-h1 .l1 { font-size:1.35rem; }
  .pac-bn-h1 .l2 { font-size:.8rem; }
  .pac-bn-brand { flex-direction:column; align-items:center; gap:.5rem; }
}

/* footer credit line */
.footer-credit { color: #9fb0cc; padding-top: .25rem; }
.footer-credit a { color: var(--cream); font-weight: 600; }
.footer-credit a:hover { color: var(--cream-200); text-decoration: underline; }

/* ----------------------------------------------------------------------
   HOME VIDEO (15 Years of Success) — cinematic card under the stats row
   ---------------------------------------------------------------------- */
.video-card {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-900);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-sound {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 32, 63, .9); color: #fff; font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(6, 32, 63, .35);
  transition: background .25s ease, transform .25s ease;
}
.video-sound:hover { background: var(--gold-500); transform: scale(1.08); }
@media (max-width: 575.98px) {
  .video-sound { width: 42px; height: 42px; right: 10px; bottom: 10px; font-size: 1.05rem; }
}
