/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Footer Flex Fix */
.footer-top .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    /* responsive */
    gap: 30px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Top Bar */
.top-bar {
    background-color: #2e2e2e;
    color: #b0b0b0;
    font-size: 13px;
    padding: 10px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.container {
    max-width: 95%;
    /* Wider container */
    margin: 0 auto;
    padding: 0 15px;
    /* Removed global flex to fix vertical stacking issues in page content */
}

/* Restore Flex for Header Components */
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left i {
    color: #b0b0b0;
    margin-right: 5px;
}

.top-right {
    display: flex;
    gap: 20px;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
}

.top-right span {
    display: flex;
    align-items: center;
}

.top-right i {
    margin-right: 5px;
}

/* Header Middle Area */
/* Header Middle Area */
.header-middle {
    background-color: #fff;
    padding: 5px 0;
    /* Reduced padding */
}

.header-middle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Removed absolute context and fixed height */
}

.logo-icon {
    /* Large but contained logo */
    width: 80px;
    height: 80px;
    background-color: #fff;
    /* Optional circle if needed, user had it before */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Removed absolute positioning */
}

/* Reset margin */
.logo-link {
    margin-left: 0;
    display: block;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 22px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text span {
    font-size: 14px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donate-btn {
    background-color: #2e2e2e;
    color: #fff;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.donate-btn i {
    color: #f2c94c;
}

.donate-btn:hover {
    background-color: #f2c94c;
    color: #2e2e2e;
}

.donate-btn:hover i {
    color: #2e2e2e;
}

/* Navigation Bar */
.main-nav {
    background-color: #eebf32;
    /* Mustard Yellow */
}

.main-nav .container {
    display: flex;
    /* Added flex back */
    justify-content: center;
    /* Center navigation */
    align-items: center;
}

.main-nav .nav-links {
    display: flex;
    justify-content: center;
    /* Center align items */
    gap: 15px;
    /* Add some gap for cleaner look */
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-nav li {
    position: relative;
}

/* Dropdown Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    z-index: 1000;
    border-radius: 0 0 5px 5px;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu .dropdown-item {
    color: #333;
    padding: 10px 20px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f2c94c;
    color: #fff;
}

/* Show Dropdown on Hover for Desktop Only */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Bootstrap override for dropdown toggle arrow */
.dropdown-toggle::after {
    display: none;
    /* Remove default arrow if icon is preferred or just text */
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 25px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav li.active a {
    color: #000;
}

/* Active Indicator */
.main-nav li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 3px;
    background-color: #000;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.slide-content h2 {
    font-size: 24px;
    color: #f2c94c;
    margin-bottom: 15px;
    font-weight: 500;
}

.slide-content h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 35px;
    color: #ddd;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background-color: #f2c94c;
    color: #1a1a1a;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #fff;
    color: #1a1a1a;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: #f2c94c;
    border-color: #f2c94c;
    color: #222;
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #b0b0b0;
    margin-top: 50px;
}

.footer-top {
    padding: 60px 0;
}

.footer-top .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #f2c94c;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: #f2c94c;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.footer-col i {
    color: #f2c94c;
    margin-right: 10px;
}

/* About Section */
/* About Section Container */
.about-section {
    padding: 40px 0;
    /* Reduced from 100px to move it up */
    background-color: #fff;
    /* Removed yellow background */
    position: relative;
    overflow: hidden;
}

.about-card {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.about-section .container {
    padding: 0 15px;
}

/* We remove display:flex from .container since it's now in .about-card */

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    /* Reduced height */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Decorative box behind image */
.about-image::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    /* Moved to left for asymmetry */
    width: 70%;
    height: 70%;
    border: 2px solid #f2c94c;
    /* Outline style instead of solid block */
    z-index: 1;
    border-radius: 8px;
    opacity: 0.5;
}

.about-content {
    flex: 1;
}

.sub-title {
    color: #f2c94c;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    display: inline-block;
    border-bottom: 2px solid #f2c94c;
    padding-bottom: 5px;
    background: none;
    /* Remove capsule background */
    border-radius: 0;
    padding: 0;
    padding-bottom: 5px;
}

.about-content h2 {
    font-size: 48px;
    /* Larger title */
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
}

.about-content h2 span {
    color: #f2c94c;
    font-style: italic;
    font-weight: 400;
    /* Contrast weight */
}

.about-content .description {
    color: #555;
    margin-bottom: 45px;
    font-size: 17px;
    /* Slightly larger text */
    line-height: 1.8;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    /* More internal padding */
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(242, 201, 76, 0.15);
    /* Light yellow bg */
    border-radius: 6px;
    /* Squircle */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cc9a06;
    /* Darker yellow for icon */
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: none;
    transition: all 0.3s;
}

.feature-item:hover .icon-box {
    background-color: #f2c94c;
    color: #fff;
}

.text-box h5 {
    font-size: 17px;
    color: #222;
    margin-bottom: 8px;
    font-weight: 700;
}

.text-box p {
    font-size: 14px;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

/* Causes Section */
.causes-section {
    padding: 40px 0;
    /* Reduced from 80px to move it up */
    background-color: #f4f4f4;
    /* Contrast background */
    text-align: center;
}

.causes-section .container {
    display: block;
}

/* New Premium Wrapper Card */
.causes-container-card {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    /* Rounded corners like About card */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    /* Premium Shadow */
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-title h2 strong {
    font-weight: 700;
    color: #f2c94c;
    /* Theme Yellow */
}

.section-title p {
    font-size: 16px;
    color: #777;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    position: relative;
    display: inline-block;
}

.section-title p span {
    border-bottom: 2px solid #f2c94c;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    /* Increased gap for better spacing inside card */
    padding: 0;
    /* Remove old padding as wrapper has it */
}

.cause-card {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    border-radius: 4px;
    /* subtle radius */
}

.cause-card:hover {
    transform: translateY(-5px);
}

.cause-img {
    position: relative;
    height: 260px;
    width: 100%;
}

.cause-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Yellow bar at bottom of image */
.cause-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(242, 201, 76, 0.5);
    z-index: 1;
}

/* Centered Circular Progress */
.circle-progress {
    position: absolute;
    bottom: -35px;
    /* Overlap image bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.circle-progress::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Progress ring */
    background: conic-gradient(#f2c94c var(--p), #eee 0deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff calc(100% - 4px));
}

.circle-progress .value {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
}

.cause-content {
    padding: 50px 20px 30px;
    /* Top padding clears circle */
}

.donation-text {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.donation-text .amount {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
    color: #1a1a1a;
}

.donation-text .goal {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
    color: #999;
}

.cause-content h3 {
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    font-weight: 400;
    margin-bottom: 15px;
}

.cause-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 10px;
}

.btn-donate {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f2c94c;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: background 0.3s;
}

.btn-donate:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* Stack on mobile */
@media (max-width: 991px) {
    .causes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .causes-grid {
        grid-template-columns: 1fr;
    }
}


/* Mobile Logo Adjustments */
@media (max-width: 991px) {
    .logo-icon {
        width: 100px;
        height: 100px;
    }

    .logo-text h1 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .logo-icon {
        width: 110px;
        height: 110px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text span {
        font-size: 10px;
    }

    .header-middle {
        padding: 5px 0;
    }
}

@media (max-width: 991px) {
    .about-section {
        padding: 80px 0;
    }

    .about-card {
        flex-direction: column;
        padding: 30px;
        gap: 40px;
    }

    .about-section .container {
        flex-direction: column;
        gap: 50px;
    }

    .about-image::before {
        display: none;
    }

    .about-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content h2 {
        font-size: 32px;
    }
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #1a1a1a;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Media Queries */
@media (max-width: 991px) {

    /* Hide Top Bar to save space on mobile */
    .top-bar {
        display: none;
    }

    /* Header Middle - Flex Row for Compactness */
    .header-middle {
        padding: 10px 0;
        position: relative;
        z-index: 1001;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .header-middle .container {
        flex-direction: row;
        /* Force row layout */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .logo-area {
        flex-direction: row;
        gap: 10px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        /* Ensure specific dimensions */
        min-width: 40px;
    }

    .logo-text h1 {
        font-size: 16px;
        white-space: nowrap;
        margin-bottom: 0;
    }

    .logo-text span {
        font-size: 10px;
        display: block;
    }

    /* Compact Admin User Dropdown */
    .header-middle .dropdown .btn {
        padding: 5px 12px !important;
        font-size: 12px;
        border-radius: 30px !important;
    }

    .header-middle .dropdown .btn i {
        margin-right: 4px !important;
    }

    /* Navigation Bar - Bar with Toggle */
    .main-nav {
        background-color: #eebf32;
        padding: 0;
        height: 50px;
        position: relative;
        z-index: 1000;
    }

    .main-nav .container {
        display: flex;
        /* Flex to align toggle */
        height: 100%;
        align-items: center;
        justify-content: flex-end;
        /* Toggle to right */
        position: static;
        /* Allow dropdown to be full width relative to nav */
    }

    .mobile-nav-toggle {
        display: block;
        position: relative;
        /* Inside container flex */
        right: auto;
        top: auto;
        transform: none;
        font-size: 24px;
        margin-right: 0;
        background: transparent;
        border: none;
        color: #1a1a1a;
    }

    /* Mobile Menu Dropdown Panel */
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        /* Below yellow bar */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        margin-top: 0;
        z-index: 999;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .main-nav .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
        position: relative;
    }

    .main-nav a {
        display: block;
        padding: 12px 25px;
        color: #333;
        font-weight: 600;
        font-size: 14px;
        text-align: left;
    }

    .main-nav a:hover,
    .main-nav li.active a {
        background-color: #fffbf0;
        /* Very light yellow */
        color: #d4a017;
        padding-left: 30px;
        /* Indent on hover */
    }

    .main-nav li.active::after {
        display: none;
    }

    /* Fix Dropdowns in Mobile Menu */
    .main-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        margin: 0;
        padding: 5px 0;
        border: none;
        display: none;
        /* Let bootstrap toggle it */
    }

    /* Public Header Specifics for Mobile */
    /* Add padding to header to make room for the button */
    .header-middle {
        padding-bottom: 60px;
        /* Space for button */
    }

    .header-middle .donate-btn {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 90;
        /* Lowered to be behind dropdown */
        padding: 10px 20px;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
        border-radius: 0;
        /* Square shape */
        width: auto;
        min-width: 0;
        justify-content: center;
        background-color: #f2c94c;
        color: #1a1a1a;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        /* Ensure flex for centering */
        gap: 8px;
        /* Consistent gap */
    }

    .header-middle .donate-btn i {
        font-size: 16px;
        margin-right: 0;
        /* Use gap instead */
    }

    /* Adjust Sign In Dropdown to ensure it doesn't look weird without the donate button next to it */
    .header-middle .dropdown .btn-outline-warning {
        padding: 6px 15px !important;
        font-size: 13px;
        margin-right: 0;
    }

    .main-nav .dropdown-menu.show {
        display: block;
        z-index: 1050;
        /* Ensure on top of donate button */
        position: absolute;
        /* Needed for z-index to work effectively in some contexts, but let's stick to relative flow if typical mobile menu, actually Bootstrap mobile menus are often static. */
    }

    .main-nav .dropdown-menu .dropdown-item {
        padding: 10px 40px;
        /* More indent */
        font-size: 13px;
        font-weight: 500;
    }

    /* Donation Page Mobile Adjustments */
    .donation-amount-btn {
        font-size: 14px;
        padding: 8px 5px;
        /* Compact padding */
    }

    /* Hero Slider */
    .hero-slider {
        height: 450px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content h2 {
        font-size: 18px;
    }

    /* Animation */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {

    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-right {
        flex-direction: column;
        gap: 5px;
    }

    /* Footer */
    .footer-top .container {
        flex-direction: column;
    }

    .footer-col {
        width: 100%;
        min-width: 100%;
    }

    /* Hero Slider */
    .hero-slider {
        height: 400px;
    }

    .slide-content {
        text-align: center;
        padding: 0 20px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 14px;
        display: none;
        /* Hide paragraph on very small screens to save space */
    }
}

/* Impact Section */
.impact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    /* Contrast background for the card */
    color: #1a1a1a;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Wrapper Card for Impact (Outer Container) */
.impact-container-card {
    background: #fff;
    padding: 60px 20px;
    border-radius: 20px;
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05); */
    /* Optional: Remove outer shadow if inner cards have it, to avoid clutter. Keeping it subtle. */
    box-shadow: none;
    /* Removed outer shadow to focus on inner cards as requested */
    width: 97%;
    max-width: 97%;
    margin: 0 auto;
}

/* Ensure title is centered and visible */
.impact-section .section-title {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.impact-section .section-title h2 {
    color: #1a1a1a;
}

.impact-section .section-title p {
    color: #777;
}

.impact-section .section-title p span {
    border-color: #f2c94c;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0;
    width: 100%;
    /* Fill the 97% container */
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive Impact Grid */
@media (max-width: 991px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual Impact Cards */
.impact-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    /* Light border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Distinct Shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #f2c94c;
    /* Hover border color */
}

.icon-wrapper {
    font-size: 60px;
    color: #f2c94c;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.impact-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.impact-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-box {
    font-size: 40px;
    font-weight: 800;
    color: #f2c94c;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    line-height: 1;
}

.impact-card p {
    font-size: 15px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* How You Can Help Section (Split Layout) */
.help-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    overflow: hidden;
    position: relative;
}

.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 201, 76, 0.03) 0%, rgba(242, 201, 76, 0.01) 100%);
    pointer-events: none;
}

.help-section .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    z-index: 1;
}

.help-section .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.help-img-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    height: 100%;
    max-height: 500px;
    margin: auto 0;
    border: 3px solid rgba(242, 201, 76, 0.2);
}

.help-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(242, 201, 76, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.help-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.help-img-wrapper:hover img {
    transform: scale(1.08);
}

/* Right Content */
.help-content-left,
.help-content-right {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.help-content-card {
    background: #fff;
    padding: 60px 80px 60px 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(242, 201, 76, 0.1);
    position: relative;
    overflow: hidden;
}

.help-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.help-content-right {
    padding-left: 0;
}

.help-img-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.help-section .section-title {
    margin-bottom: 50px;
    text-align: center !important;
}

.help-section .section-title h2 {
    font-size: 42px;
    line-height: 1.2;
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help-section .section-title p {
    font-size: 17px;
    color: #666;
    margin-top: 15px;
    line-height: 1.7;
}

/* Mini Grid for Cards */
.help-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.help-mini-card {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.help-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(242, 201, 76, 0.1) 0%, rgba(242, 201, 76, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.help-mini-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(242, 201, 76, 0.15);
    border-color: #f2c94c;
}

.help-mini-card:hover::before {
    opacity: 1;
}

.mini-icon {
    width: 65px;
    height: 65px;
    line-height: 65px;
    background: linear-gradient(135deg, #f2c94c 0%, #f5d56a 100%);
    color: #fff;
    border-radius: 16px;
    text-align: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(242, 201, 76, 0.3);
    position: relative;
    z-index: 1;
}

.help-mini-card:hover .mini-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(242, 201, 76, 0.4);
}

.mini-text h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
    transition: color 0.3s ease;
}

.help-mini-card:hover .mini-text h3 {
    color: #f2c94c;
}

.mini-text p {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* Premium Button Styling */
.help-content-card .btn-primary {
    background: linear-gradient(135deg, #f2c94c 0%, #f5d56a 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(242, 201, 76, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.help-content-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(242, 201, 76, 0.4);
    background: linear-gradient(135deg, #f5d56a 0%, #f2c94c 100%);
}

.help-content-card .btn-primary i {
    transition: transform 0.3s ease;
}

.help-content-card .btn-primary:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .help-section .row {
        flex-wrap: wrap;
        /* Allow wrapping on mobile/tablet */
    }

    .help-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .help-content-right {
        padding-left: 0;
        margin-top: 50px;
    }

    .help-mini-grid {
        gap: 20px;
    }

    .help-section .section-title {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .help-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* Our Work / Programs Section */
.work-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    /* Match Impact Section Background */
    color: #1a1a1a;
    text-align: center;
}

/* Wrapper Card (Match Impact) */
.work-container-card {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: none;
    width: 97%;
    max-width: 97%;
    margin: 0 auto;
}

.work-section .section-title {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.work-section .section-title h2 {
    color: #1a1a1a;
}

.work-section .section-title p {
    color: #777;
}

.work-section .section-title p span {
    border-color: #f2c94c;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Individual Work Cards */
.work-card {
    background: #fff;
    padding: 0;
    /* Remove padding for full-width image */
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Distinct Shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #f2c94c;
}

/* Work / Programs Section */
.work-section {
    padding: 40px 0;
    /* Reduced padding consistent with others */
    background: #fff;
}

.work-image {
    width: 100%;
    height: 220px;
    /* Fixed height for consistency */
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.1);
    /* Zoom effect on hover */
}

.work-content {
    padding: 25px 20px;
}

.work-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Responsive Work Section */
@media (max-width: 1200px) {
    .work-grid {
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonial Slider Section (Orange Box Design) */
.testimonial-slider-section {
    padding: 40px 0;
    /* Reduced from 100px */
    background: #fff;
    overflow: hidden;
    position: relative;
}

/* Sub-title badge styling */
.testimonial-slider-section .sub-title {
    display: inline-block;
    background: #fff3e0;
    /* Pale orange */
    color: #ff9800;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-slider-section .section-title h2 {
    color: #1a1a1a;
    font-size: 36px;
    margin-bottom: 40px;
}

/* Swiper Container */
.testimonial-slider-section .swiper {
    width: 100%;
    padding-top: 80px;
    /* Essential for top-overlapping image */
    padding-bottom: 80px;
    /* Space for shadow/scale */
}

.testimonial-slider-section .swiper-slide {
    width: 600px;
    /* Readjusted width */
    max-width: 90%;
    /* Responsive max width */
    opacity: 0.4;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(2px);
}

.testimonial-slider-section .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    z-index: 10;
}

/* Card Styling */
.testimonial-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    padding: 80px 60px 60px;
    /* Top padding for image space */
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid #f4b400;
    height: 100%;
    transition: all 0.4s ease;
}

/* Active Card - The Golden Yellow Box */
.testimonial-slider-section .swiper-slide-active .testimonial-card {
    background: linear-gradient(135deg, #f4b400 0%, #f39c12 100%);
    /* Vibrant Golden Yellow Gradient */
    color: #fff;
    border: none;
    box-shadow: 0 25px 60px rgba(244, 180, 0, 0.4);
    /* Golden Shadow */
}

/* Client Image - Circular Pulse */
.client-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -55px;
    /* Pull up half height */
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
    background-color: #eee;
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Typography */
.testimonial-content p {
    font-size: 22px;
    /* Large, bold quote */
    line-height: 1.5;
    margin-bottom: 30px;
    color: #555;
    font-weight: 500;
    font-style: italic;
}

.testimonial-slider-section .swiper-slide-active .testimonial-content p {
    color: #fff;
}

.testimonial-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
}

.testimonial-slider-section .swiper-slide-active .testimonial-content h3 {
    color: #fff;
}

.testimonial-content span {
    font-size: 15px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
}

.testimonial-slider-section .swiper-slide-active .testimonial-content span {
    color: rgba(255, 255, 255, 0.85);
}

/* Navigation - The Arrows */
/* Navigation - Premium Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    /* White icon */
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    /* Orange Gradient */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.8;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.5);
    opacity: 1;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 991px) {
    .testimonial-content p {
        font-size: 18px;
    }
}

/* Gallery Section - Reference Design */
.gallery-section {
    padding: 40px 0;
    /* Reduced from 100px */
    background: #fdfdfd;
    display: block;
    /* Ensure section is block */
}

.gallery-section .container {
    display: block !important;
    /* Force block layout for container */
    width: 100%;
    max-width: 1140px;
    /* Bootstrap standard */
}

/* Gallery Header */
.gallery-section .section-title {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    display: block;
}

.gallery-section .section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: #333;
    margin-bottom: 10px;
    text-transform: none;
}

.gallery-section .gallery-subtitle {
    font-size: 18px;
    color: #777;
    margin-bottom: 40px;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    display: block;
}

/* Filter Buttons - Pills */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    width: 100%;
    /* Full width to force new line */
}

.gallery-filters .filter-btn {
    border: none;
    background: #e0e0e0;
    /* Light gray default */
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background: #ff9800;
    /* Vibrant Orange */
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.2);
}


/* ========================================
   PREMIUM GALLERY SECTION - COMPLETE REDESIGN
   ======================================== */

.premium-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.gallery-description {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Filter Buttons */
.gallery-filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    padding: 10px 28px;
    border: 2px solid #f4b400;
    background: transparent;
    color: #f4b400;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.gallery-filter-btn:hover {
    background: linear-gradient(135deg, #f4b400 0%, #f39c12 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, #f4b400 0%, #f39c12 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
}


.premium-gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
}

.premium-gallery-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 152, 0, 0.2);
}

.premium-gallery-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.premium-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.premium-gallery-card:hover .premium-gallery-image img {
    transform: scale(1.1);
}

.premium-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-gallery-card:hover .premium-gallery-overlay {
    opacity: 1;
}

.premium-gallery-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(180deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.5);
}

.premium-gallery-card:hover .premium-gallery-icon {
    transform: scale(1) rotate(0deg);
}

.premium-gallery-icon i {
    color: #fff;
    font-size: 26px;
}

/* Premium Button */
.btn-premium-orange {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-premium-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.4);
    color: #fff;
}

.btn-gallery-orange {
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
    color: #fff;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.25);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-gallery-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 152, 0, 0.35);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-section .section-title {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-filters .filter-btn {
    border: 2px solid #eee;
    background: transparent;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filters .filter-btn:hover,
.gallery-filters .filter-btn.active {
    background: #f2c94c;
    border-color: #f2c94c;
    color: #fff;
    box-shadow: 0 5px 15px rgba(242, 201, 76, 0.3);
}

.gallery-btn-container {
    margin-top: 80px;
    /* Significant gap as requested */
}

/* Latest News Section */
.news-section {
    padding: 100px 0;
    background: #f9f9f9;
    display: block;
    /* Force block layout */
}

.news-section .container {
    display: block !important;
    /* Force container to stack elements */
    width: 100%;
    max-width: 1140px;
}

/* Ensure Title is Centered and Full Width */
.news-section .section-title {
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
    display: block;
    clear: both;
}

.news-section .section-title .sub-title {
    display: block;
    color: #ff9800;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.news-section .section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

/* News Grid - Strict 3 Columns */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    clear: both;
}

.news-item {
    width: 100%;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid #f4b400;
}

.testimonial-slider-section .swiper-slide-active .testimonial-card {
    background: linear-gradient(135deg, #f4b400 0%, #f39c12 100%);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(244, 180, 0, 0.3);
    border-color: #f39c12;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-img {
    position: relative;
    overflow: hidden;
    height: 240px;
    width: 100%;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f4b400 0%, #f39c12 100%);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
    z-index: 2;
}

.date-badge .day {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.news-meta i {
    color: #f4b400;
    margin-right: 5px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #ff9800;
}

.news-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more-btn {
    color: #f4b400;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: #f39c12;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

.gallery-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    /* Standard height */
    width: 100%;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* The featured item needs to be taller */
.gallery-item:nth-child(1) .gallery-img {
    height: 630px;
    /* 300 * 2 + 30 gap */
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Responsive Grid */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        /* Still span across on tablet */
        grid-row: span 1;
    }

    .gallery-item:nth-child(1) .gallery-img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    .gallery-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:nth-child(1) .gallery-img {
        height: 300px;
    }

    .gallery-filters .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-img:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-img:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #f2c94c;
    font-size: 30px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-img:hover .gallery-overlay i {
    transform: translateY(0);
}

.gallery-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.gallery-img:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Specific Video Styling */
.video-card .video-overlay {
    opacity: 1;
    /* Always show overlay for video */
    background: rgba(0, 0, 0, 0.2);
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-card .video-overlay i {
    background: #f2c94c;
    color: #fff;
    transform: translateY(0);
    width: 70px;
    height: 70px;
    font-size: 24px;
}

.video-card .video-overlay span {
    transform: translateY(0);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-outline-warning {
    color: #f2c94c;
    border-color: #f2c94c;
    border-width: 2px;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-outline-warning:hover {
    background: #f2c94c;
    color: #fff;
    box-shadow: 0 10px 20px rgba(242, 201, 76, 0.2);
}

/* Registration Form Styles - Square & Wide */
.registration-form-card {
    background: #fff;
    padding: 60px;
    /* More padding */
    border-radius: 0;
    /* Square */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    max-width: 1200px;
    /* Wider */
    margin: 0 auto;
    border-top: 4px solid #ff9800;
    /* Theme accent top border */
}

.form-header .sub-title {
    color: #ff9800;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.form-header h2 {
    font-size: 36px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.form-group label {
    font-weight: 500;
    color: #444;
    margin-bottom: 8px;
    display: block;
    font-size: 15px;
}

.form-group label .required {
    color: #e74c3c;
}

.form-control {
    height: 50px;
    /* Taller inputs */
    border-radius: 0;
    /* Square */
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 15px;
    color: #333;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
}

textarea.form-control {
    height: auto;
    padding-top: 15px;
}

.form-control:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.1);
    background-color: #fff;
    outline: none;
}

.btn-submit {
    background: #ff9800;
    /* Flat Orange */
    color: #fff;
    border: none;
    padding: 15px 60px;
    border-radius: 0;
    /* Square */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: none;
    /* Flat */
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 152, 0, 0.35);
}

/* Custom File Upload Styling (Basic consistency) */
input[type="file"] {
    padding: 10px;
    background: #fff;
    border-radius: 0;
}

/* Donor Card Styles (Premium Redesign) */
.donor-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft classy shadow */
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    padding-bottom: 25px;
}

.donor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(242, 201, 76, 0.15);
    /* Golden Glow */
    border-color: rgba(242, 201, 76, 0.3);
}

.donor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #ff9800 0%, #f2c94c 100%);
    /* Theme Orange Gradient */
    z-index: 0;
}

.donor-img-box {
    background: transparent;
    padding: 0;
    margin-top: 50px;
    /* Push down to overlap background */
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.donor-img-box img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    /* White ring */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.donor-name-box {
    background: transparent;
    padding: 15px 10px 5px;
    position: relative;
    z-index: 1;
}

.donor-name-box h3 {
    margin: 0;
    color: #2c2c2c;
    /* elegant black */
    font-size: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.donor-details-box {
    background: transparent;
    padding: 10px 25px 20px;
    border: none;
}

.donor-details-box .label {
    font-weight: 500;
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donor-details-box .value {
    font-weight: 700;
    color: #f2c94c;
    /* Gold Accent */
    font-size: 16px;

    /* Initiative Card Styles */
    .initiative-card {
        background: #fff;
        padding: 40px 30px;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
        /* Soft wide shadow */
        text-align: center;
        transition: transform 0.3s ease;
        border: 1px solid #f9f9f9;
        height: 100%;
    }

    .initiative-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    }

    .initiative-icon {
        font-size: 60px;
        color: #ff9800;
        margin-bottom: 25px;
        display: inline-block;
    }

    .initiative-card h3 {
        font-size: 22px;
        margin-bottom: 15px;
        font-weight: 700;
        color: #222;
        font-family: 'Playfair Display', serif;
    }

    .initiative-card p {
        color: #777;
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .btn-learn-more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 25px;
        border: 1px solid #ff9800;
        color: #ff9800;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s;
        font-size: 14px;
    }

    .btn-learn-more i {
        margin-left: 8px;
        background: #ff9800;
        color: #fff;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
    }

    .btn-learn-more:hover {
        background: #ff9800;
        color: #fff;
    }

    .btn-learn-more:hover i {
        background: #fff;
        color: #ff9800;
    }

    /* Close the last media query or block properly if needed */
}

/* =========================================
   Blog Page Styling (Premium)
   ========================================= */

.page-header {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #f2c94c;
    font-weight: 500;
}

.blog-section {
    padding: 80px 0;
    background: #fdfdfd;
}

/* Blog Post Card */
.blog-post {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.post-img {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-img img {
    transform: scale(1.05);
}

.post-content {
    padding: 30px;
}

.post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.post-meta span i {
    color: #ff9800;
    margin-right: 5px;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #ff9800;
}

.post-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.read-more-btn {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.read-more-btn:hover {
    background: #e68900;
    color: #fff;
}

/* Pagination */
.pagination .page-link {
    color: #333;
    border: none;
    margin: 0 5px;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination .page-item.active .page-link {
    background-color: #ff9800;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #eee;
    color: #333;
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9800;
    display: inline-block;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    outline: none;
    transition: border 0.3s;
}

.search-form input:focus {
    border-color: #ff9800;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: none;
    border: none;
    color: #ff9800;
    width: 40px;
    height: 38px;
    font-size: 16px;
}

/* Categories Widget */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 12px;
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget ul li a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    font-weight: 500;
}

.widget ul li a span {
    background: #fff5e6;
    color: #ff9800;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.widget ul li a:hover {
    color: #ff9800;
    padding-left: 5px;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-item .thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
}

.recent-post-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recent-post-item:hover .thumb img {
    transform: scale(1.1);
}

.recent-post-item .content {
    flex: 1;
}

.recent-post-item .content h5 {
    /* removed specifics to inherit */
    margin: 0 0 5px;
    line-height: 1.4;
}

.recent-post-item .content a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-item .content a:hover {
    color: #ff9800;
}

.recent-post-item .content small {
    color: #999;
    font-size: 12px;
}

/* Tag Cloud */
.tag-cloud a {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin: 0 5px 8px 0;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.tag-cloud a:hover {
    background: #ff9800;
    color: #fff;
    border-color: #ff9800;
}
/* Mobile Header Updates */
@media (max-width: 991px) {
    .header-middle .container {
        flex-direction: column;
        align-items: center; /* Center horizontally */
        text-align: center;
        gap: 15px;
    }

    /* Logo centering */
    .logo-area {
        flex-direction: column;
        align-items: center;
        margin-bottom: 5px;
    }
    
    .logo-text {
        margin-left: 0 !important;
        margin-top: 10px;
        text-align: center;
    }

    /* Important: Keep buttons in one row */
    .header-middle .d-flex.align-items-center {
        width: 100%;
        justify-content: center; /* Center the group */
        flex-wrap: nowrap; /* Do not stack */
        gap: 10px; /* Space between buttons */
    }

    /* Adjust dropdown width to be flexible, not full width */
    #adminDropdown, #memberDropdown, #volunteerDropdown, #coordinatorDropdown, #signInDropdown {
        width: auto !important;
        padding: 8px 15px !important; /* Smaller padding */
        font-size: 14px;
    }

    /* Donate button adjustments */
    .donate-btn {
        padding: 8px 15px !important;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* Remove large margins on mobile */
    .dropdown.d-inline-block.me-3 {
        margin-right: 0 !important; /* Remove me-3 */
    }
}

@media (max-width: 576px) {
    /* Even smaller adjustments for very small screens if needed */
    .logo-icon img {
        width: 60px !important; 
        height: 60px !important;
    }
    
    .logo-text h1 {
        font-size: 20px !important;
    }
    .logo-text span {
        font-size: 12px !important;
    }
}

