html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background: #f8fafc;
}

.section-title {
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

/* ================= HERO SECTION ================= */

.hero-section {
    /*position: relative;
    height: 800px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;*/

    position: relative;
    /* Use min-height so it can grow, and 80vh so it scales with the screen */
    min-height: 60vh;
    height: 800px; /* Keep this if you want a max desktop height */
    max-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* background image */

.hero-bg {
    /*position: absolute;
    inset: 0;
    background-image: url('/images/SAIWF-HeroImg5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;*/

    position: absolute;
    inset: 0;
    /*background-image: url('/images/SAIWF-HeroImg5.png');*/
    background-size: cover;
    background-position: center; /* Centers the image */
    background-repeat: no-repeat;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Or 'contain' if you don't want any cropping */
    object-position: center;
}

/* gradient overlay */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgb(42, 42, 42, 0.50) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.05) 100% );
}

/* content */

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text {
    max-width: 650px;
    color: white;
    animation: heroFade 1.2s ease;
}

    /* heading */

    .hero-text h1 {
        font-size: 3.4rem;
        font-weight: 700;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    /* subtitle */

    .hero-text p {
        font-size: 1.25rem;
        margin-bottom: 28px;
        color: rgba(255,255,255,0.9);
    }

/* button */

.hero-btn {
    background: #f5a623;
    color: white;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all .25s;
}

    .hero-btn:hover {
        background: #e18f1b;
        color: white;
    }

/* fade animation */

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* scroll indicator */

.scroll-indicator {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

    .scroll-indicator span {
        display: block;
        width: 26px;
        height: 42px;
        border: 2px solid white;
        border-radius: 18px;
        position: relative;
    }

        .scroll-indicator span::after {
            content: '';
            position: absolute;
            top: 8px;
            left: 50%;
            width: 4px;
            height: 6px;
            background: white;
            transform: translateX(-50%);
            border-radius: 3px;
            animation: scrollMove 1.6s infinite;
        }

@keyframes scrollMove {
    0% {
        opacity: 0;
        transform: translate(-50%,0)
    }

    50% {
        opacity: 1
    }

    100% {
        opacity: 0;
        transform: translate(-50%,14px)
    }
}

/* responsive */

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 500px; /* Shorter height for phones */
    }

    .hero-bg {
        /* focus on the most important part of the PNG (e.g., top, center, or left) */
        background-position: center top;
        /* Optional: use 'contain' if you want to see the WHOLE image without cropping */
        /* background-size: contain; */
    }
}

@media (max-width:992px) {

    .hero-section {
        height: 520px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }
}

/*.project-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }*/

.project-img {
    height: 220px;
    object-fit: cover;
}

.projects-section {
    padding: 80px 0;
}

.project-card {
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all .3s;
}

    .project-card:hover {
        transform: translateY(-5px);
    }

.impact-section {
    background: #f5f7fb;
    padding: 70px 0;
}

.impact-box h2 {
    font-size: 42px;
    font-weight: 700;
    color: #2c5aa0;
}

.impact-box p {
    font-size: 16px;
    margin-top: 8px;
}

.gallery-preview {
    background: #f7f9fc;
    padding: 80px 0;
}

.gallery-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.cta-section {
    padding: 80px 0;
    background: #2c5aa0;
    color: white;
}

    .cta-section h2 {
        font-weight: 700;
        margin-bottom: 15px;
    }

    .cta-section p {
        font-size: 18px;
    }

/* Floating Video */

.floating-video {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 340px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    z-index: 9999;
    overflow: hidden;
    transition: all .3s ease;
}

/* Header */

.video-header {
    background: #e18f1b; /* soft blue palette */

    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

/* Title */

.video-title {
    font-weight: 600;
    letter-spacing: .3px;
}

/* Controls */

.video-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
}

    .video-controls button:hover {
        color: #ff8c42; /* orange accent */
    }

/* Video */

.video-body video {
    width: 100%;
    display: block;
}

/* Minimized */

.floating-video.minimized .video-body {
    display: none;
}

/* Icon Mode */

.floating-video.icon-mode {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3f6fb5;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .floating-video.icon-mode::after {
        content: "?";
        color: white;
        font-size: 22px;
    }

    .floating-video.icon-mode .video-header,
    .floating-video.icon-mode video {
        display: none;
    }

/* Mobile */

@media (max-width:768px) {

    .floating-video {
        width: 260px;
        bottom: 15px;
        right: 15px;
    }
}

.doc-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transition: all .2s;
}

    .doc-card:hover {
        transform: translateY(-3px);
    }

    .doc-card i {
        font-size: 40px;
        color: #e74c3c;
        margin-bottom: 15px;
    }

    .doc-card h5 {
        margin-bottom: 12px;
    }

    .doc-card a {
        text-decoration: none;
        font-weight: 600;
        color: #3f6fb5;
    }

.consultation-cta {
    background: #eef3fb;
    padding: 40px 0;
    border-top: 1px solid #d9e2f1;
    border-bottom: 1px solid #d9e2f1;
}

    .consultation-cta h3 {
        color: #3f6fb5;
        font-weight: 600;
    }

    .consultation-cta p {
        color: #555;
        margin-top: 8px;
    }

.btn-consult {
    background: #ff8c42;
    color: white;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

    .btn-consult:hover {
        background: #ff7a25;
        color: white;
    }

.badge-new {
    background: #ff8c42;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    margin-left: 10px;
    border-radius: 4px;
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {

    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

.consult-floating {
    position: fixed;
    left: 25px;
    bottom: 100px;
    background: #ff8c42;
    color: white;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all .2s;
}

    .consult-floating:hover {
        background: #2c5aa0;
        color: white;
        transform: translateY(-2px);
    }

.donate-floating {
    position: fixed;
    left: 25px;
    top: 100px;
    background: #2c5aa0;
    color: white;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all .2s;
}

    .donate-floating:hover {
        background: #ff7a25;
        color: white;
        transform: translateY(-2px);
    }

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.curve-divider {
    position: relative;
    margin-top: -1px;
    line-height: 0;
}

    .curve-divider svg {
        display: block;
        width: 100%;
        height: 90px;
    }

    .curve-divider path {
        fill: #ffffff;
    }

/* Consent form */
/* overlay */

.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


/* modal */

.consent-container {
    background: white;
    width: 420px;
    max-width: 90%;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: fadeIn .35s ease;
}


/* header */

.consent-header {
    text-align: center;
    margin-bottom: 15px;
}

.consent-logo {
    height: 60px;
    margin-bottom: 8px;
}

.consent-subtitle {
    font-size: 14px;
    color: #666;
}


/* content */

.consent-content {
    background: #f7f8fa;
    padding: 12px;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    font-size: 14px;
    margin-bottom: 15px;
}


/* inputs */

.consent-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}


/* buttons */

.consent-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.btn-consent-accept {
    flex: 1;
    background: #2ca44f;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-consent-reject {
    flex: 1;
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
}


/* animation */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}