/* Hearts of Gold Uganda - Modern Professional Styles */
/* Version 2.0 - Complete Redesign */

/* ============================================
   CSS CUSTOM PROPERTIES (Design System)
   ============================================ */
:root {
    /* Brand Colors */
    --primary-gold: #D4A853;
    --primary-gold-dark: #B8923D;
    --accent-orange: #E67E22;
    --accent-green: #27AE60;
    --accent-green-dark: #219A52;

    /* Neutral Colors */
    --dark: #1A1A2E;
    --dark-gray: #2D2D44;
    --medium-gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;

    /* Typography */
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Prevent horizontal overflow on mobile */
.row {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 576px) {
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-gold-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   MODERN NAVIGATION (Bootstrap Compatible)
   ============================================ */
.navbar {
    background: var(--white) !important;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
}

.navbar-brand img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
}

.navbar-brand-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}

.navbar-brand-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--medium-gray);
    font-weight: 400;
    font-family: var(--font-primary);
}

/* Fix Bootstrap toggler */
.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Nav Links */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray) !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    background: var(--light-gray);
    color: var(--dark) !important;
}

/* Current Campaign - Pulsing CTA */
.navbar-nav .nav-link.focus-link {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #D35400 100%);
    color: var(--white) !important;
    font-weight: 600;
    animation: subtle-pulse 2.5s infinite;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
}

.navbar-nav .nav-link.focus-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3); }
    50% { box-shadow: 0 2px 15px rgba(230, 126, 34, 0.5); }
}

/* Donate Button in Nav */
.navbar-nav .nav-link.menu-donate {
    background: var(--accent-green);
    color: var(--white) !important;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.navbar-nav .nav-link.menu-donate:hover {
    background: var(--accent-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

/* Shop Button */
.navbar-nav .nav-link.menu-shop {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold-dark) !important;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 500;
    background: transparent;
}

.navbar-nav .nav-link.menu-shop:hover {
    background: var(--primary-gold);
    color: var(--white) !important;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-radius: 0 0 12px 12px;
        border-top: 1px solid var(--light-gray);
    }

    .navbar-nav {
        padding: 0;
        align-items: stretch;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid var(--light-gray);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 1rem 0.75rem;
        width: 100%;
        font-size: 1rem;
        font-weight: 500;
        color: var(--dark) !important;
        display: flex;
        align-items: center;
        min-height: 48px;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: var(--light-gray);
        border-radius: 8px;
    }

    .navbar-nav .nav-link.focus-link {
        background: linear-gradient(135deg, var(--accent-orange) 0%, #D35400 100%);
        color: var(--white) !important;
        border-radius: 8px;
        margin: 0.5rem 0;
        justify-content: center;
    }

    .navbar-nav .nav-link.menu-donate {
        background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
        color: var(--white) !important;
        border-radius: 8px;
        margin: 0.5rem 0;
        justify-content: center;
    }

    .navbar-nav .nav-link.menu-shop {
        background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
        color: var(--white) !important;
        border-radius: 8px;
        margin: 0.5rem 0;
        justify-content: center;
    }

    .navbar-nav.mx-auto {
        margin-bottom: 0.5rem;
    }

    .navbar-toggler {
        border: 2px solid var(--dark);
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
    }

    .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.3);
    }
}

/* ============================================
   HERO SECTION - Split Layout with Progress
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-gray) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/main-mission1.jpg') center/cover no-repeat;
    opacity: 0.2;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xxl) var(--space-lg);
}

.hero-content {
    color: var(--white);
}

.campaign-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

/* Progress Thermometer */
.progress-container {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.progress-raised {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.3rem;
}

.progress-goal {
    color: rgba(255,255,255,0.7);
}

.progress-bar-container {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    height: 16px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-green) 0%, #2ECC71 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.5);
    color: var(--white);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all var(--transition-normal);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

/* Trust Indicators */
.trust-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.trust-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent-green);
}

/* Hero Image Side */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
}

.donor-count {
    display: flex;
    align-items: center;
    gap: 12px;
}

.donor-avatars {
    display: flex;
}

.donor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -10px;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

.donor-avatar:first-child {
    margin-left: 0;
}

.donor-text {
    font-size: 0.95rem;
    color: var(--dark);
}

.donor-text strong {
    color: var(--accent-green);
}

/* Hero Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: var(--space-lg) 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg) var(--space-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        order: -1;
        position: relative;
        max-height: 300px;
        overflow: hidden;
        border-radius: 12px;
    }

    .hero-image img {
        height: 300px;
        object-fit: cover;
        object-position: center;
        border-radius: 12px;
    }

    /* Hide floating overlay on tablets and mobile */
    .hero-image-overlay {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: var(--space-md) 0;
    }

    .hero-container {
        padding: var(--space-md) var(--space-sm);
        gap: var(--space-md);
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-image {
        max-height: 200px;
        overflow: hidden;
        border-radius: 12px;
    }

    .hero-image img {
        height: 200px;
    }

    /* Hide floating overlay on mobile - not floatable */
    .hero-image-overlay {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
    }

    .trust-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .trust-item {
        font-size: 0.85rem;
    }

    .progress-container {
        padding: 12px;
    }

    .progress-raised {
        font-size: 1.3rem;
    }

    .progress-goal {
        font-size: 0.85rem;
    }

    .progress-stats {
        font-size: 0.8rem;
    }

    .campaign-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ============================================
   IMPACT STATS SECTION
   ============================================ */
.impact-section {
    background: var(--white);
    padding: var(--space-xxl) 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.impact-stat {
    text-align: center;
    padding: var(--space-lg);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.impact-label {
    font-size: 1rem;
    color: var(--medium-gray);
    font-weight: 500;
}

@media (max-width: 768px) {
    /* Hide impact stats on mobile - not proportional */
    .impact-section {
        display: none;
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: var(--space-xxl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* ============================================
   HIGHLIGHT/CAMPAIGN CARD
   ============================================ */
.highlight-section {
    background: linear-gradient(135deg, #FEF9E7 0%, #FDF2E9 100%);
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-left: 5px solid var(--accent-orange);
}

.highlight-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.highlight-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.highlight-title {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.highlight-text {
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.highlight-btn {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.highlight-btn:hover {
    background: #D35400;
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: var(--light-gray);
    padding: var(--space-xxl) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    color: var(--primary-gold);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
    margin-bottom: var(--space-sm);
}

.testimonial-card .quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.testimonial-card .attribution {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

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

    .testimonial-card {
        padding: var(--space-md);
    }

    .testimonial-card img {
        width: 60px;
        height: 60px;
    }

    .testimonial-card .quote {
        font-size: 0.95rem;
    }

    /* Highlight Section - Hide on mobile, not flowing properly */
    .highlight-section {
        display: none;
    }

    /* Section Row Layout Mobile */
    .section .row {
        flex-direction: column;
    }

    .section .col-md-8,
    .section .col-md-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .section .col-md-4 {
        margin-top: var(--space-md);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section .lead {
        font-size: 1rem;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: var(--space-md);
    }

    .cta-section h3 {
        font-size: 1.1rem;
    }

    /* Carousel Mobile */
    .carousel {
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 576px) {
    .testimonial-card::before {
        font-size: 3rem;
        top: 15px;
        left: 15px;
    }

    .testimonial-card {
        padding: var(--space-sm);
    }

    .testimonial-card .quote {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .testimonial-card .attribution {
        font-size: 0.85rem;
    }


    .section {
        padding: var(--space-md) 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .testimonial {
        font-size: 0.95rem;
        padding: var(--space-sm);
    }

    .volunteer-button {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.donate-button, .shop-button, .volunteer-button {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
}

.donate-button {
    background: var(--accent-green);
    color: var(--white);
}

.donate-button:hover {
    background: var(--accent-green-dark);
    transform: translateY(-2px);
}

.shop-button {
    background: var(--primary-gold);
    color: var(--white);
}

.volunteer-button {
    background: var(--accent-orange);
    color: var(--white);
}

.donate-button-alt {
    background: var(--primary-gold);
    color: var(--dark);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-normal);
}

.donate-button-alt:hover {
    background: var(--primary-gold-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer h2 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.footer p {
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-xs);
}

.footer a {
    color: var(--primary-gold);
}

.footer a:hover {
    color: var(--white);
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin: var(--space-lg) 0;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ============================================
   STICKY MOBILE DONATE
   ============================================ */
.sticky-donate {
    display: none;
}

@media (max-width: 991px) {
    .sticky-donate {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
        padding: 14px 20px;
        text-align: center;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    }

    .sticky-donate a {
        color: var(--white);
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        display: block;
    }

    .sticky-donate .donate-amount {
        font-size: 0.85rem;
        opacity: 0.9;
        display: block;
        margin-top: 3px;
        font-weight: 400;
    }

    body {
        padding-bottom: 75px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: var(--dark);
    color: var(--white);
    padding: 12px 20px;
    z-index: 9999;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 10px;
}

/* Focus states */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* ============================================
   PAGE SPECIFIC STYLES
   ============================================ */

/* Page Headers - Professional gradient with pattern */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-gray) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.page-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CONTENT CARDS - For About, Community pages
   ============================================ */
.content-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-card img {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    color: var(--dark);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-gold));
    border-radius: 2px;
}

.content-card p {
    color: var(--medium-gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Featured/Founder Card */
.founder-card {
    background: linear-gradient(135deg, #FEF9E7 0%, #FDF2E9 100%);
    border-left: 5px solid var(--accent-orange);
}

.founder-card h2::after {
    background: var(--accent-orange);
}

/* Mission Statement Box */
.mission-box {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
}

.mission-box h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.mission-box p {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent-orange);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Content Sections */
.content-section {
    padding: var(--space-xxl) 0;
}

.content-section:nth-child(even) {
    background: var(--light-gray);
}

/* ============================================
   PROJECT CARDS - For Community/Projects page
   ============================================ */
.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
}

.project-card .row {
    margin: 0;
}

.project-card .col-md-5,
.project-card .col-md-7 {
    padding: 0;
}

.project-card-image {
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.project-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #D35400 100%);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

.project-card h2 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--medium-gray);
    line-height: 1.8;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .project-card-image {
        min-height: 220px;
    }

    .project-card-content {
        padding: 1.75rem;
    }
}

/* ============================================
   IMAGE GALLERY - For School page
   ============================================ */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 992px) {
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   INFO BOX / CALL TO ACTION
   ============================================ */
.info-box {
    background: linear-gradient(135deg, #FEF9E7 0%, #FDF2E9 100%);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    border: 2px solid rgba(212, 168, 83, 0.2);
}

.info-box h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

/* Call to action box - green version */
.cta-box {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    color: var(--white);
}

.cta-box h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta-box .btn {
    background: var(--white);
    color: var(--accent-green);
    padding: 14px 32px;
    font-weight: 600;
}

.cta-box .btn:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* Blog Page - Modern Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 0L40 20L20 40L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.blog-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.blog-card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card .read-more:hover {
    gap: 12px;
}

.blog-card .read-more::after {
    content: '\2192';
}

/* Legacy blog-section support */
.blog-section {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.blog-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
    border-left-color: var(--primary-gold);
}

.blog-section h2 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.blog-section p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.blog-section a {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.blog-section a:hover {
    gap: 10px;
}

.blog-section a::after {
    content: '\2192';
}

/* Sponsorship Grid */
.grid-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    margin-bottom: var(--space-lg);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.text-content {
    padding: var(--space-md);
    background: var(--white);
}

/* Privacy Page */
.privacy-content h2 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.privacy-content p,
.privacy-content li {
    color: var(--medium-gray);
    line-height: 1.8;
}

.last-updated {
    color: var(--medium-gray);
    font-style: italic;
    padding: var(--space-sm) var(--space-md);
    background: var(--light-gray);
    border-radius: 8px;
    display: inline-block;
}

/* ============================================
   CAROUSEL CUSTOMIZATION
   ============================================ */
.carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: var(--space-lg) 0;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 250px;
    }

    .carousel {
        margin: var(--space-md) 0;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 180px;
    }

    .carousel {
        margin: var(--space-sm) 0;
    }

    /* Footer Mobile - Clean compact design */
    .footer {
        padding: var(--space-lg) var(--space-sm) calc(var(--space-lg) + 60px);
        text-align: center;
    }

    .footer .row {
        display: block;
    }

    .footer .col-md-4 {
        width: 100%;
        margin-bottom: var(--space-md);
        padding: 0;
    }

    .footer h2 {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
        color: var(--primary-gold);
    }

    .footer p {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        line-height: 1.5;
    }

    .social-links {
        justify-content: center;
        gap: var(--space-sm);
        margin-bottom: var(--space-sm);
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    /* Hide GuideStar seal on mobile - takes too much space */
    .footer .col-md-4.text-center {
        display: none;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        padding-top: var(--space-md);
        margin-top: var(--space-md);
        margin-bottom: var(--space-sm);
    }

    .footer-links li {
        display: inline;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding-top: var(--space-sm);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    border-radius: 16px;
    padding: var(--space-xl);
    text-align: center;
    color: var(--white);
}

.cta-section h3 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: var(--space-sm);
}

/* ============================================
   EXTRA SMALL DEVICE FIXES (< 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Container padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Reduce large headings for small phones */
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .section-title,
    .content-card h2 {
        font-size: 1.3rem;
    }

    /* Single column grids */
    .impact-grid,
    .stats-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .impact-stat {
        padding: var(--space-sm);
    }

    .impact-number,
    .stat-card .number {
        font-size: 1.8rem;
    }

    .impact-label {
        font-size: 0.85rem;
    }

    /* Reduce padding */
    .content-card,
    .project-card-content {
        padding: 1rem;
    }

    .page-header {
        padding: 2rem 0 1.5rem;
    }

    /* Image gallery single column */
    .image-gallery {
        grid-template-columns: 1fr;
    }

    /* Carousel extra small */
    .carousel-item img {
        height: 150px;
    }

    /* Testimonials extra small */
    .testimonial-card .quote {
        font-size: 0.85rem;
    }

    /* Footer extra small */
    .footer-links {
        gap: 0.5rem;
    }

    /* Sticky donate button smaller text */
    .sticky-donate a {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .sticky-donate .donate-amount {
        font-size: 0.7rem;
    }

    /* General spacing reductions */
    .section {
        padding: var(--space-md) 0;
    }

    .my-4 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* ============================================
   TOUCH TARGET IMPROVEMENTS (Accessibility)
   ============================================ */
@media (max-width: 991px) {
    /* Increase nav link touch targets to meet WCAG 44x44px */
    .navbar-nav .nav-link {
        padding: 0.875rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Footer social links - increase to 44x44 */
    .social-links a {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
}

/* ============================================
   iOS SAFARI FIXES
   ============================================ */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS background-attachment: fixed */
    .image-story,
    .story-hero {
        background-attachment: scroll;
    }
}
