/* =============================================
   KGMC Neurology – Stylesheet
   Matches: kgmcneurology.com exactly
   ============================================= */

:root {
    --navy:        #1a3a5c;
    --steelblue:   #5b7fa6;   /* navbar background */
    --steel-dark:  #4a6b8e;   /* navbar hover */
    --steel-hover: #3d5a78;
    --red-motto:   #cc0000;   /* "TIME IS BRAIN..." text */
    --white:       #ffffff;
    --light-bg:    #f5f7fa;
    --light-gray:  #e8edf4;
    --border:      #dde4ee;
    --text-dark:   #1a2535;
    --text-muted:  #6b7a8d;
    --accent:      #c8962b;
    --accent-lt:   #e8b84b;
    --success:     #2e7d52;
    --font-head:   'Merriweather', Georgia, serif;
    --font-body:   'Source Sans 3', sans-serif;
    --shadow-sm:   0 2px 10px rgba(26,58,92,.08);
    --shadow-md:   0 6px 28px rgba(26,58,92,.13);
    --shadow-lg:   0 14px 44px rgba(26,58,92,.17);
    --radius:      8px;
    --radius-lg:   14px;
    --tr:          all .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.7; background: var(--white); overflow-x: hidden; margin: 0; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.3; }
a { color: var(--steelblue); text-decoration: none; transition: var(--tr); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* =============================================
   HEADER
   ============================================= */

/* --- Row 1: Red motto --- */
.motto-bar {
    background: var(--white);
    padding: 8px 0 4px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.motto-text {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(0.72rem, 1.4vw, 0.95rem);
    font-weight: 700;
    color: var(--red-motto);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* --- Row 2: Logos + Dept name --- */
.header-branding {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 2px solid var(--light-gray);
}
.branding-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand-logo-left,
.brand-logo-right { flex-shrink: 0; }

.brand-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}
.brand-logo-img--right {
    height: 80px;
}

/* Placeholder when image not uploaded yet */
.brand-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.8rem;
}
.brand-logo-placeholder--left {
    width: 90px; height: 90px;
    background: #1a2b7a;
    border: 3px solid #c0c8e0;
}
.brand-logo-placeholder--right {
    width: 88px; height: 88px;
    background: var(--steelblue);
    border-radius: 6px;
    font-size: 1.4rem;
    padding: 8px;
    text-align: center;
}
.brand-logo-placeholder--right small {
    font-size: 0.6rem;
    line-height: 1.3;
    color: rgba(255,255,255,.85);
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
}

.brand-centre {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}
.brand-dept {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 700;
    color: var(--steelblue);
    margin: 0 0 6px;
    line-height: 1.2;
}
.brand-college {
    font-family: var(--font-head);
    font-size: clamp(1rem, 1.9vw, 1.45rem);
    font-weight: 400;
    color: var(--steelblue);
    margin: 0;
    line-height: 1.3;
}

/* --- Row 3: Steelblue Navbar --- */
.main-navbar {
    background: var(--steelblue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nav-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    padding: 12px 6px;
    cursor: pointer;
    line-height: 1;
}

/* Nav menu wrapper */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Nav list */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.nav-item { position: relative; }

.nav-link {
    display: block;
    padding: 14px 11px;
    color: var(--white) !important;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--tr);
    border-bottom: 3px solid transparent;
    line-height: 1;
}
.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: var(--steel-hover);
    border-bottom-color: var(--white);
}
.nav-link .fa-caret-down { font-size: 0.75rem; margin-left: 2px; }

/* Dropdown */
.nav-item.has-dropdown { position: relative; }
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    border-top: 3px solid var(--steelblue);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 9999;
}
.nav-item.has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
    display: block;
    padding: 9px 18px;
    color: var(--text-dark);
    font-size: 0.87rem;
    font-weight: 600;
    transition: var(--tr);
}
.nav-dropdown li a:hover {
    background: var(--light-bg);
    color: var(--steelblue);
    padding-left: 22px;
}

/* Social icons inside navbar */
.nav-social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.25);
    flex-shrink: 0;
    margin-left: 6px;
}
.nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: var(--white) !important;
    font-size: 0.82rem;
    transition: var(--tr);
}
.nav-social a:hover { background: rgba(255,255,255,.35); }

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider-section { width: 100%; overflow: hidden; }
.hero-swiper { width: 100%; height: 420px; }
.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 6s ease;
}
.swiper-slide-active .slide-bg { transform: scale(1.04); }
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,25,55,.72) 0%, rgba(30,60,100,.55) 60%, rgba(91,127,166,.4) 100%);
}
.slide-content {
    position: relative; z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 30px 20px;
    max-width: 700px;
    margin: 0 auto;
}
.slide-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.slide-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    line-height: 1.25;
}
.slide-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 22px;
}
.slide-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-slide-primary {
    background: var(--accent); color: var(--white);
    border: 2px solid var(--accent);
    padding: 10px 24px; border-radius: 25px;
    font-weight: 700; font-size: .9rem;
    transition: var(--tr); display: inline-block;
}
.btn-slide-primary:hover { background: transparent; color: var(--white); }
.btn-slide-outline {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,.75);
    padding: 10px 24px; border-radius: 25px;
    font-weight: 700; font-size: .9rem;
    transition: var(--tr); display: inline-block;
}
.btn-slide-outline:hover { background: var(--white); color: var(--steelblue); }
.swiper-pagination-bullet { background: var(--white); opacity: .6; width: 9px; height: 9px; }
.swiper-pagination-bullet-active { background: var(--accent); opacity: 1; width: 26px; border-radius: 5px; }
.swiper-button-next, .swiper-button-prev { color: var(--white); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.1rem; font-weight: 900; }

/* =============================================
   WELCOME MESSAGE SECTION  (screenshot 2)
   Light grey background, centred heading, full-width text
   ============================================= */
.welcome-section {
    background: var(--light-bg);
    padding: 54px 0 60px;
}
.welcome-heading {
    text-align: center;
    margin-bottom: 28px;
}
.welcome-heading h2 {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.welcome-heading h3 {
    font-family: var(--font-head);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: var(--red-motto);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0;
}
.welcome-body {
    max-width: 920px;
    margin: 0 auto;
    text-align: justify;
}
.welcome-body p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.8;
}
.welcome-body p:last-child { margin-bottom: 0; }

/* =============================================
   COLLEGE VIEW + LATEST NEWS SECTION (screenshot 3)
   Two columns: left wider (College View), right (Latest News)
   Each has a steelblue header bar
   ============================================= */
.cview-news-section {
    background: var(--white);
    padding: 40px 0 60px;
}
.section-box { height: 100%; }
.section-box-header {
    background: var(--steelblue);
    color: var(--white);
    padding: 12px 20px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: var(--radius) var(--radius) 0 0;
}
.section-box-body {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--white);
    overflow: hidden;
}

/* College view image slider */
.cview-swiper { width: 100%; }
.cview-swiper .swiper-slide img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}
.cview-swiper .swiper-slide .slide-placeholder {
    width: 100%; height: 340px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    background: var(--light-gray);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.cview-swiper .swiper-slide .slide-placeholder i { font-size: 3rem; opacity: .4; }
.cview-swiper .swiper-pagination { bottom: 8px; }
.cview-swiper .swiper-pagination-bullet { background: var(--steelblue); opacity: .5; }
.cview-swiper .swiper-pagination-bullet-active { background: var(--steelblue); opacity: 1; }

/* Latest News list */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--tr);
}
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { background: var(--light-bg); }
.news-icon {
    width: 36px; height: 36px;
    background: var(--steelblue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: .8rem;
    flex-shrink: 0; margin-top: 2px;
}
.news-text h6 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.4;
}
.news-text .news-date {
    font-size: .75rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 4px;
}
.news-text .news-date i { color: var(--accent); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: #1e2d42; color: rgba(255,255,255,.8); }
.footer-top { padding: 52px 0 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo-area { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.footer-logo-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--steelblue);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.2rem; flex-shrink: 0;
}
.footer-logo-text { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.footer-logo-text small { display: block; font-size: .72rem; color: rgba(255,255,255,.6); font-weight: 400; }
.footer-desc { font-size: .87rem; color: rgba(255,255,255,.62); line-height: 1.8; margin-bottom: 16px; }
.footer-social-links { display: flex; gap: 8px; }
.footer-social-links a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.75); font-size: .85rem;
    transition: var(--tr);
}
.footer-social-links a:hover { background: var(--accent); color: var(--white); }

.footer-widget-title {
    font-size: .88rem; color: var(--white); font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 18px; padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
    color: rgba(255,255,255,.62);
    font-size: .86rem;
    display: flex; align-items: center; gap: 6px;
    transition: var(--tr);
}
.footer-links li a i { color: var(--accent); font-size: .68rem; }
.footer-links li a:hover { color: var(--accent-lt); padding-left: 4px; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 12px; font-size: .86rem;
    color: rgba(255,255,255,.72);
}
.footer-contact-list li i { color: var(--accent); margin-top: 3px; width: 14px; flex-shrink: 0; }
.footer-contact-list li a { color: rgba(255,255,255,.72); }
.footer-contact-list li a:hover { color: var(--accent-lt); }

.footer-bottom {
    padding: 16px 0;
    background: rgba(0,0,0,.2);
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}
.footer-bottom a { color: var(--accent-lt); }
.footer-bottom a:hover { color: var(--white); }

/* =============================================
   INNER PAGE HEADER
   ============================================= */
.page-header {
    background: linear-gradient(135deg, #0f2440 0%, var(--navy) 60%, var(--steelblue) 100%);
    padding: 56px 0 40px;
    position: relative; overflow: hidden;
}
.page-header::after {
    content: ''; position: absolute;
    top: -40%; right: -5%; width: 320px; height: 320px;
    border-radius: 50%; background: rgba(255,255,255,.04);
    pointer-events: none;
}
.page-header h1 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 10px; }
.page-header .breadcrumb { background: none; padding: 0; margin: 0; }
.page-header .breadcrumb-item { font-size: .84rem; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,.72); }
.page-header .breadcrumb-item.active { color: var(--accent-lt); }
.page-header .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.45); }
.text-accent { color: var(--accent); }

/* =============================================
   SHARED SECTION UTILITIES
   ============================================= */
.section-padding { padding: 68px 0; }
.section-padding-sm { padding: 44px 0; }
.bg-light-custom { background: var(--light-bg); }

.section-tag {
    display: inline-block;
    background: rgba(91,127,166,.1);
    color: var(--steelblue); font-size: .75rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
    border: 1px solid rgba(91,127,166,.22);
}
.section-title { font-size: clamp(1.35rem, 2.6vw, 2rem); margin-bottom: 12px; color: var(--navy); }
.section-divider { width: 52px; height: 3px; background: var(--accent); margin: 0 0 18px; border-radius: 2px; }
.section-divider.center { margin: 0 auto 18px; }
.section-lead { font-size: 1rem; color: var(--text-muted); max-width: 650px; }

/* Feature cards */
.feature-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 28px 22px; height: 100%;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: var(--tr); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--steelblue), var(--accent));
    transform: scaleX(0); transition: transform .35s ease; transform-origin: left;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 58px; height: 58px; border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--steelblue));
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.5rem; margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(26,58,92,.2);
}
.feature-card h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.feature-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* Buttons */
.btn-primary-custom {
    background: var(--steelblue); color: var(--white);
    border: 2px solid var(--steelblue);
    padding: 10px 24px; border-radius: 25px;
    font-weight: 600; transition: var(--tr); display: inline-block;
}
.btn-primary-custom:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-outline-custom {
    background: transparent; color: var(--steelblue);
    border: 2px solid var(--steelblue);
    padding: 10px 24px; border-radius: 25px;
    font-weight: 600; transition: var(--tr); display: inline-block;
}
.btn-outline-custom:hover { background: var(--steelblue); color: var(--white); }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--accent), #a07020); padding: 54px 0; }
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.85); }
.btn-cta-white {
    background: var(--white); color: var(--accent);
    border: 2px solid var(--white);
    padding: 11px 26px; border-radius: 25px;
    font-weight: 700; transition: var(--tr); display: inline-block;
}
.btn-cta-white:hover { background: transparent; color: var(--white); }
.btn-cta-outline {
    background: transparent; color: var(--white);
    border: 2px solid rgba(255,255,255,.7);
    padding: 11px 26px; border-radius: 25px;
    font-weight: 700; transition: var(--tr); display: inline-block;
}
.btn-cta-outline:hover { background: var(--white); color: var(--accent); }

/* Team cards */
.team-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--tr); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-card-img-placeholder { width: 100%; height: 240px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: rgba(255,255,255,.3); }
.team-card-body { padding: 18px 18px 12px; }
.team-card-body h5 { font-size: .95rem; margin-bottom: 4px; color: var(--navy); }
.team-card-body .designation { font-size: .8rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.team-card-body p { font-size: .83rem; color: var(--text-muted); margin: 0; }
.team-card-footer { padding: 10px 18px; background: var(--light-bg); border-top: 1px solid var(--border); }

/* Gallery */
.gallery-grid { column-count: 3; column-gap: 14px; }
@media(max-width:768px){.gallery-grid{column-count:2;}}
@media(max-width:480px){.gallery-grid{column-count:1;}}
.gallery-item { break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--tr); cursor: pointer; position: relative; }
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; display: block; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(26,58,92,.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--tr); }
.gallery-overlay i { font-size: 1.6rem; color: var(--white); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: var(--white); font-size: 1.8rem; cursor: pointer; background: none; border: none; line-height: 1; transition: var(--tr); }
.lightbox-close:hover { color: var(--accent); }

/* Contact */
.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.contact-info-card { background: linear-gradient(135deg, #0f2440, var(--navy)); border-radius: var(--radius-lg); padding: 36px; color: var(--white); }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(200,150,43,.2); border: 1px solid rgba(200,150,43,.4); display: flex; align-items: center; justify-content: center; color: var(--accent-lt); font-size: .9rem; flex-shrink: 0; }
.contact-info-text h6 { color: var(--accent-lt); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.contact-info-text p, .contact-info-text a { color: rgba(255,255,255,.82); font-size: .9rem; margin: 0; }
.contact-info-text a:hover { color: var(--accent-lt); }
.form-control, .form-select { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 9px 14px; font-size: .9rem; transition: var(--tr); background: var(--light-bg); }
.form-control:focus, .form-select:focus { border-color: var(--steelblue); box-shadow: 0 0 0 3px rgba(91,127,166,.15); background: var(--white); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--text-dark); margin-bottom: 5px; }
.alert-success-custom { background: rgba(46,125,82,.1); border: 1px solid var(--success); color: var(--success); border-radius: var(--radius); padding: 11px 16px; font-size: .88rem; display: none; }
.alert-error-custom { background: rgba(200,50,50,.1); border: 1px solid #c83232; color: #c83232; border-radius: var(--radius); padding: 11px 16px; font-size: .88rem; display: none; }

/* Map */
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrapper iframe { display: block; width: 100%; }

/* Accordion */
.accordion-item { border: 1px solid var(--border) !important; border-radius: var(--radius) !important; margin-bottom: 7px; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: .92rem; color: var(--text-dark); background: var(--light-bg); }
.accordion-button:not(.collapsed) { background: var(--steelblue); color: var(--white); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(91,127,166,.15); }
.accordion-button:not(.collapsed)::after { filter: invert(1); }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 26px; right: 26px; z-index: 9000;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--steelblue); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px);
    transition: var(--tr); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--accent); color: var(--white); }

/* Timeline */
.timeline { position: relative; padding-left: 38px; border-left: 3px solid var(--border); }

/* Divider line */
.divider-line { border-top: 1px solid var(--border); margin: 28px 0; }

/* Print */
@media print {
    .site-header, .site-footer, .back-to-top, .cta-section { display: none !important; }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Desktop: nav-menu always visible as flex row */
@media(min-width:992px) {
    .nav-hamburger { display: none; }
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        width: 100%;
        background: transparent;
        position: static;
        padding: 0;
        box-shadow: none;
    }
    .nav-list {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        align-items: center;
    }
    /* Desktop dropdown on hover */
    .nav-item.has-dropdown:hover .nav-dropdown { display: block; }
    .nav-item.has-dropdown .nav-dropdown { display: none; }
}

/* Mobile/Tablet */
@media(max-width:991px) {
    /* Hamburger visible */
    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        margin-left: auto;
    }

    /* Nav container needs position:relative so dropdown can anchor */
    .main-navbar { position: relative; }
    .nav-container {
        position: relative;
        flex-wrap: wrap;
        padding: 4px 14px;
    }

    /* Hidden by default, shown when .open added by JS */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: var(--steel-dark);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
        box-shadow: 0 6px 20px rgba(0,0,0,.25);
        padding: 6px 0 14px;
    }
    .nav-menu.open { display: flex; }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        padding: 11px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,.1);
        border-left: 3px solid transparent;
        width: 100%;
        border-radius: 0;
    }
    .nav-link.active,
    .nav-link:hover {
        border-left-color: var(--white);
        background: var(--steel-hover);
        border-bottom-color: rgba(255,255,255,.1);
    }

    /* Mobile dropdown — static, shown via .open class on parent */
    .nav-dropdown {
        display: none !important;
        position: static !important;
        background: rgba(0,0,0,.2) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        min-width: 100%;
        padding: 0;
    }
    .nav-item.has-dropdown.open > .nav-dropdown {
        display: block !important;
    }
    .nav-dropdown li a {
        color: rgba(255,255,255,.85);
        padding: 9px 32px;
        font-size: .85rem;
    }
    .nav-dropdown li a:hover {
        background: rgba(255,255,255,.12);
        color: var(--white);
        padding-left: 36px;
    }

    .nav-social {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.15);
        padding: 12px 20px;
        margin-left: 0;
        width: 100%;
    }

    /* Branding row */
    .brand-dept   { font-size: clamp(.95rem, 2.8vw, 1.4rem); }
    .brand-college{ font-size: clamp(.82rem, 2.2vw, 1.1rem); }

    /* Hero */
    .hero-swiper { height: 54vw; min-height: 260px; }

    /* Sections */
    .section-padding { padding: 44px 0; }
}

@media(max-width:600px) {
    /* Branding logos */
    .brand-logo-img          { height: 58px; }
    .brand-logo-img--right   { height: 52px; }
    .brand-logo-placeholder--left  { width: 58px; height: 58px; font-size: 1.3rem; }
    .brand-logo-placeholder--right { width: 56px; height: 56px; font-size: 1rem; }

    /* Motto */
    .motto-text { font-size: .65rem; }

    /* Branding text */
    .brand-dept    { font-size: .95rem; }
    .brand-college { font-size: .8rem; }
    .brand-centre  { padding: 0 10px; }

    /* Hero */
    .hero-swiper { height: 65vw; min-height: 220px; }
    .slide-title { font-size: 1.25rem; }
    .slide-sub   { font-size: .85rem; }
    .slide-btns  { gap: 8px; }
    .btn-slide-primary,
    .btn-slide-outline { padding: 8px 16px; font-size: .8rem; }

    /* College view */
    .cview-swiper .swiper-slide img,
    .cview-swiper .swiper-slide .slide-placeholder { height: 200px; }

    /* Other */
    .gallery-grid { column-count: 2; }
    .contact-form-card,
    .contact-info-card { padding: 18px; }
    .footer-top { padding: 32px 0 20px; }

    /* Welcome section */
    .welcome-heading h2 { font-size: 1.05rem; }
    .welcome-heading h3 { font-size: .9rem; }
    .welcome-body p     { font-size: .92rem; text-align: left; }
}

@media(max-width:400px) {
    .branding-inner { gap: 8px; }
    .brand-logo-img          { height: 48px; }
    .brand-logo-placeholder--left  { width: 48px; height: 48px; font-size: 1.1rem; }
    .brand-logo-placeholder--right { width: 46px; height: 46px; }
    .motto-text { font-size: .6rem; }
}
