/* ===== EASTERN KIDS UGANDA - MOLLY & PAUL INSPIRED DESIGN ===== */
/* Professional design inspired by https://mollyandpaul.org/ with #E84E0E primary color */

/* CSS RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #333333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background-color: #F7F8F9;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3.125rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #E84E0E 0%, #B8360A 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 78, 14, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 78, 14, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #E84E0E;
    border: 2px solid #E84E0E;
}

.btn-secondary:hover {
    background: #E84E0E;
    color: white;
    transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(232, 78, 14, 0.1);
    box-sizing: border-box;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 1;
}

.nav-logo a:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #E84E0E;
    text-decoration: none;
}

.logo-text .uganda {
    color: #000000;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #E84E0E;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E84E0E;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.donate-btn {
    background: linear-gradient(135deg, #E84E0E 0%, #B8360A 100%);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 78, 14, 0.3);
}

.donate-btn::after {
    display: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    flex-shrink: 0;
    min-width: 30px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(232, 78, 14, 0.1) 100%);
    padding-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1) saturate(1.1);
    transition: all 1.5s ease;
}

.hero-slide.active img {
    filter: brightness(0.9) contrast(1.2) saturate(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(232, 78, 14, 0.2) 50%, 
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* Slide content styles - REMOVED - No longer used */

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-badge i {
    color: #E84E0E;
    font-size: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
    color: white;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #E84E0E 0%, #ff6b35 100%);
    color: white;
    border: 2px solid transparent;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(232, 78, 14, 0.4);
    background: linear-gradient(135deg, #ff6b35 0%, #E84E0E 100%);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stats .stat {
    text-align: center;
    color: white;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #E84E0E;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 100%;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(232, 78, 14, 0.9);
    color: white;
    border-color: #E84E0E;
    transform: scale(1.1) translateY(-50%);
    box-shadow: 0 12px 40px rgba(232, 78, 14, 0.4);
}

/* Progress Bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 4;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #E84E0E 0%, #ff6b35 100%);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(232, 78, 14, 0.5);
}

/* Enhanced Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: #E84E0E;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(232, 78, 14, 0.6);
}

/* Tooltip for dots */
.dot::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dot:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* .slide-indicator - REMOVED - No longer used */

/* ===== HERO RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .slide-content {
        bottom: 60px;
        left: 30px;
        max-width: 350px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .hero-prev,
    .hero-next {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }
    
    .hero-prev {
        left: 20px;
    }
    
    .hero-next {
        right: 20px;
    }
    
    .slide-indicator {
        right: 25px;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .slide-content {
        bottom: 40px;
        left: 20px;
        right: 20px;
        max-width: none;
        text-align: center;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .hero-prev,
    .hero-next {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .hero-prev {
        left: 15px;
    }
    
    .hero-next {
        right: 15px;
    }
    
    .hero-dots {
        bottom: 25px;
        padding: 12px 20px;
        gap: 12px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .slide-indicator {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .hero-stats .stat {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .hero-stats .stat-label {
        font-size: 0.85rem;
    }
    
    .hero-badge {
        padding: 10px 20px;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .slide-content {
        bottom: 30px;
        left: 15px;
        right: 15px;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .slide-tag {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    
    .hero-dots {
        bottom: 20px;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: white;
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #E84E0E;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    padding: 100px 0;
    background: #F7F8F9;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text h2 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.content-text p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== IMPACT SECTION ===== */
.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(232, 78, 14, 0.15);
}

.impact-quote blockquote {
    position: relative;
    padding: 0 40px;
}

.impact-quote blockquote:before {
    content: '"';
    font-size: 4rem;
    color: #E84E0E;
    position: absolute;
    left: 0;
    top: -10px;
    font-family: serif;
}

.impact-quote blockquote:after {
    content: '"';
    font-size: 4rem;
    color: #E84E0E;
    position: absolute;
    right: 0;
    bottom: -30px;
    font-family: serif;
}

/* ===== APPROACH SECTION ===== */
.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(232, 78, 14, 0.15);
}

/* ===== PROGRAMS PREVIEW ===== */
.programs-preview {
    padding: 100px 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Override for 5-column layout */
.programs-preview .programs-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .programs-preview .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .programs-preview .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .programs-preview .programs-grid {
        grid-template-columns: 1fr;
    }
}

.program-card {
    background: #F7F8F9;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(232, 78, 14, 0.1);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(232, 78, 14, 0.1);
    border-color: #E84E0E;
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E84E0E 0%, #B8360A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.program-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.program-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.program-link {
    color: #E84E0E;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.program-link:hover {
    gap: 12px;
}

.section-cta {
    text-align: center;
}

/* ===== IMPACT STORIES ===== */
.impact-stories {
    padding: 100px 0;
    background: #F7F8F9;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.story-content {
    padding: 30px;
}

.story-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.story-content p {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.story-author {
    color: #E84E0E;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #E84E0E 0%, #B8360A 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: #E84E0E;
}

.cta-section .btn-primary:hover {
    background: #f8f9fa;
}

.cta-section .btn-secondary {
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: #E84E0E;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
    color: white;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #E84E0E 0%, #B8360A 50%, #E84E0E 100%);
    box-shadow: 0 2px 10px rgba(232, 78, 14, 0.3);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 78, 14, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.3rem;
    position: relative;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #E84E0E;
}

/* Center the dashes under footer titles on all screen sizes */
@media (min-width: 769px) {
    .footer-section h3,
    .footer-section h4 {
        position: relative;
        display: inline-block;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #E84E0E;
    font-weight: 600;
}

.footer-section p {
    color: #cbd5db;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-section ul li a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #E84E0E;
    transition: transform 0.3s ease;
}

.footer-section ul li a:hover {
    color: #E84E0E;
    padding-left: 20px;
}

.footer-section ul li a:hover::before {
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(232, 78, 14, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E84E0E;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(232, 78, 14, 0.3);
    font-size: 1.1rem;
}

.social-link:hover {
    background: #E84E0E;
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(232, 78, 14, 0.4);
    border-color: #E84E0E;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: #cbd5db;
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E84E0E 50%, transparent 100%);
}

/* ===== PAGE HEADERS ===== */
.page-header {
    padding-top: 180px !important;
    padding-bottom: 100px !important;
}

/* ===== YOUTUBE SECTION ===== */
.youtube-showcase .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.4) !important;
}

.youtube-showcase .btn:nth-child(2):hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.6) !important;
    box-shadow: 0 8px 25px rgba(255,255,255,0.2) !important;
}

.youtube-showcase [data-aos="fade-up"]:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Video Section Enhancements */
.featured-video .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.4) !important;
}

.featured-video .btn:nth-child(2):hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.6) !important;
    box-shadow: 0 8px 25px rgba(255,255,255,0.2) !important;
}

.gallery-preview img:hover {
    transform: scale(1.05);
}

.gallery-preview .image-overlay:hover {
    opacity: 1;
}

/* Responsive Video Grid */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .featured-video {
        margin-bottom: 40px !important;
    }
    
    .gallery-preview div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Fix navigation container to prevent horizontal overflow */
    .nav-container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Reduce logo size on mobile to prevent overflow */
    .nav-logo {
        gap: 8px;
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 50px); /* Leave space for hamburger */
        overflow: hidden;
    }
    
    .nav-logo a {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        padding-bottom: 30px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(232, 78, 14, 0.1);
    }
    
    .nav-menu .donate-btn {
        margin-top: 20px;
        width: auto;
        border: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        flex-shrink: 0;
    }
    
    .nav-toggle .bar {
        width: 100%;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section h3::after,
    .footer-section h4::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: #E84E0E;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
    
    /* Every Child Deserves a Chance Section - Tablet */
    .child-deserves-section {
        height: 65vh;
        min-height: 475px;
    }
    
    .child-deserves-title {
        font-size: 2.8rem !important;
        margin-bottom: 20px !important;
    }
    
    .child-deserves-text {
        font-size: 1.15rem !important;
        margin: 0 auto 35px !important;
    }
    
    .child-deserves-btn {
        padding: 16px 36px !important;
        font-size: 1.05rem !important;
    }
}

/* Every Child Deserves a Chance Section Styles */
.child-deserves-section {
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/eastern7.jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.child-deserves-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.child-deserves-title {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.child-deserves-text {
    color: white;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.child-deserves-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Medium screens (tablets/large phones) */
@media (max-width: 600px) {
    .child-deserves-section {
        height: 62vh;
        min-height: 460px;
    }
    
    .child-deserves-title {
        font-size: 2.5rem !important;
        margin-bottom: 18px !important;
    }
    
    .child-deserves-text {
        font-size: 1.05rem !important;
        margin: 0 auto 30px !important;
    }
    
    .child-deserves-btn {
        padding: 15px 32px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Further reduce logo size on very small screens */
    .nav-container {
        padding: 0 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nav-logo {
        gap: 6px;
        max-width: calc(100% - 45px);
        overflow: hidden;
    }
    
    .nav-logo a {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 0.95rem;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .child-deserves-section {
        height: 60vh;
        min-height: 450px;
    }
    
    .child-deserves-content {
        padding: 0 15px;
    }
    
    .child-deserves-title {
        font-size: 2.2rem !important;
        margin-bottom: 20px !important;
        line-height: 1.1;
    }
    
    .child-deserves-text {
        font-size: 1rem !important;
        margin: 0 auto 25px !important;
        line-height: 1.5;
    }
    
    .child-deserves-btn {
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E84E0E 0%, #B8360A 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

/* ===== IMPACT GALLERY RESPONSIVE STYLES ===== */
/* Desktop: 4 columns (4x2 grid) */
.impact-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .impact-gallery {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
}

/* Small tablet: 2 columns */
@media (max-width: 768px) {
    .impact-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 15px;
    }
}

/* Mobile: 2 columns with smaller gap */
@media (max-width: 480px) {
    .impact-gallery {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        gap: 10px;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E84E0E 0%, #B8360A 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(232, 78, 14, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #B8360A 0%, #E84E0E 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(232, 78, 14, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
    }
}