/* Modern Light Navy Blue Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Backgrounds */
    --bg-color: #F8FAFC; /* Crisp ultra-clean slate background */
    --surface-color: #FFFFFF; /* Pure white for cards */
    --surface-border: #E2E8F0;
    
    /* Text Colors (Solid & Clear) */
    --text-primary: #0F172A; /* Slate 900 for high-contrast readability */
    --text-secondary: #334155; /* Slate 700 for comfortable body reading */
    --text-muted: #64748B; /* Slate 500 */
    
    /* Navy Blue Palette */
    --primary-color: #0B2447; /* Deep Premium Navy */
    --secondary-color: #19376D; /* Rich Navy */
    --accent-color: #576CBC; /* Royal Accent */
    --highlight: #2563EB; /* Electric Blue for interactive elements */
    
    --danger: #DC2626;
    --success: #16A34A;
    --card-shadow: 0 10px 25px -5px rgba(11, 36, 71, 0.08), 0 8px 10px -6px rgba(11, 36, 71, 0.04);
    --card-shadow-hover: 0 20px 30px -10px rgba(11, 36, 71, 0.15), 0 10px 10px -5px rgba(11, 36, 71, 0.04);
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
p, .long-text {
    text-align: justify;
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ---------------- Navbar ---------------- */
.navbar {
    background: linear-gradient(135deg, #07162C 0%, #0B2447 100%);
    border-bottom: 3px solid var(--accent-color);
    padding: 0.9rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(7, 22, 44, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
}

.logo img {
    height: 52px;
    border-radius: 10px;
    object-fit: contain;
    transition: all 0.3s ease;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo img:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-links li a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links li a:hover, .dropbtn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Blinking Ongoing Link */
.ongoing-link {
    animation: blinker 2.2s infinite;
    font-weight: 700 !important;
    background-color: var(--accent-color);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(87, 108, 188, 0.4);
    transition: transform 0.2s;
}

.ongoing-link:hover {
    transform: scale(1.05);
}

@keyframes blinker {
    0% { background-color: var(--accent-color); box-shadow: 0 0 8px rgba(87,108,188,0.6); }
    50% { background-color: #DC2626; box-shadow: 0 0 14px rgba(220,38,38,0.85); }
    100% { background-color: var(--accent-color); box-shadow: 0 0 8px rgba(87,108,188,0.6); }
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 230px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    box-shadow: 0 15px 30px -5px rgba(11, 36, 71, 0.18);
    z-index: 100;
    top: calc(100% + 5px);
    padding: 6px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-primary) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--surface-border);
    position: relative;
    white-space: nowrap;
}

/* Fix border radius since overflow is visible now */
.dropdown-content a:first-child { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.dropdown-content a:last-child { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border-bottom: none; }

.dropdown-content a:hover {
    background-color: #F1F5F9;
    color: var(--highlight) !important;
    padding-left: 20px;
}

/* Nested Dropdown */
.nested-dropdown {
    position: relative;
}

.nested-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #FFFFFF;
    min-width: 220px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.nested-dropdown:hover .nested-dropdown-content {
    display: block;
}

.nested-dropdown-content a {
    padding-left: 16px !important;
}

.nested-dropdown-content a:hover {
    padding-left: 20px !important;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #FFFFFF;
}

/* ---------------- Main Content ---------------- */
.main-content {
    flex: 1;
    max-width: 1240px;
    margin: 2.5rem auto 4rem;
    padding: 0 1.5rem;
    width: 100%;
}

/* Page Headers */
.page-title {
    text-align: center;
    margin-bottom: 2.8rem;
    position: relative;
}

.page-title h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.page-title h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    border-radius: 4px;
}

/* Cards & Surfaces */
.glass-card, 
div[style*="background: #fff"], 
form[style*="background: #fff"] {
    background-color: var(--surface-color) !important;
    border: 1px solid var(--surface-border) !important;
    box-shadow: var(--card-shadow) !important;
    border-radius: 14px !important;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

div[style*="background: #fff"]:hover {
    box-shadow: var(--card-shadow-hover) !important;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--surface-border);
    color: var(--text-secondary);
}

th {
    background-color: var(--secondary-color) !important;
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
}

td {
    background-color: #FFFFFF;
}

/* Form Inputs */
.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    width: 100%;
    font-family: var(--font-main);
}

.form-control:focus {
    outline: none !important;
    border-color: var(--highlight) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.6rem;
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
    border: none !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-main);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.btn-danger { 
    background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #B91C1C, #991B1B) !important;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.35) !important;
}

/* Big Donate Button for Ongoing Projects */
.btn-donate-big {
    background: linear-gradient(135deg, #16A34A, #15803D) !important;
    color: #FFFFFF !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 0.95rem 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    animation: pulse-donate 2.5s infinite;
}

.btn-donate-big:hover {
    background: linear-gradient(135deg, #15803D, #166534) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.55);
}

@keyframes pulse-donate {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Slider */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 2.5rem;
    overflow: hidden;
    border-radius: 18px;
    border: 3px solid #FFFFFF;
    box-shadow: 0 15px 35px rgba(11, 36, 71, 0.15);
    background: #000;
}

.slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    flex: 0 0 100%; /* Fixes the 4-images-at-once issue */
    height: 420px;
    object-fit: contain;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.slider-nav button {
    background: rgba(255,255,255,0.8);
    color: var(--primary-color);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: #FFFFFF;
    transform: scale(1.1);
}

.slider-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #FFFFFF;
    box-shadow: 0 0 5px rgba(255,255,255,0.8);
}

/* ---------------- Modern Beautiful Footer ---------------- */
.main-footer {
    background: linear-gradient(180deg, #0B2447 0%, #07162c 100%);
    color: #F8FAFC;
    padding: 3.5rem 2rem 1.5rem;
    margin-top: auto;
    position: relative;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 -10px 25px rgba(11, 36, 71, 0.12);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    border-radius: 10px;
    background: #FFFFFF;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-brand h2 {
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.main-footer .tagline {
    color: #94A3B8 !important;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-donate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-donate-badge:hover {
    background: #16a34a;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav-list a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-nav-list a i {
    font-size: 0.75rem;
    color: var(--accent-color);
    transition: transform 0.2s;
}

.footer-nav-list a:hover {
    color: #FFFFFF;
    transform: translateX(5px);
}

.footer-nav-list a:hover i {
    color: #60a5fa;
    transform: translateX(2px);
}

/* Contact Card in Footer */
.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(87, 108, 188, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94A3B8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-val {
    color: #F1F5F9;
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
    font-weight: 500;
}

a.contact-val:hover {
    color: #60a5fa;
}

.admin-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-login-link:hover {
    background: rgba(87, 108, 188, 0.3);
    color: #FFFFFF;
    border-color: var(--accent-color);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: #94A3B8;
}

.footer-bottom-inner p {
    margin: 0;
    color: #94A3B8 !important;
}

/* Sidebar Admin */
.sidebar {
    background-color: var(--primary-color) !important;
}

.sidebar a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.sidebar a:hover {
    background-color: var(--secondary-color) !important;
}

/* Project Cards & Interactive Surfaces */
div[style*="background: #fff; border-radius: 8px;"],
div[style*="background: #fff"] {
    background-color: #FFFFFF !important;
    border: 1px solid var(--surface-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

div[style*="background: #fff; border-radius: 8px;"]:hover,
div[style*="background: #fff"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover) !important;
}

div[style*="background: #fff; border-radius: 8px;"] h3,
div[style*="background: #fff"] h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Inline Styles Overrides */
[style*="color: var(--primary-color)"] { color: var(--primary-color) !important; font-family: var(--font-heading) !important; }
[style*="color: var(--highlight)"] { color: var(--highlight) !important; font-weight: 600; }
[style*="border-top: 4px solid var(--accent-color)"] { 
    border-top: 4px solid var(--accent-color) !important; 
    border-radius: 16px !important; 
}
[style*="border-top: 4px solid var(--success)"] { 
    border-top: 4px solid var(--success) !important; 
    border-radius: 16px !important; 
}

/* Comprehensive Mobile Responsive Styles */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 1rem;
    }
    .main-content {
        padding: 0 1rem;
        margin: 1.5rem auto 3rem;
    }
}

@media (max-width: 768px) {
    /* Navbar & Mobile Header */
    .nav-container {
        position: relative;
        flex-wrap: nowrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: linear-gradient(180deg, #07162C 0%, #0B2447 100%);
        padding: 1.2rem 1rem 2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        margin: 0;
        gap: 0.5rem;
        max-height: calc(100vh - 75px); /* Ensure fits on screen */
        overflow-y: auto; /* Enable smooth scrolling when dropdowns open */
        -webkit-overflow-scrolling: touch; /* Smooth iOS / Android touch scroll */
        overscroll-behavior: contain;
    }

    .nav-links.active {
        display: flex;
        animation: fadeInDown 0.25s ease-out;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: flex;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: #FFFFFF;
        font-size: 1.3rem;
        cursor: pointer;
        transition: background 0.2s;
    }

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .header-ongoing {
        margin-left: auto;
        margin-right: 12px;
        font-size: 0.8rem !important;
        padding: 0.45rem 0.85rem !important;
    }

    .logo img {
        height: 44px;
    }
    
    /* Mobile Dropdown Handlers */
    .dropdown {
        width: 100%;
    }

    /* Main Category Dropdown in Mobile Menu */
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        background: #0B2447 !important; /* Rich Dark Navy */
        border: 1px solid rgba(96, 165, 250, 0.25) !important;
        border-radius: 10px !important;
        width: 100% !important;
        margin-top: 6px;
        display: none;
        overflow: hidden;
    }

    .dropdown-content > a, .nested-dropdown > a {
        color: #E2E8F0 !important;
        font-weight: 600 !important;
        padding: 0.75rem 1rem 0.75rem 1.2rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .dropdown-content > a:hover, .nested-dropdown > a:hover {
        background: rgba(37, 99, 235, 0.2) !important;
        color: #60A5FA !important;
    }

    /* Distinct Different Styling for Subcategory (Nested Dropdown) */
    .nested-dropdown-content {
        position: static !important;
        box-shadow: none !important;
        background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%) !important; /* Distinct Slate/Indigo background */
        border: 1px solid rgba(96, 165, 250, 0.3) !important;
        border-left: 4px solid #38BDF8 !important; /* Vibrant Cyan accent indicator */
        border-radius: 8px !important;
        width: 95% !important;
        margin: 6px auto 8px !important;
        display: none;
    }

    .nested-dropdown-content a {
        color: #93C5FD !important; /* Fresh lighter blue font */
        padding: 0.65rem 1rem 0.65rem 1.4rem !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .nested-dropdown-content a::before {
        content: "•";
        color: #38BDF8;
        font-size: 1.1rem;
    }

    .nested-dropdown-content a:hover {
        background: rgba(56, 189, 248, 0.15) !important;
        color: #FFFFFF !important;
        padding-left: 1.6rem !important;
    }

    /* Page Titles & Headers */
    .page-title {
        margin-bottom: 1.8rem;
    }

    .page-title h1 {
        font-size: 1.85rem !important;
        letter-spacing: -0.5px;
    }

    .page-title::after {
        width: 50px;
        height: 3px;
    }

    /* Slider on Mobile */
    .slider-container {
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .slide {
        height: 230px !important;
        object-fit: cover !important;
    }

    .slider-nav button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Grids & Cards - Convert Multi-column Grids to 1 Column */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"],
    div[style*="grid-template-columns: 2fr 1.2fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 2fr"],
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    /* About Us Page Mobile Adaptations */
    .about-hero, div[style*="padding: 3rem 2rem;"] {
        padding: 1.8rem 1.2rem !important;
    }

    /* Contact Page Sticky Sidebar release on mobile */
    .sticky-card, div[style*="position: sticky"] {
        position: static !important;
        top: auto !important;
    }

    /* Tables responsiveness */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Single Project View Image Layout */
    .project-image-gallery {
        flex-direction: column;
    }

    /* Bank & Donate Cards */
    .bank-card, div[style*="border-top: 4px solid"] {
        padding: 1.5rem !important;
    }

    /* Footer Mobile */
    .main-footer {
        padding: 2.5rem 1.2rem 1.2rem !important;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.55rem !important;
    }

    .slide {
        height: 190px !important;
    }

    .btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.88rem;
    }

    .btn-donate-big {
        font-size: 0.95rem !important;
        padding: 0.7rem 1.3rem !important;
        width: 100%;
        justify-content: center;
    }
}
