@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rozha+One&display=swap');

/* --- Royal Custom Scrollbar --- */

/* For Chrome, Safari, and Edge */
::-webkit-scrollbar {
    width: 12px;
    /* Standard visible width */
}

::-webkit-scrollbar-track {
    background: #FDF5E6;
    /* Matches our Cream background */
}

::-webkit-scrollbar-thumb {
    background-color: #800000;
    /* Deep Maroon Thumb */
    border-radius: 20px;
    /* Soft, rounded pill shape */
    border: 3px solid #FF9933;
    /* Creates a nice 'padding' effect around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #FF9933;
    /* Glows Saffron when grabbed */
}

/* For Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #800000 #FDF5E6;
    /* Thumb Track */
}

/* --- Hide Scrollbar Globally --- */

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* ===== HEADER ICON COLOR FIX (paste near top of index.css) ===== */

/* Force a consistent maroon color for header contact icons and their links */
site-header .header-contact-info a,
site-header .header-contact-info a i {
    color: var(--primary-maroon) !important;
    text-decoration: none;
}

/* Ensure nav link icons (if any) inherit the nav text color */
site-header .nav-list a i,
.navbar .nav-list a i {
    color: inherit !important;
}

/* Make the donate heart icon match the donate text and be visible on white pill */
site-header .donate-btn-header .fa-heart,
.donate-btn-header .fa-heart {
    color: var(--primary-maroon) !important;
}

/* Make sure any FontAwesome pseudo-content or icons inside header keep maroon on all pages */
site-header i.fas,
site-header i.fa,
site-header .fa {
    color: var(--primary-maroon) !important;
}

site-footer {
    display: block;
    width: 100%;
}

/* If you have icons used in other header places (left/right logos are images so unaffected) */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF9933;
    --primary-maroon: #800000;
    --text-dark: #333333;
    --text-light: #FFFAF0;
}

body {
    font-family: 'Montserrat', sans-serif;

    /* --- The Royal Halo Background --- */
    /* 1. Radial Gradient: Glows from the center (#FFFBF2) to the edges (#FFE0B2) */
    /* background: radial-gradient(circle at center, #000 20%,#FADAD8 100%); /* TEST */
    background: radial-gradient(circle at center, #FDF5E6 0%, #FADAD8 100%);

    /* 2. The Magic Fix: Lock it to the viewport */
    background-attachment: fixed;

    /* Fallback */
    background-color: #FADAD8;

    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    min-height: 100vh;
}



.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info a {
    text-decoration: none;
    color: #800000;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 14px;
}

.contact-info i {
    color: #FF9933;
    font-size: 14px;
}

/* Google Translate Styles */
#google_translate_element img {
    display: none;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    color: #FFFAF0 !important;
}

.goog-te-gadget-simple span {
    color: #FFFAF0 !important;
    /* Text color */
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: #FFFAF0 !important;
}

.mydiv {
    height: 1700px;

}

.header2 {
    height: 1270px;
    width: 147px;
}

.logo {
    height: 120px;
    width: 120px;
    position: relative;
}


.cstr-logo {
    height: 120px;
    width: auto;
    padding-bottom: 0%;
    padding-top: 0%;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left: 85px;
}

.cst-logo {
    height: 80px;
    width: auto;
    padding-right: 100px;
}

.organisation-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    padding: 0 20px;
    min-height: 140px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.organisation-name {
    font-family: 'Merriweather', serif;
    font-size: 40px;
    font-weight: bold;
    color: #800000;
    margin-bottom: 12px;
    letter-spacing: 2px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.organisation-tagline {
    font-size: 20px;
    color: #666;
    font-style: italic;
    letter-spacing: 0.8px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 1200px) {
    .organisation-name {
        font-size: 36px;
    }

    .organisation-tagline {
        font-size: 20px;
    }
}

@media screen and (max-width: 768px) {
    .organisation-name {
        font-size: 28px;
        letter-spacing: 1.5px;
    }

    .organisation-tagline {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
}

/* --- Universal Header Styles --- */


/* Image Slider Styles */
.slider-container {
    width: 98%;
    max-width: 1800px;
    margin: 40px auto;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    background: #FFFAF0;
    border: 4px double #FF9933;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.slider-wrapper {
    max-width: 1800px;
    margin: 0 auto;
    overflow-y: visible;
    overflow-x: hidden;
    position: relative;
    background: transparent;
    padding: 20px 0;
    border-radius: 0;
    box-shadow: none;
}

.slider-track {
    display: flex;
    align-items: center;
    padding-left: 20px;
    gap: 20px;
    margin: 0;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    /* Ensure width is valid after padding */
}

.slide {
    /* Width is set by JS */
    flex: 0 0 30%;
    padding: 10px;
    box-sizing: border-box;
    transition: all 0.5s ease;
    transform-origin: center center;
    opacity: 0.4;
    transform: scale(0.85);
    margin: 0 !important;
    /* Remove any drift causing margins */
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 10;
    border: 2px solid #800000;
    border-radius: 15px;
    /* Match img border radius */
}



.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.slide.active img {
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15) !important;
    border: none;
    /* Border moved to .slide.active */
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #800000;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-button:hover {
    background-color: #570000;
    transform: translateY(-50%) scale(1.1);
}

.slider-button.prev {
    left: 10px;
}

.slider-button.next {
    right: 10px;
}

@media screen and (max-width: 992px) {
    .slide.active {
        transform: scale(1.1);
    }

    .slide.prev,
    .slide.next {
        transform: scale(0.95);
    }


}

@media screen and (max-width: 576px) {
    .slide.active {
        transform: scale(1.05);
    }

    .slide.prev,
    .slide.next {
        transform: scale(1);
        opacity: 1;
    }

    .slider-container {
        padding: 0 1rem;
    }

    .slider-button.prev {
        left: 1rem;
    }

    .slider-button.next {
        right: 1rem;
    }

    .slide img {
        height: 250px;
    }
}

.video-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 15px;
    background-color: #FFFAF0;
    border: 4px double #FF9933;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.video-container .video-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.video-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 32px);
    color: #800000;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #FF9933;
    display: inline-block;
    padding-bottom: 10px;
}

.video-title h4 {
    font-family: 'Montserrat', sans-serif;
    color: #FF9933;
    font-size: clamp(20px, 2.5vw, 28px);
    margin: 5px 0 5px;
    /* line-height: 1.4; */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

@media screen and (max-width: 768px) {
    .video-container {
        margin: 20px 0;
        padding: 15px;
        border-radius: 20px;
    }

    .video-container .video-wrapper {
        border-radius: 14px;
    }

    .video-container video {
        max-height: 60vh;
    }
}



/* About Card Styles */
.about-card {
    background-color: #FFFAF0;
    border-radius: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: linear-gradient(rgba(255, 250, 240, 0.95), rgba(255, 250, 240, 0.95)), url('../images/assets/guruDevsOm.png') center/contain no-repeat;
    /* background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('../images/assets/guruDevsOm.png') center/contain no-repeat; */
    border: 4px double #FF9933;
}



/* --- About Card Typography & Layout --- */

.title-container {
    text-align: center;
    margin-bottom: 40px;
}

.title-container h3 {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    color: #555;
    font-weight: 400;
    font-style: italic;
    margin-top: 15px;
}

.summary {
    font-size: 18px;
    line-height: 1.9;
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
    color: #333;
}

.firstPara {
    font-size: 20px;
    font-weight: 500;
    color: #800000;
    margin-bottom: 30px;
    border-left: 5px solid #FF9933;
    padding-left: 20px;
    background-color: rgba(255, 250, 240, 0.5);
    padding: 20px;
    border-radius: 12px;
}

.summary h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: #800000;
    margin-top: 50px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary h2::before {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #FF9933;
}

.summary p {
    margin-bottom: 20px;
}

.summary strong {
    color: #800000;
}

/* List Styling */
.summary ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.summary ul li {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #800000;
    transition: transform 0.3s ease;
}

.summary ul li:hover {
    transform: translateX(10px);
    border-left-color: #FF9933;
}

.summary ul li strong {
    color: #800000;
    font-family: 'Merriweather', serif;
    font-size: 19px;
    display: block;
    margin-bottom: 5px;
}

/* Emphasis Block */
/* Emphasis Block */
.summary em,
.about-text blockquote {
    display: block;
    text-align: center;
    font-family: 'Merriweather', serif;
    font-size: 22px;
    color: #800000;
    margin-top: 20px;
    padding: 40px 60px 30px 60px;
    background-color: #FFFAF0;
    /* Cream */
    border-radius: 20px;
    border: 2px dashed #FF9933;
    position: relative;
    font-style: italic;
}

.summary em::before,
.about-text blockquote::before {
    content: '\f10d';
    /* Quote Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 30px;
    color: rgba(128, 0, 0, 0.2);
    position: absolute;
    top: 20px;
    left: 20px;
}

.summary em::after,
.about-text blockquote::after {
    content: '\f10e';
    /* Quote Right Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 30px;
    color: rgba(128, 0, 0, 0.2);
    position: absolute;
    bottom: 20px;
    right: 20px;
}

@media (max-width: 768px) {
    .about-card {
        padding: 30px 20px;
    }

    .title-container h2 {
        font-size: 28px;
    }

    .summary h2 {
        font-size: 22px;
    }

    .firstPara {
        font-size: 18px;
    }
}

/* Mobile Responsiveness for Header */



/* Renamed from .container to .about-container */
.about-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.about-container h2 {
    font-size: 2.5rem;
    color: #3f51b5;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Renamed from .card to .flip-card to avoid conflict with donation cards */
.flip-card {
    perspective: 1000px;
    height: 320px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-size: 1.1rem;
}

.card-front {
    background-color: #f0f0f0;
    color: #fff;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.overlay .number {
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-back {
    background-color: #fd8719;
    color: #fff;
    transform: rotateY(180deg);
    padding: 20px;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .about-container h2 {
        font-size: 2rem;
    }
}

.title-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: center;
}

.title-container h1 {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    padding-bottom: 10px;
    margin: 0 auto;
    width: fit-content;
    font-size: 48px;
    font-weight: 400;
    line-height: 60px;
    letter-spacing: -0.02em;
    color: #800000;
    font-family: 'Montserrat', sans-serif;
    box-shadow: none;
    border-bottom: 3px solid #FF9933;
    display: inline-block;
}

.title-container h2 {
    font-family: 'Merriweather', serif;
    color: #800000;
    font-size: 40px;
    font-weight: 700;
    border-bottom: 3px solid #FF9933;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.title-container h3 {
    font-family: 'Montserrat', sans-serif;
    color: #FF9933;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.title-container h4 {
    font-family: 'Montserrat', sans-serif;
    color: #800000;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .title-container h1 {
        font-size: 32px;
        line-height: 40px;
        padding: 8px 24px;
    }
}

.guru-section {
    background-color: #FFFAF0;
    display: flex;
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 6px solid #FF9933;
}

.guru-info {
    flex: 1;
    padding: 40px;
    text-align: left;
    /* Reset text alignment */
}

.guru-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* Saffrom Glow for Guru Image */
.guru-section:nth-child(odd) .guru-image img {
    box-shadow: 15px 30px 40px rgba(255, 153, 51, 0.3);
}

.guru-section:nth-child(even) .guru-image img {
    box-shadow: -15px 30px 40px rgba(255, 153, 51, 0.3);
}

/* Alternate order for image and text */
.guru-section:nth-child(even) {
    flex-direction: row-reverse;
}

.circle-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

.guru-info h2 {
    color: #800000;
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    margin-top: 0;
}

.guru-info p {
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    text-align: justify;
}

@media (max-width: 768px) {
    .guru-section {
        flex-direction: column;
    }

    .guru-section:nth-child(even) {
        flex-direction: column;
    }

    .circle-image {
        width: 250px;
        height: 250px;
    }
}




/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    /* Stays in place when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark dimmed background */
    z-index: 2000;
    /* Sit on top of EVERYTHING */
    display: none;
    /* HIDDEN by default - Crucial! */
    justify-content: center;
    align-items: center;
}

.modal-content {
    text-align: justify;
    background-color: #FFFAF0;
    width: 80%;
    max-width: 1000px;
    margin: 5% auto;
    /* Center it */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(128, 0, 0, 0.2);
    /* Soft Maroon Glow */
    border: 2px solid rgba(255, 153, 51, 0.3);
    /* Subtle Saffron Outline */
    position: relative;
    max-height: 80vh;
    /* Prevent it from being taller than screen */
    overflow-y: auto;
    /* Scroll bar if text is too long */
    /* Branding Touch */
    border-top: 6px solid #FF9933;
    /* Saffron Top Bar */
}

.modal-content h2 {
    color: #800000 !important;
    /* Deep Maroon */
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-bottom: 2px solid #FF9933;
    /* Saffron Separator */
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.modal-content p {
    color: #000;
}

.modal-body-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
    color: #000 !important;
    /* Dark Grey */
    text-align: justify;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #FF9933;
    /* Saffron on hover */
}

/* --- Read More Button Styles --- */
.read-more-btn {
    border-radius: 50px;
    padding: 10px 30px;
    border: 2px solid #800000;
    background-color: transparent;
    color: #800000;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
}

.read-more-btn:hover {
    background-color: #FF9933;
    color: #800000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.read-more-btn:active {
    transform: translateY(-1px);
}

/* =========================================
   New Team Page Styles (Pyramid Layout)
   ========================================= */

.team-container {
    text-align: center;
    padding: 50px 20px;
    padding-bottom: 0px;
    max-width: 1600px;
    margin: 0 auto;
}

.level-1,
.level-2 {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.level-3 {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    max-width: 100%;
}

.team-card {
    background: #FFFAF0;
    width: 350px;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15) !important;
    border-top: 4px solid #FF9933;
    /* Saffron accent */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-10px);
    /* Lift effect */
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FF9933;
    margin-bottom: 15px;
}

.team-card h3 {
    color: #800000;
    font-size: 16px;
    margin: 15px 0 5px;
    line-height: 1.4;
}

.team-card h4 {
    color: #FF9933;
    font-size: clamp(0.7rem, 1.5vw, 14px);
    margin: 5px 0 5px;
    /* line-height: 1.4; */
}

.team-card p {
    color: #666;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

/* Chairman Special Styling */
.level-1 .team-card {
    width: 500px;
    max-width: 90%;
    align-items: center;
    text-align: center;
    transform: scale(1.1);
    box-shadow: 0 25px 45px rgba(255, 153, 51, 0.3) !important;
    /* Gold/Saffron glow */
}

.level-1 .team-card img {
    margin-right: 0;
    margin-bottom: 15px;
}

/* Level 3 Compact Styling */
.level-3 .team-card {
    width: 300px;
    padding: 20px 10px;
}

.level-1 .team-card:hover {
    transform: scale(1.1) translateY(-10px);
}

/* =========================================
   Logos Page Styles
   ========================================= */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 40px;
    max-width: 900px;
    /* Reduced max-width for better 2x2 look */
    margin: 0 auto;
}

.logo-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #FF9933;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.logo-card:hover {
    transform: translateY(-10px);
    background-color: #FFFAF0;
    /* Pale Saffron hover */
}

.logo-card img {
    height: 150px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.logo-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #800000;
    font-size: 20px;
    margin-top: 10px;
}

/* =========================================
   FAQ Page Styles
   ========================================= */

.faq-container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    margin-bottom: 0;
    /* Reset margin since we use gap */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: #FFFEF5;
    /* Match the Ivory theme */
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    border-left: 5px solid #FF9933;
    /* Saffron accent bar */
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    color: #800000;
    font-weight: 600;
}

.faq-answer {
    background: #fff6ea;
    /* Pale Cream background for contrast */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.faq-answer li {
    margin-left: 40px;
}

.faq-answer a {
    color: #800000;
    text-decoration: none !important;
}

.faq-answer strong {
    color: #800000;
    font-weight: bold;
}

/* Active State */
.faq-item.active .faq-answer {
    padding: 20px;
    padding-left: 20px;
}

/* Item can only be seen by user when in active state */
.faq-item.active .faq-answer a {
    color: #800000;
    text-decoration: underline !important;
}

.faq-item-active .faq-answer strong {
    color: #800000;
    font-weight: bold;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-icon {
    font-size: 24px;
    color: #FF9933;
    transition: transform 0.3s ease;
}

/* =========================================
   About Us Page Styles
   ========================================= */

/* Main Banner Container */
/* --- Page Banner Redesign (Royal Dark Theme) --- */
.page-banner {
    /* 1. Size & Spacing */
    width: 100%;
    height: 200px;
    /* Adjust height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Essential for corner images */
    padding: 2rem;

    /* 2. The Royal Gradient Background (Overrides the HTML image) */
    background: linear-gradient(180deg,
            #250507 0%,
            #3b0a0c 25%,
            #5a1214 55%,
            #7b1e1e 100%) !important;

    /* 3. Shape */
    /* If the user wants it to look like a "Card" inside the page, add margin/radius. */
    /* However, for a banner, we usually keep it full width or slightly inset. */
    /* Let's add a subtle border bottom */
    border-bottom: 4px solid #FF9933;
}

/* --- Corner Decorations for the Banner --- */

/* Left Top Corner (Flipped) */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    /* Larger corners for the main banner */
    height: 150px;
    background-image: url('../images/assets/glassCardCorner.png');
    opacity: 0.4;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    transform: scaleX(-1);
    z-index: 1;
    pointer-events: none;
}

/* Right Top Corner */
.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url('../images/assets/glassCardCorner.png');
    opacity: 0.5;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    z-index: 1;
    pointer-events: none;
}

/* Ensure the text content sits on top */
.banner-text-card {
    position: relative;
    z-index: 10;
}

/* The Semi-Transparent Card */
.banner-text-card {
    /* --- 1. Warm Frosted Glass --- */
    /* Use Floral White with 90% opacity instead of plain white */
    background-color: rgba(255, 250, 240, 0.9);
    backdrop-filter: blur(10px);
    /* Stronger blur for premium feel */

    /* --- 2. Royal Borders --- */
    border: 2px solid #FF9933;
    /* The signature Saffron border */
    border-radius: 20px;

    /* --- 3. Deep Lift --- */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.2);
    /* Maroon shadow */

    /* Spacing */
    padding: 25px 60px;
    text-align: center;
    max-width: 90%;
}

/* The Title Typography */
.banner-text-card h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 8px;
    /* Needs wide spacing to look expensive */
    font-size: clamp(24px, 5vw, 48px) !important;
    text-transform: none;
    color: #800000;
    border-bottom: 4px double #FF9933;
}

.activities-container {
    padding: 40px 20px;
    text-align: center;
}

.card-content-split {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.about-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.about-text h2 {
    color: #800000;
    margin-bottom: 20px;
    font-size: 32px;
    border-bottom: 2px solid #FF9933;
    display: inline-block;
    padding-bottom: 5px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

@media (max-width: 768px) {
    .card-content-split {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        width: 150px;
        margin-bottom: 20px;
    }
}

/* =========================================
   Donation Page Styles
   ========================================= */

.donation-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.donation-list li {
    font-size: 16px;
    color: #333;
}

.donation-list li i {
    color: #FF9933;
    margin-right: 10px;
}

.payment-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    justify-content: center;
}

.bank-card,
.donation-form-card {
    flex: 1;
    min-width: 300px;
    background: #FFFAF0;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #800000;
}

.account-info {
    background: #FFF3E5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #FF9933;
    line-height: 1.8;
}

.donate-submit-btn {
    background-color: #800000;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.donate-submit-btn:hover {
    background-color: #600000;
    transform: translateY(-2px);
}

/* Form Styles */
.donation-form-card form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.donation-form-card form input,
.donation-form-card form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.donation-form-card form input::placeholder,
.donation-form-card form textarea::placeholder {
    font-family: 'Courier New', Courier, monospace;
    color: gray;
    opacity: 0.6;
}

.form-note {
    font-size: 11px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* =========================================
   Footer QR Code Styles
   ========================================= */

/* --- Fix Footer Layout --- */
.footer-container {
    display: grid;
    /* Revised Columns: Logo (Compact) | Address (Wide) | Links (Compact) | Donate (Fixed) */
    grid-template-columns: 2.8fr 2.6fr 1.5fr 1.3fr;
    gap: 2rem;

    /* Constraint & Centering - CRITICAL FIX */
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;

    /* Vertical Alignment */
    align-items: start;
    /* Aligns text to top */
    padding-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

/* Optional: Center the Logo vertically if it looks odd at the top */
.footer-container>div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure the text inside columns is readable */
.footer-container h3,
.footer-container h4 {
    margin-bottom: 1.2rem;
    white-space: nowrap;
    /* Prevents headers from breaking awkwardly */
}

/* Fluid Typography for Footer */
.footer-column h3 {
    font-size: clamp(18px, 2.5vw, 28px) !important;
    /* Fluid Heading */
}

.footer-column p,
.footer-column li,
.footer-column a {
    font-size: clamp(14px, 1.5vw, 18px) !important;
    /* Fluid Text */
}

.footer-logo-left {
    width: 100%;
    max-width: 400px;
    /* Prevents it from getting too huge on large screens */
    height: auto;
    display: block;
    margin-left: auto;
    /* Pushes logo to the right */
    margin-right: 0 !important;
    /* Optional: subtle drop shadow to make it pop off the maroon */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.scan-donate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.scan-donate img {
    width: 95%;
}

@media (max-width: 900px) {
    .footer-container {
        /* On tablets/mobile, stack everything in one column */
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Center the logo on mobile */
    .footer-logo-left {
        margin: 0 auto 30px auto;
        max-width: 180px;
    }
}

.footer-column a {
    white-space: nowrap;
}

.footer-qr-trigger {
    width: 200px;
    height: 200px;
    max-width: 100%;
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    background-color: #FFFAF0;
}

.footer-qr-trigger:hover {
    transform: scale(1.05);
    border-color: #FF9933;
    /* Saffron hover */
}

.qr-modal-box {
    max-width: 1300px;
    /* Wider to fit two images */
}

.qr-split-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.qr-left {
    flex: 1;
    text-align: center;
}

.qr-right {
    flex: 1.5;
    text-align: left;
}

.big-qr-image {
    width: 100%;
    max-width: 550px;
    border: 4px solid #800000;
    border-radius: 46px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.trust-title {
    color: #800000;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 5px;
}

.reg-no {
    color: #666 !important;
    font-size: 20px;
    margin-bottom: 10px;
}

.donation-text {
    font-size: 22px;
    line-height: 1.6;
    color: #333;
}

.donation-text strong {
    color: #FF9933;
}

.qr-divider {
    border: 0;
    border-top: 2px solid #eee;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .qr-split-layout {
        flex-direction: column;
        text-align: center;
    }

    .qr-right {
        text-align: center;
    }
}



@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-background-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
}

.footer {
    position: relative;
    /* Ensure footer is a positioning context */
    overflow: hidden;
    /* Clip the banner */
    background-color: #2A0608;
}

/* =========================================
   FRESH HEADER REBUILD - DO NOT EDIT
   ========================================= */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* --- 0. Header Wrapper (New) --- */
.header-wrapper {
    position: relative;
    overflow: hidden;
}

/* --- 1. Top Micro Bar --- */
.header-top-bar {
    background-color: transparent;
    /* Deep Maroon */
    position: relative;
    z-index: 1;
    color: #FFFAF0;
    /* Cream Text */
    border-bottom: none;
    /* Remove grey border */
    padding: 8px 5%;
    /* Responsive padding matching banner */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Update Icon/Link Colors for Dark Background */
.header-top-bar .contact-info a {
    color: #FFFAF0 !important;
    /* Cream */
    font-size: clamp(10px, 1.2vw, 14px);
    /* Fluid font size */
}

.header-top-bar .contact-info i {
    color: #FF9933 !important;
    /* Saffron Icons */
}


/* --- 2. Middle Banner --- */
.banner {
    /* background-color: #FFFAF0; */
    background-color: transparent;
    /* Transparent to show background image */
    padding: 10px 5%;
    /* Responsive padding */
    display: flex;
    justify-content: center;
    /* Center everything */
    align-items: center;
    gap: clamp(20px, 8vw, 100px);
    /* Responsive spacing between logos and text */
    border-bottom: 1px solid rgba(128, 0, 0, 0.1);
    /* Subtle Maroon separator */
    position: relative;
    z-index: 1;
    /* Create stacking context */
    max-height: 200px;
}

.banner-logo {
    height: 10vw;
    /* Responsive height */
    max-height: 130px;
    min-height: 80px;
    width: auto;
    flex-shrink: 0;
    /* Prevent logos from squishing */
}

.header-wrapper {
    background-color: #250507;
}

/* HEADER BACKGROUND BANNER LOGO */
.background-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    /* Override banner-logo constraint */
    min-height: 0;
    /* Override banner-logo constraint */
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
    /* Behind content but inside wrapper */
    pointer-events: none;
    transform: none;
}

.trust-info {
    text-align: center;
    flex-grow: 1;
    padding: 0 20px;
}

.trust-name {
    font-family: 'Merriweather', sans-serif;
    font-size: clamp(12px, 2vw, 40px);
    /* Fluid font size */
    font-weight: 700;
    color: #FF9933;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.trust-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(10px, 1vw, 18px);
    /* Fluid font size */
    color: #FFFAF0;
}

.header-contact-info {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #800000;
    font-weight: 600;
}

.header-contact-info a {
    color: #800000;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.header-contact-info a:hover {
    color: #FF9933;
}

.header-contact-info i {
    color: #FF9933;
    margin-right: 5px;
}

.header-contact-info .separator {
    color: #ccc;
}

/* ------------------------
   NAVBAR — replace existing navbar block
   ------------------------ */

/* --- 1. Navbar Container --- */
.navbar {
    background-color: #FF9933;
    /* Saffron Bar */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.nav-list {
    height: 100%;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    height: 100%;
    position: relative;
}

/* --- 2. The Animated Links (Gradient Wipe) --- */
/* --- The Nav Link (Text & Layout) --- */
.nav-list a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure text is centered */
    height: 100%;
    padding: 0 25px;
    color: #800000;
    /* Deep Maroon (Rest State) */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    z-index: 1;
}

/* --- The Background Wipe (Saffron -> Maroon) --- */
.nav-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    /* Hidden by default */
    height: 100%;
    /* THE FIX: Start with Saffron (#FF9933) to blend, end with Maroon (#800000) */
    background: linear-gradient(90deg, #FF9933 0%, #800000 100%);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth wipe */
    z-index: -1;
}

/* --- The Underline (Centered) --- */
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    /* Positioned just under the text */
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #FFFAF0;
    /* White Line */
    transition: width 0.3s ease;
    transform: translateX(-50%);
    /* Keeps it centered as it grows */
}

/* --- Text Color (Shared) --- */
.nav-list li:hover>a,
.nav-list li.active>a {
    color: #FFFAF0;
    /* Both turn White */
}

/* --- Background Gradient (HOVER ONLY) --- */
.nav-list li:hover>a::before {
    width: 100%;
    /* Show Gradient on Hover */
}

.nav-list li.active>a::before {
    width: 0%;
    /* HIDE Gradient on Active */
}

/* --- Underline (Shared) --- */
.nav-list li:hover>a::after,
.nav-list li.active>a::after {
    width: 60%;
    /* Show White Underline on Both */
}

/* --- 4. Dropdown Styling (Solid Saffron Blocks) --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FF9933;
    /* Saffron */
    min-width: 220px;

    /* --- The Softening Fix --- */
    border-radius: 0 0 15px 15px;
    /* Round ONLY the bottom corners */
    overflow: hidden;
    /* Crucial: Clips the links so they don't poke out */

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Softer, deeper shadow */
    border-top: 4px solid #800000;
    /* Keep the Maroon separator */
    z-index: 2000;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #800000;
    border-bottom: 2px solid rgba(128, 0, 0, 0.1);
    height: auto;
    overflow: visible;
    /* no gradient effect */
}

.dropdown-content a::before {
    display: none;
    /* disable gradient wipe inside dropdown */
}

/* Dropdown item hover */
.dropdown-content a:hover {
    background-color: #800000;
    /* solid maroon */
    color: #FFFAF0;
    /* white text */
    transform: none;
    /* no lift */
}

/* Dropdown fade-in animation */
.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownFadeIn 0.3s ease-out forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Donate button aligned to right (inside navbar-inner it is absolute) --- */
.donate-btn-header {
    position: absolute;
    right: 100px;
    /* distance from the container edge */
    background-color: #FFFAF0;
    color: var(--primary-maroon) !important;
    padding: 5px 20px;
    border-radius: 36px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
    transition: transform 0.18s ease, background-color 0.18s ease;
    z-index: 1500;
}

/* small heart icon space (if using an <i> or span) */
.donate-btn-header .heart {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
}


/* make donate button stack on mobile */
.mobile-menu-icon {
    display: none;
    cursor: pointer;
}

@media (max-width: 1600px) {
    /* Rules moved to bottom of file to fix cascade issues */
}

/* make donate button stack on mobile */
@media (max-width: 1100px) {
    .navbar {
        padding: 8px 18px;
        height: auto;
        position: relative;
        /* Ensure absolute positioning works */
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #FFFAF0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 10px 0;
    }

    /* --- Fix Mobile Menu "Ghosting" --- */
    .nav-list.show-mobile-menu {
        /* 1. Make it Solid */
        background-color: #FFF8E1 !important;
        /* Cream Background */

        /* 2. Position it on Top of EVERYTHING */
        position: absolute;
        top: 100%;
        /* Sit right below the orange navbar */
        left: 0;
        width: 100%;
        z-index: 9999 !important;
        /* Force it above the slider/hero images */

        /* 3. layout */
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        /* Drop shadow to separate it from page */
        border-bottom: 4px solid #800000;
        /* Maroon border at bottom */

        /* 4. Ensure the Main List can scroll if it gets too tall */
        height: auto;
        max-height: 80vh;
        /* prevent it from going off-screen */
        overflow-y: auto;
        /* Enable scrolling inside the menu if needed */
        padding-bottom: 20px;
        /* Extra padding at the bottom */
    }

    /* --- Fix Dropdown "Spill" on Mobile --- */

    /* 1. Force the Dropdown Content to sit INSIDE the list */
    .nav-list.show-mobile-menu .dropdown-content {
        position: static !important;
        /* CRITICAL: Stops it from floating */
        box-shadow: none !important;
        /* Remove the "card" look */
        background-color: rgba(128, 0, 0, 0.05) !important;
        /* Slightly darker cream for contrast */
        padding-left: 0;
        width: 100%;
    }



    /* 3. Make sub-links smaller/distinct */
    .nav-list.show-mobile-menu .dropdown-content a {
        font-size: 0.9rem !important;
        padding-left: 1rem !important;
        /* Indent them */
        color: #555 !important;
    }

    /* Ensure links are readable against the cream background */
    .nav-list.show-mobile-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-list.show-mobile-menu li a {
        display: block;
        padding: 15px;
        color: #800000;
        /* Maroon Text */
        font-weight: bold;
        border-bottom: 1px solid rgba(128, 0, 0, 0.1);
        /* Subtle separator */
    }

    .nav-list.show-mobile-menu li a:hover {
        background-color: #FF9933;
        /* Saffron highlight */
        color: #fff;
    }

    .mobile-menu-icon {
        display: block;
        font-size: 1.8rem;
        color: #800000;
        margin-left: auto;
        margin-right: 20px;
    }

    .donate-btn-header {
        position: static;
        margin-left: 0;
        /* Reset margin */
    }
}

/* small visual polish: ensure dropdown doesn't overflow on wide screens */
@media (min-width: 1200px) {
    .dropdown-content {
        min-width: 260px;
    }
}

/* --- Define the Pulse Animation --- */
@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
        /* Solid white ring starts */
    }

    70% {
        transform: scale(1.05);
        /* Grows slightly */
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
        /* Ring expands and fades */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* --- Apply to Donate Button --- */
.donate-btn-header {
    /* Ensure base styles are high-contrast */
    background-color: #FFFAF0;
    color: #800000 !important;
    font-weight: 800;
    /* Extra Bold */
    border: 2px solid #FFFAF0;
    /* reinforce the white */
    animation: heartbeat 2s infinite;
}

/* Pause animation on hover so it's easier to click */
.donate-btn-header:hover {
    animation: none;
    background-color: #fff6ea;
    color: #800000 !important;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Navbar Left Logo --- */
.nav-logo-lhs {
    position: absolute;
    /* Lock to the left */
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    /* Perfect vertical centering */
    height: 45px;
    /* Fit comfortably inside the 60px bar */
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.nav-logo-lhs img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    /* Slight lift */
}

.nav-logo-lhs:hover {
    transform: translateY(-50%) scale(1.1);
    /* Gentle zoom effect */
}

/* Update Tablet/Mobile Responsiveness */
@media (max-width: 1100px) {

    /* If screen gets tight, hide the text menu or adjust padding */
    .navbar {
        justify-content: space-between;
    }

    .nav-logo-lhs {
        position: static;
        transform: none;
    }

    /* Reset absolute on mobile */
    .donate-btn-header {
        position: static;
    }
}

/* --- Fix Donate Button Structure --- */
.donate-btn-header {
    text-decoration: none !important;
    /* Kill standard underline */
    border-bottom: none !important;
    /* Kill border underline */
}

/* CRITICAL: Remove the white 'Menu Line' animation from the button */
.donate-btn-header::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
}

/* Fix the Heart Icon to always match the Text Color */
.donate-btn-header i {
    color: inherit !important;
    /* Whatever color the text is, the icon matches */
    margin-right: 0px;
}

/* --- Tax Benefit Card --- */
.tax-benefit-card {
    max-width: 1000px;
    margin: 40px auto;
    background-color: #FFF7D1;
    /* Pale Cream Background */
    border: 2px dashed #FF9933;
    /* Saffron Dashed Border (Official Feel) */
    padding: 30px 35px;
    border-radius: 15px;
    text-align: center;
}

.main-tax-title {
    color: #800000;
    /* Maroon */
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tax-content-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    text-align: left;
}

.tax-column {
    flex: 1;
}

.tax-column h3 {
    color: #FF9933;
    font-size: 18px;
    border-bottom: 2px solid #800000;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.tax-text {
    color: #333;
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tax-divider {
    width: 1px;
    height: 12rem;
    /* Approximate height of text */
    background-color: #ddd;
    /* Vertical separator line */
    margin-top: 20px;
}

/* Mobile Stack */
@media (max-width: 768px) {
    .tax-content-grid {
        flex-direction: column;
        text-align: center;
    }

    .tax-divider {
        display: none;
    }

    .tax-column {
        width: 100%;
        border-bottom: 2px solid #eee;
        padding-bottom: 20px;
    }

    /* --- Mobile Dropdown Toggle State --- */

    /* Default State: Hide sub-menu on mobile (until clicked) */
    .nav-list.show-mobile-menu .dropdown-content {
        display: none;
    }

    /* Open State: Show sub-menu when JS adds 'mobile-open' class */
    .nav-list.show-mobile-menu .dropdown.mobile-open .dropdown-content {
        display: block !important;
        animation: fadeIn 0.3s;
    }

    /* Optional: Add a visual indicator (arrow rotation) */
    .nav-list.show-mobile-menu .dropdown.mobile-open>a::after {
        content: '▲';
        /* Up arrow when open */
        font-size: 0.8em;
        margin-left: 0px;
        /* to ensure centered */
    }

    .nav-list.show-mobile-menu .dropdown>a::after {
        content: '▼';
        /* Down arrow default */
        font-size: 0.8em;
        margin-left: -5px;
        /* to ensure centered */
    }

}

/* --- Theme Toggle Button --- */
#theme-toggle {
    background: none;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

#theme-toggle:hover {
    background-color: #ddd;
    color: #000;
}



/* --- Logo Feature Card --- */
.logo-feature-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.logo-split-card {
    display: flex;
    align-items: stretch;
    /* Stretch to ensure equal height */
    background-color: #FFFAF0;
    border-radius: 20px;
    overflow: hidden;
    /* The Royal Double Border */
    border: 4px double #FF9933;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
}

/* Left Side (Image) */
.logo-image-wrapper {
    flex: 1;
    background-color: #FFFAF0;
    /* Pale Cream Background */
    padding: 0;
    /* Remove padding to extend to edges */
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 2px solid #eee;
}

.logo-image-wrapper img {
    width: 100%;
    /* Fill height */
    object-fit: cover;
    /* Cover the area */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.8s ease;
}

.logo-split-card:hover .logo-image-wrapper img {
    transform: scale(1.1);
    /* Gentle Zoom on Hover */
}

/* Right Side (Text) */
.logo-text-wrapper {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
    color: #333;
    text-align: justify;
    flex: 1.5;
    padding: 50px;
    position: relative;
}


.logo-text-wrapper h2 {
    font-size: 32px;
    /* color: #800000; */
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.logo-text-wrapper h3 {
    font-size: 24px;
    color: #FF9933;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.logo-text-wrapper p {
    font-size: 18px;
    line-height: 1.8;
    /* High readability */
    color: #444;
    text-align: justify;
}

.logo-text-wrapper ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.logo-text-wrapper li {
    margin-left: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    /* Matched to .summary */
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
    text-align: justify;
}

.logo-text-wrapper strong {
    font-size: 18px;
    font-weight: 500;
    color: #800000;
}

/* Decorative Flourish */
.decorative-line {
    width: 80px;
    height: 4px;
    background-color: #FF9933;
    margin-top: 30px;
    border-radius: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .logo-split-card {
        flex-direction: column;
    }

    .logo-image-wrapper {
        width: 100%;
        height: 300px;
        /* Fixed height for mobile */
        border-right: none;
        border-bottom: 2px solid #eee;
    }

    .logo-text-wrapper {
        padding: 30px;
    }
}

/* --- Key People Section --- */
.people-container {
    max-width: 1200px;
    /* Match Video/About width */
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    /* Space between the two cards */
}

.profile-split-card {
    display: flex;
    flex-direction: row;
    background-color: #FFFAF0;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #FF9933;
    /* Saffron Border */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15) !important;
    transition: transform 0.3s ease;
}

.profile-split-card:hover {
    transform: translateY(-5px);
    /* Subtle lift */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.1);
    /* Maroon shadow on hover */
}

/* Left: Image */
.profile-image-box {
    flex: 0 0 200px;
    /* Fixed width for image area */
    background-color: #FFFAF0;
    /* Cream background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-right: 2px solid #eee;
    border-bottom: none;
}

.profile-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    /* Rounded Rect */
    border: 2px solid #800000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Right: Text */
.profile-text-box {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FF9933;
    /* Saffron */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.profile-name {
    font-family: 'Montserrat', sans-serif;
    /* Keep headers clean */
    font-size: 28px;
    font-weight: 700;
    color: #800000;
    /* Maroon */
    margin-bottom: 15px;
}

.profile-desc {
    font-family: 'Montserrat', sans-serif;
    /* Per your request for all-Montserrat */
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* Mobile Stack */
@media (max-width: 768px) {
    .people-container {
        grid-template-columns: 1fr;
    }

    .profile-split-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-image-box {
        width: 100%;
        flex: auto;
        border-right: none;
        border-bottom: 2px solid #eee;
    }

    .profile-text-box {
        padding: 30px;
    }
}

/* --- Gallery Layout --- */
.gallery-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Filter Buttons */
.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 25px;
    margin: 0 5px;
    border: 2px solid #800000;
    /* Maroon */
    color: #800000;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #800000;
    color: #fff;
}

/* The Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Image Card */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    aspect-ratio: 4/3;
    /* Keeps tiles uniform */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect: Zoom & Caption */
.gallery-item:hover img {
    transform: scale(1.1);
    /* Gentle Zoom */
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(128, 0, 0, 0.9), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-weight: 600;
}

/* --- Publications Catalog Grid --- */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    /* Wide cards */
    gap: 30px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* The Card (Rounded Outline) */
.pub-card-wireframe {
    display: flex;
    background-color: #FFFAF0;
    border: 2px solid #800000;
    /* width: auto; */
    /* max-width: 45%; */
    min-height: 250px;
    /* Maroon Outline */
    border-radius: 20px;
    padding: 20px;
    gap: 25px;
    align-items: flex-start;
    transition: transform 0.3s;
}

.pub-card-wireframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Left: The Yellow Image Box */
.pub-cover-box {
    flex: 0 0 180px;
    /* Fixed Width */
    height: 240px;
    /* Fixed Height */
    background-color: #ffe0b2;
    /* The Yellow/Cream tone from your sketch */
    border: 2px solid #FF9933;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pub-cover-box img {
    width: auto;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the yellow box */
    opacity: 0.9;
}

/* Right: The Info List */
.pub-info-list {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
}

.pub-name {
    color: #800000;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px dashed #FF9933;
    /* Separator */
    padding-bottom: 8px;
}

.pub-meta p {
    margin: 5px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

/* The 'Label' styling (Author:, Year:, etc.) */
.label {
    font-weight: 700;
    color: #FF9933;
    /* Saffron labels */
    margin-right: 5px;
    font-size: 13px;
    text-transform: uppercase;
}

.pub-desc {
    margin-top: 10px !important;
    font-style: italic;
    color: #666;
    font-size: 14px;
}

/* Mobile Stack */
@media (max-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr;
    }

    .pub-card-wireframe {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pub-cover-box {
        margin-bottom: 15px;
    }

    .pub-name {
        justify-content: center;
    }
}

/* --- Lightbox Trigger Styles --- */
.pub-cover-box {
    position: relative;
    cursor: zoom-in;
}

.zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(128, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.pub-cover-box .zoom-icon {
    opacity: 1;
}

/* --- Lightbox Modal Styles --- */
#pub-lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.9); */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999 !important;
    /* Force on top of everything */
    align-items: center;
    justify-content: center;
}

#pub-lightbox .lightbox-content {
    background-color: #FFFAF0;
    /* Solid White Card */
    width: 60%;
    max-width: 1200px;
    /* Fit content, but don't go too wide */
    display: inline-block;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    /* Smooth corners */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;

    border: none;
    /* No side/bottom borders */
    border-top: 6px solid #FF9933;
    /* The Signature Saffron Bar */
}

.lightbox-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lightbox-img {
    max-height: 60vh;
    /* Fit within screen height */
    max-width: 100%;
    /* Ensure image never exceeds container width */
    height: auto;
    width: auto;
    object-fit: contain;
    /* Remove borders/shadows from images since the card has them */
    margin: 0 20px !important;
    border: 2px solid #800000;
    box-shadow: none;
    border-radius: 20px;
}

#lightbox-caption {
    /* Simple, clean text at the bottom */
    color: #bbb;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
}

#pub-lightbox .close-btn {
    /* Inside the white card, top right */
    position: absolute;
    top: 10px;
    right: 15px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

#pub-lightbox .close-btn:hover {
    color: #000;
}

/* --- Contact Page Styles --- */
.contact-split-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    align-items: flex-start;
}

.contact-info-card {
    flex: 1;
    min-width: 300px;
    background: #FFFAF0;
    /* Cream Background */
    padding: 40px;
    border-radius: 20px;
    border: 2px dashed #FF9933;
}

.contact-info-card h2,
strong {
    color: #800000;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.info-item i {
    color: #800000;
    font-size: 20px;
    margin-top: 5px;
}

.map-frame {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Two-Column Form Row */
.form-row {
    display: flex;
    gap: 20px;
}

.half-width {
    flex: 1;
}

/* --- Form Dropdown Styling --- */
.donation-form-card select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    /* Match site font */
    color: #333;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    /* Removes default ugly browser arrow */
    /* Custom Arrow Icon (SVG encoded) */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FF9933%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

/* Focus State */
.donation-form-card select:focus {
    outline: none;
    border-color: #FF9933;
    /* Saffron Glow */
    box-shadow: 0 0 5px rgba(255, 153, 51, 0.3);
}

/* --- Fix Donation Page QR Code --- */
.qr-code-section {
    text-align: center;
    margin-top: 20px;
    /* padding-top: 20px; */
    border-top: 1px dashed #ddd;
    /* Separator line */
    width: 100%;
    /* Ensure container fills parent */
}

.qr-code-section img {
    width: 100%;
    /* Fill the available width */
    max-width: 350px;
    /* Increased limit for better visibility */
    height: auto;
    /* Keep aspect ratio */

    /* The Royal Styling */
    border: 4px solid #800000;
    /* Maroon Border */
    border-radius: 20px;
    padding: 4px;
    /* White matting */
    background: none;
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15) !important;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
    /* Fix inline spacing issues */
    margin: 0 auto 10px auto;
    /* Center it horizontally */
}

.qr-code-section img:hover {
    transform: scale(1.05);
    /* Zoom on hover */
}

.qr-code-section p {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- Particle Background --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Push behind content */
    pointer-events: none;
    /* Let clicks pass through to buttons */
}

/* Dark Mode Adjustment for Particles */
body.dark-mode #particle-canvas {
    opacity: 0.6;
    /* Dim them slightly in dark mode if needed */
}

/* --- Shared "Royal Card" Styles --- ROYAL CARD */
/* Placed at the bottom for highest precedence */
.slider-container,
.video-container,
.profile-split-card,
.about-card,
.logo-split-card,
.bank-card,
.donation-form-card,
.volunteer-info-card {

    /* The Fix: Ivory instead of White */
    background-color: #FFFAF0 !important;

    /* Ensure the Maroon Shadow we liked is applied everywhere */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15) !important;

    /* Ensure Saffron Borders stay crisp */
    border-color: #FF9933;
    border: 3px, solid, #FF9933;
}


/* --- FORCE Volunteer Split Layout --- */
.volunteer-container {
    display: flex;
    flex-direction: row;
    /* Force side-by-side */
    align-items: flex-start;
    /* Align tops */
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Left Card Styling (The Missing Piece) */
.volunteer-info-card {
    flex: 1;
    /* Take up 50% space */
    min-width: 300px;
    background-color: #FFFAF0;
    /* Floral White */
    padding: 40px;
    border-radius: 20px;
    border: 2px dashed #FF9933;
    /* Saffron Dashed Border */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.1);
}

/* Typography Fixes */
.volunteer-info-card h2 {
    font-family: 'Montserrat', sans-serif;
    color: #800000;
    font-weight: 700;
    margin-bottom: 20px;
}

.volunteer-info-card p,
.volunteer-info-card blockquote {
    font-family: 'Montserrat', sans-serif;
    /* Fix fonts */
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}

.seva-feature-img {
    width: 100%;
    border-radius: 15px;
    margin-top: 20px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Fallback */
@media (max-width: 900px) {
    .volunteer-container {
        flex-direction: column;
    }

    .volunteer-info-card {
        width: 100%;
    }
}

/* --- Royal Footer Styling --- */
footer {
    background-color: transparent;
    /* Transparent to show banner image */
    position: relative;
    z-index: 1;
    /* Create stacking context */
    color: #FFFAF0;
    /* Cream Text (easier to read than white) */
    padding: 60px 0 20px 0;
    margin-top: 80px;
    /* Space above footer */
    border-top: 6px solid #FF9933;
    /* Saffron Top Border */
}

/* Headings in Footer */
.footer-column h3,
footer h2,
footer h3 {
    color: #FF9933 !important;
    /* Saffron Headings */
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 153, 51, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Links & Text */
.footer-column a,
footer a,
footer p,
footer li {
    color: #FFFAF0;
    /* Cream Text */
    text-decoration: none;
    /* transition: color 0.3s; */
}

.footer-column img {
    height: auto;
    background: none;
    padding: 4px;
}

footer a:hover {
    color: #FF9933 !important;
    /* Saffron on Hover */
}

/* Icons */
footer i {
    color: #FF9933;
    /* Saffron Icons */
    margin-right: 10px;
}

/* Copyright Section */
.copyright-text {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 153, 51, 0.2);
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* QR Code Border Update */
.footer-qr-trigger {
    border: 2px solid #FF9933;
    /* Switch white border to Saffron */
}


/* --- Route Map Styling --- */
.route-map-container {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #FF9933;
    /* Match map-frame border */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15) !important;
}

/* --- Service Stack Layout --- */
.services-stack {
    max-width: 1000px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-card {
    background-color: #FFFAF0;
    /* Floral White */
    border-radius: 20px;
    /* Royal Solid Border */
    border: 2px solid #FF9933;
    /* Maroon Shadow */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.1);
    padding: 40px;
    display: flex;
    gap: 30px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* The Left Icon Box */
.service-icon {
    flex: 0 0 80px;
    height: 80px;
    background-color: #FFFAF0;
    /* Cream */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #800000;
    border: 2px solid #FF9933;
}

/* Content Typography */
.service-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #800000;
    font-size: 26px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.service-intro {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.service-sub-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #FF9933;
    margin-bottom: 5px;
    margin-top: 20px;
}

/* Custom Lists */
.service-list-block ul,
.check-list {
    list-style: none;
    padding: 0;
}

.service-list-block li,
.check-list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
    padding-left: 25px;
    position: relative;
}

/* Custom Bullet Points */
.service-list-block li::before {
    content: '•';
    color: #FF9933;
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -5px;
}

.check-list li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #800000;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Location Tags */
.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.location-tags span {
    background-color: #800000;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        text-align: center;
    }

    .service-icon {
        margin: 0 auto;
    }

    .service-list-block li,
    .check-list li {
        text-align: left;
    }
}

/* --- Footer Decoration Styles --- */
footer {
    position: relative;
    /* Establish positioning context */
    overflow: hidden;
    /* Cut off any image overflow */
}

.footer-container {
    position: relative;
    z-index: 10;
    /* CRITICAL: Ensure text/links sit ON TOP of the pillars */
}

.footer-decor {
    position: absolute;
    bottom: 0;
    height: 100%;
    /* Fill the height of the footer */
    width: auto;
    max-width: 250px;
    /* Adjust size */
    /* opacity: 0.4; */
    /* Subtle watermark effect */
    pointer-events: none;
    /* Let clicks pass through to background */
    z-index: 0;
    /* Sit behind content */
}

.decor-left {
    left: 0;
}

.decor-right {
    right: 0;
}

/* Mobile Hide: Hide decorations on small screens to save space */
@media (max-width: 1000px) {
    .footer-decor {
        display: none;
    }
}

/* --- Gallery Layout --- */
.gallery-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Filter Buttons */
.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-block;
    padding: 10px 30px;
    margin: 5px;
    border: 2px solid #800000;
    /* Maroon */
    color: #800000;
    background: transparent;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #800000;
    color: #fff;
    transform: translateY(-2px);
}

/* The Grid */
.gallery-grid {
    display: grid;
    /* CHANGE THE NUMBER '3' BELOW TO ADJUST COLUMNS */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 60px;
}

/* Image Card */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    aspect-ratio: 4/3;
    /* Keeps all photos uniform shape */
    border: 4px solid #fff;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect */
.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay Icon */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 0, 0, 0.4);
    /* Maroon Tint */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

/* Specific Lightbox Adjustments */
#gallery-zoom-img {
    max-height: 75vh;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 4px solid white;
}

/* Visual Hiding Class */
.gallery-item.hide {
    display: none;
    /* Removes it from layout flow */
}

/* Add a fade animation for showing items */
.gallery-item.show {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Events Page Styling --- */
.section-header {
    align-self: center;
    max-width: 600px;
    text-align: center;
    margin: 0 auto 50px auto;
    background-color: #FFFAF0;
    /* Floral White */
    border-radius: 20px;
    /* Royal Solid Border */
    border: 2px solid #FF9933;
    /* Maroon Shadow */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    transition: transform 0.3s;
}

.section-header h2 {
    font-family: 'Merriweather', serif;
    color: #800000;
    font-size: 40px;
    font-weight: 700;
    border-bottom: 3px solid #FF9933;
    display: inline-block;
}

/* --- Upcoming Events (Cards) --- */
/* --- Upcoming Events (Cards) --- */
/* 1. Change the Grid container to a Vertical List */
.upcoming-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    /* Limit width for reading comfort */
    margin: 0 auto;
    /* Center the list */
    padding: 2rem 1rem;
}

/* 2. Make the Cards Horizontal */
.event-card.upcoming {
    background-color: #FFFAF0;
    /* Floral White */
    border: 2px solid #FF9933;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.1);
    transition: transform 0.3s;
    overflow: hidden;
    /* Keep images inside rounded corners */
    display: flex;
    flex-direction: row;
    /* Side-by-side layout */
    align-items: center;
    /* Center content vertically */
    min-height: 200px;
    /* Ensure substantial height */
    text-align: left;
    /* Align text to the left */
}

.event-card.upcoming:hover {
    transform: translateY(-5px);
}

/* 3. Adjust the Image/Date Section (Left Side) */
.event-card.upcoming img {
    width: 35%;
    /* Give image about 1/3 of the width */
    height: 100%;
    /* Fill height */
    object-fit: cover;
    /* Crop nicely */
    min-height: 220px;
    /* Force height if image is small */
    margin-left: 20px;
    border: 2px solid #800000;
    border-radius: 20px;
}

/* If the "Date Box" is the only visual on the left, adjust it: */
.event-date {
    background-color: #800000;
    color: #fff;
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    position: static;
    /* Remove absolute positioning if it was floating */
    width: 120px;
    height: 120px;
    margin: 0 1.2rem;
    /* Add spacing from the text */
    flex-shrink: 0;
    /* Don't shrink */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-date .day {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* 4. Adjust the Details Section (Right Side) */
.event-details {
    padding: 2rem 2rem 2rem 1rem;
    flex: 1;
    /* Take remaining space */
}

.event-details h3 {
    color: #800000;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.event-details p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
    text-align: left;
}

.event-details i {
    color: #FF9933;
    width: 20px;
}

/* 5. Mobile Responsiveness (Snap back to vertical on phones) */
@media (max-width: 768px) {
    .event-card.upcoming {
        flex-direction: column;
        /* Stack vertically on mobile */
        text-align: center;
    }

    .event-card.upcoming img {
        width: 100%;
        margin: 20px 40px 20px 40px;
        /* Full width square image */
        /* height: 200px; */
    }

    .event-date {
        margin: -40px auto 1rem auto;
        /* Center overlap style for date */
        position: relative;
        z-index: 10;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .event-details {
        padding: 1rem 2rem 2rem 2rem;
        text-align: center;
    }

    .event-details p {
        text-align: center;
    }
}

/* --- Royal Timeline Container --- */
.timeline-section {
    position: relative;
    padding: 60px 20px;
    /* Remove background color so it sits on the page gradient */
    background: transparent;
}

.timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* The Central Spine (Thicker & Saffron) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    /* Thicker */
    background-color: #FF9933;
    /* Saffron */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    /* Center perfectly */
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 153, 51, 0.3);
    /* Glow */
}

/* The Card Container */
.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 140px;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 140px;
}

/* The Content Box (Glass Style) */
.timeline-item .content {
    padding: 25px 30px;
    background-color: #FFFAF0;
    /* Floral White */
    position: relative;
    border-radius: 15px;
    border: 2px solid #FF9933;
    /* Saffron Border */
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.1);
    /* Arrow pointing to center */
}

/* The Date Bubble (Sitting on the Spine) */
.timeline-item .date {
    position: absolute;
    top: 30px;
    /* Center the date on the spine */
    right: -130px;
    /* For left items */
    width: 120px;
    background-color: #800000;
    /* Maroon */
    color: white;
    padding: 5px 0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    z-index: 10;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Fix Date Position for Right Items */
.timeline-item.right .date {
    left: -130px;
    right: auto;
}

/* Typography inside Card */
.timeline-item h3 {
    font-family: 'Montserrat', sans-serif;
    color: #800000;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

/* Mobile: Stack everything */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    /* Move spine to left */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    /* Move Date bubble to left spine */
    .timeline-item .date,
    .timeline-item.right .date {
        left: -28px;
        /* Align with spine */
        right: auto;
        width: auto;
        padding: 5px 10px;
        top: -30px;
        /* Move above card */
    }
}

/* --- Feature Card Layout --- */
.location-stack {
    max-width: 1100px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.location-feature-card {
    display: grid;
    /* The Grid: 2 Columns. Left is Image (40%), Right is Header (60%) */
    grid-template-columns: 350px 1fr;
    /* Two Rows. Top is Image+Header, Bottom is Desc */
    grid-template-rows: auto auto;

    background-color: #FFFAF0;
    /* Floral White */
    border: 2px solid #FF9933;
    border-radius: 20px;
    padding: 30px;
    gap: 30px;
    /* Space between elements */
    box-shadow: 0 15px 40px rgba(128, 0, 0, 0.15);
}

/* 1. Image Area (Spans 1 Row, 1 Column) */
/* 1. Image Area (Spans 1 Row, 1 Column) */
.loc-feature-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

.loc-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.loc-feature-image:hover img {
    transform: scale(1.05);
}

.loc-feature-image .zoom-icon,
.amenity-visual .zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: white;
    background: rgba(128, 0, 0, 0.7);
    /* Maroon with opacity */
    padding: 8px;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.loc-feature-image:hover .zoom-icon,
.amenity-visual:hover .zoom-icon {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Header Area (Spans 1 Row, 1 Column) */
.loc-feature-header {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loc-feature-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: #800000;
    font-size: 32px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.loc-feature-header .subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #FF9933;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.loc-quick-info p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #555;
}

/* 3. Description Area (Spans Full Width at Bottom) */
.loc-feature-desc {
    grid-column: 1 / 3;
    /* Span across both columns */
    grid-row: 2 / 3;
    border-top: 1px dashed #FF9933;
    /* Separator line */
    padding-top: 20px;
}

.loc-feature-desc p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* Mobile Stack */
@media (max-width: 800px) {
    .location-feature-card {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .loc-feature-image {
        width: 100%;
        height: 250px;
    }
}

/* --- Google Translate Customizing --- */
/* Hide the Google Logo */
.goog-te-gadget-simple img {
    display: none !important;
}

/* Style the Container to look like a Ghost Button */
.goog-te-gadget-simple {
    background-color: #FFFAF0 !important;
    /* Subtle Maroon border */
    padding: 0px 10px !important;
    border-radius: 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    transition: all 0.3s ease;
}

/* Text Color (Maroon to match theme) */
.goog-te-gadget-simple span,
.goog-te-gadget-simple a {
    color: #800000 !important;
    font-weight: 600 !important;
}

/* Hide the vertical separator line Google adds */
.goog-te-gadget-simple span {
    border-left: none !important;
}

/* Hover Effect */
.goog-te-gadget-simple:hover {
    background-color: #FF9933 !important;
    transform: scale(1.05) !important;
}

/* Position the Google Translate Widget */
#google_translate_element {
    position: absolute;
    top: 8px;
    right: 20px;
    z-index: 1000;
}

/* --- 1. Micro Top Bar --- */
.header-top-bar {
    background-color: transparent;
    /* Deep Maroon */
    color: #FFFAF0;
    max-height: 40px;
    padding: 10px 5%;
    display: flex;
    /* justify-content: flex-end; */
    /* Align to right */
    align-items: center;
    font-size: clamp(6px, 1.2vw, 14px);
}

.header-top-bar .contact-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-top-bar .contact-info a {
    color: #FFFAF0 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-top-bar .contact-info a:hover {
    color: #FF9933 !important;
    /* Saffron */
}

.header-top-bar .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* --- Fix Header Icons --- */
.header-top-bar .contact-info i {
    color: #ffffff !important;
}

.header-top-bar .contact-info a:hover i {
    color: #FF9933 !important;
    /* Optional: Turn saffron along with text on hover */
}

#google_translate_element select {
    border-radius: 4px;
    border: none;
    outline: none;
    padding: 2px;
    background: rgba(255, 255, 255, 0.9);
}

/* Footer Bottom Contact Styles */
.footer-bottom .contact-info {
    margin-bottom: 15px;
    font-size: clamp(14px, 1.2vw, 16px);
    /* Fluid font size */
    /* TODO: implement bg card to sit on */
    background-color: rgba(37, 5, 7, 0.2);
    border-radius: 20px;
    width: fit-content;
    max-width: 90%;
    /* Allow it to grow on small screens */
    padding: 2px 20px;
    border: 2px solid #FF9933;
    margin: 0px auto 15px auto;
    color: #FFFAF0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom .contact-info a {
    color: #FFFAF0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    font-size: clamp(10px, 1.2vw, 14px);
}

.footer-bottom .contact-info a:hover {
    color: #FF9933;
    /* Saffron */
}

.footer-bottom .contact-info i {
    color: #FFFAF0;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.footer-bottom .contact-info a:hover i {
    color: #FF9933;
}

.footer-bottom .contact-info .separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

@media (max-width: 600px) {
    .footer-bottom .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .footer-bottom .contact-info .separator {
        display: none;
    }
}

/* Pitamaha Sadan Comparison Section */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.comparison-column {
    padding: 20px;
    border-radius: 10px;
}

.comparison-column:first-child {
    background: rgba(255, 153, 51, 0.1);
    border-left: 4px solid #800000;
}

.comparison-column:last-child {
    background: rgba(128, 0, 0, 0.05);
    border-left: 4px solid #FF9933;
}

.comparison-column h4 {
    color: #800000;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.comparison-column ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #333;
}

.comparison-column li {
    margin-bottom: 8px;
}

/* --- Fix Nav Logo Positioning (Moved to end for specificity) --- */
@media (max-width: 1600px) {
    .donate-btn-header {
        border: 2px solid #800000 !important;
        top: 65px !important;
        /* shift down */
    }

    .nav-logo-lhs {
        top: 80px !important;
        background: #FF9933;
        border: 2px solid #800000;
        border-radius: 16px;
        padding: 0px 10px;
    }

    .nav-logo-rhs img {
        top: 80px !important;
    }

    .slider-container {
        margin-top: 60px !important;
    }
}

@media (max-width: 1100px) {

    /* hamburger activates, reset shift down */
    .donate-btn-header {
        top: none !important;
        border: none !important;
    }

    .nav-logo-lhs {
        top: none !important;
        background: none !important;
        border: none !important;
        border-radius: none !important;
        padding: none !important;
    }

    .slider-container {
        margin: 40px auto !important;
    }

}

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr !important;
    }
}

/* --- GLOBAL MOBILE RESPONSIVENESS --- */

/* 1. Global Container Fixes (Stop Horizontal Scroll) */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        /* Kill side-scroll */
        width: 100%;
    }

    /* Standardize Padding for all main containers */
    .banner,
    .navbar,
    .footer-container,
    .upcoming-grid,
    .page-banner {
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box;
    }

    /* 2. Header Banner: Stack the Logos and Text */
    .banner {
        flex-direction: row;
        text-align: center;
        gap: 1rem;
    }

    .banner-logo.left-logo,
    .banner-logo.right-logo {
        position: static;
        /* Remove absolute positioning if present */
        margin: 0 auto;
        max-width: 80px;
        /* Shrink logos */
    }

    .trust-info {
        text-align: center;
    }

    /* 3. Typography Scaling */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.2rem !important;
    }

    p,
    ul,
    ol,
    li {
        font-size: 0.8rem !important;
        line-height: 1.6;
    }


    /* 4. Force ALL Grids to Single Column */
    .upcoming-grid,
    .footer-container,
    .gallery-grid,
    .team-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        /* Override grid systems */
        gap: 2rem;
    }

    /* 5. Event Cards & Horizontal Items -> Stack Them */
    .event-card,
    .event-card.upcoming {
        flex-direction: column !important;
        height: auto !important;
        /* Allow dynamic height */
    }

    .event-card.upcoming img {
        width: 100%;
        margin: 20px 40px 20px 40px;
        /* Full width square image */
        /* height: 200px; */
    }

    .event-image-container {
        width: 100% !important;
        /* Image takes full top width */
        height: 200px !important;
        border-right: none !important;
        border-bottom: 2px solid #FF9933;
    }

    .event-details {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
    }

    /* 6. Footer Specifics */
    .footer-container>div {
        align-items: center !important;
        text-align: center !important;
    }

    /* Fix QR Code size on mobile */
    .footer-container img {
        max-width: 200px;
        margin: 0 auto;
    }

}



/* --- Responsive Carousel (Single View on Mobile/Tablet) --- */
@media (max-width: 900px) {

    /* 1. Target the Carousel Container */
    .slider-container {
        top: 25px;
        width: 95% !important;
        /* Maximize width on small screens */
        margin: 0 auto !important;
        height: 40vh !important;
        /* Allow height to adjust based on image */
        overflow: visible !important;
        /* Allow arrows to sit outside if needed */
    }

    /* 2. Reset Track Transform (CRITICAL FIX) */
    /* 2. Reset Track Transform (CRITICAL FIX) */
    /* --- FIXED: Perfect Centering for Mobile Slider --- */

    /* 1. Make the Track a Centering Container */
    .slider-track {
        display: flex !important;
        /* Turn on Flexbox */
        justify-content: center !important;
        /* Center Horizontally */
        align-items: center !important;
        /* Center Vertically */
        height: 100% !important;
        /* Fill the container height */
        width: 100% !important;
        transform: none !important;
        /* Disable JS sliding */
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 3. Hide Non-Active Images */
    .slide:not(.active) {
        display: none !important;
    }

    /* 2. Style the Active Slide (The White Box with Saffron Border) */
    .slide.active {
        /* A. Turn on Flexbox inside the card to center the image */
        display: flex !important;
        justify-content: center !important;
        /* Horizontal Center */
        align-items: center !important;
        /* Vertical Center */

        /* B. Force the box to have height so centering is visible */
        width: 85% !important;
        height: 35vh !important;
        /* Fixed height relative to viewport */

        /* C. Positioning */
        position: relative !important;
        margin: 0 auto !important;
        /* Ensure the box itself is centered */

        /* D. Visuals: Saffron Border & Cream Background */
        background-color: transparent !important;
        border: none !important;
        /* Saffron Color */
        border-radius: 20px;
        box-shadow: none !important;
        padding: 0 !important;
        /* Let flexbox handle spacing */
    }

    /* 3. Style the Image (The Inner Item with Maroon Border) */
    .slide.active img {
        /* A. Ensure image doesn't overflow the box */
        max-width: 90% !important;
        max-height: 85% !important;

        /* B. Reset width/height to auto to maintain aspect ratio */
        width: auto !important;
        height: auto !important;
        display: block !important;

        /* C. Visuals: Maroon Border on the Image */
        border: 4px solid #800000 !important;
        /* Maroon Color */
        border-radius: 8px !important;
    }

    /* 5. Reposition Navigation Arrows */
    /* 5. Hide Navigation Arrows */
    .slider-button {
        display: none !important;
    }

    /* --- Fix Mobile Footer Stacking --- */
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Center everything horizontally */
        text-align: center !important;
        gap: 3rem !important;
        /* Add space between sections */
        padding-bottom: 4rem !important;
        /* Safety padding at the bottom */
    }

    /* 1. Tame the Logo Size */
    .footer-container>div:first-child img {
        max-width: 140px !important;
        /* Shrink the 75 Years logo */
        margin-bottom: 0;
    }

    /* 2. Fix Text Widths */
    .footer-container p,
    .footer-container a {
        max-width: 300px;
        /* Prevent text from hitting screen edges */
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. Ensure Headers look good centered */
    .footer-container h4 {
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
        /* Allows underline effects to work on centered text */
    }

    /* 4. Fix Scan & Donate Section */
    .footer-container>div:last-child {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ensure the Scan Modal button (if present) is centered */
    .scan-donate-btn {
        margin: 0 auto;
    }

}

/* --- Map Container Styles --- */
.map-container iframe {
    border: 0;
    display: block;
}

/* --- Footer Copyright Formatting --- */
/* Default (Desktop): Keep it on one line */
.footer-line {
    display: inline;
}

.footer-separator {
    display: inline;
    margin: 0 5px;
}

/* Mobile (Stack them) */
@media (max-width: 768px) {
    .copyright-text {
        line-height: 1.8 !important;
        /* Give breathing room */
    }

    .footer-line {
        display: block !important;
        /* Force new line */
        width: 100%;
    }

    .footer-separator {
        display: none !important;
        /* Hide the pipes '|' on mobile */
    }
}

/* --- Mobile Fix for Page Banner Card --- */
@media (max-width: 768px) {
    .banner-text-card {
        padding: 15px 20px !important;
        /* Reduce padding significantly */
        width: 90% !important;
        /* Ensure it fits within the screen */
        margin: 0 auto;
    }

    .banner-text-card h1 {
        letter-spacing: 2px !important;
        /* Reduce spacing so text fits on one/two lines */
        font-size: 1.8rem !important;
        /* Force a smaller font size */
        border-bottom-width: 2px !important;
        /* Thinner underline */
        padding-bottom: 5px !important;
    }
}

/* --- Mobile Fix for Gallery Filters --- */
@media (max-width: 600px) {
    .gallery-filters {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        /* Space between the stacked buttons */
        margin-bottom: 30px !important;
    }

    .filter-btn {
        display: block !important;
        width: 80% !important;
        /* Make buttons wide for easy tapping */
        max-width: 300px !important;
        margin: 0 auto !important;
        /* Center them */
        text-align: center !important;
        padding: 12px 20px !important;
        /* Slightly larger touch area */
    }
}

/* --- Amenities Section --- */
.amenities-section {
    background-color: #FFF8E1;
    /* Cream Background */
    border: 3px dashed #FF9933;
    /* The Saffron Dashed Border from Wireframe */
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 40px auto;
    width: 90%;
}

.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Space between cards */
}

/* --- The Amenity Card --- */
.amenity-card {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    /* Lighter background for the card itself */
    border: 2px solid #800000;
    /* Solid Maroon Border */
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    gap: 30px;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.15);
}

/* Left Side: Visuals */
.amenity-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
    position: relative;
}

.amenity-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #eee;
    /* Placeholder color */
}

.img-caption {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #800000;
    font-size: 0.9rem;
}

/* Right Side: Content */
.amenity-content {
    flex: 2;
    text-align: left;
}

.amenity-content h3 {
    color: #800000;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    border-bottom: 2px solid #FF9933;
    /* Underline title */
    display: inline-block;
    padding-bottom: 5px;
}

.amenity-content p {
    color: #333;
    line-height: 1.6;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .amenities-section {
        padding: 20px;
        width: 95%;
    }

    .amenity-card {
        flex-direction: column;
        /* Stack vertically on mobile */
        text-align: center;
        gap: 15px;
    }

    .amenity-visual {
        width: 100%;
        min-width: 0;
    }

    .amenity-content {
        text-align: center;
    }
}