:root {
    --primary: #0f2f66;
    --primary-light: #1a4b96;
    --primary-dark: #081b3d;
    --secondary: #f4801f;
    --accent-yellow: #ffc531;
    --accent-green: #1f9d5a;
    --navy: #101f36;
    --gray-700: #465061;
    --gray-500: #7a8699;
    --bg-light: #f6f8fc;
    --border: #e7ebf3;
    --radius: 16px;
    --shadow: 0 15px 40px rgba(15,47,102,.08);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--navy); background: #fff; line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--navy); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: all .2s ease; }
img { max-width: 100%; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.bg-light-section { background: var(--bg-light); }

/* ---------- Section heading ---------- */
.section-tag { display: inline-flex; align-items: center; gap: 8px; background: #eaf1fd; color: var(--primary); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 7px 16px; border-radius: 30px; margin-bottom: 14px; }
.section-title { font-size: 2.1rem; margin-bottom: 14px; }
.section-title span { color: var(--secondary); }
.section-desc { color: var(--gray-500); max-width: 620px; }
.section-header { margin-bottom: 46px; }
.section-header.text-center { margin-left: auto; margin-right: auto; }
.section-header.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: 11px 26px; font-size: .93rem; }
.btn-brand-primary, .btn-cta { background: var(--secondary); color: #fff !important; border: none; }
.btn-brand-primary:hover, .btn-cta:hover { background: #db6d10; color: #fff; }
.btn-brand-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-brand-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--accent-yellow); }
.btn-lg-pill { padding: 14px 34px; border-radius: 40px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--primary-dark); color: #cfe0ff; font-size: .82rem; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-info span { margin-right: 18px; }
.topbar-info i { color: var(--accent-yellow); margin-right: 5px; }
.topbar-social a { color: #cfe0ff; margin-left: 12px; font-size: .85rem; }
.topbar-social a:hover { color: var(--accent-yellow); }

/* ---------- Header ---------- */
.site-header { background: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 18px rgba(15,47,102,.06); transition: padding .25s ease; }
.site-header.scrolled { padding: 8px 0; box-shadow: 0 6px 24px rgba(15,47,102,.12); }
.navbar { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand img { height: 48px; width: auto; }
.navbar-brand i { font-size: 2rem; color: var(--primary); }
.navbar-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.navbar-brand strong { font-family: var(--font-heading); font-size: 1.08rem; color: var(--primary); }
.navbar-brand small { font-size: .72rem; color: var(--secondary); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.navbar-nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.navbar-nav > li { position: relative; }
.navbar-nav > li > a { display: flex; align-items: center; gap: 5px; padding: 10px 14px; font-weight: 600; font-size: .93rem; color: var(--navy); border-radius: 8px; }
.navbar-nav > li > a:hover, .navbar-nav > li.active > a { color: var(--primary); background: #f2f6ff; }
.navbar-nav > li > a i { font-size: .65rem; margin-top: 2px; }

.dropdown-panel { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: 12px; box-shadow: 0 20px 45px rgba(15,47,102,.15); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 100; }
.has-dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel li a { display: block; padding: 9px 14px; border-radius: 8px; font-size: .89rem; font-weight: 500; color: var(--gray-700); }
.dropdown-panel li a:hover { background: var(--bg-light); color: var(--primary); }

.navbar-toggler { display: none; background: none; border: none; font-size: 1.4rem; color: var(--primary); }
.nav-close { display: none; }
.nav-overlay { display: none; }

@media (max-width: 991.98px) {
    .navbar-toggler { display: block; }
    .main-nav { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: #fff; flex-direction: column; align-items: stretch; padding: 24px; overflow-y: auto; transition: right .3s ease; z-index: 1050; gap: 10px; }
    .main-nav.open { right: 0; }
    .navbar-nav { flex-direction: column; gap: 0; }
    .navbar-nav > li > a { padding: 12px 10px; }
    .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: var(--bg-light); }
    .has-dropdown.open .dropdown-panel { display: block; }
    .nav-close { display: block; align-self: flex-end; background: none; border: none; font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }
    .nav-overlay.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1040; }
    .btn-cta { margin-top: 10px; justify-content: center; }
}

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; }
.hero-slide { position: relative; min-height: 92vh; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,27,61,.92) 0%, rgba(15,47,102,.75) 45%, rgba(15,47,102,.35) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 680px; }
.hero-content .section-tag { background: rgba(255,255,255,.15); color: var(--accent-yellow); backdrop-filter: blur(4px); }
.hero-content h1 { font-size: 3.1rem; color: #fff; margin-bottom: 18px; line-height: 1.2; }
.hero-content p { font-size: 1.1rem; color: #dbe6ff; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.swiper-pagination-bullet { background: #fff; opacity: .5; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--secondary); }
.hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { color: #fff; opacity: .7; }
.hero-slider .swiper-button-next:hover, .hero-slider .swiper-button-prev:hover { opacity: 1; }

@media (max-width: 767.98px) {
    .hero-slide { min-height: 82vh; }
    .hero-content h1 { font-size: 2.1rem; }
}

/* ---------- Stats counter ---------- */
.stats-strip { background: var(--primary); position: relative; margin-top: -70px; z-index: 5; border-radius: 22px; padding: 40px 20px; box-shadow: 0 30px 60px rgba(15,47,102,.25); }
.stats-strip .container-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-item { text-align: center; color: #fff; }
.stat-item i { font-size: 1.8rem; color: var(--accent-yellow); margin-bottom: 10px; }
.stat-item .num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; }
.stat-item .label { font-size: .85rem; color: #cfe0ff; }
@media (max-width: 767.98px) { .stats-strip .container-inner { grid-template-columns: repeat(2, 1fr); } .stats-strip { margin-top: 30px; border-radius: 0; } }

/* ---------- Cards ---------- */
.icon-card { background: #fff; border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); border: 1px solid var(--border); height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.icon-card:hover { transform: translateY(-6px); box-shadow: 0 25px 55px rgba(15,47,102,.14); }
.icon-card .icon-wrap { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; margin-bottom: 20px; }
.icon-card h5 { margin-bottom: 10px; }
.icon-card p { color: var(--gray-500); font-size: .92rem; margin-bottom: 0; }

.icon-bg-1 { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.icon-bg-2 { background: linear-gradient(135deg, var(--secondary), #ffab5c); }
.icon-bg-3 { background: linear-gradient(135deg, var(--accent-green), #3fc27f); }
.icon-bg-4 { background: linear-gradient(135deg, #d99a10, var(--accent-yellow)); }

.content-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.content-card:hover { transform: translateY(-6px); box-shadow: 0 25px 55px rgba(15,47,102,.14); }
.content-card .card-img { position: relative; overflow: hidden; height: 210px; }
.content-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.content-card:hover .card-img img { transform: scale(1.08); }
.content-card .card-badge { position: absolute; top: 14px; left: 14px; background: var(--secondary); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; }
.content-card .card-body-c { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.content-card .meta { font-size: .78rem; color: var(--gray-500); margin-bottom: 8px; display: flex; gap: 14px; }
.content-card .meta i { color: var(--secondary); margin-right: 4px; }
.content-card h5 { font-size: 1.08rem; margin-bottom: 10px; }
.content-card h5 a:hover { color: var(--primary); }
.content-card p { color: var(--gray-500); font-size: .9rem; flex: 1; }
.content-card .read-more { color: var(--primary); font-weight: 700; font-size: .85rem; margin-top: auto; }
.content-card .read-more i { transition: transform .2s ease; }
.content-card .read-more:hover i { transform: translateX(4px); }

/* ---------- Program / Facility cards ---------- */
.program-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 340px; box-shadow: var(--shadow); }
.program-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.program-card:hover img { transform: scale(1.1); }
.program-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,27,61,.9) 10%, rgba(8,27,61,.1) 60%); }
.program-card .pc-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: #fff; z-index: 2; }
.program-card .pc-body span { color: var(--accent-yellow); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.program-card .pc-body h5 { color: #fff; margin: 6px 0 10px; }
.program-card .pc-body a { color: #fff; font-weight: 700; font-size: .85rem; }

/* ---------- Principal / Team ---------- */
.principal-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.principal-photo img { width: 100%; }
.quote-mark { position: absolute; top: -18px; left: -18px; width: 56px; height: 56px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 10px 25px rgba(244,128,31,.4); }

.team-card { text-align: center; background: #fff; border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .25s ease; }
.team-card:hover { transform: translateY(-6px); }
.team-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; border: 4px solid var(--bg-light); }
.team-card h6 { margin-bottom: 4px; }
.team-card .role { color: var(--secondary); font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.team-card .social { display: flex; justify-content: center; gap: 10px; }
.team-card .social a { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: .8rem; }
.team-card .social a:hover { background: var(--primary); color: #fff; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border); margin: 10px; }
.testimonial-card .stars { color: var(--accent-yellow); margin-bottom: 14px; }
.testimonial-card p.msg { color: var(--gray-700); font-style: italic; min-height: 100px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-author h6 { margin-bottom: 2px; }
.testimonial-author span { font-size: .8rem; color: var(--gray-500); }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; height: 220px; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(15,47,102,.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay i { color: #fff; font-size: 1.6rem; }

/* ---------- Video cards ---------- */
.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--border); }
.video-card .thumb { position: relative; cursor: pointer; height: 190px; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(244,128,31,.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.video-card .vc-body { padding: 16px; }
.video-card h6 { font-size: .95rem; margin-bottom: 4px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 26px; padding: 60px; position: relative; overflow: hidden; color: #fff; }
.cta-banner::before { content: ''; position: absolute; width: 340px; height: 340px; background: rgba(255,255,255,.06); border-radius: 50%; top: -120px; right: -80px; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #dbe6ff; }

/* ---------- Facility/Faculty detail, notices, etc ---------- */
.notice-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 14px; border: 1px solid var(--border); margin-bottom: 12px; background: #fff; }
.notice-item.pinned { border-color: var(--secondary); background: #fff7ef; }
.notice-date-box { min-width: 62px; text-align: center; background: var(--bg-light); border-radius: 10px; padding: 8px 6px; }
.notice-date-box .d { font-size: 1.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.notice-date-box .m { font-size: .72rem; color: var(--gray-500); text-transform: uppercase; }

.download-item { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: #fff; margin-bottom: 12px; }
.download-item .dl-icon { width: 48px; height: 48px; border-radius: 12px; background: #fdeceb; color: #d9534f; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

.page-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); padding: 130px 0 60px; color: #fff; position: relative; }
.page-hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 10px; }
.page-hero .breadcrumb-nav a { color: #cfe0ff; }
.page-hero .breadcrumb-nav span { color: var(--accent-yellow); }

.badge-pin { background: var(--secondary); color: #fff; font-size: .7rem; padding: 3px 10px; border-radius: 12px; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: var(--border); padding: 11px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 .2rem rgba(15,47,102,.1); }
.form-label { font-weight: 600; font-size: .88rem; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 34px; }

/* ---------- Pagination ---------- */
.pagination .page-link { border-radius: 8px !important; margin: 0 3px; color: var(--primary); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ---------- Floating buttons ---------- */
.whatsapp-float { position: fixed; bottom: 24px; left: 24px; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 10px 25px rgba(37,211,102,.5); z-index: 999; animation: pulse-wa 2.4s infinite; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; background: var(--primary); color: #fff; border: none; border-radius: 50%; display: none; align-items: center; justify-content: center; z-index: 999; box-shadow: 0 10px 25px rgba(15,47,102,.3); }
.back-to-top.show { display: flex; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c4d8; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 16px; }
.footer-brand i { font-size: 1.8rem; color: var(--accent-yellow); }
.footer-brand strong { font-family: var(--font-heading); font-size: 1.15rem; }
.footer-col p { font-size: .88rem; line-height: 1.7; }
.footer-col h6 { color: #fff; margin-bottom: 18px; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: .88rem; }
.footer-col ul li a:hover { color: var(--accent-yellow); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--accent-yellow); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--secondary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; text-align: center; font-size: .82rem; }

@media (max-width: 991.98px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; } .section { padding: 56px 0; } .section-title { font-size: 1.6rem; } }

/* ---------- Lightbox & Video modal ---------- */
.lightbox-overlay, .video-modal-overlay { position: fixed; inset: 0; background: rgba(8,15,30,.92); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox-overlay.show, .video-modal-overlay.show { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.video-modal-frame { width: min(900px, 92vw); aspect-ratio: 16/9; }
.video-modal-frame iframe { width: 100%; height: 100%; border-radius: 10px; border: none; }
.lightbox-close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ---------- Filter buttons ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-bar button { background: #fff; border: 1px solid var(--border); color: var(--gray-700); padding: 9px 20px; border-radius: 30px; font-size: .86rem; font-weight: 600; }
.filter-bar button.active, .filter-bar button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
