/* ==========================================================================
   SGGS College — Main Stylesheet
   Design inspired by Unipix (layout), Stanford (hero), GGDSD (structure)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand */
    --brand-primary: #8b1113;      /* deep maroon — college heritage red */
    --brand-primary-dark: #6b0d0f;
    --brand-secondary: #1a2847;    /* navy from original site */
    --brand-accent: #d4a64a;       /* warm gold */
    --brand-light: #f8f4ec;        /* warm cream */

    /* Neutrals */
    --c-text: #1a1a1a;
    --c-text-muted: #5a5a5a;
    --c-text-light: #8b8b8b;
    --c-bg: #ffffff;
    --c-bg-alt: #f7f6f2;
    --c-border: #e5e2db;

    /* Typography */
    --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing & layout */
    --container: 1280px;
    --radius: 6px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.12);

    /* Transitions */
    --t-fast: 150ms ease;
    --t-base: 300ms cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-primary-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-secondary);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Top Bar ---------- */
.topbar {
    background: var(--brand-secondary);
    color: #e8e6df;
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info a { color: #e8e6df; }
.topbar-info a:hover { color: var(--brand-accent); }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar-actions a {
    background: transparent;
    color: #e8e6df;
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    font-size: 12px;
    transition: all var(--t-fast);
}
.topbar-actions a:hover {
    background: var(--brand-accent);
    color: var(--brand-secondary);
    border-color: var(--brand-accent);
}

/* ---------- Main Header ---------- */
.site-header {
    background: #fff;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-main {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark {
    width: 62px; height: 62px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139,17,19,.25);
}
.logo-text h1 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand-primary);
    margin: 0;
    line-height: 1.1;
}
.logo-text p {
    font-size: 11px;
    color: var(--c-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.helpline-box {
    text-align: right;
    font-size: 12px;
    color: var(--c-text-muted);
}
.helpline-box strong { color: var(--brand-primary); display: block; font-size: 13px; }

/* ---------- Navigation ---------- */
.main-nav {
    background: var(--brand-secondary);
    position: relative;
}
.nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-item {
    position: relative;
}
.nav-item > a {
    display: block;
    color: #fff;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .3px;
    transition: background var(--t-fast);
}
.nav-item > a:hover,
.nav-item:hover > a { background: var(--brand-primary); color: #fff; }
.nav-item.has-dropdown > a::after {
    content: '▾';
    margin-left: 6px;
    font-size: 10px;
    opacity: .7;
}

/* Dropdowns */
.dropdown {
    position: absolute;
    top: 100%; left: 0;
    background: var(--brand-secondary);
    min-width: 240px;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all var(--t-base);
    box-shadow: var(--shadow-md);
    z-index: 10;
}
.nav-item:hover > .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li { position: relative; }
.dropdown a {
    display: block;
    color: #fff;
    padding: 12px 18px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.dropdown a:hover { background: var(--brand-primary); color: #fff; padding-left: 24px; }

/* Submenu (2nd level) */
.dropdown .submenu {
    position: absolute;
    top: 0; left: 100%;
    min-width: 220px;
    background: var(--brand-primary-dark);
    opacity: 0; visibility: hidden;
    transition: all var(--t-base);
    box-shadow: var(--shadow-md);
    z-index: 11;
}
.dropdown li:hover > .submenu {
    opacity: 1; visibility: visible;
}
.dropdown .has-submenu > a::after {
    content: '›';
    float: right;
    font-size: 16px;
    line-height: 1;
}

/* Submenu (3rd level — e.g. PG Courses → MA Programmes → MA English) */
.submenu .submenu {
    position: absolute;
    top: 0; left: 100%;
    min-width: 220px;
    background: #4a0a0c; /* slightly darker than .submenu for visual hierarchy */
    opacity: 0; visibility: hidden;
    transition: all var(--t-base);
    box-shadow: var(--shadow-md);
    z-index: 12;
}
.submenu li:hover > .submenu {
    opacity: 1; visibility: visible;
}
.submenu .has-submenu > a::after {
    content: '›';
    float: right;
    font-size: 16px;
    line-height: 1;
}

/* Mobile nav toggle */
.mobile-toggle {
    display: none;
    background: var(--brand-primary);
    color: #fff;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
    text-align: left;
    font-weight: 600;
}

/* ---------- Hero (Stanford-inspired) ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: #000;
}
.hero-media {
    position: absolute; inset: 0;
    z-index: 1;
}
.hero-media img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    opacity: 0;
    animation: heroFade 18s infinite;
    position: absolute;  /* Add this */
    top: 0;              /* Add this */
    left: 0;     
}
.hero-media img:nth-child(1) { animation-delay: 0s; }
.hero-media img:nth-child(2) { animation-delay: 6s; }
.hero-media img:nth-child(3) { animation-delay: 12s; }
@keyframes heroFade {
    0%, 28%, 100% { opacity: 0; }
    5%, 23% { opacity: 1; }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,40,71,.82) 0%, rgba(139,17,19,.55) 100%);
    z-index: 2;
}
.hero-inner {
    position: relative; z-index: 3;
    min-height: 78vh;
    display: flex; align-items: center;
    padding: 100px 0 120px;
}
.hero-content { max-width: 760px; color: #fff; }
.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-accent);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-accent);
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(36px, 5.5vw, 68px);
    color: #fff;
    line-height: 1.08;
    margin-bottom: 20px;
}
.hero-title em {
    font-style: italic;
    color: var(--brand-accent);
    font-weight: 400;
}
.hero-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255,255,255,.92);
    max-width: 620px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
    border-radius: 4px;
    transition: all var(--t-base);
    cursor: pointer;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139,17,19,.35);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-outline:hover {
    background: #fff;
    color: var(--brand-primary);
}
.btn-accent {
    background: var(--brand-accent);
    color: var(--brand-secondary);
}
.btn-accent:hover {
    background: #c29738;
    color: var(--brand-secondary);
    transform: translateY(-2px);
}

/* Hero bottom ticker */
.hero-ticker {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 4;
    background: rgba(139,17,19,.92);
    color: #fff;
    padding: 14px 0;
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
}
.ticker-wrap { display: flex; align-items: center; }
.ticker-label {
    background: var(--brand-accent);
    color: var(--brand-secondary);
    padding: 14px 20px;
    margin: -14px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 20px;
}
.ticker-slide {
    display: inline-block;
    animation: tickerSlide 30s linear infinite;
    padding-left: 100%;
}
.ticker-slide span { padding: 0 32px; }
@keyframes tickerSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ---------- Section Base ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--brand-secondary); color: #e9e7e1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(30px, 4vw, 46px);
    margin-bottom: 16px;
}
.section-text {
    color: var(--c-text-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.about-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--brand-primary);
    color: #fff;
    padding: 18px 22px;
    border-radius: var(--radius);
    font-family: var(--font-display);
}
.about-badge .num {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    display: block;
}
.about-badge .lbl {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--c-text-muted); margin-bottom: 16px; }
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}
.feature-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px;
    background: var(--c-bg-alt);
    border-radius: var(--radius);
}
.feature-icon {
    width: 42px; height: 42px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}
.feature-item h4 { font-size: 15px; margin-bottom: 2px; font-family: var(--font-body); }
.feature-item p { font-size: 13px; color: var(--c-text-muted); margin: 0; }

/* ---------- Programs / Cards ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.program-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.program-card .img {
    aspect-ratio: 16/11;
    overflow: hidden;
}
.program-card .img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 600ms ease;
}
.program-card:hover .img img { transform: scale(1.08); }
.program-card .body { padding: 22px; }
.program-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.program-card h3 a { color: var(--brand-secondary); }
.program-card h3 a:hover { color: var(--brand-primary); }
.program-card p {
    color: var(--c-text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}
.program-card .more {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.program-card .more::after {
    content: ' →';
    transition: margin var(--t-fast);
}
.program-card:hover .more::after { margin-left: 6px; }

/* ---------- Stats ---------- */
.stats {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary-dark));
    color: #fff;
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    text-align: center;
}
.stat-item .num {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    color: var(--brand-accent);
    line-height: 1;
    display: block;
}
.stat-item .lbl {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
}

/* ---------- Marquee ---------- */
.marquee {
    background: var(--brand-secondary);
    color: #fff;
    padding: 28px 0;
    overflow: hidden;
}
.marquee-wrap {
    display: flex;
    gap: 60px;
    animation: marqueeScroll 40s linear infinite;
    white-space: nowrap;
}
.marquee-item {
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--brand-accent);
    display: inline-flex; align-items: center; gap: 60px;
}
.marquee-item::after {
    content: '✦';
    color: #fff;
    font-size: 16px;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Campus Life ---------- */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.campus-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.campus-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 600ms ease;
}
.campus-item:hover img { transform: scale(1.08); }
.campus-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85));
}
.campus-item .caption {
    position: absolute;
    left: 20px; right: 20px; bottom: 20px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    z-index: 2;
}
.campus-item.tall { grid-row: span 2; aspect-ratio: 3/7; }

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 140px;
    color: var(--brand-accent);
    position: absolute;
    top: -10px; right: 24px;
    line-height: 1;
    opacity: .3;
}
.testimonial-card blockquote {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.5;
    color: var(--brand-secondary);
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author h4 { font-family: var(--font-body); font-size: 16px; margin-bottom: 2px; }
.testimonial-author p { font-size: 13px; color: var(--c-text-muted); margin: 0; }

/* ---------- News/Events ---------- */
.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .img { aspect-ratio: 16/10; overflow: hidden; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 24px; }
.news-meta {
    display: flex; gap: 16px;
    font-size: 12px;
    color: var(--c-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.news-meta .date { color: var(--brand-primary); font-weight: 600; }
.news-card h3 {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 10px;
}
.news-card h3 a { color: var(--brand-secondary); }
.news-card h3 a:hover { color: var(--brand-primary); }
.news-card p { font-size: 14px; color: var(--c-text-muted); }

/* ---------- CTA Section ---------- */
.cta {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.cta p { font-size: 18px; max-width: 620px; margin: 0 auto 32px; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0f1628;
    color: #a8adbc;
    padding-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--brand-primary);
    display: inline-block;
}
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    color: #a8adbc;
    font-size: 14px;
    transition: all var(--t-fast);
}
.footer-col ul a:hover { color: var(--brand-accent); padding-left: 6px; }
.footer-col .logo-text h1 { color: #fff; font-size: 18px; }
.footer-col .logo-text p { color: #a8adbc; font-size: 10px; margin: 2px 0 0; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: background var(--t-fast);
}
.footer-social a:hover { background: var(--brand-primary); }
.footer-contact-item {
    display: flex; gap: 12px; margin-bottom: 16px;
    font-size: 14px;
}
.footer-contact-item .icon {
    color: var(--brand-accent);
    font-size: 16px;
    margin-top: 2px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #6b7186;
}
.footer-bottom .container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}

/* ---------- Inner Page Banner ---------- */
.page-banner {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary-dark));
    color: #fff;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1562774053-701939374585?w=1600&q=80');
    background-size: cover; background-position: center;
    opacity: .18;
}
.page-banner-content {
    position: relative;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}
.page-banner h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
    margin-bottom: 16px;
}
.breadcrumb {
    display: flex; justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,.8);
    font-size: 14px;
}
.breadcrumb a { color: var(--brand-accent); }
.breadcrumb span.sep { opacity: .5; }

/* ---------- Content pages ---------- */
.content-section { padding: 80px 0; }
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
}
.content-main h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--brand-primary);
}
.content-main h3 {
    font-size: 22px;
    margin: 30px 0 14px;
    color: var(--brand-secondary);
}
.content-main p { color: var(--c-text-muted); margin-bottom: 16px; line-height: 1.8; }
.content-main ul, .content-main ol { margin: 16px 0 20px 24px; }
.content-main ul li, .content-main ol li {
    list-style-position: outside;
    margin-bottom: 8px;
    color: var(--c-text-muted);
    line-height: 1.7;
}
.content-main ul li { list-style-type: disc; }
.content-main ol li { list-style-type: decimal; }
.content-main blockquote {
    border-left: 4px solid var(--brand-primary);
    padding: 16px 24px;
    background: var(--c-bg-alt);
    margin: 24px 0;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--brand-secondary);
    font-size: 18px;
}
.content-main .lead {
    font-size: 19px;
    line-height: 1.7;
    color: var(--brand-secondary);
    margin-bottom: 24px;
    font-family: var(--font-display);
}
.content-main img.rounded {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 20px 0;
}

.sidebar-widget {
    background: var(--c-bg-alt);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}
.sidebar-widget h4 {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-primary);
}
.sidebar-widget ul li {
    border-bottom: 1px solid var(--c-border);
    padding: 10px 0;
}
.sidebar-widget ul li:last-child { border: 0; }
.sidebar-widget ul a {
    color: var(--c-text);
    font-size: 14px;
    display: flex; justify-content: space-between;
    transition: color var(--t-fast);
}
.sidebar-widget ul a:hover { color: var(--brand-primary); }
.sidebar-widget ul a::after { content: '›'; color: var(--brand-primary); }

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}
.table th {
    background: var(--brand-primary);
    color: #fff;
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
}
.table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--c-border);
    font-size: 14px;
}
.table tr:nth-child(even) { background: var(--c-bg-alt); }
.table tr:hover { background: #faf3ed; }

/* Faculty / Staff / Leader cards */
.profile-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.profile-card .photo {
    aspect-ratio: 1/1;
    overflow: hidden;
}
.profile-card .photo img {
    width: 100%; height: 100%; object-fit: cover;
}
.profile-card .info { padding: 20px; text-align: center; }
.profile-card h3 { font-size: 18px; margin-bottom: 4px; color: var(--brand-secondary); }
.profile-card .role {
    color: var(--brand-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.profile-card .dept { font-size: 13px; color: var(--c-text-muted); margin-top: 8px; }

/* Info cards with icon */
.info-card {
    padding: 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--brand-primary);
    transition: all var(--t-base);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card .ico {
    width: 56px; height: 56px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.info-card h3 { font-size: 20px; margin-bottom: 12px; }
.info-card p { color: var(--c-text-muted); font-size: 14px; line-height: 1.7; }

/* Two-column feature split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Leader profile (principal/president) */
.leader {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: start;
}
.leader-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.leader-photo img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.leader-name {
    font-size: 28px;
    color: var(--brand-primary);
    margin-bottom: 6px;
}
.leader-title {
    font-size: 14px;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Timeline */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 20px; top: 0; bottom: 0;
    width: 2px;
    background: var(--brand-primary);
}
.timeline-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 32px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px; top: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px #fff;
}
.timeline-year {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 6px;
}
.timeline-item h4 { font-size: 18px; margin-bottom: 6px; }
.timeline-item p { color: var(--c-text-muted); font-size: 14px; }

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
}
.contact-info-item {
    display: flex; gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-border);
}
.contact-info-item:last-child { border: 0; }
.contact-info-item .ico {
    width: 52px; height: 52px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-info-item h4 { font-size: 17px; margin-bottom: 4px; color: var(--brand-secondary); }
.contact-info-item p { font-size: 14px; color: var(--c-text-muted); margin: 0; }
.form-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--brand-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--t-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139,17,19,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Department grid */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.dept-card {
    display: block;
    padding: 28px 22px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    text-align: center;
    transition: all var(--t-base);
}
.dept-card:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}
.dept-card .ico {
    width: 60px; height: 60px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    transition: all var(--t-base);
}
.dept-card:hover .ico { background: #fff; color: var(--brand-primary); }
.dept-card h4 {
    font-size: 17px;
    color: var(--brand-secondary);
    transition: color var(--t-fast);
}
.dept-card:hover h4 { color: #fff; }
.dept-card p {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.dept-card:hover p { color: rgba(255,255,255,.8); }

/* Alert / notice box */
.notice {
    padding: 16px 20px;
    background: #fff7e6;
    border-left: 4px solid var(--brand-accent);
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.notice.primary {
    background: #faeeee;
    border-color: var(--brand-primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split.reverse .split-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .campus-grid { grid-template-columns: repeat(2, 1fr); }
    .content-wrap { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .leader { grid-template-columns: 1fr; }
    .leader-photo { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .topbar { text-align: center; }
    .topbar .container { justify-content: center; }
    .helpline-box { display: none; }
    .main-nav .nav-list { display: none; flex-direction: column; background: var(--brand-secondary); }
    .main-nav .nav-list.open { display: flex; }
    .nav-item { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-item > a { padding: 14px 20px; }
    .dropdown {
        position: static;
        opacity: 1; visibility: visible;
        transform: none;
        background: rgba(0,0,0,.2);
        box-shadow: none;
        display: none;
    }
    .nav-item.open > .dropdown { display: block; }
    .dropdown .submenu {
        position: static;
        opacity: 1; visibility: visible;
        background: rgba(0,0,0,.25);
        display: none;
    }
    .dropdown li.open > .submenu { display: block; }
    /* 3rd-level submenu (e.g. PG Courses → MA Programmes → MA English) on mobile */
    .submenu .submenu {
        position: static;
        opacity: 1; visibility: visible;
        background: rgba(0,0,0,.3);
        box-shadow: none;
        display: none;
    }
    .submenu li.open > .submenu { display: block; }
    .mobile-toggle { display: block; }
    .hero-inner { padding: 80px 0 120px; }
    .hero-title { font-size: 36px; }
    .hero-text { font-size: 16px; }
    .about-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .campus-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .campus-item.tall { grid-row: auto; aspect-ratio: 3/4; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item .num { font-size: 40px; }
    .ticker-label { display: none; }
}

/* Animations on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 800ms ease, transform 800ms ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 36px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }