/* ============================================
   Alpine Public School - Main Stylesheet
   alpinepublicschool.org.in
   ============================================ */

:root {
    --primary: #1a3a6e;
    --primary-dark: #0f2348;
    --primary-light: #2a5298;
    --accent: #e8a020;
    --accent-light: #f5c842;
    --white: #ffffff;
    --light-bg: #f4f7fc;
    --text: #2c3e50;
    --text-light: #6b7a8d;
    --border: #dce3ef;
    --success: #27ae60;
    --danger: #e74c3c;
    --shadow: 0 4px 20px rgba(26,58,110,0.10);
    --shadow-hover: 0 8px 32px rgba(26,58,110,0.18);
    --radius: 10px;
    --radius-lg: 18px;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;

    /* ── Gallery page variables ── */
    --navy:  #0f2348;
    --gold:  #c9972b;
    --gold2: #f5c842;
    --grey:  #6b7a8d;
    --r:     12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.3; }

a { text-decoration: none; color: inherit; transition: all 0.3s; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- TOPBAR ---- */
.topbar {
    background: var(--primary-dark);
    color: #b8c8e8;
    font-size: 13px;
    padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left span, .topbar-right a { margin-right: 18px; }
.topbar-left i, .topbar-right i { margin-right: 5px; color: var(--accent); }
.topbar-right a { color: #b8c8e8; }
.topbar-right a:hover { color: var(--accent-light); }
.topbar-btn {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.topbar-btn:hover { background: var(--accent-light); }

/* ---- HEADER ---- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(26,58,110,0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 40px; line-height: 1; }
.logo-text h1 { font-size: clamp(18px, 3vw, 28px); color: var(--primary); font-weight: 800; letter-spacing: -0.5px; }
.logo-text p { font-size: 12px; color: var(--text-light); font-family: var(--font-body); margin-top: 2px; }

/* ---- LOGO IMAGE ---- */
.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    padding: 3px;
    transition: 0.3s;
}
.logo-img:hover { transform: scale(1.05); }

/* ---- NAV ---- */
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 15px;
    display: block;
}
.main-nav ul li a:hover, .main-nav ul li a.active {
    background: var(--light-bg);
    color: var(--primary);
}
.main-nav ul li a.active { color: var(--primary); font-weight: 600; }

/* ---- DROPDOWN ---- */
.dropdown { position: relative; }

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    border-top: 3px solid var(--primary);
    z-index: 999;
    flex-direction: column;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.dropdown:hover > .dropdown-menu {
    display: flex !important;
}

.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 0;
    color: var(--primary-dark);
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 24px;
}

/* ---- HAMBURGER ---- */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--primary); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO IMAGE SLIDER ---- */
.hero {
    color: var(--white);
    padding: 120px 0 100px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero::before {
    background-image:
        linear-gradient(135deg, rgba(15,35,72,0.82) 0%, rgba(42,82,152,0.75) 100%),
        url('/images/SCHOOLF.jpeg');
    animation: heroFadeA 10s infinite;
}

.hero::after {
    background-image:
        linear-gradient(135deg, rgba(15,35,72,0.82) 0%, rgba(42,82,152,0.75) 100%),
        url('/images/SCHOOL.jpeg');
    animation: heroFadeB 10s infinite;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@keyframes heroFadeA {
    0%   { opacity: 1; }
    45%  { opacity: 1; }
    50%  { opacity: 0; }
    95%  { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes heroFadeB {
    0%   { opacity: 0; }
    45%  { opacity: 0; }
    50%  { opacity: 1; }
    95%  { opacity: 1; }
    100% { opacity: 0; }
}

.hero-badge {
    display: inline-block;
    background: rgba(232,160,32,0.2);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; margin-bottom: 16px; line-height: 1.15; }
.hero h2 span { color: var(--accent-light); }
.hero p { font-size: 17px; opacity: 0.88; margin-bottom: 28px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s;
    border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,0.4); }
.btn-outline {
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }

/* ---- HERO STATS ---- */
.hero-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.stat-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    transition: all 0.3s;
}
.stat-card:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.stat-card .num { font-size: 36px; font-weight: 800; font-family: var(--font-head); color: var(--accent-light); }
.stat-card .label { font-size: 13px; opacity: 0.8; margin-top: 4px; }

/* ---- SECTION COMMONS ---- */
.section { padding: 48px 0 !important; }
.section-alt { background: var(--light-bg); padding: 48px 0 !important; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .tag {
    display: inline-block;
    background: rgba(26,58,110,0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 38px); color: var(--primary-dark); margin-bottom: 12px; }
.section-head p { color: var(--text-light); max-width: 560px; margin: 0 auto; font-size: 16px; }
.divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    margin: 14px auto 0;
}

/* ---- NOTICES ---- */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 20px;
    border: none !important;
    outline: none !important;
}
.notice-card {
    background: var(--white);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 20px 22px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}
.notice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.notice-card.important { border-left-color: var(--accent); }
.notice-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.badge-admission { background: #e8f5e9; color: #2e7d32; }
.badge-exam { background: #fff3e0; color: #e65100; }
.badge-event { background: #e3f2fd; color: #1565c0; }
.badge-general { background: #f3e5f5; color: #6a1b9a; }
.badge-holiday { background: #fce4ec; color: #880e4f; }
.notice-card h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; font-family: var(--font-head); }
.notice-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.notice-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
    text-decoration: none !important;
    -webkit-text-decoration: none;
}
.notice-date i { margin-right: 4px; color: var(--accent); }
.notice-card * { text-decoration: none !important; }

/* ---- NOTICE MARQUEE ---- */
.notices-marquee-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.notices-marquee-wrap::before,
.notices-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.notices-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--light-bg), transparent);
}
.notices-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--light-bg), transparent);
}
.notices-marquee {
    display: flex;
    gap: 20px;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}
.notices-marquee:hover {
    animation-play-state: paused;
}
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.notices-marquee .notice-card {
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ---- ABOUT STRIP ---- */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    height: 340px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: white; font-size: 80px;
}
.about-img-placeholder img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}
.about-img-placeholder p { font-size: 16px; margin-top: 12px; opacity: 0.8; font-family: var(--font-body); }
.est-badge {
    position: absolute; bottom: -16px; right: -16px;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-hover);
}
.about-content h2 { font-size: 34px; color: var(--primary-dark); margin-bottom: 16px; }
.about-content p { color: var(--text-light); margin-bottom: 14px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.feature-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--light-bg);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px; font-weight: 500;
}
.feature-item i { color: var(--primary); font-size: 16px; width: 20px; text-align: center; }

/* ---- STREAMS ---- */
.streams-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.stream-card {
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    color: white;
    transition: all 0.3s;
    position: relative; overflow: hidden;
}
.stream-card::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.08); opacity: 0; transition: 0.3s; }
.stream-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.stream-card:hover::before { opacity: 1; }
.stream-science { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.stream-commerce { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.stream-arts { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.stream-card .icon { font-size: 50px; margin-bottom: 16px; }
.stream-card h3 { font-size: 22px; margin-bottom: 10px; }
.stream-card p { font-size: 14px; opacity: 0.9; margin-bottom: 16px; line-height: 1.6; }
.stream-subjects { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.stream-subjects span {
    background: rgba(255,255,255,0.20);
    border: 1px solid rgba(255,255,255,0.30);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ---- LEADERSHIP ---- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1160px;
    margin: 0 auto;
}
.leader-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
}
.leader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.leader-avatar {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: white;
    margin: 0 auto 16px;
    font-family: var(--font-head); font-weight: 800;
}
.leader-card h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 4px; line-height: 1.3; }
.leader-card .role { color: var(--accent); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.leader-card .qual { font-size: 12px; color: var(--text-light); background: var(--light-bg); padding: 6px 10px; border-radius: 20px; display: inline-block; line-height: 1.5; }

/* ---- CONTACT SECTION ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h3 { font-size: 26px; color: var(--primary-dark); margin-bottom: 20px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: var(--light-bg);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 18px;
}
.info-text strong { display: block; color: var(--primary-dark); font-size: 14px; margin-bottom: 2px; }
.info-text span, .info-text a { color: var(--text-light); font-size: 14px; }
.info-text a:hover { color: var(--primary); }

/* ---- FORM ---- */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}
.form-card h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: all 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,110,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ---- FOOTER ---- */
.site-footer { background: var(--primary-dark); color: #b0bec5; }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo span { font-size: 30px; }
.footer-logo h3 { font-size: 18px; color: white; font-family: var(--font-head); }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #b0bec5; font-size: 16px;
    transition: all 0.3s;
}
.footer-social a:hover { background: var(--accent); color: var(--primary-dark); }
.footer-col h4 { font-size: 16px; color: white; margin-bottom: 16px; font-family: var(--font-head); position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 2px; background: var(--accent); border-radius: 2px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #b0bec5; font-size: 14px; transition: all 0.3s; }
.footer-col ul li a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-col ul li a i { font-size: 11px; margin-right: 6px; color: var(--accent); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
.contact-list li i { color: var(--accent); margin-top: 3px; width: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    display: flex;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}
.footer-bottom .fa-heart { color: var(--accent); }

/* ---- FLOATING BUTTONS ---- */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 56px; height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}
.scroll-top {
    position: fixed;
    bottom: 90px; right: 28px;
    width: 42px; height: 42px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow);
    z-index: 998;
    transition: all 0.3s;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---- PAGE BANNER ---- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}
.page-banner h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 14px; opacity: 0.8; }
.breadcrumb a { color: var(--accent-light); }
.breadcrumb span { opacity: 0.6; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 680px !important;
    }
}

@media (max-width: 992px) {
    .hero-inner, .about-strip, .contact-grid { grid-template-columns: 1fr; }
    .streams-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 768px) {
    .topbar-left { display: none; }
    .logo-text h1 { font-size: 20px; }
    .hero { padding: 50px 0 40px; min-height: unset; }
    .about-img-placeholder { height: auto; padding: 20px; }
    .est-badge { bottom: -10px; right: -8px; font-size: 12px; padding: 10px 12px; }
    .contact-grid { gap: 24px; }
    .form-card { padding: 22px 16px; }
    .stat-card .num { font-size: 28px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow-hover);
        flex-direction: column;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav ul li a { padding: 10px 14px; }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static !important;
        display: none !important;
        box-shadow: none;
        border-top: none;
        background: var(--light-bg);
        border-radius: 8px;
        margin-top: 4px;
    }
    .dropdown:hover > .dropdown-menu {
        display: none !important;
    }
    .dropdown.open > .dropdown-menu {
        display: flex !important;
        flex-direction: column;
    }

    .hamburger { display: flex; }
    .streams-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-stats { grid-template-columns: repeat(2,1fr); }
    .form-row { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .leadership-grid {
        grid-template-columns: 1fr !important;
        max-width: 360px !important;
    }
}


/* ============================================
   GALLERY PAGE OVERRIDES
   pages/gallery.php
   ============================================ */

/* Hero — override homepage slider styles */
.page-gallery .hero,
body.page-gallery .hero {
    background: var(--navy) !important;
    padding: 60px 20px 44px !important;
    min-height: unset !important;
    text-align: center;
}
.page-gallery .hero::before {
    background-image: radial-gradient(ellipse 80% 100% at 50% 140%, rgba(201,151,43,.22) 0%, transparent 65%) !important;
    animation: none !important;
    background-size: unset !important;
    background-position: unset !important;
}
.page-gallery .hero::after {
    background-image: none !important;
    animation: none !important;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), transparent) !important;
    height: 3px !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}
.page-gallery .hero .hero-badge {
    background: rgba(201,151,43,.15);
    border: 1px solid rgba(201,151,43,.4);
    color: var(--gold);
    font-size: .7rem;
    letter-spacing: .18em;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.page-gallery .hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: #ffffff !important;
    line-height: 1.15;
}
.page-gallery .hero h1 em { color: var(--gold); font-style: italic; }
.page-gallery .hero p {
    margin-top: 14px;
    color: #94a3b8 !important;
    font-size: 1rem;
    opacity: 1 !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
}
.page-gallery .breadcrumb {
    margin-top: 22px;
    font-size: .8rem;
    color: #475569;
    display: block !important;
    justify-content: unset !important;
    gap: unset !important;
    opacity: 1 !important;
}
.page-gallery .breadcrumb a { color: var(--gold); }

/* Filter bar */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 32px 20px 20px;
}
.fb {
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    padding: 9px 26px;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: .05em;
    transition: all .25s;
}
.fb:hover, .fb.active { background: var(--navy); color: var(--gold); }

/* Gallery grid */
.gallery-wrap { max-width: 1300px; margin: 0 auto; padding: 8px 28px 90px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* Card */
.g-card {
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(13,27,42,.11);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s;
    position: relative;
}
.g-card:hover { transform: translateY(-8px); box-shadow: 0 22px 60px rgba(13,27,42,.2); }
.g-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold2));
    z-index: 2;
}
.g-card.hidden { display: none; }

.g-img { position: relative; overflow: hidden; height: 260px; background: #dce2ea; }
.g-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.g-card:hover .g-img img { transform: scale(1.07); }
.g-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .35s;
}
.g-card:hover .g-img::after { opacity: 1; }

.g-cat {
    position: absolute;
    bottom: 14px; right: 14px;
    z-index: 3;
    background: var(--navy);
    color: var(--gold);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1.5px solid var(--gold);
}

.g-zoom {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 4; opacity: 0; transition: opacity .3s;
}
.g-card:hover .g-zoom { opacity: 1; }
.g-zoom span {
    background: rgba(201,151,43,.9);
    color: var(--navy);
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
}

.g-body { padding: 20px 22px 24px; border-top: 4px solid var(--gold); }
.g-title { font-family: var(--font-head); font-size: 1.18rem; color: var(--navy); margin-bottom: 10px; }
.g-desc { font-size: .84rem; color: #4b5563; line-height: 1.75; }
.g-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid #f0ebe2;
}
.g-meta-tag {
    background: rgba(201,151,43,.12);
    color: var(--gold);
    font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 50px;
    border: 1px solid rgba(201,151,43,.3);
}
.g-meta-year { font-size: .78rem; color: var(--grey); }

/* Lightbox */
#lb {
    display: none;
    position: fixed; inset: 0;
    background: rgba(5,10,18,.93);
    z-index: 9999;
    justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
}
#lb.open { display: flex; }
.lb-box { position: relative; max-width: 94vw; animation: lbZoom .28s ease; }
@keyframes lbZoom { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#lb-img { max-width: 88vw; max-height: 80vh; border-radius: var(--r); display: block; box-shadow: 0 24px 80px rgba(0,0,0,.7); }
.lb-info { background: var(--navy); border-top: 4px solid var(--gold); border-radius: 0 0 var(--r) var(--r); padding: 18px 24px; }
.lb-info strong { color: #ffffff; font-size: 1rem; display: block; margin-bottom: 4px; }
.lb-info span { color: #94a3b8; font-size: .82rem; }
.lb-close {
    position: absolute; top: -16px; right: -16px;
    background: var(--gold); color: var(--navy);
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.3rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform .2s;
    border: none;
}
.lb-close:hover { transform: scale(1.15) rotate(90deg); }

/* Gallery responsive */
@media (max-width: 768px) {
    .gallery-wrap { padding: 8px 16px 60px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .filter-bar { padding: 20px 12px 16px; gap: 8px; }
    .fb { padding: 7px 16px; font-size: .78rem; }
}
/* ===== MENU ALIGN FIX ===== */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 15px;           /* spacing control */
  flex-wrap: nowrap;   /* line break बंद */
}

.main-nav ul li a {
  font-size: 14px;
  white-space: nowrap; /* text break नहीं होगा */
}

/* Dropdown alignment */
.main-nav ul li {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: block;
}
/* ===== EVENTS SECTION FIX ===== */

.events-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:25px;
}

.event-card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  transition:0.3s;
}

.event-card:hover{
  transform:translateY(-5px);
}

/* 👇 Image size control */
.event-img{
  height:180px;      /* 👈 size control (150–200 adjust kar sakte ho) */
  overflow:hidden;
}

.event-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* 👇 Text section */
.event-body{
  padding:16px;
}

.event-date{
  font-size:13px;
  color:#c9972b;
  font-weight:600;
  margin-bottom:6px;
}

.event-title{
  font-size:17px;
  font-weight:700;
  color:#0d1b2a;
  margin-bottom:6px;
}

.event-desc{
  font-size:14px;
  color:#555;
  line-height:1.6;
}
/* FORCE FIX */
.event-img{
  height:200px !important;
  background:#eee;
  overflow:hidden;
}

.event-img img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}
.event-img{
  height:200px;
  overflow:hidden;
  background:#ddd; /* fallback */
}

.event-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* ===== EVENTS FINAL FIX (FORMAT SAME) ===== */

.events-container{
  max-width:1100px;
  margin:60px auto;
  padding:20px;
}

.events-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr); /* 👈 3 cards same line */
  gap:25px;
}

.event-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

/* 👇 IMAGE FIX (MAIN ISSUE) */
.event-img{
  height:200px;
  background:#ddd;
  overflow:hidden;
}

.event-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 👇 TEXT SAME FORMAT */
.event-body{
  padding:18px;
}

.event-date{
  font-size:13px;
  color:#c9972b;
  font-weight:600;
  margin-bottom:6px;
}

.event-title{
  font-size:18px;
  font-weight:700;
  color:#0d1b2a;
  margin-bottom:6px;
}

.event-desc{
  font-size:14px;
  color:#555;
  line-height:1.6;
}