/**
 * The Way of Hope - Main Stylesheet
 * Brand Colors: Primary Blue #1a4f8c, Accent Yellow #f4c824, White #ffffff, Dark Grey #333333
 */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a4f8c;
    --accent-yellow: #f4c824;
    --background-white: #ffffff;
    --text-dark-grey: #333333;
    --text-light-grey: #666666;
    --border-light: #e0e0e0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --success-green: #28a745;
    --error-red: #dc3545;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark-grey);
    background-color: var(--background-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light-grey);
}

/* Header and Navigation */
.header {
    background: transparent !important;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    padding: 1rem 0;
}


.header.transparent {
    background: transparent;
    box-shadow: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--background-white);
    /* font-weight: 700;
    font-size: 1.5rem; */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: var(--transition);
}


.logo img {
    height: 65px;
    /* margin-right: 0.5rem; */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--background-white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-menu a:hover {
    color: var(--accent-yellow);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-signup-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.header-signup-link:hover {
    color: var(--accent-yellow);
}

.btn-donate-small {
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-donate-small:hover {
    background: var(--accent-yellow);
    color: var(--text-dark-grey);
}

.profile-dropdown {
    position: relative;
}

.profile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-toggle:hover {
    color: var(--accent-yellow);
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    min-width: 180px;
    z-index: 1000;
}

.profile-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark-grey);
    text-decoration: none;
    transition: var(--transition);
}

.profile-dropdown-menu a:hover {
    background: var(--primary-blue);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    min-height: 70px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mobile-logo img {
    height: 50px;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-signup-link {
    text-decoration: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.mobile-signup-link:hover {
    color: var(--accent-yellow);
}

.mobile-profile-dropdown-wrapper {
    position: relative;
}

.mobile-profile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-profile-toggle:hover {
    color: var(--accent-yellow);
}

/* Mobile Profile Dropdown */
.mobile-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    min-width: 180px;
    z-index: 1001;
    overflow: hidden;
}

.mobile-profile-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark-grey);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.mobile-profile-dropdown a:hover {
    background: var(--primary-blue);
    color: white;
}

.mobile-profile-divider {
    border-top: 1px solid #e0e0e0;
    margin: 0.5rem 0;
}

.mobile-header .mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-header .mobile-menu-toggle:hover {
    color: var(--accent-yellow);
}

.mobile-header .mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: rgba(26, 79, 140, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    color: var(--accent-yellow);
    transform: rotate(90deg);
}

.mobile-nav-close svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-links {
    padding: 4rem 0 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:hover {
    background: rgba(244, 200, 36, 0.2);
    color: var(--accent-yellow);
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 2rem;
}

/* Hero Section */
.hero {
    height: 120vh;
    position: relative;
    overflow: hidden;
    top: 0px;
    
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.hero-slideshow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* box-shadow: inset 0 180px 80px rgba(0, 0, 0, 0.7); */

}

.hero-slide.active {
    opacity: 1;
}

/* .hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
} */

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: var(--background-white);
    max-width: 800px;
    padding: 0 2rem;
    width: 100%;
}
.hero-content p{
    color: rgba(255,255,255,0.95);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-slide-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    top: 80%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero-slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-slide-indicator.active {
    background: var(--accent-yellow);
}

.hero-slide-nav {
    display: none; /* Hide visible arrows, keep keyboard navigation */
}

.hero-slide-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-slide-nav.prev {
    left: 2rem;
}

.hero-slide-nav.next {
    right: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--text-dark-grey);
}

.btn-primary:hover {
    background: #e6b520;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--background-white);
    border: 2px solid var(--background-white);
}

.btn-secondary:hover {
    background: var(--background-white);
    color: var(--primary-blue);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--background-white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    padding: 1.5rem;
    background: var(--primary-blue);
    color: var(--background-white);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark-grey);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 79, 140, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Stats Counter */
.stats {
    background: var(--primary-blue);
    color: var(--background-white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
}

/* Footer */
.footer {
    background: rgb(205, 219, 233);
    color: var(--dark-gray);
    padding: 60px 0 20px;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid #ffffed;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-gray);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Brand Colors */
.social-icon.facebook {
    color: #1877F2;
}

.social-icon.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-icon.instagram {
    color: #E4405F;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #833AB4, #F77737, #E4405F);
    color: white;
}

.social-icon.tiktok {
    color: #000000;
}

.social-icon.tiktok:hover {
    background: #000000;
    color: white;
}

.social-icon.whatsapp {
    color: #25D366;
}

.social-icon.whatsapp:hover {
    background: #25D366;
    color: white;
}

/* Responsive Design for Social Icons */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Removed duplicate social links styles - using new SVG icon styles above */

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Hide desktop header on mobile */
    .header {
        display: none;
    }
    
    /* Show mobile header on mobile */
    .mobile-header {
        display: block;
    }
    
    .mobile-header-container {
        background: transparent;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===== PROFESSIONAL DROPDOWN STYLING ===== */

/* Dropdown Container */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Toggle Button */
.nav-dropdown-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f4c824;
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background-color: #f8fafc;
    color: #1a4f8c;
    padding-left: 2rem;
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 0;
        margin-top: 0.5rem;
        margin-left: 2rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0.5rem 0;
    }
    
    .nav-dropdown-menu a {
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    .nav-dropdown-menu a:hover {
        background-color: rgba(244, 200, 36, 0.2);
        color: #f4c824;
        padding-left: 2rem;
    }
    
    .nav-dropdown-toggle {
        color: rgba(255, 255, 255, 0.95);
        width: 100%;
        justify-content: space-between;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
    }
    
    .nav-dropdown-toggle:hover {
        background-color: rgba(244, 200, 36, 0.2);
        color: #f4c824;
    }
}

/* Ensure dropdown is properly positioned */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dropdown positioning fix */
.nav-dropdown-menu {
    margin-top: 0.25rem;
}

/* ===== FLOATING DONATE BUTTON ===== */

/* Main container for the floating button */
.floating-donate-btn {
    position: fixed;
    top: 40%;
    z-index: 1000;
    /* Start the button off-screen to the right */
    right: -100px; 
    /* Apply the new 5-second infinite animation */
    animation: slideInOut 5s ease-in-out infinite;
}

/* The slide-in and slide-out animation definition */
@keyframes slideInOut {
  0% {
    /* Starts at its initial off-screen position */
    transform: translateX(0);
  }
  25% {
    /* Slides left by 210px to become fully visible on screen */
    transform: translateX(-90px);
  }
  75% {
    /* Holds its position on screen for a few seconds */
    transform: translateX(-90px);
  }
  100% {
    /* Slides back to its original off-screen position */
    transform: translateX(0);
  }
}

/* Styling for the link itself */
.btn-donate-floating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a4f8c, #2c5aa0);
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    /* This creates the rounded left corners */
    border-radius: 25px 0 0 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(26, 79, 140, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #f4c824;
    position: relative;
    overflow: hidden;
}

/* Hover and active states for better user interaction */
.btn-donate-floating:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 79, 140, 0.4);
    background: linear-gradient(135deg, #2c5aa0, #1a4f8c);
}

.btn-donate-floating:active {
    transform: scale(0.95);
}

/* SVG heart icon styling */
.donate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.donate-icon svg {
    width: 18px;
    height: 18px;
}

.donate-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* On mobile devices (768px wide or less), hide the button completely */
@media (max-width: 768px) {
    .floating-donate-btn {
        display: none;
    }
}

/* ===== DYNAMIC NEWS SECTION ===== */
.dynamic-news-container {
    display: flex;
    gap: 30px;
    min-height: 400px;
}

.main-news-display {
    flex: 3;
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-slide {
    display: none !important;
}

.news-slide.active {
    display: block !important;
}

.news-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    opacity: 0;
}

.news-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.news-prev {
    left: 20px;
}

.news-next {
    right: 20px;
}

.main-news-display:hover .news-nav {
    opacity: 1;
}

.news-list-sidebar {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-list {
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) #f1f1f1;
}

.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: #1a4f8c;
}

.news-list-item {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Removed problematic active state styling that was overriding background images */

.news-list-item:hover {
    transform: translateX(5px);
}

/* Clickable News Styling */
.clickable-news {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.clickable-news .news-overlay {
    transition: all 0.3s ease;
}

.clickable-news:hover .news-overlay {
    background: rgba(0,0,0,0.5);
}

.news-list-item.clickable-news:hover {
    transform: translateX(5px);
}

/* Responsive Design for Dynamic News */
@media (max-width: 768px) {
    .dynamic-news-container {
        flex-direction: column;
    }
    
    .main-news-display {
        flex: none;
        margin-bottom: 20px;
    }
    
    .news-list-sidebar {
        flex: none;
    }
    
    .news-nav {
        opacity: 1;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #f4c824;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(244, 200, 36, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 200, 36, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        /* padding: 100px 0 60px; */
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Three-Step Information Section */
.steps-container {
    display: flex;
    position: relative;
    margin-top: -140px;
    z-index: 10;
}

.step-item {
    flex: 1;
    background: white;
    padding: 20px 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    border-right: 1px solid #e9ecef;
}

.step-item:last-child {
    border-right: none;
}

.step-1 {
    border-left: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    border-top: 2px solid #e9ecef;
    border-radius: 10px 0 0 10px;
}

.step-2 {
    border-bottom: 2px solid #e9ecef;
    border-top: 2px solid #e9ecef;
    border-radius: 0;
}

.step-3 {
    border-right: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    border-top: 2px solid #e9ecef;
    border-radius: 0 10px 10px 0;
}

/* Mobile responsive for steps section */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        margin-top: -140px; /* Remove negative margin on mobile */
    }
    
    .step-item {
        border-right: none;
        border-left: 2px solid #e9ecef;
        border-right: 2px solid #e9ecef;
        margin-bottom: 0;
    }
    
    .step-item:last-child {
        border-right: 2px solid #e9ecef;
    }
    
    .step-1 {
        border-radius: 10px 10px 0 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .step-2 {
        border-radius: 0;
        border-top: 1px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
    }
    
    .step-3 {
        border-radius: 0 0 10px 10px;
        border-top: 1px solid #e9ecef;
    }
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-align: left;
}

.step-content h5 {
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-weight: 600;
    text-align: left;
}

.step-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: left;
    font-size: 1rem;
}

.step-button {
    margin-top: auto;
}

.step-button a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step-button a:hover {
    color: var(--dark-gray);
    text-decoration: none;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.step-button a:hover .arrow-icon {
    transform: translateX(3px);
}

/* About Us Section */
.about-content {
    padding-right: 100px;
}
.about-content .section-title {
    text-align: left;
}

.about-content h3 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 30px;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-item:first-child {
    grid-row: span 2;
}

/* Our Impact Section */
.impact-stat {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.impact-cta {
    background: #f8f9fa;
    border-radius: 10px;
}

.impact-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.impact-cta p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}

/* Get Involved Section */
.get-involved-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.get-involved-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.get-involved-image:hover img {
    transform: scale(1.05);
}

/* Get Involved Section - Full Height Layout */
.get-involved-section .grid {
    align-items: stretch;
    min-height: 500px;
}

.get-involved-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.get-involved-content .section-title {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.get-involved-content .content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.get-involved-content .content-text h3 {
    font-size: 1.4rem;
    color: var(--text-dark-grey);
    margin-bottom: 15px;
    font-weight: 500;
}

.get-involved-content .content-text h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.get-involved-content .content-text p {
    font-size: 1.1rem;
    color: var(--text-light-grey);
    margin-bottom: 20px;
    line-height: 1.6;
}

.get-involved-content .content-text .lead {
    font-size: 1.1rem;
    color: var(--text-light-grey);
    line-height: 1.6;
    font-weight: 500;
}

.get-involved-content .content-button {
    margin-top: auto;
    padding-top: 40px;
}

/* Responsive Design for Get Involved */
@media (max-width: 768px) {
    .get-involved-section .grid {
        min-height: auto;
    }
    
    .get-involved-content {
        height: auto;
        padding: 30px 0;
    }
    
    .get-involved-content .section-title {
        height: auto;
        padding: 20px 0;
    }
    
    .get-involved-content .content-text {
        justify-content: flex-start;
    }
    
    .get-involved-content .content-text h2 {
        font-size: 2rem;
    }
    
    .get-involved-content .content-button {
        margin-top: 30px;
        padding-top: 0;
    }
}

/* Programs Section - Two Programs with Overlapping Design */
.program-item {
    margin-bottom: 80px;
}

.program-container {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.program-image {
    flex: 1;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.program-content {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    min-height: 300px;
}

/* Programs Section - Desktop/Mobile Toggle */
.programs-section-desktop {
    display: block;
}

.programs-section-mobile {
    display: none;
}

/* Mobile responsive for programs section */
@media (max-width: 768px) {
    /* Hide desktop programs section on mobile */
    .programs-section-desktop {
        display: none;
    }
    
    /* Show mobile programs section on mobile */
    .programs-section-mobile {
        display: block;
    }
    
    .program-card-mobile {
        margin-bottom: 40px;
    }
}

/* Education Program - Text overlaps image from right */
.education-program .program-content {
    margin-left: -50px;
}

/* Health Program - Text overlaps image from left */
.health-program .program-content {
    margin-right: -50px;
}

.program-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.program-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-light-grey);
}

/* Impact Statistics with Border Dividers */
.impact-stat {
    position: relative;
}

.impact-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--border-light);
}

/* Impact CTA Section */
.impact-cta {
    margin-top: 60px;
    padding: 40px;
    background: var(--primary-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.cta-button {
    margin-left: 30px;
}

.cta-button .btn {
    background: white;
    color: var(--primary-blue);
    border: 2px solid white;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button .btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Responsive Design for Impact CTA */
@media (max-width: 768px) {
    .impact-cta {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .cta-button {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Hide border dividers on mobile */
    .impact-stat:not(:last-child)::after {
        display: none;
    }
}

/* Responsive Design for Programs Section */
@media (max-width: 768px) {
    .programs-section {
        padding: 60px 0;
    }
    
    .program-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .program-image {
        height: 250px;
        width: 100%;
        margin-bottom: 0;
    }
    
    .program-content {
        margin: -30px 20px 0 20px;
        padding: 30px;
        min-height: auto;
    }
    
    .education-program .program-content,
    .health-program .program-content {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 480px) {
    .program-content {
        margin: -20px 15px 0 15px;
        padding: 25px;
    }
    
    .program-content h3 {
        font-size: 1.5rem;
    }
    
    .program-content p {
        font-size: 1rem;
    }
}

/* Stories Section */
.stories-section {
    padding-bottom: 100px; /* Extra bottom padding to account for overlapping images */
}

.stories-container {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: visible; /* Allow images to overlap */
    position: relative;
    margin-top: 140px; /* Space between title and stories container to account for overlapping images */
}

.story-card {
    flex: 1;
    background: white;
    padding: 40px;
    padding-top: 260px; /* Enough padding so content (h4) starts BELOW the overlapping image
                           Image top: -60px + height: 280px = bottom at 220px
                           Add 40px margin = 260px total */
    position: relative;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e9ecef;
}

.story-card:last-child {
    border-right: none;
}

.story-card-1 {
    border-left: none;
    border-radius: 10px 0 0 10px;
}

.story-card-2 {
    border-radius: 0 10px 10px 0;
}

.story-image {
    position: absolute;
    top: -60px; /* Position absolutely to overlap upward beyond card border */
    left: 40px; /* Match card padding */
    right: 40px; /* Match card padding */
    height: 280px; /* Full image height */
    overflow: hidden;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Add shadow for depth */
}

/* Calculate: image top (-60px) + image height (280px) = 220px from card top
   So padding-top needs to be at least 220px + margin (40px) = 260px */

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    flex: 1;
}

.story-content h4 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.story-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
    .grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
    
    .info-step h3 {
        font-size: 1.3rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .impact-cta h3 {
        font-size: 1.5rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-item:first-child {
        grid-row: span 1;
    }
    
    /* Stories responsive */
    .stories-container {
        flex-direction: column;
        border-radius: 10px;
        overflow: visible;
    }
    
    .stories-container {
        margin-top: 60px; /* Keep space from title */
    }
    
    .stories-container {
        flex-direction: column;
    }
    
    .story-card {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 40px;
        padding-top: 40px; /* Remove extra padding for mobile - image will be above */
        display: flex;
        flex-direction: column;
    }
    
    .story-card:last-child {
        border-bottom: none;
    }
    
    .story-card-1 {
        border-radius: 10px 10px 0 0;
    }
    
    .story-card-2 {
        border-radius: 0 0 10px 10px;
    }
    
    .story-image {
        position: relative; /* Change from absolute to relative */
        top: 0; /* Remove negative positioning */
        left: 0;
        right: 0;
        width: 100%;
        height: 280px;
        margin-bottom: 20px;
        order: 1; /* Image first */
    }
    
    .story-content {
        order: 2; /* Content second */
    }
}

@media (max-width: 480px) {
    .grid.grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-step {
        padding: 30px 15px;
    }
    
    .impact-stat {
        padding: 20px 15px;
    }
}

/* Payment Method Options */
.payment-method-option {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-method-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.payment-method-option input[type="radio"]:checked + div {
    font-weight: 700;
}

.payment-method-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 79, 140, 0.1);
}

/* Payment method specific hover effects */
.payment-method-option[style*="stripe"]:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
}

.payment-method-option[style*="credit_card"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.payment-method-option[style*="paypal"]:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
}

.payment-method-option[style*="mtn_momo"]:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.payment-method-option[style*="orange_money"]:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
}

.payment-method-option[style*="bank_transfer"]:hover {
    background: linear-gradient(135deg, #78716c 0%, #57534e 100%) !important;
}

/* Payment background icons animation */
.payment-bg {
    transition: all 0.3s ease;
}

.payment-method-option:hover .payment-bg {
    opacity: 0.2 !important;
    transform: scale(1.1);
}

/* Responsive payment methods */
@media (max-width: 768px) {
    .payment-method-option {
        padding: 0.75rem !important;
    }
    
    .payment-method-option .payment-bg {
        font-size: 2rem !important;
        top: -5px !important;
        right: -5px !important;
    }
    
    .payment-method-option .payment-bg svg {
        width: 40px !important;
        height: 40px !important;
    }
}
