:root {
    --cao-blue: #00588b;
    --cao-brown: #8c5c29;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --cao-blue-dark: #003e63;
}

html { scroll-behavior: smooth; }
body { font-family: 'Lora', serif; color: var(--text-color); line-height: 1.7; margin: 0; padding-top: 76px; }

.navbar { background-color: var(--cao-blue) !important; }

/* Hero Carousel */
.carousel-item {
    position: relative;
    height: 80vh;
}

/* Full overlay for the hero section */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.carousel-item img {
    height: 80vh;
    object-fit: cover;
    animation: zoom 10s infinite alternate;
}

.carousel-caption {
    z-index: 2; /* Ensure text sits on top of overlay */
    bottom: 25%;
}

@keyframes zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* UI Elements */
.img-wrapper { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background-color: #eee; }
.img-fit { width: 100%; display: block; object-fit: contain; transition: transform 0.3s ease; }
.card-img-wrapper { height: 300px; display: flex; align-items: center; justify-content: center; }
.card-img-wrapper img { object-fit: cover; height: 100%; }

.btn-cao {
    background-color: var(--cao-brown);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-height: 52px;
}
.btn-cao:hover { background-color: #6a4620; color: white; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-actions .btn,
.hero-actions .btn-cao {
    min-width: 210px;
    min-height: 54px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    line-height: 1.2;
    box-sizing: border-box;
}

.btn-hero-secondary {
    background-color: #ffffff;
    color: var(--cao-blue-dark);
    border: 2px solid #ffffff;
}

.btn-hero-secondary:hover {
    background-color: #f3f7fa;
    border-color: #f3f7fa;
    color: var(--cao-blue-dark);
    transform: translateY(-2px);
}

.btn-hero-donate { 
    background-color: var(--cao-blue) !important; 
    border: 2px solid var(--cao-blue) !important; 
    color: white !important; 
    padding: 12px 30px; 
    border-radius: 30px; 
    transition: 0.3s;
    font-weight: 700;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-hero-donate:hover { 
    background-color: var(--cao-blue-dark) !important; 
    border-color: var(--cao-blue-dark) !important; 
    color: white !important;
    transform: translateY(-2px);
}

.section { padding: 80px 0; }
.card { border: none; transition: 0.3s; }
.card:hover { transform: translateY(-5px); }

/* Fixed Hero Content */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Allows clicking through to carousel controls */
}

.hero-content-overlay .container {
    pointer-events: auto; /* Re-enables interaction for buttons */
    max-width: 920px;
    padding: 0 24px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-content-overlay h1 {
    line-height: 1.05;
}

.hero-content-overlay p {
    margin-bottom: 0;
}

.gallery-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(0, 74, 117, 0.12);
    border-radius: 8px;
    background: linear-gradient(135deg, #f6fafc, #e8f0f4);
    box-shadow: 0 12px 28px rgba(0, 74, 117, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.04);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-img-wrapper:hover img {
    transform: scale(1.04);
    filter: saturate(1.14) contrast(1.08);
}

.campaign-next-steps {
    margin-top: 24px;
}

.campaign-info-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 74, 117, 0.12);
    border-radius: 8px;
    background: #ffffff;
    padding: 32px;
    box-shadow: 0 18px 44px rgba(0, 74, 117, 0.1);
}

.campaign-info-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--cao-blue);
}

.section-kicker {
    color: var(--cao-brown);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.campaign-info-panel h4 {
    color: var(--cao-blue-dark);
    font-weight: 800;
    margin-bottom: 14px;
}

.campaign-info-panel p {
    color: #334;
    margin-bottom: 20px;
}

.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-tags span {
    border: 1px solid rgba(0, 88, 139, 0.16);
    border-radius: 999px;
    background-color: #f5f9fb;
    color: var(--cao-blue-dark);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
}

.vision-list {
    display: grid;
    gap: 14px;
}

.vision-list div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 8px;
    background-color: #f6fafc;
    padding: 14px;
}

.vision-list i {
    color: var(--cao-brown);
    flex: 0 0 auto;
    font-size: 1.1rem;
    margin-top: 4px;
}

.vision-list span {
    color: #223;
    font-weight: 700;
}

.campaign-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cao-blue-dark), var(--cao-blue));
    color: #ffffff;
    padding: 36px;
    box-shadow: 0 22px 50px rgba(0, 62, 99, 0.25);
}

.campaign-cta-band h3 {
    font-weight: 800;
    margin-bottom: 10px;
}

.campaign-cta-band p {
    margin: 0;
    max-width: 720px;
    opacity: 0.9;
}

.campaign-cta-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.btn-campaign-primary,
.btn-campaign-secondary {
    border-radius: 999px;
    font-weight: 800;
    min-height: 52px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-campaign-primary {
    background-color: #ffffff;
    border: 2px solid #ffffff;
    color: var(--cao-blue-dark);
}

.btn-campaign-primary:hover {
    background-color: #f3f7fa;
    border-color: #f3f7fa;
    color: var(--cao-blue-dark);
}

.btn-campaign-secondary {
    background-color: var(--cao-brown);
    border: 2px solid var(--cao-brown);
    color: #ffffff;
}

.btn-campaign-secondary:hover {
    background-color: #6a4620;
    border-color: #6a4620;
    color: #ffffff;
}

/* Show controls only on hover */
.carousel-hover-control {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#heroCarousel:hover .carousel-hover-control {
    opacity: 1;
}

@media (max-width: 767.98px) {
    body { padding-top: 68px; }

    .carousel-item,
    .carousel-item img {
        height: 72vh;
        min-height: 520px;
    }

    .hero-content-overlay h1 {
        font-size: 2.35rem;
    }

    .hero-content-overlay p {
        font-size: 1.1rem !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 26px !important;
        row-gap: 16px;
    }

    .hero-actions .btn,
    .hero-actions .btn-cao {
        display: flex;
        width: min(100%, 320px);
        min-width: 0;
        min-height: 54px;
        padding: 13px 22px;
        margin: 0 0 16px 0 !important;
    }

    .hero-actions .btn:last-child,
    .hero-actions .btn-cao:last-child {
        margin-bottom: 0 !important;
    }

    .hero-actions .btn-hero-secondary {
        margin-bottom: 18px !important;
    }

    .gallery-img-wrapper { aspect-ratio: 16 / 9; }

    .campaign-info-panel {
        padding: 26px 22px;
    }

    .campaign-cta-band {
        align-items: stretch;
        flex-direction: column;
        padding: 28px 22px;
    }

    .campaign-cta-actions {
        flex-direction: column;
        justify-content: stretch;
    }

    .btn-campaign-primary,
    .btn-campaign-secondary {
        width: 100%;
    }
}
