:root {
    --nav: #113c79;
    --title: #0b4a91;
    --accent: #bf1f1f;
    --muted: #555;
    --topbar: #f2e6d6;
    --brand: #0b4a91;
    --brand-2: #0a2a5e;
    --text: #1f2937;
    --border: #e5e7eb;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: system-ui, Arial, sans-serif;
    margin: 0;
    color: #111;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- Footer Styles --- */
footer {
    background: var(--nav);
    color: #fff;
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 2fr 1.2fr 1.4fr 2fr;
    padding: 2rem 0;
}

.footer-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.9;
}

.footer-links a {
    color: #e9efff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    color: #cbd5e1;
    line-height: 1.7;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.footer-bottom {
    padding: .8rem 0;
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
}

/* --- Header Styles --- */
/* Slim contact bar */
.contactbar {
    background: var(--brand-2);
    color: #e9efff;
    font-size: 13px;
}

.contactbar .container {
    padding: 4px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contactbar .inline {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.contactbar .muted {
    opacity: .95;
}

.contactbar .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 16px;
    vertical-align: -3px;
    margin-right: 4px;
}

.contactbar a {
    color: #e9efff;
    text-decoration: none;
}

.contactbar a:hover {
    text-decoration: underline;
}

header .nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 8px;
    padding: 6px 10px;
    border-radius: 4px;
}

header .nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.brand-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-text small {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

.brand-title {
    font-size: 28px;
    margin: 0;
    color: var(--title);
    font-weight: 700;
}

.brand-sub {
    margin: 4px 0 0 0;
    color: #333;
}

.brand-accredit {
    margin: 4px 0 0 0;
    color: #b35400;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}

.brand-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.badge {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.portrait {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.topbar {
    background: var(--topbar);
    color: #0b2a4a;
    font-weight: 600;
    font-size: 14px;
}

.topbar .container {
    padding: 6px 16px;
}

.topbar a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 12px;
}

.topbar a.erp {
    color: var(--nav);
}

.topbar .dot {
    display: inline-block;
    margin: 0 12px;
    color: #0b2a4a;
}

.topbar marquee {
    display: block;
}

.nav-bar {
    background: var(--nav);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-desktop {
    display: flex;
    gap: .8rem;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
    font-size: 14px;
    line-height: 1.25;
    position: relative;
    z-index: 30;
    white-space: nowrap;
}

.nav-desktop>.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:visited {
    color: #fff !important;
}

/* Force top-level nav items to remain white */
.nav-desktop>.nav-item>a:link,
.nav-desktop>.nav-item>a:visited {
    color: #fff !important;
}

.nav-link:not(.active) {
    padding: 6px 8px;
}

.nav-link.active {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 6px 12px;
    border-radius: 8px;
}

.caret::after {
    content: " \25BE";
    font-size: 11px;
    opacity: .9;
}

.nav-header {
    cursor: pointer;
}

.nav-header:hover {
    opacity: 0.9;
}

.dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 1.9rem;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    min-width: 240px;
    display: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    border-radius: 10px;
    z-index: 30;
}

.nav-item:hover>.dropdown {
    display: block;
}

.dropdown .nav-item {
    position: relative;
}

.dropdown .dropdown {
    top: 0;
    left: 100%;
    padding: 6px 0;
}

.dropdown a {
    color: #0a2a5e;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
}

.dropdown .nav-header {
    color: #0a2a5e;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.dropdown a:visited {
    color: #0a2a5e;
}

.dropdown a:hover,
.dropdown .nav-header:hover {
    background: rgba(173, 32, 61, 0.06);
}


.nav-mobile-toggle {
    display: none;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    padding: 6px 10px;
}

body.nav-lock {
    overflow: hidden;
}

.nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 5999;
}

.nav-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    transform: translateX(100%);
    transition: transform .25s ease;
    background: #fff;
    max-width: 84%;
    width: 320px;
    box-shadow: -10px 0 24px rgba(0, 0, 0, .12);
    z-index: 6000;
    display: flex;
    flex-direction: column;
}

.nav-drawer.open {
    transform: translateX(0);
}

.nav-drawer header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.nav-drawer .menu {
    padding: 10px 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

.nav-drawer .menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.nav-drawer .menu a:hover {
    background: #f1f5f9;
}

.nav-drawer .mobile-accordion {
    border-radius: 10px;
}

.nav-drawer .mobile-accordion>summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 800;
    color: #0a2a5e;
    user-select: none;
}

.nav-drawer .mobile-accordion>summary::-webkit-details-marker {
    display: none;
}

.nav-drawer .mobile-accordion>summary:after {
    content: "▾";
    float: right;
    opacity: .8;
}

.nav-drawer .mobile-accordion[open]>summary:after {
    content: "▴";
}

.nav-drawer .mobile-accordion>summary:hover {
    background: #f1f5f9;
}

.nav-drawer .mobile-link {
    text-decoration: none;
    color: #0a2a5e;
}

.mobile-item-btn {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    cursor: pointer;
}

.brand-mini {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
}

.brand-mini-name {
    display: none;
    color: #fff;
    font-size: 14px;
}

/* --- Global Components --- */
.grid {
    display: grid;
    gap: 16px;
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(17, 60, 121, .10);
    border-color: #e3e7ef;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    display: flex;
    gap: 16px;
    align-items: center;
}

.muted {
    color: var(--muted);
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.pagination a {
    margin-right: 8px;
}

/* Full-bleed utility */
.full-bleed {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Global button */
.btn {
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* --- Home Page Styles --- */

/* Hero Transitions & Overlay */
#hero-slides {
    position: relative;
}

#hero-carousel {
    min-height: 500px;
}

#hero-slides {
    height: 100%;
    min-height: 500px;
}

#hero-slides>div {
    height: 100%;
    min-height: inherit;
    background-size: cover;
    background-position: center;
}

#hero-slides>div {
    opacity: 0;
    transform: scale(1.03);
    transition: opacity .5s ease, transform .5s ease;
    will-change: opacity, transform;
}

#hero-slides>div.fade-up {
    opacity: 1;
    transform: scale(1);
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, .9);
    color: #fff;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: none;
    transition: background-color .15s ease, color .15s ease, transform .1s ease, border-color .15s ease;
    pointer-events: auto;
    line-height: 1.1;
}

.hero-cta.primary {
    background: #0b2d6b;
    border-color: #0b2d6b;
    color: #fff;
}

.hero-cta.outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .9);
    color: #fff;
}

.hero-cta:hover {
    transform: translateY(-1px);
}

.hero-cta:active {
    transform: translateY(0);
}

.hero-cta:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .5);
    outline-offset: 2px;
}

/* Home Social Bar */
.home-social-bar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 2px;
    border-radius: 8px 0 0 8px;
    background: rgba(0, 0, 0, .15);
    z-index: 2000;
}

.home-social {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

.home-social-fb {
    background: #1877f2;
}

.home-social-ig {
    background: #e1306c;
}

.home-social-yt {
    background: #ff0000;
}

/* Hero Animation Keyframes */
#hero-carousel[data-dir="next"] #hero-slides>div.fade-up {
    animation: heroInNext .5s ease both;
}

#hero-carousel[data-dir="prev"] #hero-slides>div.fade-up {
    animation: heroInPrev .5s ease both;
}

@keyframes heroInNext {
    from {
        opacity: 0;
        transform: translateX(24px) scale(1.03);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroInPrev {
    from {
        opacity: 0;
        transform: translateX(-24px) scale(1.03);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

#hero-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0 !important;
    background: transparent !important;
    transform: none !important;
}

/* Sections Typography */
.section .section-title,
.section h2 {
    margin: 0 0 0.75rem;
    color: var(--brand);
    font-family: Georgia, serif;
    font-size: 2rem;
}

.section .section-subtitle {
    margin: 0 0 16px;
    color: var(--muted);
}

/* Common Home Grids */
.home-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Panels (Notices/Admission) */
.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.panel header {
    background: var(--brand-2);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
    font-weight: 900;
    letter-spacing: .03em;
}

.panel ul {
    max-width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.panel ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eef2f7;
    overflow-wrap: anywhere;
}

.panel ul li:last-child {
    border-bottom: 0;
}

.panel a {
    color: #0b2d6b;
    text-decoration: none;
}

.panel a:hover {
    text-decoration: underline;
}

/* Portraits */
.portraits {
    display: grid;
    grid-template-columns: repeat(3, 160px);
    gap: 40px;
    align-items: start;
    justify-content: center;
}

.portrait-fig {
    text-align: center;
    margin: 0;
}

.portrait-ring {
    width: 160px;
    height: 160px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 65%, rgba(255, 255, 255, 0) 100%);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.portrait-img-box {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
}

/* Why Cards */
.why-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8e2d6;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 12px rgba(17, 60, 121, .06);
}

.why-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(17, 60, 121, .10);
}

.why-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(11, 45, 107, .10);
}

.why-title {
    margin: 0;
    color: var(--brand);
    font-family: Georgia, serif;
    font-weight: 800;
}

.why-text {
    margin: 6px 0 0;
    color: var(--muted);
}

/* Stats Cards */
.stats-card {
    text-align: center;
    background: #fff;
    border: 1px solid #e5ecf6;
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 6px 14px rgba(17, 60, 121, .06);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(17, 60, 121, .10);
}

.stats-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand);
}

.stats-label {
    color: #7282a5;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Flip Cards (Departments) */
.faculty-flip-card {
    overflow: hidden;
    text-decoration: none;
    display: block;
    perspective: 1000px;
}

.faculty-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.faculty-flip-card:hover .faculty-flip-inner {
    transform: rotateY(180deg);
}

.faculty-flip-front,
.faculty-flip-back {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
}

.faculty-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    background: #f0f4f8;
}

/* About Tabs */
.tabs-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tab {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
}

.tab.active {
    background: #eef4ff;
    border-color: var(--brand);
}

/* About Highlight */
.about-hl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
}

.about-hl-media {
    position: relative;
}

.about-hl-inset {
    position: absolute;
    right: 6%;
    bottom: -8%;
    width: 42%;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(17, 60, 121, .16);
    border: 3px solid #fff;
    background: #fff;
}

.about-hl-card {
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8e2d6;
    box-shadow: 0 10px 22px rgba(17, 60, 121, .08);
}

.about-hl-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 12px;
}

.about-hl-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.about-hl-ico {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.about-hl-item-title {
    font-weight: 700;
    color: var(--text);
}

.about-hl-item-text {
    color: var(--muted);
}

/* Welcome Section */
.welcome-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
}

.welcome-card {
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8e2d6;
    box-shadow: 0 10px 22px rgba(17, 60, 121, .08);
}

.welcome-media-wrap {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(17, 60, 121, .12);
}