/* Global Variables */
:root {
    --primary-color: #800000;
    /* Deep Maroon */
    --secondary-color: #FFD700;
    /* Gold */
    --accent-color: #FF4500;
    /* Red Orange */
    --text-dark: #2c1810;
    /* Dark Brown for text */
    --text-light: #f5f5f5;
    --bg-light: #FFF8F0;
    /* Warm Beige */
    --font-heading: 'Mukta', sans-serif;
    --font-body: 'Mukta', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

/* New Banner Header */
.site-header {
    background-color: #192b4a;
    /* Red Banner Background */
    padding: 15px 0;
    border-bottom: 5px solid #ffd700;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-logo img {
    height: 140px;
    /* Big Logo in Banner */
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.header-text {
    flex: 1;
}

.mandal-name {
    font-family: 'Mukta', sans-serif;
    /* Marathi Font - Mukta supports Devanagari numerals */
    background: linear-gradient(to bottom, #d8db07 0%, #ddbe0e 50%, #C06500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3rem;
    /* Large text */
    line-height: 1.2;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.5));
    margin-bottom: 15px;
}

.header-details {
    display: flex;
    justify-content: space-between;
    /* Split left and right */
    width: 100%;
    /* Ensure it spans full width */
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    font-family: var(--font-body);
    padding-right: 20px;
    /* Optional: Adjust for visual balance */
}

/* Navbar (Moved Below) */
.navbar {
    position: sticky;
    /* Sticky below header or top of screen */
    top: 0;
    left: 0;
    width: 100%;
    background: #213355;
    /* Darker Maroon Strip */
    padding: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: center;
    /* Center links */
    align-items: center;
    height: 60px;
}

.navbar.scrolled,
.navbar.scrolled-always {
    padding: 0;
    /* Reset padding change */
    background: #213355;
}

.navbar.scrolled .logo,
.navbar.scrolled-always .logo {
    display: none;
    /* Hide old logo logic if any remains */
}

/* Nav Links Updated */
/* Nav Links Updated */
.nav-links {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Ensure all items take full height */
    justify-content: space-evenly;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    /* Match container height */
}

/* Base Mobile Logo */
.mobile-logo {
    display: none;
    /* Hidden on desktop */
}

.member-card {
    background: #fff;
    padding: 12px 15px;
    text-align: left;
    border-left: 5px solid #FF4500;
    /* Red-Orange Left Border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    color: #333;
    border-radius: 4px;
    /* Slight rounded corners */
    transition: transform 0.2s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .members-grid.single-center .member-card {
        width: 100%;
    }

    .header-text,
    .site-header {
        display: none;
    }

    /* Mobile Navbar Layout */
    .nav-container {
        justify-content: space-between;
        padding: 5px 20px;
        /* Reduced vertical padding */
        height: auto;
        /* Allow flexible height */
        min-height: 80px;
        /* Minimum height for larger logo */
    }

    .mobile-logo {
        display: block;
        height: 80px;
        /* Increased Size */
        padding: 5px 0;
        margin-right: auto;
        /* Force Left Alignment */
    }

    .mobile-logo img {
        height: 100%;
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        /* Add depth */
    }

    /* Mobile Menu Position */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: rgba(33, 51, 85, 0.97);
        padding: 100px 30px 40px;
        z-index: 9998;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        gap: 0;
        align-items: stretch;
        justify-content: flex-start;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #fff !important;
        font-size: 1.3rem;
        letter-spacing: 0.5px;
        transition: background 0.2s ease, padding-left 0.2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.06);
        padding-left: 15px;
    }

    .nav-link::after {
        display: none;
    }
}

/* Nav Link Styling */
.nav-link {
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Mukta', sans-serif;
    padding: 0 15px;
    /* Horizontal padding only */
    display: flex;
    align-items: center;
    height: 100%;
    /* Full height for clickable area */
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    /* Adjusted up from bottom edge */
    left: 15px;
    right: 15px;
    /* Constrain width matches padding */
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    width: auto;
    /* Override previous width handling if any */
}



.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* Directly below the li */
    left: 50%;
    transform: translateX(-50%);
    background-color: #213355;
    min-width: 220px;
    /* Slightly wider */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #FFD700;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 10000;
    /* Ensure visibility */
    border-radius: 0 0 5px 5px;
}

/* Show submenu on li hover */
/* Show submenu on li hover */
/* Hover Logic - applied to the li parent */
.nav-links>li:hover .sub-menu {
    display: block;
    animation: fadeUp 0.3s ease forwards;
}

/* Submenu List Items */
.sub-menu li {
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
    /* Ensure block formatting context */
}

/* Submenu Links */
.sub-menu li a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #fff !important;
    /* Force legible color */
    background-color: transparent;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: auto;
    /* Override inherited height:100% */
}

.sub-menu li:last-child a {
    border-bottom: none;
}

/* Submenu Link Hover */
.sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFD700 !important;
    padding-left: 25px;
    /* Nudge effect */
}

.navbar.scrolled .nav-link::after {
    background: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    border: 2px solid #FFD700;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.35);
    transition: transform 0.2s ease, background 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle.active {
    background: linear-gradient(135deg, #a00000 0%, #c00000 100%);
    transform: scale(1.05);
}

.bar {
    width: 24px;
    height: 3px;
    background-color: #FFD700 !important;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X for active hamburger toggle */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(128, 0, 0, 0.6));
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.hero-title {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.section {
    padding: 30px 0;
}

.hero-info-section {
    position: relative;
    min-height: 85vh;
    background: url('assets/images/hero-bg.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(247, 198, 0, 0.15);
    color: #f7c600;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 58px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-info-box {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    font-size: 15px;
    opacity: 0.85;
}

.hero-info-box span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }

    .hero-tagline {
        font-size: 16px;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 5px solid #fff;
}

.experience-badge .years {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-weight: 600;
    text-transform: uppercase;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.about-content h3 {
    text-align: left;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(180deg, #ffffff 0%, #fffbf7 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 290px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 3px solid rgba(255, 215, 0, 0.45);
    background: #110000;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(128, 0, 0, 0.28);
    border-color: #FFD700;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(128, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 22px 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay-content {
    text-align: center;
    color: #ffffff;
    width: 100%;
}

.gallery-overlay-content i {
    font-size: 2.2rem;
    color: #FFD700;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.gallery-overlay-content h4 {
    font-family: 'Mukta', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.35;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay-content i {
    transform: scale(1.15);
}

/* ── Live Telecast & Video Section ── */
/* ── Live Telecast & Video Section ── */
.live-stream-container {
    margin-top: 55px;
    background: linear-gradient(135deg, #1f0000 0%, #3d0000 50%, #200000 100%);
    border-radius: 24px;
    padding: 40px 30px;
    border: 3px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 15px 45px rgba(128, 0, 0, 0.25), 0 0 30px rgba(255, 215, 0, 0.15);
    color: #ffffff;
    overflow: hidden;
}

.live-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.6);
    color: #ff4d4d;
    font-family: 'Mukta', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    max-width: 100%;
    text-align: center;
    line-height: 1.35;
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: live-pulse-anim 1.5s infinite;
}

@keyframes live-pulse-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.live-section-title {
    font-family: 'Mukta', sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 1.8rem);
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.live-section-desc {
    font-family: 'Mukta', sans-serif;
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 780px;
    margin: 0 auto 30px;
    line-height: 1.65;
}

/* 16:9 Responsive Video Frame Wrapper */
.live-video-player-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #0b0000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.2);
    border: 3px solid rgba(255, 215, 0, 0.6);
    margin: 10px 0 25px;
}

.live-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    overflow: hidden;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    transition: opacity 0.35s ease;
}

.live-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.live-thumb-overlay:hover .live-thumb-img {
    transform: scale(1.02);
}

.live-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    width: 90%;
    text-align: center;
}

.live-thumb-overlay:hover .live-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
}

.live-play-icon {
    width: 72px;
    height: 52px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.live-play-label {
    font-family: 'Mukta', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 0, 0, 0.88);
    padding: 6px 20px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

#home-live-iframe.active {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 4;
}

.live-thumb-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.live-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.live-feature-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.live-feature-card:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-3px);
}

.live-feature-card i {
    font-size: 1.5rem;
    color: #FFD700;
    flex-shrink: 0;
}

.live-feature-card h5 {
    font-family: 'Mukta', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 2px;
}

.live-feature-card p {
    font-family: 'Mukta', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================
   NEW PREMIUM FOOTER STYLES
   ========================================== */

/* Main Footer Container */
.footer {
    background: linear-gradient(135deg, #0a1118 0%, #122035 50%, #0c1624 100%);
    color: #f5f5f5;
    padding: 80px 0 0;
    /* Padding bottom 0 because of footer-bottom */
    font-size: 0.95rem;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* Subtle background glowing effect */
.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Grid Wrapper */
.footer-grid-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Headings */
.footer h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-family: 'Mukta', sans-serif;
    /* Beautiful Marathi Heading Font */
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.members-grid {
    /* Grid removed in favor of Bootstrap Row structure */
    margin-top: 10px;
}

/* Raja Details Section */
.raja-details-section {
    background-color: var(--bg-light);
    /* Warm Beige */
    padding: 60px 0;
}

/* Scrolling Wrapper converted to Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive Grid */
    gap: 30px;
    padding: 20px 0 40px;
    /* Vertical padding */
    width: 100%;
}

/* Scrollbar styles removed */

.detail-card {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid var(--primary-color);
    overflow: hidden;
    position: relative;

    /* Grid Item */
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.card-img-top {
    width: 100%;
    height: 180px;
    background: #f4f4f4;
    position: relative;
    /* Not absolute */
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail-card:hover .card-img-top img {
    transform: scale(1.1);
}

/* Gradient Overlay Removed */
.detail-card::after {
    display: none;
}

.card-body {
    padding: 20px;
    background: #fff;
    color: var(--text-dark);
    position: relative;
    /* Not absolute */
    flex-grow: 1;
}

.card-body h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: 'Mukta', sans-serif;
    text-shadow: none;
}

.detail-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-points li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.4;
}

.detail-points li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}



/* Old Icon Removed */

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}



.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Mukta', sans-serif;
}

.detail-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* History Content in About Page */
.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-block {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.history-block h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Mukta', sans-serif;
}

.history-block p {
    font-size: 1.1rem;
    color: #444;
    text-align: justify;
}

.lead-text {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 500;
}



/* Column 1: Brand Info details */
.footer-col-brand {
    align-items: flex-start;
}

.footer-logo img {
    height: 75px;
    width: 75px;
    object-fit: contain;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 50%;
    padding: 5px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 215, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.footer-logo img:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45);
}

.footer-mandal-title {
    font-family: 'Noto Serif Devanagari', 'Baloo 2', serif;
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.footer-mandal-subtitle {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.footer-mandal-meta {
    font-size: 0.85rem;
    color: #a0a8b5;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    width: 100%;
}

.footer-desc {
    line-height: 1.7;
    color: #cbd5e1;
    font-size: 0.9rem;
    text-align: justify;
    margin-bottom: 20px;
}

/* Social Buttons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-social .social-icon:hover {
    transform: translateY(-5px);
    color: #0d1b2a;
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

.footer-social .social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #fff;
}

.footer-social .social-icon.facebook:hover {
    background: #1877f2;
    border-color: transparent;
    color: #fff;
}

.footer-social .social-icon.youtube:hover {
    background: #ff0000;
    border-color: transparent;
    color: #fff;
}

/* Columns 2 & 3: Lists & Links */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.footer-col ul li a i {
    font-size: 0.75rem;
    color: rgba(255, 215, 0, 0.4);
    transition: transform 0.25s ease, color 0.25s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(6px);
}

.footer-col ul li a:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Column 4: Contact */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-details p {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.contact-details p i {
    color: var(--secondary-color);
    font-size: 1.05rem;
    margin-top: 3px;
    flex-shrink: 0;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

/* Google Map Button */
.footer-map-btn-wrapper {
    margin-top: auto;
}

.footer-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b30000 100%);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1.5px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-map-btn:hover {
    background: transparent;
    color: var(--secondary-color) !important;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Footer Bottom Section */
.footer-bottom {
    margin-top: 30px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-bottom-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .developer i {
    color: #ff4757;
    margin-left: 2px;
}

.animate-heart {
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.12);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.12);
    }

    70% {
        transform: scale(1);
    }
}

/* Back to Top Floating Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b30000 100%);
    border: 2px solid var(--secondary-color);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Responsive Styles for Grid */
@media (max-width: 991px) {
    .footer-grid-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-col-brand {
        grid-column: span 2;
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-logo img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-desc {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 60px 0 0;
    }

    .footer-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-col-brand {
        grid-column: span 1;
    }

    .footer h3 {
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .footer-col ul li a:hover {
        transform: translateX(4px);
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.active-reveal {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Bootstrap Grid Emulation (Global) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-4,
.col-lg-3,
.col-lg-5,
.col-lg-6,
.col-md-4,
.col-md-3,
.col-md-5,
.col-md-6,
.col-sm-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 20px;
    /* Gapping for rows */
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {

    .col-sm-12,
    .col-md-4,
    .col-md-3,
    .col-md-5,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Mobile: Show Ganesh image first, then content */
    .about-mandal-section .row {
        flex-direction: column-reverse;
    }
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Removed .footer-grid display: block to use new responsive grid wrapper */

    .experience-badge {
        width: 100px;
        height: 100px;
        bottom: -10px;
        right: 0;
    }

    .experience-badge .years {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 9999;
        position: relative;
    }

    /* Responsive Header */
    .header-flex {
        flex-direction: column;
        text-align: center;
    }

    .mandal-name {
        font-size: 2rem;
    }

    .header-details {
        justify-content: center;
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }

    .header-logo img {
        height: 100px;
    }

    .nav-container {
        justify-content: space-between;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    /* Hamburger X Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Sub-menu mobile adjustments */
    .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0;
        padding: 0;
        min-width: unset;
    }

    .sub-menu li a {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/idol.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--secondary-color);
}

/* Navbar Solid for Inner Pages */
.navbar.scrolled-always {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
}

.navbar.scrolled-always .nav-link {
    color: var(--text-light);
}

.navbar.scrolled-always .logo {
    color: var(--secondary-color);
}

/* Committee Grid */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.committee-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
}

.committee-card:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 100%;
    max-width: 180px;
    height: 220px;
    background: #fdfaf6;
    border-radius: 12px;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.committee-card:hover .member-photo {
    transform: scale(1.03);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.15);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.member-photo i {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    color: #cbd5e1;
    transition: var(--transition);
}

.committee-card:hover .member-photo i {
    color: var(--accent-color);
}

.committee-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: 700;
}

.committee-card p {
    color: var(--accent-color);
    font-weight: 500;
}

/* Donation Page */
.bank-details-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--secondary-color);
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.bank-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.bank-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 40%;
}

.qr-placeholder {
    width: 250px;
    height: 250px;
    background: #f0f0f0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    color: #888;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Page Styles */
.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-group {
    margin-bottom: 25px;
}

.contact-label {
    color: #c0392b;
    /* Reddish color for labels */
    font-size: 1.5rem;
    font-family: 'Rozha One', serif;
    margin-bottom: 5px;
}

.contact-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.map-wrapper iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-connect-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.connect-title {
    color: #a61c1c;
    font-size: 2rem;
    margin-bottom: 30px;
    display: inline-block;
}

.connect-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 500;
    background: #f5f5f5;
    /* Light grey default */
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Specific Social Colors on Hover */
.social-btn.youtube:hover {
    background: #FF0000;
}

.social-btn.facebook:hover {
    background: #1877F2;
}

.social-btn.instagram:hover {
    background: #E4405F;
}

.social-btn.linkedin:hover {
    background: #0A66C2;
}

.social-btn.whatsapp:hover {
    background: #25D366;
}

/* Leader Message Section */
/* Redesigned Leader Message Section */
.leader-message-box {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(128, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-top: 30px;
    position: relative;
    border: 1px solid rgba(128, 0, 0, 0.08);
}

/* Beautiful top gradient accent border */
.leader-message-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 5;
}

.leader-message-box-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.leader-col-img {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, #fffcf8 0%, #f7f3eb 100%);
    border-right: 1px solid rgba(128, 0, 0, 0.06);
}

.leader-col-text {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tablet & Desktop View */
@media (min-width: 992px) {
    .leader-message-box-inner {
        flex-wrap: nowrap;
    }

    .leader-col-img {
        flex: 0 0 35%;
        max-width: 35%;
        padding: 40px;
    }

    .leader-col-text {
        flex: 0 0 65%;
        max-width: 65%;
    }
}

.leader-img-wrapper {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4/5;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.15);
    border: 4px solid #ffffff;
    background: #fdfaf6;
    outline: 2px solid var(--secondary-color);
    transition: transform 0.4s ease, outline-color 0.4s ease;
}

.leader-img-wrapper:hover {
    transform: translateY(-5px);
    outline-color: var(--accent-color);
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leader-content {
    padding: 50px 45px;
    text-align: left;
    position: relative;
}

/* Watermark background quote */
.leader-content::after {
    content: '“';
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 12rem;
    color: rgba(255, 69, 0, 0.05);
    font-family: 'Rozha One', serif;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.leader-headline {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

/* Elegant gold/saffron headline divider */
.leader-headline-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin-bottom: 15px;
    border-radius: 2px;
}

.leader-subheadline-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.leader-subheadline {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0;
    font-family: var(--font-body);
}

.leader-badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(255, 69, 0, 0.2);
}

.leader-description-card {
    background: #FFFBF5;
    border-left: 4px solid var(--accent-color);
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.01);
}

.leader-description {
    font-size: 1.12rem;
    color: #4c3b30;
    line-height: 1.85;
    text-align: justify;
    font-family: var(--font-body);
    font-weight: 500;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .leader-col-img {
        border-right: none;
        border-bottom: 1px solid rgba(128, 0, 0, 0.06);
        padding: 30px;
    }

    .leader-content {
        padding: 35px 30px;
    }
}

@media (max-width: 576px) {
    .leader-content {
        padding: 30px 20px;
    }

    .leader-description-card {
        padding: 20px;
        border-left: 3px solid var(--accent-color);
    }

    .leader-description {
        font-size: 1.05rem;
        line-height: 1.75;
    }
}

/* Award Page Styles */
.award-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Equal height */
    border: 1px solid #eee;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.award-img-wrapper {
    position: relative;
    height: 200px;
    /* Fixed height for consistency */
    overflow: hidden;
    background-color: #f0f0f0;
}

.award-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area */
    transition: transform 0.5s ease;
}

.award-card:hover .award-img {
    transform: scale(1.1);
    /* Zoom effect */
}

.award-year-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.award-content {
    padding: 20px;
    text-align: center;
}

.award-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.award-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Ganesh Feature Image */
.ganesh-feature-img {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .ganesh-feature-img {
        width: 40%;
        /* Smaller on desktop */
    }
}

/* --- PREMIUM STYLING ADDITIONS --- */

/* Timeline style (Legacy & Journey) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 10px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    transition: var(--transition);
}

.timeline-item:hover::after {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.left-item {
    left: 0;
}

.right-item {
    left: 50%;
}

.right-item::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #fff;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Mukta', sans-serif;
}

.timeline-year {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 5px;
    display: inline-block;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #555;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right-item {
        left: 0%;
    }
}

/* Social Activities Card layout adjustments */
.activity-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--accent-color);
    transition: var(--transition);
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 25px auto 15px;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.activity-body {
    padding: 20px;
    text-align: center;
}

.activity-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: 'Mukta', sans-serif;
}

.activity-body p {
    color: #555;
    font-size: 0.95rem;
}

/* Festival Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.highlight-card i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: inline-block;
}

.highlight-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: 'Mukta', sans-serif;
}

/* Interactive Gallery Lightbox Styling */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.show {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    max-width: 80%;
    max-height: 80%;
    text-align: center;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 4px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'Mukta', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    padding: 15px;
    user-select: none;
    transition: var(--transition);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .lightbox-content-wrapper {
        max-width: 95%;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 5px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
    }
}

/* Countdown Timer Styling */
.timer-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a61c1c 100%);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.2);
    color: #fff;
    text-align: center;
    border: 3px solid var(--secondary-color);
}

.timer-title {
    font-family: 'Mukta', sans-serif;
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.timer-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.timer-segment {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 10px;
    min-width: 100px;
    backdrop-filter: blur(5px);
}

.timer-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--secondary-color);
}

.timer-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-finished {
    font-size: 1.8rem;
    font-family: 'Mukta', sans-serif;
    color: var(--secondary-color);
    animation: flash 1.5s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Testimonial Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 5rem;
    color: rgba(128, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.testimonial-author h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* Forms Input Styling for Volunteer Sign-up */
.volunteer-box {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--primary-color);
}

.volunteer-box h3 {
    font-family: 'Mukta', sans-serif;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.15);
}

/* FAQ Accordion Styling */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.faq-item.active {
    border-left-color: var(--secondary-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-body);
    user-select: none;
}

.faq-question h3 {
    font-size: 1.15rem;
    margin: 0;
    font-family: inherit;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.1rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    /* Safe upper limit */
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    border-top: 1px solid #eee;
}

/* Page Header customization for Inner pages background visual polish */
.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(128, 0, 0, 0.85)), url('../assets/images/kandarpada-ganpati.png') center/cover no-repeat !important;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

/* ==========================================
   DONATION SECTION REDESIGN STYLES
   ========================================== */

.donation-intro-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-color);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.donation-intro-card h3 {
    font-family: 'Mukta', sans-serif;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.donation-intro-card .lead-marathi {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 12px;
}

.donation-intro-card .sub-marathi {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.trust-badge-wrapper {
    background: var(--bg-light);
    border: 1px dashed rgba(255, 69, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.trust-badge-title {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.payment-badge-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-badge-icons img {
    height: 30px;
    width: auto;
}

.payment-badge-icons i {
    font-size: 2.2rem;
    color: #5f6368;
}

/* Full Width Cards Section */
.donation-options-section {
    padding: 60px 0 80px;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.donation-options-section .section-title {
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-align: center;
}

.donation-options-section .section-subtitle {
    margin-bottom: 40px;
    text-align: center;
}

.donation-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.donation-card {
    background: #ffffff;
    border: 1px solid rgba(128, 0, 0, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    opacity: 0.8;
}

.donation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.donation-card.highlighted {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.05);
}

.donation-card.highlighted::before {
    height: 8px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color), var(--accent-color));
}

.card-badge {
    position: absolute;
    top: 18px;
    right: -32px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 30px;
    transform: rotate(45deg);
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.donation-card-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.08);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.donation-card:hover .donation-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-color);
    color: #fff;
}

.donation-card-title {
    font-family: 'Rozha One', serif;
    font-size: 1.65rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.donation-card-desc {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.donation-card-subdesc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.pan-mandatory-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 69, 0, 0.06);
    color: var(--accent-color);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 69, 0, 0.12);
}

.pan-placeholder {
    height: 33px;
    /* matching layout height for cards without PAN badge */
    margin-bottom: 25px;
    display: block;
}

.btn-donate {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a00000 100%);
    color: #fff !important;
    text-align: center;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
    transition: var(--transition);
    margin-top: auto;
}

.btn-donate:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
    transform: translateY(-2px);
}

.donation-card.highlighted .btn-donate {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff6f00 100%);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.25);
}

.donation-card.highlighted .btn-donate:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
}

/* Homepage specific styles */
.homepage-donate-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    padding: 25px;
    text-align: center;
    margin-top: 25px;
    transition: transform 0.3s ease;
}

.homepage-donate-box:hover {
    transform: translateY(-3px);
}

.homepage-donate-box h4 {
    font-family: 'Mukta', sans-serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.homepage-donate-box p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-homepage-donate {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
    transition: var(--transition);
}

.btn-homepage-donate:hover {
    box-shadow: 0 6px 18px rgba(255, 69, 0, 0.3);
    transform: translateY(-2px);
}

/* Responsive grid adjustments */
@media (max-width: 968px) {
    .donation-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .donation-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .donation-card {
        padding: 35px 20px;
    }
}

/* ================================================
   SECTION 2 – 1974 HISTORY SECTION STYLES
   ================================================ */

/* ================================================
   SECTION 2 – 1974 HISTORY SECTION STYLES (REDESIGNED)
   ================================================ */

.history-1974-section {
    background: linear-gradient(180deg, #FFFDF9 0%, #FFF5EB 40%, #FFEEE0 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.history-1974-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Decorative top/bottom golden borders */
.history-top-border,
.history-bottom-border {
    height: 5px;
    background: linear-gradient(90deg, transparent, #FFD700, #C06500, #FFD700, transparent);
    position: relative;
    z-index: 2;
}

/* Inner container padding */
.history-1974-section > .container {
    padding: 85px 20px 80px;
    position: relative;
    z-index: 2;
}

/* ---- Section Header ---- */
.history-header {
    margin-bottom: 50px;
    position: relative;
}

.history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    color: #FFD700;
    padding: 9px 24px;
    border-radius: 50px;
    font-family: 'Mukta', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.22);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.history-badge i {
    font-size: 1.05rem;
    color: #FFD700;
}

.history-header .section-title {
    font-family: 'Rozha One', 'Mukta', serif;
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    color: #800000;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(128, 0, 0, 0.08);
}

.history-header .section-subtitle {
    display: block;
    font-family: 'Mukta', sans-serif;
    font-size: 1.15rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 16px;
}

.history-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.history-title-divider span {
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700);
}

.history-title-divider span:last-child {
    background: linear-gradient(90deg, #FFD700, transparent);
}

.history-title-divider i {
    color: #800000;
    font-size: 1.4rem;
}

/* ---- Two-column grid ---- */
.history-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 55px;
    align-items: start;
}

@media (max-width: 992px) {
    .history-content-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

/* ---- LEFT COLUMN: Photos ---- */
.history-photos-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Photo frame wrapper */
.photo-frame-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(128, 0, 0, 0.15), 0 0 25px rgba(255, 215, 0, 0.15);
    border: 3px solid rgba(255, 215, 0, 0.65);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
    background: #1a0000;
}

.photo-frame-wrapper:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 22px 60px rgba(128, 0, 0, 0.28), 0 0 35px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
}

.history-img-main {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(15%) contrast(1.08) brightness(0.95);
    transition: filter 0.4s ease, transform 0.5s ease;
}

.photo-frame-wrapper:hover .history-img-main {
    filter: grayscale(0%) contrast(1.12) brightness(1);
    transform: scale(1.04);
}

/* Secondary photo */
.history-img-secondary {
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: sepia(20%) contrast(1.08);
    transition: filter 0.4s ease, transform 0.5s ease;
}

.photo-frame-wrapper:hover .history-img-secondary {
    filter: sepia(0%) contrast(1.12);
    transform: scale(1.04);
}

/* Year badge on photo */
.photo-year-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    color: #FFD700;
    font-family: 'Mukta', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.photo-year-badge i {
    color: #FFD700;
    font-size: 0.85rem;
}

/* Caption overlay at bottom of photo */
.photo-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 0, 0, 0.92) 0%, rgba(15, 0, 0, 0.5) 70%, transparent 100%);
    color: #fff;
    padding: 32px 18px 16px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    font-family: 'Mukta', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
}

.photo-caption-overlay i {
    color: #FFD700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.photo-caption-overlay p {
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Quote strip under photos */
.photo-quote-strip {
    background: linear-gradient(135deg, #800000 0%, #5e0000 100%);
    color: #FFD700;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    font-family: 'Mukta', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.22);
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.photo-quote-strip i {
    font-size: 1.1rem;
    color: #FFD700;
    opacity: 0.85;
    flex-shrink: 0;
}

/* Founders Tribute Box */
.history-founders-tribute {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(128, 0, 0, 0.12);
    border-left: 5px solid #800000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-founders-tribute:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.1);
}

.hft-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(128, 0, 0, 0.25);
}

.hft-content h4 {
    font-family: 'Mukta', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #800000;
    margin: 0 0 4px;
}

.hft-content p {
    font-family: 'Mukta', sans-serif;
    font-size: 0.96rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ---- RIGHT COLUMN: Content ---- */
.history-content-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Founding Year Header Display Card */
.founding-year-display {
    background: linear-gradient(135deg, #FFF0E0 0%, #FFE4CC 100%);
    border-radius: 16px;
    padding: 16px 24px;
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-left: 6px solid #800000;
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.08);
}

.founding-year-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.founding-number {
    font-family: 'Mukta', 'Baloo 2', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #800000 0%, #C06500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.founding-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.founding-label {
    font-family: 'Mukta', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #800000;
    letter-spacing: 0.5px;
}

.founding-subtext {
    font-family: 'Mukta', sans-serif;
    font-size: 0.92rem;
    color: #666;
    font-weight: 500;
}

/* Content sub-heading */
.history-content-title {
    font-family: 'Mukta', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #222222;
    line-height: 1.4;
    margin: 0;
}

.history-content-title span {
    color: #800000;
}

/* Lead paragraph */
.history-content-lead {
    font-family: 'Mukta', sans-serif;
    font-size: 1.08rem;
    color: #444;
    line-height: 1.8;
    text-align: justify;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    border-left: 4px solid #FFD700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin: 0;
}

.history-content-lead strong {
    color: #800000;
}

/* Feature list grid */
.history-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .history-feature-list {
        grid-template-columns: 1fr;
    }
}

.history-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(128, 0, 0, 0.08);
    transition: all 0.35s ease;
}

.history-feature-item:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.12);
    transform: translateY(-3px);
}

.history-feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    color: #FFD700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.22);
}

.history-feature-text h4 {
    font-family: 'Mukta', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #800000;
    margin: 0 0 3px;
}

.history-feature-text p {
    font-family: 'Mukta', sans-serif;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.55;
    margin: 0;
}

/* Stats row */
.history-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(135deg, #800000 0%, #5e0000 100%);
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.35);
}

.history-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.history-stat-icon {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 2px;
    opacity: 0.9;
}

.history-stat-number {
    font-family: 'Mukta', 'Baloo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFD700;
    line-height: 1;
}

.history-stat-label {
    font-family: 'Mukta', sans-serif;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.history-stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

/* CTA Button Container */
.history-cta-wrapper {
    margin-top: 5px;
}

.btn-history-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    color: #FFD700 !important;
    font-family: 'Mukta', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.3);
    transition: all 0.35s ease;
    text-decoration: none;
    width: 100%;
}

.btn-history-cta:hover {
    background: linear-gradient(135deg, #9b0000 0%, #c00000 100%);
    color: #ffffff !important;
    border-color: #FFD700;
    box-shadow: 0 12px 35px rgba(128, 0, 0, 0.45);
    transform: translateY(-3px);
}

.btn-history-cta i {
    font-size: 1.1rem;
}

/* ---- Scroll Reveal Animations ---- */
.reveal-history-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-history-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-history-left.revealed,
.reveal-history-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   GLOBAL COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   (Mobile View & Tablet Mode for All Pages)
   ============================================================ */

/* ── 1. Laptops & Large Tablets (max-width: 1199px) ── */
@media (max-width: 1199px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }

    .mandal-name {
        font-size: 2.4rem;
    }

    .header-details {
        font-size: 1.25rem;
    }

    .gj-container-grid {
        gap: 30px;
    }

    .history-content-grid {
        gap: 35px;
    }
}

/* ── 2. Medium Tablets (max-width: 991px) ── */
@media (max-width: 991px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    /* Header adjustments for tablet */
    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-text {
        text-align: center;
    }

    .header-details {
        justify-content: center;
        gap: 25px;
        font-size: 1.15rem;
        padding-right: 0;
    }

    .mandal-name {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }

    /* 50 Years Golden Jubilee Video */
    .gj-container-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .gj-title {
        font-size: 2.2rem;
    }

    /* 1974 History Section */
    .history-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .history-photos-col {
        order: 2;
    }

    .history-content-col {
        order: 1;
    }

    .history-img-main {
        height: 280px;
    }

    .history-img-secondary {
        height: 230px;
    }

    /* Activities & Highlights */
    .activities-section .row {
        margin-top: 25px;
    }

    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    /* Gallery Showcase */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px;
    }

    /* Live Stream Features Tablet */
    .live-stream-container {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .live-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .live-feature-card {
        padding: 12px 10px;
        gap: 10px;
    }

    .live-feature-card h5 {
        font-size: 0.96rem;
    }

    .live-feature-card p {
        font-size: 0.82rem;
    }

    /* Committee Grid */
    .committee-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    /* Volunteer & Donation */
    .participation-section .row {
        flex-direction: column;
    }

    /* Contact & Map Section */
    .home-contact-section .row {
        flex-direction: column;
    }

    .map-wrapper {
        min-height: 320px;
    }

    /* Footer Grid */
    .footer-grid-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-col-brand {
        grid-column: span 2;
        text-align: center;
        align-items: center;
    }

    .footer-logo img {
        margin: 0 auto 15px;
    }

    /* Hide top header banner on tablet & mobile */
    .site-header {
        display: none !important;
    }

    /* Tablet & Mobile Sticky Navbar */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 20px !important;
        min-height: 70px !important;
        height: auto !important;
    }

    /* Mobile/Tablet Logo */
    .mobile-logo {
        display: block !important;
        height: 65px !important;
    }

    .mobile-logo img {
        height: 100%;
        width: auto;
    }

    /* Toggle Button */
    .menu-toggle {
        display: flex !important;
    }

    /* Single Column Full-Height Mobile & Tablet Menu Drawer */
    .nav-links {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        background-color: #192b4a !important;
        padding: 95px 24px 50px !important;
        z-index: 9998;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        gap: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        text-align: center;
    }

    .nav-links.active {
        transform: translateX(0) !important;
    }

    /* Every Nav Item Full Width Block */
    .nav-links > li {
        width: 100% !important;
        display: block !important;
        position: relative !important;
        clear: both !important;
        float: none !important;
        margin: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Main Nav Links */
    .nav-link {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
        font-size: 1.25rem !important;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-align: center;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.08);
        color: #FFD700 !important;
    }

    /* Submenu Accordion Container */
    li.has-dropdown {
        position: relative !important;
        width: 100% !important;
        display: block !important;
        height: auto !important;
        clear: both !important;
    }

    li.has-dropdown > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        width: 100% !important;
        cursor: pointer;
    }

    .has-dropdown .dropdown-arrow {
        transition: transform 0.3s ease;
    }

    .has-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
        color: #FFD700;
    }

    /* Submenu List Accordion Box - FORCED RELATIVE BLOCK FLOW */
    .sub-menu,
    .has-dropdown .sub-menu {
        display: none !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: 100% !important;
        background-color: #111d33 !important;
        border: 2px solid #FFD700 !important;
        border-radius: 12px !important;
        margin: 10px 0 15px !important;
        padding: 6px 0 !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
        list-style: none !important;
        clear: both !important;
        float: none !important;
    }

    li.has-dropdown.active .sub-menu {
        display: block !important;
    }

    .sub-menu li,
    .has-dropdown .sub-menu li {
        width: 100% !important;
        display: block !important;
        clear: both !important;
        float: none !important;
        margin: 0 !important;
        height: auto !important;
    }

    .sub-menu li a,
    .has-dropdown .sub-menu li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        padding: 13px 20px !important;
        font-size: 1.1rem !important;
        color: #FFD700 !important;
        font-weight: 700 !important;
        border-bottom: 1px solid rgba(255, 215, 0, 0.15) !important;
        text-align: center;
        width: 100% !important;
        height: auto !important;
    }

    .sub-menu li:last-child a,
    .has-dropdown .sub-menu li:last-child a {
        border-bottom: none !important;
    }

    .sub-menu li a:hover,
    .has-dropdown .sub-menu li a:hover {
        background-color: rgba(255, 215, 0, 0.15) !important;
        color: #ffffff !important;
    }
}

/* ── 3. Mobile Phones (max-width: 767px) ── */
@media (max-width: 767px) {
    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    /* Top banner hidden on mobile, replaced by sticky nav */
    .site-header {
        display: none;
    }

    /* Mobile Navbar Header */
    .nav-container {
        justify-content: space-between;
        padding: 8px 16px;
        min-height: 70px;
    }

    .mobile-logo {
        display: block;
        height: 65px;
    }

    .mobile-logo img {
        height: 100%;
        width: auto;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Drawer Links */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background-color: rgba(33, 51, 85, 0.98);
        padding: 90px 24px 40px;
        z-index: 9998;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.15rem;
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hero Banner */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    /* 50 Years Video Section */
    .golden-jubilee-section {
        padding: 55px 0;
    }

    .gj-badge {
        font-size: 0.92rem;
        padding: 6px 18px;
    }

    .gj-title {
        font-size: 1.7rem;
    }

    .gj-subtitle {
        font-size: 0.98rem;
    }

    .gj-info-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .gj-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .gj-info-text h3 {
        font-size: 1.08rem;
    }

    .gj-info-text p {
        font-size: 0.9rem;
    }

    .btn-gj-yt {
        font-size: 0.96rem;
        padding: 12px 20px;
    }

    /* 1974 History Section */
    .history-1974-section {
        padding: 45px 0;
    }

    .history-img-main {
        height: 220px;
    }

    .history-img-secondary {
        height: 180px;
    }

    .founding-number {
        font-size: 2.2rem;
    }

    .history-content-title {
        font-size: 1.35rem;
    }

    .history-content-lead {
        font-size: 0.98rem;
    }

    .history-feature-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .history-stats-row {
        flex-direction: column;
        gap: 14px;
        padding: 18px 14px;
    }

    .history-stat-divider {
        width: 50px;
        height: 1px;
    }

    .history-stat-number {
        font-size: 1.4rem;
    }

    /* Live Stream Showcase Mobile */
    .live-stream-container {
        padding: 22px 14px;
        margin-top: 30px;
        border-radius: 16px;
        border-width: 2px;
    }

    .live-badge-status {
        font-size: 0.82rem;
        padding: 5px 14px;
    }

    .live-section-title {
        font-size: 1.3rem;
    }

    .live-section-desc {
        font-size: 0.88rem;
        margin-bottom: 20px;
    }

    .live-play-icon {
        width: 48px;
        height: 34px;
    }

    .live-play-icon svg {
        width: 48px;
        height: 34px;
    }

    .live-play-label {
        font-size: 0.78rem;
        padding: 4px 12px;
    }

    .live-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .live-feature-card {
        padding: 12px 14px;
        gap: 12px;
    }

    /* Countdown Timer */
    .timer-container {
        padding: 20px 14px;
    }

    .timer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .timer-box {
        gap: 8px;
        justify-content: center;
    }

    .timer-segment {
        min-width: 65px;
        padding: 10px 8px;
    }

    .timer-number {
        font-size: 1.6rem;
    }

    .timer-label {
        font-size: 0.78rem;
    }

    /* Volunteer & Donation Forms */
    .volunteer-box {
        padding: 22px 16px;
    }

    .volunteer-box h3 {
        font-size: 1.3rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .homepage-donate-box {
        padding: 18px 14px;
    }

    .btn-homepage-donate {
        font-size: 0.95rem;
        padding: 12px 20px;
    }

    /* FAQ Section */
    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    /* Contact Info Cards */
    .contact-card {
        padding: 20px 15px;
    }

    .contact-label {
        font-size: 1.1rem !important;
    }

    .contact-text {
        font-size: 0.95rem !important;
        padding-left: 0 !important;
        margin-top: 4px;
    }

    /* Social Connect Buttons */
    .connect-buttons {
        gap: 10px;
    }

    .social-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 50px 0 0;
    }

    .footer-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ── 4. Small Mobiles (max-width: 576px) ── */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.55rem;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    /* Highlights & Cards */
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .committee-card {
        padding: 16px 10px;
    }

    .member-photo {
        height: 160px;
        margin-bottom: 12px;
    }

    .committee-card h3 {
        font-size: 1.02rem;
    }

    .committee-card p {
        font-size: 0.82rem;
    }

    /* Award Card */
    .award-img-wrapper {
        height: 180px !important;
    }

    .award-title {
        font-size: 1.1rem !important;
    }

    .award-description {
        font-size: 0.88rem !important;
    }

    /* Countdown Timer */
    .timer-segment {
        min-width: 55px;
        padding: 8px 5px;
    }

    .timer-number {
        font-size: 1.35rem;
    }

    .timer-label {
        font-size: 0.72rem;
    }

    /* Bank Details Table inside Donation */
    .volunteer-box table tr {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
    }

    .volunteer-box table td {
        display: block;
        padding: 2px 0 !important;
        font-size: 0.9rem;
    }

    /* Footer Logo & Title */
    .footer-logo img {
        height: 65px;
        width: 65px;
    }

    .footer-mandal-title {
        font-size: 1.02rem;
    }
}

/* ── 5. Extra Small Mobiles (max-width: 400px) ── */
@media (max-width: 400px) {
    .committee-grid {
        grid-template-columns: 1fr;
    }

    .timer-segment {
        min-width: 48px;
        padding: 6px 3px;
    }

    .timer-number {
        font-size: 1.2rem;
    }

    .timer-label {
        font-size: 0.68rem;
    }
}