:root {
    --primary: #0056b3;
    --secondary: #ff6f61;
    --accent: #2e8b57;
    --dark: #121212;
    --light: #fdfdfd;
    --text: #333;
    --light-text: #555;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text);
    overflow-x: hidden;
}

::-moz-selection {
    background-color: var(--primary);
    color: var(--light);
}

::selection {
    background-color: var(--primary);
    color: var(--light);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 5%;
    transition: all 0.4s ease-in-out;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 var(--shadow-dark);
    padding: 10px 5%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 55px;
    transition: height 0.3s ease;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

header.scrolled .logo img {
    height: 45px;
}

nav {
    display: flex;
    align-items: center;
}

nav .nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

nav .nav-list li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav .nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

nav .nav-list li a:hover::after,
nav .nav-list li a.active::after {
    width: 100%;
}

nav .nav-list li a:hover {
    color: var(--primary);
}

.header-buttons {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background: #004a9e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./images/Caring\ Circle.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: left;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons .btn {
    padding: 18px 35px;
    font-size: 1rem;
}

.hero-buttons .btn-secondary {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.4);
}

.hero-buttons .btn-secondary:hover {
    background: #e66100;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 111, 97, 0.5);
}

.section {
    padding: 120px 5%;
    position: relative;
}

.section:nth-of-type(even) {
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px var(--shadow-dark);
    height: 550px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image:hover img {
    transform: scale(1.1);
}

.about-text {
    flex: 1.2;
}

.about-text h3 {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--light-text);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.stat-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-light);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.stat-item h4 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1rem;
    color: var(--light-text);
    margin: 0;
    font-weight: 600;
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.program-image {
    height: 220px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.15);
}

.program-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content .program-category {
    background: var(--accent);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    align-self: flex-start;
}

.program-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.program-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 25px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more:hover i {
    transform: translateX(5px);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-stat {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.impact-stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
    border-color: var(--primary);
}

.impact-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient);
    transition: height 0.3s ease;
}

.impact-stat:hover::before {
    height: 10px;
}

.impact-stat i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.impact-stat:hover i {
    transform: scale(1.1);
}

.impact-stat h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.impact-stat p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin: 0;
    font-weight: 600;
}

.cta {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 120px 5%;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    margin-bottom: 25px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.7;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn-primary {
    background: var(--secondary);
    color: white;
}

.cta-buttons .btn-primary:hover {
    background: #e66100;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
}

.cta-buttons .btn-outline {
    color: white;
    border-color: white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: var(--dark);
}


footer {
    background: var(--dark);
    color: white;
    padding: 100px 5% 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto 60px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Merriweather', serif;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
    width: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: translateY(-50px) scale(0.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--secondary);
}

.modal h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: #004a9e;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}

.member-image {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.social-links {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member:hover .social-links {
    transform: translateY(0);
    opacity: 1;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-info h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.position {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.bio {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .team-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    nav .nav-list {
        display: none;
    }

    .header-buttons {
        display: none;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        transition: all 0.5s ease;
        z-index: 1000;
    }

    nav.active {
        left: 0;
    }

    nav.active .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    nav .nav-list li {
        width: 100%;
    }

    nav .nav-list li a {
        padding: 15px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--border-color);
    }

    nav .nav-list li a::after {
        display: none;
    }

    nav .header-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 30px;
        gap: 15px;
        margin-left: 0;
    }

    nav .header-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .about-content {
        flex-direction: column;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        max-width: 250px;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .cta h2 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        grid-template-columns: 1fr;
    }
}

#key-areas .program-card,
#future-goals .program-card {
    display: flex;
    flex-direction: column;
}

#key-areas .program-content,
#future-goals .program-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#key-areas .program-content h3,
#future-goals .program-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 15px;
}

#key-areas .program-content p,
#future-goals .program-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 0; 
    flex-grow: 1;
}


#initiatives .about-content {
    align-items: flex-start; 
}

#initiatives .about-text h3 {
    font-size: 1.8rem; 
}

#initiatives .about-text hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

#initiatives .about-image img {
    height: 100%;
    max-height: 450px; 
    object-fit: cover;
}



#collaborations .impact-stat {
    padding: 30px 20px;
}

#collaborations .impact-stat i {
    font-size: 3rem; 
    margin-bottom: 15px;
}

#collaborations .impact-stat p {
    font-size: 1rem;
    font-weight: 700; 
    color: var(--primary);
}


.programs-container {
    display: grid;
    grid-auto-rows: 1fr;
}