/* SSVP Global Styles */
:root {
    --primary: #003366;
    --secondary: #2E7D32;
    --accent: #FF9800;
    --text: #333333;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0.1px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    border-radius: 15px;
}

.glass-dark {
    background: rgba(0, 51, 102, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; color: var(--primary); }
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    transition: padding 0.4s ease-in-out, background 0.4s ease-in-out, min-height 0.4s ease-in-out;
    /* Prevents sub-pixel rendering jitters */
    backface-visibility: hidden;
}

header {
    background: #e3f2fd;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px 5%;
    min-height: 100px; /* Forces the bar to be tall enough */
    transition: all 0.4s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 100px;
    width: auto;
    
    transition: height 0.4s ease-in-out;
    /* Keeps the image crisp during the resize */
    transform: translateZ(0); 
    will-change: height;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-weight: 800;
}

.logo-abbr {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.logo-full {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    max-width: 200px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-lang-switcher {
    margin-left: 10px;
}

.nav-lang-switcher select {
    background: var(--light);
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}
/* --- SCROLLED STATE (Small Logo) --- */
header.scrolled {
    padding: 10px 5%;
    min-height: 70px;
    background: rgba(227, 242, 253, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header.scrolled .logo-img {
    height: 50px !important; /* Shrinks on scroll */
}

header.scrolled .logo-abbr {
    font-size: 1.5rem;
}

/* Vision & Mission Grid */


/* Header Styles */
.main-title {
    text-align: center;
    color: #000080; /* Deep Red */
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Container & Flexbox */
.container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allows cards to stack on small screens */
}

/* Card Styling */
.card {
    background: #fff;
    flex: 1;
    min-width: 320px;
    border: 2px solid #000080; /* The red border */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Icon & Header inside Card */
.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.card-header h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Content Text Styling */
.card-body p, .card-body li {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
}

.card-body ul {
    list-style-type: none;
    padding: 0;
}

.card-body li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    text-align: left; /* Lists look better left-aligned */
}

/* Red Dot for List Items */
.card-body li::before {
    content: "•";
    color: #000080;
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

/* --- MOBILE FIX --- */
@media (max-width: 768px) {
    .vision-mission-grid {
        grid-template-columns: 1fr; /* Stacks Vision on top of Mission */
        padding: 0 15px; /* Adds a little breathing room on the sides */
    }
    
    .vm-box {
        padding: 20px; /* Slightly smaller padding for smaller screens */
    }

    /* Extra safety: prevent the hero title from pushing the screen out */
    .activity-hero h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
}

/* Team Section */
.team-grid {
    display: grid;
    /* Sets the gap (space) between the images */
    gap: 30px; 
    
    /* Creates 4 equal columns by default */
    grid-template-columns: repeat(4, 1fr); 
}

/* Responsiveness: Adjust columns for tablets and mobile */
@media (max-width: 1024px) {
    .team-grid {
        /* Drops to 2 columns on medium screens */
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 480px) {
    .team-grid {
        /* Single column for phones */
        grid-template-columns: 1fr; 
    }
}

.team-grid img {
    /* 1. Force the size */
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes them square. Use 3/4 or 16/9 for other shapes */
    
    /* 2. Fix the distortion */
    object-fit: cover;   /* Crops the image to fill the box without stretching */
    object-position: center; /* Ensures the middle of the photo is visible */
    
    /* 3. Optional: Clean look */
    display: block;
    border-radius: 8px;
}

.team-card {
    text-align: center;
}


/* Timeline Accordion */
.timeline {
    max-width: 800px;
    margin: 40px auto;
}

.timeline-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.timeline-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    background: white;
}

.timeline-item.active .timeline-content {
    padding: 20px;
    max-height: 500px;
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.award-item {
    text-align: center;
}

.award-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}
/* Navy Blue Link Button Styling */
.awards-details-link {
    background-color: #1a2a6c; /* Navy Blue */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px; /* Adjust size as needed */

    /* Force the dimensions */
    display: inline-flex;    /* Uses flex to center text easily */
    align-items: center;     /* Vertical center */
    justify-content: center; /* Horizontal center */
    
    height: 36px;            /* This overrides any container height */
    padding: 0 25px;         /* Left and right padding only */
    
    /* Perfect rounded ends */
    border-radius: 50px;     
    
    /* Prevent it from stretching if the container is a flexbox */
    align-self: center;      
    
    transition: background 0.3s ease;
}

.awards-details-link:hover {
    background-color: #0f1738;
}

/* Scrollable Images */
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: thin;
}

.scroll-item {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
}

.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Activity Detail */
.activity-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.activity-main-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 30px;
}

.activity-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.impact-box {
    padding: 30px;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    margin-bottom: 30px;
}

/* Animated Stars */
.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.stars i {
    animation: starPulse 1.5s infinite ease-in-out;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Hero Section */
/* Hero Section Container */
.hero {
    position: relative;
    width: 100%;
    height: 85vh; /* Standard height for all pages */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* The Wrapper for the Image */
.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* THE FIX: This forces the HTML image to fill the gapless area */
.hero-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* This is critical: it crops the image to fill the width */
    object-position: center; /* Keeps the center of your image visible */
    display: block;
}

/* Optional Overlay to make text pop */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens the image slightly */
    z-index: 2;
}

/* Hero Content sitting on top */
.hero-content {
    position: relative;
    z-index: 3; /* Above the image and the overlay */
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #ffcc80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-orbs {
    z-index: 1; /* Puts them just above the background */
    pointer-events: none; /* Make sure they don't block button clicks */
}

.orb-1 { width: 400px; height: 400px; background: rgba(255, 152, 0, 0.3); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: rgba(46, 125, 50, 0.3); bottom: -50px; right: -50px; }

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: none;
    transition: 0.3s;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #e68a00; transform: translateY(-3px); }

.btn-outline { border: 2px solid white; color: white; background: transparent; }
.btn-outline:hover { background: white; color: var(--primary); }

/* Sections */
section {
    padding: 20px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
.card {
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

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

.card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}
.event-card {
    padding: 20px;
    border-radius: 15px;
}

/* Stats */
.stats {
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 60px 5%;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

/* Testimonials */
.testimonials {
    background: #fff;
}

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

.testimonial-card {
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.4);
}

/* Footer */
footer {
    background: #111;
    color: #ccc;
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates two equal columns */
    gap: 10px 20px; /* 10px vertical gap, 20px horizontal gap */
}

.footer-col ul li {
    margin-bottom: 0; /* Reset margin since we are using grid gap */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}
@media (max-width: 400px) {
    .footer-col ul {
        grid-template-columns: 1fr;
    }
}

/* Sticky Socials */
.sticky-socials {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 999;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    border-radius: 25px;
    color: white;
    font-size: 1.5rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    padding-right: 13px;
    white-space: nowrap;
    text-decoration: none;
}

.social-icon span {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 15px;
    opacity: 0;
    transition: 0.3s;
}

.social-icon:hover {
    width: 160px;
}

.social-icon:hover span {
    opacity: 1;
}

.whatsapp { background: #25D366; }
.instagram { background: #E1306C; }
.youtube { background: #FF0000; }
.linkedin { background: #0077B5; }
.facebook { background: #3b5998; }

/* --- New Modal Styles --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: none; /* Initially hidden */
            justify-content: center;
            align-items: center;
            z-index: 9999;
            padding: 20px;
        }

        .modal-container {
    position: relative;
    background: #fff;
    width: auto; /* Let the image define the width */
    height: auto; /* Important: Stop forcing 100% height */
    max-width: 90%; /* Prevent stretching past screen on small mobiles */
    border-radius: 8px;
    overflow: hidden; /* Keeps close button and image edges rounded */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; /* Ensures content centers inside */
    justify-content: center;
    align-items: center;
}

        .modal-content {
            width: 100%;
            display: flex;
        }

        .modal-media {
    width: 100%;
    max-width: 800px; /* Limits size on large screens (e.g., from your cat1_list context) */
    height: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: contain; /* Shrink to fit, maintain aspect ratio, do not cut */
    
    /* Extra check: Ensure it doesn't get taller than the user's screen */
    max-height: 90vh; 
}

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0,0,0,0.6);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: none; /* Hidden for 5 seconds */
            z-index: 10001;
            transition: background 0.3s;
            line-height: 40px;
            text-align: center;
        }

        .modal-close:hover {
            background: var(--primary);
        }

        /* Responsive */
        @media (max-width: 992px) {
            
            .modal-container { max-width: 95%; }
        }



/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info-box {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 40px;
}

.contact-map-box {
    height: 500px;
    padding: 0;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    header nav {
        display: none;
    }
    header nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    header nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .mobile-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    
}
/* Awards Row Layout */
/* Ensure the container is a flexbox first */
.award-row {
    display: flex !important;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

/* Force the reverse on every second row */
.award-row.reverse {
    flex-direction: row-reverse;
}

/* Ensure columns take up equal space */
.award-image-col, 
.award-text-col {
    flex: 1;
    min-width: 300px;
}

.award-image-col img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.award-image-col img:hover {
    transform: scale(1.02);
}

.award-text-col h2 {
    color: #1a2a6c; /* Navy Blue */
    margin-bottom: 20px;
    text-align: left;
}

.award-text-col p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
}

/* Lightbox Styling (Hidden by default) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 40px;
    right: 50px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .award-row, .award-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .award-text-col h2 {
        text-align: center;
    }
}
/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 250px; /* Fixed height for uniformity */
}

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

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

/* Lightbox (Enlarged View) */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid white;
    border-radius: 4px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

/* Responsive: 2 columns on tablets, 1 on mobile */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* HERO IMAGE BREAKOUT - ZERO GAP FIX */
        .hero-image-container {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            margin-top: 50px; /* Starts exactly where header ends */
            line-height: 0;
            overflow: hidden;
            background-color: #000;
        }

        .full-width-hero {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            max-height: 700px;
        }

        /* Donation Content */
        .donation-section { 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 3rem 5%; 
            background-color: var(--bg-light);
        }

        .appeal-card { 
            background: var(--white); 
            padding: 30px; 
            border-radius: 15px; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
            margin-bottom: 3rem; 
            border-top: 8px solid var(--secondary); 
            text-align: center;
        }

        .tax-benefit { 
            background: #fff9c4; 
            padding: 1.5rem; 
            border-radius: 10px; 
            text-align: center; 
            font-weight: bold; 
            color: #5d4037; 
            border: 1px dashed var(--secondary); 
            margin: 2rem 0; 
            border-left: 5px solid #fbc02d;
        }

        /* Container for the cards */
.bank-grid {
    display: grid;
    grid-template-columns: 1fr; /* Keep the grid itself 1 column as per your previous design */
    gap: 2rem;
    max-width: 800px; /* Increased slightly to accommodate two internal columns */
    margin: 0 auto; 
}

.bank-card { 
    background: var(--white); 
    padding: 2rem; 
    border-radius: 15px; /* Matches your rounded corner preference */
    border: 1px solid #ddd; 
    text-align: left; 
}

.bank-card h3 { 
    color: var(--primary); 
    margin-bottom: 1.5rem; 
    border-bottom: 2px solid var(--light); 
    padding-bottom: 0.5rem; 
}

/* Internal Layout: Details vs QR */
.bank-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically centers QR with the text */
    gap: 30px;
}

.bank-details {
    flex: 1; /* Takes up remaining space */
}

.bank-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.qr-code {
    flex: 0 0 150px; /* Fixed width for the QR code column */
    text-align: center;
}

.qr-code img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
}

.qr-code span {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

/* Responsive: Stack columns on smaller screens */
@media (max-width: 600px) {
    .bank-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .qr-code {
        flex: 0 0 auto;
        width: 180px; /* Larger QR for easier scanning on mobile */
        margin-top: 20px;
    }
}
        .association-grid { 
            display: grid; 
            grid-template-columns: 1fr 1fr; 
            gap: 20px; 
            margin-top: 20px; 
        }
        
        .assoc-box { 
            border: 1px solid #ddd; /* Slightly lighter border for a cleaner look */
            padding: 25px; 
            background: white;
            text-align: left; 
            
            /* --- The Rounded Corner Change --- */
            border-radius: 15px; 
            
            /* Optional: Adds a subtle shadow to make the rounded corners pop */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }
        
        /* Hover effect to make it interactive */
        .assoc-box:hover {
            transform: translateY(-5px);
        }
        
        .assoc-box h4 { 
            color: #0d47a1; 
            border-bottom: 2px solid #0d47a1; 
            padding-bottom: 10px; 
            margin-bottom: 15px; 
            font-size: 1.2rem;
        }
        
        /* Responsive: Stacks the boxes on mobile */
        @media (max-width: 768px) {
            .association-grid {
                grid-template-columns: 1fr;
            }
        }
        /* --- New Projects Grid --- */
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
        grid-template-rows: repeat(2, auto);    /* 2 rows */
        gap: 25px;
        margin-top: 30px;
    }
    
    .project-card {
        padding: 0;
        overflow: hidden;
        text-align: center;
        border-radius: 15px;
        background: var(--white);
        transition: transform 0.3s ease;
    }
    
    .project-card:hover {
        transform: translateY(-8px);
    }
    
    .project-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-bottom: 3px solid var(--primary);
    }
    
    .project-card p {
        padding: 15px;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text);
        margin: 0;
    }
    .project-card p1 {
        padding: 15px;
        font-size: 0.95rem;
        font-weight: 300;
        color: var(--text);
        margin: 0;
    }
    
    /* --- Success Stories (YouTube) --- */
    .video-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .video-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
    }
    
    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* --- Responsive Adjustments --- */
    @media (max-width: 1024px) {
        .projects-grid {
            grid-template-columns: repeat(2, 1fr); /* 2x4 on tablets */
        }
    }
    
    @media (max-width: 600px) {
        .projects-grid {
            grid-template-columns: 1fr; /* 1x8 on mobile */
        }
    }
        /* Dropdown Container */
        nav ul li.dropdown {
            position: relative;
        }
        
        /* --- 2-Column Grid Dropdown --- */
.dropdown-menu.grid-columns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    grid-row-gap: 4px;    /* Tightens space between rows */
    grid-column-gap: 10px; /* Space between columns */
    
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 420px; /* Wide enough for bilingual text */
    padding: 12px;    /* Internal box padding */
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    
    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Show on Hover */
nav ul li.dropdown:hover .dropdown-menu.grid-columns {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Individual Link Styling */
.dropdown-menu.grid-columns li a {
    display: block;
    padding: 6px 12px; /* Reduced vertical padding (6px) to bring rows closer */
    color: var(--text) !important;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
}

.dropdown-menu.grid-columns li a:hover {
    background: var(--light);
    color: var(--primary) !important;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .dropdown-menu.grid-columns {
        display: none !important;
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 0 0 20px !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        transform: none !important;
        grid-template-columns: 1fr !important;
    }

    .dropdown.show .dropdown-menu.grid-columns {
        display: block !important;
    }

    .dropdown-toggle {
        display: block !important;
        width: 100% !important;
        cursor: pointer;
        pointer-events: auto !important;
        position: relative;
        z-index: 9999;
    }
}

/* --- Single Column Dropdown Override --- */
.dropdown-menu.grid-columns.single-column {
    grid-template-columns: 1fr; /* Force 1 column */
    min-width: 180px;            /* Narrower width for single items */
    grid-row-gap: 2px;           /* Very tight gap between the two rows */
}

/* Adjust link padding for the 1-column look */
.dropdown-menu.single-column li a {
    padding: 8px 15px;           /* Slightly more horizontal padding for balance */
}

/* --- Mobile Fix --- */
@media (max-width: 768px) {
    header nav.active .dropdown-menu.single-column {
        min-width: 100%;
        padding-left: 20px;
    }
}
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .dropdown.show > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}
