:root {
    --brand: #4f46e5;
    --brand-2: #0891b2;
    --dark: #111827;
    --text-muted: #6b7280;
    --bg-soft: #f7f8fc;
    --radius: 1rem;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: #1f2430;
    line-height: 1.65;
}
h1, h2, h3, h4, h5, h6, .navbar-brand span, .footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; }
img { max-width: 100%; }

/* Topbar */
.topbar {
    background: var(--dark); color: #cbd5e1; font-size: .8rem; padding: .45rem 0;
}
.topbar-info span { margin-right: 1.25rem; }
.topbar-info i { color: var(--brand); margin-right: .3rem; }
.topbar-social a { color: #cbd5e1; margin-left: .8rem; }
.topbar-social a:hover { color: #fff; }

/* Header / Nav */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1000; }

/* Bootstrap's .navbar defaults to flex-wrap:nowrap, so once brand + nav items +
   search no longer fit on one line above the expand breakpoint, items overlap
   instead of reflowing. Forcing a wrap here means the absolute worst case is a
   two-line navbar, never overlapping text. */
.navbar { flex-wrap: wrap; row-gap: .5rem; }
.navbar > .container { flex-wrap: inherit; row-gap: inherit; }

.navbar-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; color: var(--dark) !important; min-width: 0; }
.navbar-brand img { height: 42px; width: auto; flex-shrink: 0; }
.navbar-brand i { color: var(--brand); font-size: 1.7rem; flex-shrink: 0; }
.navbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar-nav .nav-link { font-weight: 500; color: var(--dark); padding: .6rem .85rem !important; white-space: nowrap; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--brand); }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-radius: .75rem; }
.search-form { display: flex; margin-left: 1rem; flex-shrink: 0; }
.search-form input { border: 1px solid #e5e7eb; border-radius: 2rem 0 0 2rem; padding: .4rem .9rem; font-size: .85rem; outline: none; width: 130px; }
.search-form button { border: none; background: var(--brand); color: #fff; border-radius: 0 2rem 2rem 0; padding: 0 .9rem; }

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-brand span { max-width: 220px; }
}

/* Hero / Banner */
.hero-carousel { position: relative; }
.hero-slide {
    height: 60vh; min-height: 420px; background-size: cover; background-position: center;
    display: flex; align-items: center; position: relative;
}
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,24,39,.75) 0%, rgba(17,24,39,.35) 60%, rgba(17,24,39,.1) 100%); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide h1 { color: #fff; font-size: 2.75rem; max-width: 650px; margin-bottom: 1rem; }
.hero-slide p { color: #e5e7eb; max-width: 560px; font-size: 1.05rem; margin-bottom: 1.75rem; }
.hero-fallback { background: linear-gradient(135deg, var(--brand), #312e81); }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; padding: .7rem 1.75rem; border-radius: 2rem; font-weight: 600; }
.btn-brand:hover { background: #4338ca; color: #fff; }
.btn-outline-brand { border: 2px solid #fff; color: #fff; padding: .65rem 1.75rem; border-radius: 2rem; font-weight: 600; }
.btn-outline-brand:hover { background: #fff; color: var(--brand); }

/* Section spacing */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.section-title h2 { font-size: 2.1rem; margin: .5rem 0 0; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: .75rem auto 0; }

/* Stats counter */
.stats-strip { background: var(--dark); padding: 3rem 0; }
.stat-item { text-align: center; color: #fff; }
.stat-item .num { font-size: 2.5rem; font-weight: 800; color: var(--brand-2); }
.stat-item .label { color: #cbd5e1; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }

/* Cards */
.card-modern {
    background: #fff; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(17,24,39,.06);
    overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease; border: 1px solid #eef0f5;
}
.card-modern:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(17,24,39,.12); }
.card-modern img { height: 190px; width: 100%; object-fit: cover; }
.card-modern .body { padding: 1.25rem; }
.card-modern .badge-dept { background: rgba(79,70,229,.1); color: var(--brand); font-weight: 600; }

.dept-icon-card {
    background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; height: 100%;
    box-shadow: 0 6px 20px rgba(17,24,39,.06); transition: all .2s ease; border: 1px solid #eef0f5;
}
.dept-icon-card:hover { background: var(--brand); color: #fff; transform: translateY(-4px); }
.dept-icon-card:hover .text-muted { color: rgba(255,255,255,.8) !important; }
.dept-icon-card i { font-size: 2.2rem; color: var(--brand); margin-bottom: 1rem; }
.dept-icon-card:hover i { color: #fff; }

.faculty-card { text-align: center; }
.faculty-card img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; border: 4px solid var(--bg-soft); }

.notice-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eef0f5; }
.notice-date { background: var(--brand); color: #fff; border-radius: .6rem; text-align: center; min-width: 60px; height: 60px; display: flex; flex-direction: column; justify-content: center; flex-shrink: 0; }
.notice-date .day { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.notice-date .mon { font-size: .7rem; text-transform: uppercase; }

.event-card { border-left: 4px solid var(--brand); background: #fff; border-radius: .75rem; padding: 1.25rem; box-shadow: 0 4px 14px rgba(17,24,39,.05); }

.gallery-grid img { border-radius: .75rem; height: 150px; width: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* CTA / Admission banner */
.cta-banner {
    background: linear-gradient(120deg, var(--brand), var(--brand-2)); border-radius: var(--radius);
    padding: 3rem; color: #fff; text-align: center;
}
.cta-banner h3 { font-size: 1.8rem; }

/* Footer */
.site-footer { background: var(--dark); color: #9ca3af; padding: 4rem 0 0; }
.site-footer h6 { color: #fff; margin-bottom: 1.1rem; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.footer-brand { color: #fff; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .6rem; font-size: .9rem; }
.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: #fff; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; margin-right: .5rem; }
.newsletter-form { display: flex; }
.newsletter-form input { flex: 1; border: none; border-radius: .5rem 0 0 .5rem; padding: .6rem .8rem; }
.newsletter-form button { border: none; background: var(--brand); color: #fff; border-radius: 0 .5rem .5rem 0; padding: 0 1rem; }
.site-footer hr { border-color: rgba(255,255,255,.1); margin-top: 2.5rem; }

/* Inner page header */
.page-hero { background: linear-gradient(120deg, var(--dark), #1f2937); padding: 3.5rem 0; color: #fff; }
.page-hero h1 { font-size: 2rem; margin-bottom: .25rem; }
.page-hero .breadcrumb a { color: #cbd5e1; }
.page-hero .breadcrumb-item.active { color: #fff; }

.empty-state-front { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state-front i { font-size: 2.5rem; opacity: .4; margin-bottom: 1rem; }

@media (max-width: 991.98px) {
    .hero-slide h1 { font-size: 2rem; }
    .search-form { margin: 1rem 0 0; }
}
