:root {
    --navy: #10233f;
    --navy-2: #17365f;
    --gold: #f5bd22;
    --gold-soft: #fff4c9;
    --ink: #1b2430;
    --muted: #667085;
    --line: #e8ebf0;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 18px 50px rgba(16, 35, 63, .12);
    --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--surface); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top-strip { background: var(--navy); color: #fff; font-size: .88rem; }
.top-strip-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-strip a { color: #fff; text-decoration: none; opacity: .9; }
.brand-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; align-items: center; padding: 14px 0; }
.brand-logo img { width: 86px; height: 86px; object-fit: contain; }
.brand-copy h1 { margin: 0; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -.03em; }
.brand-copy p { margin: 6px 0 0; color: #7a5a00; font-weight: 700; }
.main-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner a { white-space: nowrap; padding: 13px 14px; text-decoration: none; font-weight: 700; color: #344054; border-bottom: 3px solid transparent; }
.nav-inner a:hover, .nav-inner a.active { color: var(--navy); border-color: var(--gold); }
.menu-toggle { display: none; border: 0; background: var(--navy); color: #fff; border-radius: 12px; width: 44px; height: 44px; font-size: 1.3rem; }
.hero-slider { position: relative; overflow: hidden; background: var(--navy); min-height: 480px; }
.slide { display: none; min-height: 480px; position: relative; background-size: cover; background-position: center; }
.slide.active { display: grid; align-items: end; animation: fade .5s ease; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,22,42,.85) 0%, rgba(8,22,42,.54) 45%, rgba(8,22,42,.15) 100%); }
.slide-fallback-1 { background: radial-gradient(circle at 82% 22%, #4f78a8 0, #21466f 34%, #0d2038 78%); }
.slide-fallback-2 { background: radial-gradient(circle at 72% 30%, #8f7220 0, #36536e 42%, #0f2139 80%); }
.slide-fallback-3 { background: radial-gradient(circle at 82% 35%, #466d52 0, #22415f 43%, #0d2038 80%); }
.slide-content { position: relative; z-index: 2; color: #fff; width: min(1180px, calc(100% - 32px)); margin: 0 auto 62px; }
.slide-content .eyebrow { display: inline-block; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); border-radius: 999px; padding: 6px 11px; font-weight: 700; font-size: .84rem; }
.slide-content h2 { margin: 14px 0 10px; max-width: 800px; font-size: clamp(2rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.05em; }
.slide-content p { max-width: 680px; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.slider-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.slider-dot.active { background: var(--gold); transform: scale(1.25); }
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-head h2, .page-hero h2 { margin: 0; color: var(--navy); font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.04em; }
.section-head p { max-width: 620px; margin: 6px 0 0; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 800; cursor: pointer; font: inherit; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #1e2d3f; }
.btn-outline { border-color: #ccd3dd; color: var(--navy); background: #fff; }
.btn-danger { background: #fee4e2; color: var(--danger); border-color: #fecdca; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(16,35,63,.06); overflow: hidden; }
.card-body { padding: 22px; }
.card h3 { margin: 0 0 8px; color: var(--navy); }
.course-card { padding: 24px; border-top: 4px solid var(--gold); }
.course-card .course-code { color: #7a5a00; font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.notice-board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.notice-board-head { padding: 18px 22px; background: var(--navy); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li { padding: 16px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 18px; }
.notice-list li:last-child { border-bottom: 0; }
.notice-date { color: #7a5a00; font-weight: 800; }
.notice-list a { color: var(--navy); font-weight: 800; text-decoration: none; }
.stats { margin-top: -44px; position: relative; z-index: 5; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat { padding: 18px; text-align: center; border-radius: 14px; background: var(--surface-2); }
.stat strong { display: block; font-size: 1.8rem; color: var(--navy); }
.page-hero { padding: 52px 0 34px; background: linear-gradient(135deg, #f8fafc 0%, #fff7d6 100%); border-bottom: 1px solid var(--line); }
.page-hero p { margin: 8px 0 0; color: var(--muted); max-width: 780px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 24px; }
.field { display: grid; gap: 7px; min-width: 200px; flex: 1; }
.field label { font-weight: 800; color: #344054; font-size: .92rem; }
.input, select, textarea { width: 100%; border: 1px solid #cfd6df; background: #fff; border-radius: 11px; padding: 11px 12px; font: inherit; color: var(--ink); outline: none; }
.input:focus, select:focus, textarea:focus { border-color: #6b83a2; box-shadow: 0 0 0 4px rgba(23,54,95,.08); }
textarea { min-height: 110px; resize: vertical; }
/* Faculty directory: five normal-sized profile cards across on wide screens. */
.faculty-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}
/* Faculty cards use a portrait photo frame so profile pictures are not awkwardly cropped. */
.faculty-card { height: 100%; transition: transform .22s ease, box-shadow .22s ease; }
.faculty-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16,35,63,.11); }
.faculty-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
    border-bottom: 1px solid var(--line);
}
.faculty-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #eef1f5;
}
.faculty-photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #667085;
    font-weight: 800;
    text-align: center;
    padding: 20px;
}
.faculty-card .card-body { padding: 16px; }
.faculty-card h3 { font-size: 1rem; line-height: 1.3; }
.faculty-card .designation { color: #7a5a00; font-weight: 800; font-size: .9rem; }
.faculty-card .department { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 999px; background: var(--gold-soft); font-size: .8rem; font-weight: 800; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.gallery-item { position: relative; border: 0; padding: 0; background: transparent; cursor: zoom-in; overflow: hidden; border-radius: 16px; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(8,22,42,.78); color: #fff; padding: 8px 10px; border-radius: 9px; font-size: .86rem; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3,10,20,.92); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.08); font-size: 1.5rem; cursor: pointer; }
.link-list { display: grid; gap: 12px; }
.link-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.link-card:hover { border-color: #bcc7d5; transform: translateY(-1px); }
.map-frame { width: 100%; min-height: 430px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.content-box ul { padding-left: 20px; }
.empty-state { text-align: center; padding: 44px 20px; border: 1px dashed #ccd3dd; border-radius: 16px; color: var(--muted); background: #fff; }
.alert { margin: 18px auto 0; padding: 13px 15px; border-radius: 12px; font-weight: 700; }
.alert-success { background: #ecfdf3; border: 1px solid #abefc6; color: var(--success); }
.alert-error { background: #fef3f2; border: 1px solid #fecdca; color: var(--danger); }
.login-wrap { min-height: 65vh; display: grid; place-items: center; padding: 60px 0; background: linear-gradient(135deg,#f5f7fb,#fff4c9); }
.login-card { width: min(460px, calc(100% - 32px)); background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.login-card .login-logo { width: 92px; margin: 0 auto 16px; }
.login-card h2 { text-align: center; color: var(--navy); margin: 0; }
.login-card p { text-align: center; color: var(--muted); }
.form-stack { display: grid; gap: 14px; margin-top: 22px; }
.site-footer { background: #0c1d33; color: #dfe6ef; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 44px 0; }
.site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 16px; text-align: center; font-size: .9rem; }

/* Admin */
.admin-shell { min-height: 100vh; background: #f4f6f9; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 0; }
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); }
.admin-brand img { width: 42px; height: 42px; object-fit: contain; }
.admin-nav { background: var(--navy); color: #fff; }
.admin-nav .container { display: flex; overflow-x: auto; }
.admin-nav a { color: #fff; text-decoration: none; padding: 12px 13px; white-space: nowrap; font-weight: 700; opacity: .85; }
.admin-nav a:hover, .admin-nav a.active { opacity: 1; background: rgba(255,255,255,.09); }
.admin-main { padding: 32px 0 60px; }
.admin-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.admin-title h1 { color: var(--navy); margin: 0; }
.admin-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.admin-stat { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; }
.admin-stat strong { display:block; font-size:2rem; color:var(--navy); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; color: #475467; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.thumb { width: 70px; height: 52px; object-fit: cover; border-radius: 8px; background: #eef1f5; }
.admin-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.help { color: var(--muted); font-size: .86rem; }
.badge { display:inline-block; padding:4px 8px; border-radius:999px; font-size:.78rem; font-weight:800; background:#eef2f6; color:#475467; }
.badge-live { background:#ecfdf3; color:#067647; }

@keyframes fade { from { opacity:.35 } to { opacity:1 } }
@media (max-width: 1100px) {
    .faculty-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .grid-4, .gallery-grid, .admin-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .faculty-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .brand-row { grid-template-columns: 70px 1fr auto; gap: 12px; }
    .brand-logo img { width: 64px; height: 64px; }
    .brand-copy h1 { font-size: 1.25rem; }
    .brand-copy p { font-size: .82rem; }
    .menu-toggle { display: inline-grid; place-items: center; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .nav-inner { flex-direction: column; padding: 6px 0; }
    .nav-inner a { border-bottom: 0; border-left: 3px solid transparent; }
    .nav-inner a:hover, .nav-inner a.active { border-left-color: var(--gold); background: #f8fafc; }
    .hero-slider, .slide { min-height: 410px; }
    .slide-content { margin-bottom: 52px; }
    .section { padding: 50px 0; }
    .grid-2, .grid-3, .grid-4, .gallery-grid, .footer-grid, .form-grid, .admin-cards { grid-template-columns: 1fr; }
    .faculty-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .notice-list li { grid-template-columns: 1fr; gap: 4px; }
    .section-head, .admin-title { align-items: flex-start; flex-direction: column; }
    .top-strip-inner { font-size: .75rem; }
}

@media (max-width: 480px) {
    .faculty-grid { grid-template-columns: 1fr; }
}


/* Campus information pages: College Offices and Infrastructure */
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #7a5a00;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.page-kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--gold);
}
.campus-page-hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(245,189,34,.20), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #fffaf0 100%);
}
.campus-info-section { position: relative; }
.campus-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.campus-card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.campus-info-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(16,35,63,.06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.campus-info-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--navy));
    opacity: .75;
}
.campus-info-card:hover {
    transform: translateY(-4px);
    border-color: #d5dce6;
    box-shadow: 0 18px 42px rgba(16,35,63,.11);
}
.campus-info-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.campus-card-mark {
    flex: 0 0 auto;
    min-width: 48px;
    height: 48px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: var(--gold-soft);
    color: #6d5000;
    border: 1px solid #f5df91;
    font-size: .75rem;
    font-weight: 950;
    letter-spacing: .04em;
}
.campus-info-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.12rem;
    line-height: 1.3;
}
.campus-info-card p {
    margin: 0;
    color: #526071;
    line-height: 1.72;
}
.campus-intro-section { padding-bottom: 22px; }
.infrastructure-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    gap: 28px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}
.infrastructure-overview h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -.025em;
}
.infrastructure-overview p { margin: 0; color: #526071; }
.campus-stat-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 17px;
    background: var(--navy);
}
.campus-mini-stat {
    display: grid;
    align-content: center;
    min-height: 96px;
    padding: 13px;
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
}
.campus-mini-stat strong {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--gold);
}
.campus-mini-stat span {
    margin-top: 7px;
    font-size: .82rem;
    font-weight: 700;
    color: rgba(255,255,255,.86);
}
@media (max-width: 900px) {
    .campus-card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .infrastructure-overview { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .campus-card-grid, .campus-card-grid-3 { grid-template-columns: 1fr; }
    .campus-info-card { padding: 20px; }
    .infrastructure-overview { padding: 22px; }
}
@media (max-width: 420px) {
    .campus-stat-panel { grid-template-columns: 1fr; }
}
