/* =========================================================
   Shri Karni College of Pharmacy — premium theme
   Palette from the college crest: navy, crimson, laurel green, gold
   ========================================================= */
:root {
    --navy: #0f2346;
    --navy-2: #0a1830;
    --navy-3: #1c3a6b;
    --red: #b3122a;
    --red-2: #8e0e21;
    --green: #2e7d32;
    --gold: #c9a24a;
    --gold-2: #e3c77d;
    --cream: #faf6ee;
    --ink: #1d2433;
    --muted: #667085;
    --line: #ebe4d4;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 14px -6px rgba(15, 35, 70, .18);
    --shadow: 0 18px 40px -18px rgba(15, 35, 70, .35);
    --shadow-lg: 0 30px 70px -25px rgba(15, 35, 70, .45);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; font-size: 1rem; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, .font-head { font-family: var(--font-head); color: var(--navy); letter-spacing: -.01em; }
a { color: var(--red); transition: color .2s; }
a:hover { color: var(--red-2); }
img { max-width: 100%; }
::selection { background: var(--gold); color: #fff; }

/* ---------- Buttons ---------- */
.btn { transition: all .3s var(--ease); }
.btn-accent { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.6rem; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(179, 18, 42, .7); }
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(179, 18, 42, .8); }
.btn-navy { background: var(--navy); color: #fff; border-radius: 999px; padding: .75rem 1.6rem; font-weight: 600; border: 0; }
.btn-navy:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy-2); border-radius: 999px; padding: .75rem 1.6rem; font-weight: 700; border: 0; }
.btn-gold:hover { color: var(--navy-2); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201, 162, 74, .9); }
.btn-outline-light { border-radius: 999px; padding: .75rem 1.6rem; font-weight: 600; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn i.bi-arrow-right, .read-more i { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover i.bi-arrow-right, .read-more:hover i { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-2); color: #c3cee0; padding: .5rem 0; font-size: .82rem; border-bottom: 1px solid rgba(201,162,74,.25); }
.topbar a { color: #c3cee0; text-decoration: none; }
.topbar a:hover { color: var(--gold-2); }
.topbar i { color: var(--gold); margin-right: .3rem; }
.topbar-social { display: inline-flex; gap: .8rem; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.15); }
.topbar-social i { margin: 0; color: inherit; }

/* ---------- Brand header ---------- */
.brand-header { background: #fff; padding: 1rem 0; position: relative; }
.brand-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--green) 0 33%, var(--gold) 33% 66%, var(--red) 66%); }
.brand-logo img { width: 96px; height: auto; transition: transform .5s var(--ease); }
.brand-logo:hover img { transform: rotate(-4deg) scale(1.04); }
.brand-text { min-width: 0; }
.brand-trust { font-size: .72rem; color: var(--green); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 800; color: var(--red); font-size: clamp(1.15rem, 3.1vw, 2.15rem); line-height: 1.12; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; margin: .1rem 0 .2rem; }
.brand-name:hover { color: var(--red-2); }
.brand-address { color: var(--navy); font-weight: 600; font-size: .88rem; }
.brand-address i { color: var(--red); }
.brand-recog { color: var(--muted); font-size: .8rem; margin-top: .2rem; align-items: center; gap: .6rem; flex-wrap: wrap; }
.brand-recog .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.header-info { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.header-info small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.header-info strong { font-size: 1.1rem; }
.hi-icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--red); font-size: 1.2rem; border: 1px solid var(--gold-2); }

/* ---------- Navigation ---------- */
.main-nav { background: var(--navy); padding: 0; transition: box-shadow .3s, background .3s; }
.main-nav.scrolled { background: rgba(15, 35, 70, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.main-nav .navbar-toggler { color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: 1.5rem; padding: .15rem .55rem; margin: .5rem 0; border-radius: 10px; }
.main-nav .navbar-toggler:focus { box-shadow: none; }
.nav-mini-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .1em; }
.nav-mini-brand img { width: 36px; height: 36px; background: #fff; border-radius: 50%; padding: 2px; }
.nav-mini-brand:hover { color: var(--gold-2); }
.main-nav .nav-link { color: #dfe6f1; font-weight: 600; font-size: .92rem; padding: 1.05rem .75rem !important; position: relative; letter-spacing: .01em; }
.main-nav .nav-link::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 3px 3px 0 0; transition: all .35s var(--ease); }
.main-nav .nav-link:hover { color: #fff; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { left: .75rem; right: .75rem; }
.main-nav .nav-link.active { color: var(--gold-2); }
@media (max-width: 991.98px) {
    .main-nav .offcanvas { background: var(--navy-2); max-width: 310px; }
    .main-nav .offcanvas-header { background: #fff; }
    .main-nav .nav-link { border-bottom: 1px solid rgba(255,255,255,.07); padding: .9rem 1rem !important; }
    .main-nav .nav-link::after { display: none; }
    .main-nav .nav-link.active { background: rgba(201,162,74,.12); border-left: 3px solid var(--gold); }
    .brand-logo img { width: 66px; }
    .brand-trust { font-size: .62rem; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--cream); border-bottom: 1px solid var(--line); font-size: .9rem; }
.ticker-label { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; font-weight: 700; padding: .6rem 1.6rem .6rem 1.1rem; white-space: nowrap; flex-shrink: 0; letter-spacing: .05em; text-transform: uppercase; font-size: .78rem; clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
.ticker-track { overflow: hidden; flex: 1; min-width: 0; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-block; padding-left: 100%; animation: ticker 40s linear infinite; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--navy); text-decoration: none; margin-right: 3.5rem; font-weight: 600; }
.ticker-move a:hover { color: var(--red); }
.tk-dot { display: inline-block; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); margin-right: .7rem; vertical-align: middle; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-2); }
.hero .carousel-item { height: clamp(480px, 80vh, 760px); overflow: hidden; }
.hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.02); }
.hero .carousel-item.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero .carousel-item::after { content: ''; position: absolute; inset: 0; background:
    linear-gradient(100deg, rgba(10,24,48,.94) 0%, rgba(10,24,48,.72) 42%, rgba(10,24,48,.25) 75%, rgba(10,24,48,.4) 100%),
    linear-gradient(0deg, rgba(10,24,48,.6) 0%, transparent 30%); }
.hero-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-caption h2 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.1; max-width: 660px; margin-bottom: 1.2rem; }
.hero-caption p { color: #d5deeb; font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 540px; line-height: 1.7; }
.hero-kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold-2); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.2rem; }
.hero-kicker::before { content: ''; width: 42px; height: 2px; background: var(--gold); }
.carousel-item.active .hero-anim > * { animation: heroUp .9s var(--ease) both; }
.carousel-item.active .hero-anim > *:nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-anim > *:nth-child(3) { animation-delay: .24s; }
.carousel-item.active .hero-anim > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero .carousel-indicators { justify-content: flex-start; margin: 0; left: max(12px, calc((100vw - 1296px) / 2 + 12px)); right: auto; bottom: 5.5rem; z-index: 4; }
.hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.45); opacity: 1; transition: all .4s; margin: 0 6px 0 0; }
.hero .carousel-indicators .active { width: 60px; background: var(--gold); }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 50px; height: 50px; top: auto; bottom: 5rem; z-index: 4; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); opacity: 1; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.hero .carousel-control-prev { left: auto; right: calc(max(12px, (100vw - 1296px) / 2 + 12px) + 60px); }
.hero .carousel-control-next { right: max(12px, calc((100vw - 1296px) / 2 + 12px)); }
.hero .carousel-control-prev:hover, .hero .carousel-control-next:hover { background: var(--red); border-color: var(--red); }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { width: 1rem; height: 1rem; }
@media (max-width: 991.98px) { .hero .carousel-control-prev, .hero .carousel-control-next { display: none; } .hero .carousel-indicators { bottom: 1.5rem; } }

/* Glass admission panel over the hero */
.hero-panel-wrap { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: flex; align-items: center; }
.hero-panel { pointer-events: auto; margin-left: auto; width: 350px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-radius: var(--radius); padding: 1.8rem; color: #fff; box-shadow: var(--shadow-lg); animation: heroUp 1s .4s var(--ease) both; margin-top: -3rem; }
.hero-panel .hp-tag { display: inline-flex; align-items: center; gap: .45rem; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
.hero-panel .hp-tag .blink { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); animation: pulse 1.4s infinite; }
.hero-panel h3 { color: #fff; font-size: 1.5rem; margin: 1rem 0 .3rem; }
.hero-panel ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.hero-panel li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed rgba(255,255,255,.2); font-size: .88rem; color: #e3e9f3; }
.hero-panel li:last-child { border-bottom: 0; }
.hero-panel li i { color: var(--gold-2); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.admission-strip { background: linear-gradient(90deg, var(--red-2), var(--red), var(--red-2)); color: #fff; position: relative; overflow: hidden; }
.admission-strip::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); animation: shine 4s infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.admission-strip .container { position: relative; }
.admission-strip .blink { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); margin-right: .6rem; animation: pulse 1.4s infinite; }

/* ---------- Highlights ---------- */
.highlights { margin-top: 2.5rem; position: relative; z-index: 5; }
.hero + .highlights { margin-top: -56px; }
.highlight-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; display: flex; gap: 1.1rem; align-items: center; height: 100%; position: relative; overflow: hidden; transition: transform .4s var(--ease); }
.highlight-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--red)); }
.highlight-card:hover { transform: translateY(-6px); }
.highlight-card i { width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--red); background: var(--cream); border: 1px solid var(--gold-2); }
.highlight-card h6 { margin: 0 0 .2rem; font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.highlight-card p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.kicker { color: var(--red); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .76rem; display: inline-flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.section-head .kicker::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
.section-head h2, .display-title { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.18; }
.section-head p { color: var(--muted); margin-top: 1rem; }
.bar { width: 90px; height: 12px; margin: 1.1rem auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='12'%3E%3Cpath d='M0 6h36M54 6h36' stroke='%23c9a24a' stroke-width='1.5'/%3E%3Cpath d='M45 1l5 5-5 5-5-5z' fill='%23b3122a'/%3E%3C/svg%3E") no-repeat center; }
.bar.left { margin-left: 0; background-position: left center; }

/* Reveal animation (only when JS is on) */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .1s; }
.js [data-reveal-delay="2"] { transition-delay: .2s; }
.js [data-reveal-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero .carousel-item.active img, .ticker-move, .admission-strip::before, .fa-wa { animation: none; }
    .ticker-move { padding-left: 1rem; }
}

/* ---------- About ---------- */
.about-img { position: relative; padding: 0 0 2.5rem 2.5rem; }
.about-img::before { content: ''; position: absolute; left: 0; bottom: 0; width: 70%; height: 75%; border: 2px solid var(--gold); border-radius: var(--radius); }
.about-img > img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-img .badge-year { position: absolute; top: 2rem; right: -1rem; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; padding: 1.1rem 1.4rem; border-radius: var(--radius-sm); text-align: center; box-shadow: var(--shadow); border: 3px solid #fff; }
.about-img .badge-year small { text-transform: uppercase; letter-spacing: .15em; font-size: .68rem; opacity: .85; }
.about-img .badge-year strong { display: block; font-size: 2rem; font-family: var(--font-head); line-height: 1; margin-top: .2rem; }
.about-img .seal { position: absolute; left: 0; bottom: 0; width: 120px; height: 120px; background: #fff; border-radius: 50%; padding: 10px; box-shadow: var(--shadow); z-index: 2; }
.about-img .seal img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 575.98px) { .about-img { padding: 0 0 1.5rem 1.5rem; } .about-img .seal { width: 84px; height: 84px; } .about-img .badge-year { right: .5rem; } }
.rich-text { line-height: 1.85; color: #475467; }
.rich-text img { border-radius: 12px; height: auto; }
.rich-text h3, .rich-text h4 { margin-top: 1.6rem; }
.rich-text strong { color: var(--navy); }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .4rem 0 .4rem 2rem; position: relative; font-weight: 500; }
.check-list li::before { content: "\F26E"; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: .35rem; color: var(--green); font-size: 1.15rem; }

/* ---------- Why choose (dark) ---------- */
.section-dark { background: radial-gradient(circle at 15% 20%, rgba(201,162,74,.14), transparent 40%), radial-gradient(circle at 85% 80%, rgba(179,18,42,.22), transparent 45%), var(--navy-2); color: #c9d4e4; }
.section-dark::before { content: ''; position: absolute; inset: 0; background: url('../img/pattern.svg'); opacity: .6; pointer-events: none; }
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--gold-2); }
.section-dark .section-head p { color: #a9b6ca; }
.why-card { height: 100%; padding: 2.2rem 1.8rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: all .45s var(--ease); position: relative; overflow: hidden; }
.why-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.why-card:hover { background: rgba(255,255,255,.08); transform: translateY(-8px); border-color: rgba(201,162,74,.4); }
.why-card:hover::after { transform: scaleX(1); }
.why-card .num { position: absolute; top: 1rem; right: 1.3rem; font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; color: rgba(255,255,255,.07); line-height: 1; }
.why-card > i { font-size: 2.2rem; color: var(--gold-2); display: inline-block; margin-bottom: 1.2rem; }
.why-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.why-card p { font-size: .92rem; margin: 0; line-height: 1.7; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, rgba(10,24,48,.93), rgba(28,58,107,.88)), url('../img/banner-bg.jpg') center/cover; color: #fff; padding: 4.5rem 0; }
.stat { position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: linear-gradient(transparent, rgba(201,162,74,.6), transparent); }
@media (max-width: 767.98px) { .stat:nth-child(odd)::before { display: none; } }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: #fff; line-height: 1.1; }
.stat span { color: var(--gold-2); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 700; }

/* ---------- Cards ---------- */
.card-x { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; display: flex; flex-direction: column; }
.card-x:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-x .img-wrap { overflow: hidden; position: relative; }
.card-x .card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--cream); transition: transform .8s var(--ease); display: block; }
.card-x:hover .card-img { transform: scale(1.07); }
.card-x .card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-x h3 { font-size: 1.28rem; font-weight: 700; line-height: 1.3; }
.card-x h3 a { color: inherit; text-decoration: none; background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 1px; transition: background-size .4s var(--ease); }
.card-x:hover h3 a { background-size: 100% 1px; }
.card-x .meta { font-size: .82rem; color: var(--muted); }
.read-more { margin-top: auto; font-weight: 700; text-decoration: none; font-size: .9rem; letter-spacing: .02em; }

.course-card { position: relative; }
.course-card .course-badge { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy-2); font-weight: 800; padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; letter-spacing: .04em; }
.course-card .course-icon { height: 180px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 30%, var(--navy-3), var(--navy-2)); font-size: 4rem; position: relative; overflow: hidden; }
.course-card .course-icon::before { content: ''; position: absolute; inset: 0; background: url('../img/pattern.svg'); }
.course-card .course-icon i { position: relative; color: var(--gold-2); transition: transform .6s var(--ease); }
.course-card:hover .course-icon i { transform: rotate(-20deg) scale(1.1); }
.course-facts { list-style: none; padding: 0; margin: .4rem 0 1.1rem; font-size: .9rem; }
.course-facts li { padding: .5rem 0; border-bottom: 1px dashed var(--line); display: flex; gap: .6rem; color: #475467; }
.course-facts i { color: var(--green); }

.facility-card { text-align: center; padding: 2.4rem 1.6rem; position: relative; }
.facility-card .f-icon { width: 78px; height: 78px; border-radius: 22px; background: var(--cream); color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin: .5rem 0 1.5rem; transition: all .6s var(--ease); transform: rotate(45deg); border: 1px solid var(--gold-2); }
.facility-card .f-icon i { transform: rotate(-45deg); transition: transform .6s var(--ease); }
.facility-card:hover .f-icon { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; border-color: transparent; transform: rotate(225deg); }
.facility-card:hover .f-icon i { transform: rotate(-225deg); }
.facility-card h3 { font-size: 1.2rem; }
.facility-row img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-lg); }

.news-card .type-pill { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .75rem; border-radius: 999px; background: var(--cream); color: var(--red); border: 1px solid var(--gold-2); }
.news-card .date-box { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: #fff; border-radius: 12px; text-align: center; padding: .5rem .8rem; box-shadow: var(--shadow); line-height: 1.1; border-bottom: 3px solid var(--gold); }
.news-card .date-box strong { display: block; font-size: 1.45rem; color: var(--red); font-family: var(--font-head); }
.news-card .date-box span { font-size: .68rem; text-transform: uppercase; color: var(--navy); font-weight: 700; letter-spacing: .06em; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; grid-auto-flow: dense; }
.gallery-grid.featured > :first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 575.98px) { .gallery-grid.featured > :first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; } }
.gallery-item { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item::after { content: '\F52A'; font-family: 'bootstrap-icons'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; background: rgba(10,24,48,.45); opacity: 0; transition: opacity .4s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: .88rem; font-weight: 600; transform: translateY(100%); transition: transform .4s var(--ease); }
.gallery-item:hover .cap { transform: none; }
.album-filter .btn { border-radius: 999px; margin: .25rem; padding: .5rem 1.3rem; font-weight: 600; border-color: var(--line); color: var(--navy); background: #fff; }
.album-filter .btn:hover { border-color: var(--gold); }
.album-filter .btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Messages / Vision ---------- */
.message-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.4rem; position: relative; height: 100%; border-top: 4px solid var(--gold); }
.message-card .person { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.message-card .quote-icon { position: absolute; top: 1rem; right: 1.6rem; font-size: 5rem; color: rgba(201,162,74,.2); line-height: 1; }
.vm-card { border-radius: var(--radius); padding: 2.6rem; color: #fff; height: 100%; position: relative; overflow: hidden; }
.vm-card::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255,255,255,.06); }
.vm-card.v { background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.vm-card.m { background: linear-gradient(135deg, #2e7d32, #1b5e20); }
.vm-card h3 { color: #fff; }
.vm-card > i { color: var(--gold-2); }

/* ---------- Page banner ---------- */
.page-banner { background: linear-gradient(100deg, rgba(10,24,48,.96) 20%, rgba(15,35,70,.75)), url('../img/banner-bg.jpg') center 60%/cover; padding: 4.5rem 0 4rem; color: #fff; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: url('../img/pattern.svg'); opacity: .5; }
.page-banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--red), transparent); }
.banner-kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold-2); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 700; margin-bottom: .6rem; }
.banner-kicker::before { content: ''; width: 32px; height: 2px; background: var(--gold); }
.page-banner h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.page-banner .breadcrumb { display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: .45rem 1.1rem; border-radius: 999px; font-size: .86rem; backdrop-filter: blur(6px); }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: #cfd8e6; text-decoration: none; }
.page-banner .breadcrumb-item a:hover { color: var(--gold-2); }
.page-banner .breadcrumb-item.active { color: var(--gold-2); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #8fa1bb; content: '›'; }

/* ---------- Documents & study material ---------- */
.doc-group h3 { font-size: 1.3rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; position: relative; }
.doc-group h3::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 70px; height: 2px; background: var(--gold); }
.doc-item { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: .8rem; transition: all .35s var(--ease); }
.doc-item:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateX(6px); }
.doc-item > i { font-size: 2.1rem; }
.doc-item .doc-title { font-weight: 700; color: var(--navy); }
.doc-item .doc-meta { font-size: .8rem; color: var(--muted); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); background: var(--cream); border-radius: var(--radius); border: 1px dashed var(--gold-2); }
.empty-state i { font-size: 3rem; color: var(--gold); display: block; margin-bottom: .75rem; }

/* ---------- Contact ---------- */
.contact-box { display: flex; gap: 1.1rem; padding: 1.4rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); margin-bottom: 1rem; transition: all .35s var(--ease); }
.contact-box:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.contact-box > i { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-box h6 { margin-bottom: .25rem; font-weight: 700; color: var(--navy); font-family: var(--font-body); }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.4rem; position: relative; overflow: hidden; }
.form-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--navy); }
.form-control, .form-select { padding: .8rem 1rem; border-radius: 12px; border-color: #e1dccf; background-color: #fdfcf9; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .22rem rgba(201,162,74,.18); background-color: #fff; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(110deg, rgba(10,24,48,.96) 30%, rgba(142,14,33,.88)), url('../img/banner-bg.jpg') center/cover; color: #fff; border-radius: 26px; padding: 3.5rem; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(201,162,74,.35); border-radius: 18px; pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta .kicker { color: var(--gold-2); }
@media (max-width: 575.98px) { .cta { padding: 2.4rem 1.5rem; } }

/* ---------- Footer ---------- */
.site-footer { background: radial-gradient(circle at 90% 0%, rgba(201,162,74,.1), transparent 40%), var(--navy-2); color: #b8c4d6; padding-top: 5rem; position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--green) 0 33%, var(--gold) 33% 66%, var(--red) 66%); }
.site-footer h5 { color: #fff; font-size: 1.15rem; margin-bottom: 1.4rem; position: relative; padding-bottom: .8rem; }
.site-footer h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }
.footer-logo { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 5px; box-shadow: 0 0 0 3px rgba(201,162,74,.5); }
.footer-logo img { width: 100%; }
.footer-title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.footer-sub { color: var(--gold-2); font-size: .8rem; margin-top: .2rem; }
.footer-about { font-size: .92rem; line-height: 1.8; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a, .footer-contact a { color: #b8c4d6; text-decoration: none; transition: all .3s var(--ease); }
.footer-links a { display: inline-flex; align-items: center; gap: .6rem; }
.footer-links a::before { content: ''; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); transition: all .3s; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-links a:hover::before { background: var(--gold); }
.footer-contact a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: .9rem; margin-bottom: 1rem; font-size: .93rem; }
.footer-contact i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--gold-2); display: inline-flex; align-items: center; justify-content: center; }
.footer-contact li > span, .footer-contact li > a { padding-top: .4rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-right: .45rem; text-decoration: none; transition: all .3s; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-2); transform: translateY(-3px); }
.footer-recog { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3.5rem; padding: 1.3rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; font-size: .85rem; color: #a3b1c6; text-align: center; }
.footer-recog i { color: var(--gold); margin-right: .3rem; }
.footer-bottom { background: #060f20; padding: 1.15rem 0; font-size: .85rem; color: #8b99ae; }
.footer-bottom .credit { color: var(--gold-2); font-weight: 700; text-decoration: none; background: linear-gradient(var(--gold-2), var(--gold-2)) no-repeat 0 100% / 0 1px; transition: background-size .35s var(--ease), color .3s; padding-bottom: 1px; }
.footer-bottom .credit:hover { color: #fff; background-size: 100% 1px; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: .6rem; z-index: 1030; }
.float-actions a, .float-actions button { width: 52px; height: 52px; border-radius: 50%; border: 0; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); text-decoration: none; transition: transform .3s var(--ease), opacity .3s, visibility .3s; }
.float-actions a:hover, .float-actions button:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.fa-wa { background: #25d366; animation: ring 3s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }
.fa-call { background: linear-gradient(135deg, var(--red), var(--red-2)); }
.float-actions .fa-top { background: var(--navy); font-size: 1.1rem; opacity: 0; visibility: hidden; }
.float-actions .fa-top.show { opacity: 1; visibility: visible; }

.pagination .page-link { color: var(--navy); border-radius: 10px !important; margin: 0 .2rem; border-color: var(--line); }
.pagination .active > .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }

@media (max-width: 767.98px) {
    .section { padding: 4rem 0; }
    .highlights, .hero + .highlights { margin-top: 2rem; }
}

/* =========================================================
   Contact page
   ========================================================= */
.quick-contact { margin-top: -3.2rem; position: relative; z-index: 5; }
.page-banner:has(+ .quick-contact) { padding-bottom: 6.5rem; }
.qc-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.qc-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, var(--navy), var(--navy-3)); opacity: 0; transition: opacity .45s var(--ease); }
.qc-card > * { position: relative; }
.qc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: #fff; }
.qc-card:hover::before { opacity: 1; }
.qc-icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--red); background: var(--cream); border: 1px solid var(--gold-2); margin-bottom: 1.1rem; transition: all .45s var(--ease); }
.qc-card:hover .qc-icon { background: var(--gold); color: var(--navy-2); border-color: var(--gold); transform: rotate(-8deg); }
.qc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--muted); transition: color .3s; }
.qc-value { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); margin: .3rem 0 1rem; word-break: break-word; transition: color .3s; }
.qc-cta { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--red); transition: color .3s; }
.qc-cta i { display: inline-block; transition: transform .3s var(--ease); }
.qc-card:hover .qc-label { color: var(--gold-2); }
.qc-card:hover .qc-value { color: #fff; }
.qc-card:hover .qc-cta { color: var(--gold-2); }
.qc-card:hover .qc-cta i { transform: translateX(5px); }
@media (max-width: 575.98px) { .qc-card { padding: 1.2rem 1rem; } .qc-value { font-size: .92rem; } .qc-icon { width: 46px; height: 46px; font-size: 1.25rem; } }

.contact-shell { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.contact-aside { height: 100%; padding: 3rem 2.6rem; color: #c9d4e4; position: relative; overflow: hidden; display: flex; flex-direction: column;
    background: radial-gradient(circle at 0% 0%, rgba(201,162,74,.22), transparent 45%), radial-gradient(circle at 100% 100%, rgba(179,18,42,.35), transparent 50%), var(--navy-2); }
.contact-aside::before { content: ''; position: absolute; inset: 0; background: url('../img/pattern.svg'); opacity: .55; pointer-events: none; }
.contact-aside > * { position: relative; }
.contact-aside .kicker { color: var(--gold-2); }
.contact-aside h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; }
.aside-lead { color: #a9b6ca; margin: 1rem 0 1.8rem; line-height: 1.7; }
.aside-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.aside-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gold-2); background: rgba(255,255,255,.06); border: 1px solid rgba(201,162,74,.3); }
.aside-list small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #8798b2; font-weight: 700; margin-bottom: .15rem; }
.aside-list span, .aside-list a { color: #fff; text-decoration: none; font-weight: 500; line-height: 1.5; }
.aside-list a:hover { color: var(--gold-2); }
.aside-foot { margin-top: auto; }
.aside-badge { display: flex; align-items: center; gap: .9rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: .9rem 1rem; }
.aside-badge img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 3px; flex-shrink: 0; }
.aside-badge strong { display: block; color: #fff; font-size: .82rem; line-height: 1.35; }
.aside-badge span { display: block; color: var(--gold-2); font-size: .76rem; margin-top: .15rem; }
.aside-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.aside-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all .3s; }
.aside-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-2); }

.contact-form-wrap { padding: 3rem 2.8rem; height: 100%; }
@media (max-width: 575.98px) { .contact-aside, .contact-form-wrap { padding: 2.2rem 1.4rem; } }
.form-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px dashed var(--line); }
.form-step { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-2)); box-shadow: 0 10px 20px -10px rgba(179,18,42,.8); }
.form-head h3 { font-size: 1.5rem; margin: 0 0 .2rem; }
.form-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.form-alert { background: #fff4f4; border: 1px solid #f5c2c7; color: #a4161a; border-radius: 12px; padding: .75rem 1rem; font-size: .9rem; margin-bottom: 1.2rem; }

.icon-field { position: relative; }
.icon-field > i { position: absolute; right: 1.1rem; top: 1.15rem; color: #b8ae96; font-size: 1.1rem; pointer-events: none; transition: color .3s; }
.icon-field .form-control { padding-right: 2.8rem; }
.icon-field .form-control:focus ~ i { color: var(--gold); }
.icon-field .form-control.is-invalid ~ i { right: 2.6rem; }
.form-floating > .form-control { height: calc(3.6rem + 2px); }
.form-floating > textarea.form-control { height: auto; }
.form-floating > label { color: #8a8f98; }
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--navy); }
.form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after { background-color: transparent; }

.chip-label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .6rem; }
.course-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.course-chips .chip { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid #e1dccf; background: #fdfcf9; font-weight: 600; font-size: .88rem; color: var(--navy); cursor: pointer; transition: all .3s var(--ease); user-select: none; }
.course-chips .chip i { width: 0; overflow: hidden; transition: width .3s var(--ease); }
.course-chips .chip:hover { border-color: var(--gold); }
.course-chips .btn-check:checked + .chip { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(15,35,70,.8); }
.course-chips .btn-check:checked + .chip i { width: 1em; color: var(--gold-2); }
.course-chips .btn-check:focus-visible + .chip { outline: 2px solid var(--gold); outline-offset: 2px; }
.privacy-note { font-size: .8rem; color: var(--muted); }
.privacy-note i { color: var(--green); }

.form-success { text-align: center; padding: 3rem 1rem; }
.fs-icon { width: 92px; height: 92px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.8rem; color: #fff; background: linear-gradient(135deg, #2e7d32, #1b5e20); box-shadow: 0 0 0 10px rgba(46,125,50,.12), 0 18px 30px -12px rgba(46,125,50,.7); margin-bottom: 1.6rem; animation: popIn .6s var(--ease) both; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.form-success h3 { font-size: 2rem; }
.form-success p { color: var(--muted); max-width: 420px; margin: .5rem auto 1.8rem; }

.map-section { position: relative; height: 480px; margin-bottom: -1px; }
.map-section iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.map-overlay { position: relative; height: 100%; display: flex; align-items: center; pointer-events: none; }
.map-card { pointer-events: auto; background: #fff; border-radius: var(--radius); padding: 2rem; max-width: 360px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.map-card h3 { font-size: 1.35rem; margin: 0 0 .7rem; }
.map-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }
.map-card p i { color: var(--red); }
@media (max-width: 767.98px) {
    .map-section { height: auto; }
    .map-section iframe { position: relative; height: 320px; display: block; }
    .map-overlay { height: auto; padding-top: 1.2rem; padding-bottom: 2rem; }
    .map-card { max-width: none; width: 100%; box-shadow: var(--shadow); }
}

/* ---------- Captcha ---------- */
.captcha-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha-img { border-radius: 12px; border: 1px solid var(--gold-2); background: var(--cream); user-select: none; }
.captcha-refresh { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; transition: all .3s; }
.captcha-refresh:hover { border-color: var(--gold); color: var(--red); }
.captcha-refresh.spin i { animation: spin .6s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.captcha-input { width: 120px !important; flex: 0 0 auto; text-align: center; font-weight: 700; font-size: 1.15rem; letter-spacing: .1em; }

/* Heading wrapper for brand name (h1 on home) */
.brand-name-wrap { font-size: inherit; line-height: inherit; font-weight: inherit; }

/* Highlighted "Study Material" menu link */
.main-nav .nav-link.nav-highlight { color: var(--navy-2) !important; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-radius: 999px; padding: .5rem 1rem !important; margin: .55rem .2rem; display: inline-flex; align-items: center; gap: .4rem; box-shadow: 0 6px 18px -8px rgba(201,162,74,.9); position: relative; }
.main-nav .nav-link.nav-highlight::after { display: none; }
.main-nav .nav-link.nav-highlight:hover, .main-nav .nav-link.nav-highlight.active { background: #fff; color: var(--red) !important; }
.main-nav .nav-link.nav-highlight::before { content: ''; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid var(--gold); opacity: 0; animation: navPulse 2.4s infinite; }
@keyframes navPulse { 0% { opacity: .8; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.nh-badge { background: var(--red); color: #fff; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .4rem; border-radius: 6px; line-height: 1.2; }
@media (max-width: 991.98px) { .main-nav .nav-link.nav-highlight { margin: .6rem 1rem; justify-content: center; border-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .main-nav .nav-link.nav-highlight::before { animation: none; } }

/* ---------- 404 ---------- */
.nf-section { padding: 5rem 0 6rem; background: radial-gradient(circle at 85% 30%, rgba(201,162,74,.14), transparent 40%), #fff; }
.nf-title { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.15; margin: .4rem 0 1rem; }
.nf-text { color: var(--muted); font-size: 1.05rem; max-width: 520px; }
.nf-search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .35rem .35rem 1.2rem; max-width: 480px; box-shadow: var(--shadow-sm); margin: 1.6rem auto 0; }
@media (min-width: 992px) { .nf-search { margin-left: 0; } }
.nf-search i { color: var(--muted); }
.nf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .5rem 0; }
.nf-search .btn { padding: .6rem 1.4rem; }
.nf-visual { position: relative; text-align: center; padding: 2rem 0; }
.nf-404 { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 800; font-size: clamp(7rem, 18vw, 13rem); line-height: 1; color: var(--navy); letter-spacing: -.04em; text-shadow: 6px 6px 0 var(--cream); }
.nf-capsule { display: inline-flex; align-items: center; justify-content: center; width: .82em; height: .82em; margin: 0 .04em; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-2)); color: var(--gold-2); font-size: .8em; box-shadow: var(--shadow-lg); animation: floaty 4s ease-in-out infinite; }
.nf-capsule i { font-size: .5em; transform: rotate(-35deg); }
.nf-seal { position: absolute; right: 8%; bottom: 0; width: 96px; background: #fff; border-radius: 50%; padding: 6px; box-shadow: var(--shadow); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.nf-links { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.nf-link { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.3rem .5rem; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .9rem; text-align: center; transition: all .35s var(--ease); height: 100%; }
.nf-link i { font-size: 1.5rem; color: var(--red); }
.nf-link:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .nf-capsule { animation: none; } }

/* =========================================================
   Detail pages (course / news) — shared hero, cards, sidebar
   ========================================================= */
.detail-hero { position: relative; overflow: hidden; color: #c9d4e4; padding: 2.2rem 0 7rem;
    background: radial-gradient(circle at 10% 10%, rgba(201,162,74,.18), transparent 40%), radial-gradient(circle at 90% 90%, rgba(179,18,42,.3), transparent 45%), var(--navy-2); }
.detail-hero::before { content: ''; position: absolute; inset: 0; background: url('../img/pattern.svg'); opacity: .6; }
.detail-hero .breadcrumb { display: inline-flex; flex-wrap: wrap; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: .45rem 1.1rem; border-radius: 999px; font-size: .84rem; margin-bottom: 2.5rem; }
.detail-hero .breadcrumb-item, .detail-hero .breadcrumb-item a { color: #cfd8e6; text-decoration: none; }
.detail-hero .breadcrumb-item a:hover { color: var(--gold-2); }
.detail-hero .breadcrumb-item.active { color: var(--gold-2); }
.detail-hero .breadcrumb-item + .breadcrumb-item::before { content: '›'; color: #8fa1bb; }
.dh-badge { display: inline-flex; align-items: center; gap: .45rem; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy-2); font-weight: 800; font-size: .82rem; padding: .4rem 1rem; border-radius: 999px; letter-spacing: .04em; }
.dh-title { color: #fff; font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; margin: 1.1rem 0 1rem; }
.dh-lead { font-size: 1.08rem; line-height: 1.75; color: #c3cee0; max-width: 620px; }
.dh-visual { position: relative; padding: 1.2rem; }
.dh-visual::before { content: ''; position: absolute; inset: 0 2.5rem 2.5rem 0; border: 2px solid rgba(201,162,74,.55); border-radius: 26px; }
.dh-visual img { position: relative; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.dh-emblem { position: relative; aspect-ratio: 4/3; border-radius: 22px; background: linear-gradient(140deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; box-shadow: var(--shadow-lg); }
.dh-emblem i { font-size: 5.5rem; color: var(--gold-2); transform: rotate(-25deg); animation: floaty 5s ease-in-out infinite; }
.dh-emblem span { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: .04em; }

.facts-bar { position: relative; z-index: 5; margin-top: -4.2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: hidden; }
.fact { display: flex; align-items: center; gap: .9rem; padding: 1.5rem 1.4rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact > i { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: var(--cream); color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; border: 1px solid var(--gold-2); }
.fact small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.fact strong { color: var(--navy); font-size: 1rem; }
@media (max-width: 575.98px) { .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.1rem 1.2rem; } .fact:last-child { border-bottom: 0; } }

.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; margin-bottom: 1.6rem; box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) { .content-card { padding: 1.5rem 1.2rem; } }
.cc-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.cc-head h2 { font-size: 1.45rem; margin: 0; }
.cc-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.content-card .rich-text ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.content-card .rich-text ul li { position: relative; padding: .65rem .9rem .65rem 2.4rem; background: var(--cream); border-radius: 10px; font-weight: 500; color: var(--navy); }
.content-card .rich-text ul li::before { content: "\F26E"; font-family: 'bootstrap-icons'; position: absolute; left: .85rem; top: .62rem; color: var(--green); }
.eligibility-card { background: linear-gradient(135deg, var(--cream), #fff); border-left: 4px solid var(--gold); font-size: 1.05rem; color: var(--navy); font-weight: 500; }
.mini-why { display: flex; gap: .9rem; padding: 1.1rem; border-radius: 12px; border: 1px solid var(--line); height: 100%; transition: all .3s var(--ease); }
.mini-why:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.mini-why > span { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--gold); line-height: 1; }
.mini-why h3 { font-size: 1.02rem; margin: 0 0 .25rem; }
.mini-why p { font-size: .86rem; color: var(--muted); margin: 0; }

.sticky-side { position: sticky; top: 90px; }
.apply-card { border-radius: var(--radius); padding: 1.9rem; color: #fff; margin-bottom: 1.5rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(201,162,74,.3), transparent 50%), linear-gradient(150deg, var(--navy), var(--navy-2)); }
.apply-card .hp-tag { display: inline-flex; align-items: center; gap: .45rem; background: var(--red); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
.apply-card .hp-tag .blink { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); animation: pulse 1.4s infinite; }
.apply-card h3 { color: #fff; font-size: 1.5rem; margin: 1rem 0 .8rem; }
.apply-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.apply-card li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: .88rem; }
.apply-card li span { color: #a9b6ca; }
.apply-card li strong { color: #fff; text-align: right; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.side-card h3 { font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); position: relative; }
.side-card h3::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--gold); }
.side-link { display: flex; align-items: center; gap: .8rem; padding: .75rem .6rem; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; transition: all .3s var(--ease); }
.side-link > i:first-child { color: var(--red); font-size: 1.1rem; }
.side-link small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.side-link .bi-chevron-right { color: var(--muted); font-size: .8rem; transition: transform .3s; }
.side-link:hover { background: var(--cream); color: var(--red); }
.side-link:hover .bi-chevron-right { transform: translateX(4px); color: var(--red); }

/* ---------- News article ---------- */
.article-hero { padding-bottom: 9rem; }
.article-hero[style]::after { content: ''; position: absolute; inset: 0; background: var(--hero-img) center/cover; opacity: .14; filter: blur(2px); }
.article-hero .container { z-index: 1; }
.article-head { max-width: 860px; }
.article-head .dh-title { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: #b8c4d6; font-size: .9rem; }
.article-meta i { color: var(--gold-2); margin-right: .3rem; }
.article-card { position: relative; z-index: 5; margin-top: -6rem; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 2.4rem; }
@media (max-width: 575.98px) { .article-card { padding: 1.4rem 1.1rem; border-radius: 18px; } }
.article-cover { display: block; margin: -1rem -1rem 2rem; border-radius: 18px; overflow: hidden; }
.article-cover img { width: 100%; max-height: 480px; object-fit: cover; transition: transform .8s var(--ease); }
.article-cover:hover img { transform: scale(1.03); }
.article-lead { font-size: 1.2rem; line-height: 1.7; color: var(--navy); font-weight: 500; padding-left: 1.2rem; border-left: 3px solid var(--gold); margin-bottom: 1.6rem; }
.article-body { font-size: 1.04rem; }
.article-body > p:first-child::first-letter { float: left; font-family: var(--font-head); font-size: 3.6rem; line-height: .9; font-weight: 800; color: var(--red); margin: .35rem .6rem 0 0; }
.event-strip { display: flex; align-items: center; gap: 1.2rem; background: var(--cream); border: 1px solid var(--gold-2); border-radius: 16px; padding: 1.1rem 1.3rem; margin-bottom: 1.8rem; }
.es-date { text-align: center; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; border-radius: 12px; padding: .6rem .9rem; min-width: 76px; }
.es-date strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; }
.es-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.event-strip small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.event-strip i { color: var(--red); margin-right: .3rem; }
.attach-card { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.1rem 1.3rem; border: 1px dashed var(--gold); border-radius: 16px; background: var(--cream); text-decoration: none; color: var(--navy); transition: all .3s var(--ease); flex-wrap: wrap; }
.attach-card:hover { box-shadow: var(--shadow); color: var(--navy); }
.attach-card .ac-icon { width: 52px; height: 52px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.attach-card small { display: block; color: var(--muted); }
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share-bar > span { font-weight: 700; color: var(--navy); margin-right: .4rem; font-size: .9rem; }
.share-bar a, .share-bar button { width: 42px; height: 42px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem; text-decoration: none; transition: transform .3s var(--ease); }
.share-bar a:hover, .share-bar button:hover { transform: translateY(-3px); color: #fff; }
.sh-wa { background: #25d366; } .sh-fb { background: #1877f2; } .sh-x { background: #111; } .sh-copy { background: var(--navy); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.pn-item { display: block; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: #fff; transition: all .3s var(--ease); }
.pn-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.pn-item small { display: block; color: var(--red); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; }
.pn-item span { color: var(--navy); font-weight: 600; font-family: var(--font-head); }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } }
.recent-item { display: flex; gap: .9rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); text-decoration: none; align-items: center; }
.recent-item img { width: 72px; height: 58px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--cream); }
.recent-item strong { display: block; color: var(--navy); font-size: .92rem; line-height: 1.35; transition: color .3s; }
.recent-item small { color: var(--muted); font-size: .76rem; }
.recent-item:hover strong { color: var(--red); }
.news-card .type-pill { white-space: nowrap; }

/* ---------- Study material ---------- */
.study-hero { padding-bottom: 6rem; }
.study-hero .breadcrumb { margin-bottom: 2rem; }
.study-search { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 999px; padding: .45rem .45rem .45rem 1.4rem; margin: 2rem auto 0; max-width: 640px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.study-search > i { color: var(--muted); font-size: 1.1rem; }
.study-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: .7rem 0; font-size: 1rem; color: var(--ink); }
.study-search .btn { padding: .75rem 1.8rem; }
@media (max-width: 575.98px) { .study-search { padding-left: 1rem; } .study-search .btn { padding: .7rem 1.1rem; } }
.study-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 1.6rem; color: #b8c4d6; font-size: .9rem; }
.study-stats strong { color: var(--gold-2); font-family: var(--font-head); font-size: 1.15rem; margin-right: .2rem; }
.study-stats i { color: var(--gold-2); }

.filter-panel { position: relative; z-index: 5; margin-top: -3.2rem; margin-bottom: 2.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.3rem 1.6rem; }
.fp-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .45rem 0; }
.fp-row + .fp-row { border-top: 1px dashed var(--line); }
.fp-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); min-width: 110px; }
.fp-label i { color: var(--red); margin-right: .25rem; }
.fp-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.fp-pill { padding: .45rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .86rem; text-decoration: none; transition: all .3s var(--ease); background: #fdfcf9; }
.fp-pill:hover { border-color: var(--gold); color: var(--navy); }
.fp-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fp-active { margin-top: .6rem; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.fp-active a { font-weight: 700; text-decoration: none; }

.sm-card { --tone: var(--navy); --tone-bg: #eef2f8; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: all .45s var(--ease); }
.sm-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone); }
.sm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tone-red { --tone: #c62828; --tone-bg: #fdecec; } .tone-blue { --tone: #1565c0; --tone-bg: #e8f1fc; } .tone-orange { --tone: #e67e22; --tone-bg: #fdf1e6; } .tone-green { --tone: #2e7d32; --tone-bg: #e9f5ea; } .tone-gold { --tone: var(--gold); --tone-bg: var(--cream); }
.sm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sm-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--tone-bg); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.sm-icon i { color: var(--tone) !important; }
.sm-ext { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--tone); background: var(--tone-bg); padding: .25rem .6rem; border-radius: 6px; }
.sm-subject { align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: .4rem; }
.sm-card h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: .5rem; }
.sm-card p { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.sm-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: auto 0 1.1rem; padding-top: .4rem; }
.sm-meta span { font-size: .76rem; color: var(--navy); background: var(--cream); padding: .25rem .6rem; border-radius: 6px; }
.sm-meta i { color: var(--gold); }
.sm-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem; border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--navy); background: var(--cream); border: 1px solid var(--line); transition: all .35s var(--ease); }
.sm-card:hover .sm-btn { background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; border-color: transparent; }

.study-empty { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 3.5rem 1.5rem; box-shadow: var(--shadow-sm); }
.se-icon { width: 96px; height: 96px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--gold-2); background: linear-gradient(140deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow-lg); margin-bottom: 1.5rem; transform: rotate(-6deg); }
.study-empty h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.study-empty > p { color: var(--muted); max-width: 520px; margin: .6rem auto 1.5rem; }
.se-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; max-width: 900px; margin: 1.5rem auto 0; text-align: left; }
.se-types > div { padding: 1.2rem; border-radius: 14px; border: 1px dashed var(--gold-2); background: var(--cream); }
.se-types i { font-size: 1.5rem; color: var(--red); display: block; margin-bottom: .5rem; }
.se-types strong { display: block; color: var(--navy); }
.se-types span { font-size: .82rem; color: var(--muted); }

/* ---------- Gallery (masonry) ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.gh-count { display: flex; align-items: center; gap: .8rem; background: var(--cream); border: 1px solid var(--gold-2); border-radius: 16px; padding: .8rem 1.3rem; }
.gh-count strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--red); line-height: 1; }
.gh-count span { font-size: .8rem; color: var(--navy); font-weight: 600; max-width: 110px; line-height: 1.3; }
.album-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; padding: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; box-shadow: var(--shadow-sm); }
@media (max-width: 575.98px) { .album-tabs { border-radius: 18px; } }
.at-btn { border: 0; background: transparent; padding: .55rem 1.2rem; border-radius: 999px; font-weight: 600; color: var(--navy); font-size: .9rem; transition: all .3s var(--ease); }
.at-btn span { display: inline-block; min-width: 1.6em; padding: .05rem .4rem; margin-left: .3rem; border-radius: 999px; background: var(--cream); font-size: .74rem; color: var(--red); }
.at-btn:hover { background: var(--cream); }
.at-btn.active { background: var(--navy); color: #fff; }
.at-btn.active span { background: var(--gold); color: var(--navy-2); }
.masonry { columns: 3 300px; column-gap: 1.2rem; }
.m-item { display: block; position: relative; margin-bottom: 1.2rem; border-radius: 16px; overflow: hidden; break-inside: avoid; box-shadow: var(--shadow-sm); transform: translateZ(0); }
.m-item.is-hidden { display: none; }
.m-item img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.m-item:hover img { transform: scale(1.08); }
.m-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 1.1rem; background: linear-gradient(180deg, rgba(10,24,48,.1) 0%, rgba(10,24,48,0) 40%, rgba(10,24,48,.85) 100%); opacity: 0; transition: opacity .45s var(--ease); }
.m-item:hover .m-overlay, .m-item:focus-visible .m-overlay { opacity: 1; }
.m-zoom { align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); color: #fff; display: inline-flex; align-items: center; justify-content: center; transform: scale(.6); transition: transform .45s var(--ease); }
.m-item:hover .m-zoom { transform: none; }
.m-info { color: #fff; transform: translateY(12px); transition: transform .45s var(--ease); }
.m-item:hover .m-info { transform: none; }
.m-info small { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--navy-2); background: var(--gold-2); padding: .15rem .55rem; border-radius: 6px; margin-bottom: .35rem; }
.m-info strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
@media (hover: none) { .m-overlay { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(10,24,48,.8) 100%); } .m-zoom { display: none; } .m-info { transform: none; } }

/* =========================================================
   Mobile hardening
   ========================================================= */
/* Nothing may cause sideways scrolling (clip keeps position: sticky working) */
main, .site-footer { overflow-x: clip; }
@media (max-width: 991.98px) {
    /* Bootstrap g-5 gutters are wider than the container padding on phones */
    .row.g-5, .row.g-lg-5 { --bs-gutter-x: 1.5rem; }
    /* Side-slide reveals become fade-up on small screens */
    .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(30px); }
    .sticky-side { position: static; }
}
/* Comfortable tap targets (min ~44px hit area) */
.hero .carousel-indicators [data-bs-target] { box-sizing: content-box; border-top: 12px solid transparent; border-bottom: 12px solid transparent; background-clip: padding-box; }
.read-more { display: inline-block; padding: .6rem 0; }
.footer-contact a, .footer-bottom a, .aside-list a { display: inline-block; padding: .35rem 0; }
.footer-contact li > span, .footer-contact li > a { padding-top: .1rem; }
@media (max-width: 575.98px) {
    .section { padding: 3.5rem 0; }
    .section-head { margin-bottom: 2.2rem; }
    .hero .carousel-item { height: 560px; }
    .hero-caption h2 { font-size: 2rem; }
    .hero-caption .btn-lg { padding: .7rem 1.3rem; font-size: 1rem; }
    .brand-header { padding: .7rem 0; }
    .brand-address { font-size: .78rem; }
    .float-actions { right: 12px; bottom: 12px; }
    .float-actions a, .float-actions button { width: 46px; height: 46px; font-size: 1.2rem; }
    .cta { border-radius: 18px; }
    .dh-title { font-size: 2rem; }
    .detail-hero .breadcrumb { margin-bottom: 1.5rem; }
}
@media (max-width: 767.98px) {
    .nf-404 { font-size: clamp(5.5rem, 27vw, 9rem); }
    .nf-seal { display: none; }
    .nf-section { padding: 3rem 0 4rem; }
}
