/* =======================================
   Fonts & Global Styles
======================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    color: #1f2937;
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

/* =======================================
   Reusable Background Section
======================================= */
.bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.bg::before,
.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg::before {
    background: linear-gradient(to right,
            rgba(15, 118, 110, 0.75),
            rgba(13, 148, 136, 0.75));
}

.bg::after {
    background: rgba(0, 0, 0, 0.45);
}

.bg>* {
    position: relative;
    z-index: 1;
}

/* =======================================
   Background Variants
======================================= */
.bg-hero {
    background-image: url('../img/hero/hero-1.jpg');
}

.bg-donation {
    background-image: url('../img/bg/donation-cta.jpg');
}

/* =======================================
   Base Page Hero Section
======================================= */
.page-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(13, 148, 136, 0.8),
            rgba(15, 118, 110, 0.8));
    z-index: 1;
}

.page-hero>* {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1.125rem;
    color: #e2e8f0;
}

.bg-hero-about {
    background-image: url("../img/hero/about-hero.jpg");
}

.bg-hero-contact {
    background-image: url("../img/hero/contact-hero.jpg");
}

.bg-hero-programs {
    background-image: url("../img/hero/programs-hero.jpg");
}

/* =======================================
   Navbar Styles
======================================= */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: transparent;
}

#main-header .logo,
#main-header .nav-link {
    color: #fff;
}

#main-header .donate-btn {
    background: #0d9488;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#main-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .logo,
#main-header.scrolled .nav-link {
    color: #374151;
}

#main-header.scrolled .nav-link-active {
    border-bottom: 2px solid #0d9488;
    color: #0d9488;
}

/* =======================================
   Icons
======================================= */
.icon-bg-green {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0d9488;
    display: grid;
    place-items: center;
    color: #fff;
}

.icon-bg-green i {
    margin: auto;
    color: #fff;
}

/* IMPACT SECTION */
.bg-impact {
    position: relative;
    background: linear-gradient(to right, #0f766e, #14b8a6);
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

.custom-shape-divider-bottom-1728693940 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1728693940 svg {
    position: relative;
    display: block;
    width: calc(132% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1728693940 .shape-fill {
    fill: #ffffff;
}

/* =======================================
   About Page
======================================= */
/* TEAM SECTION */
.team-member {
    position: relative;
    height: 420px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.team-member:hover {
    transform: scale(1.03);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.team-member:hover .team-img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 148, 136, 0.95);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

.team-member:hover .overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.overlay-content {
    max-width: 90%;
}

.social-links {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.social-link {
    background: #0d9488;
    color: #fff;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: #0f766e;
    transform: translateY(-3px);
}


/* =======================================
   Program Page
======================================= */
/* Program Implementation Cards */
.implementation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.implementation-card i {
    margin-bottom: 0.75rem;
}

.implementation-card h4 {
    color: #1E293B;
}

.implementation-card p {
    color: #475569;
}

/* =======================================
   Forms Validation
======================================= */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #14b8a6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-input.is-valid {
    border-color: #10b981;
    /* green-500 */
}

.form-input.is-invalid {
    border-color: #ef4444;
    /* red-500 */
}

.error-message {
    color: #ef4444;
    /* red-500 */
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}




/* =======================================
   Responsive Tweaks
======================================= */
@media (max-width: 768px) {
    .bg {
        background-attachment: scroll;
        padding: 4rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }
}