/* Base Styles */
:root {
    --primary-color: #043765;
    --secondary-color: #538D2B;
    --accent-color: #EDB81B;
    --light-color: #f4f7f9;
    --dark-color: #022a4a;
    --text-color: #333;
    --text-light: #777;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 0px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #3d6b20;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(83, 141, 43, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

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

.donate-btn:hover {
    background-color: #d4a50f;
    color: var(--white);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

#header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--accent-color);
}

#header.scrolled .logo a {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--white);
    font-weight: 500;
    position: relative;
    font-size: 14px;
}

#header.scrolled .main-nav ul li a {
    color: var(--primary-color);
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-nav ul li a:hover:after {
    width: 100%;
}

.main-nav ul li a.school-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 0px;
}

.main-nav ul li a.school-btn:hover {
    background-color: #3d6b20;
}

.main-nav ul li a.school-btn:after {
    display: none;
}

.main-nav ul li a.button-menu {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 0px;
    font-weight: 600;
}

.main-nav ul li a.button-menu:hover {
    background-color: #d4a50f;
    color: var(--white);
}

.main-nav ul li a.button-menu:after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

#header.scrolled .mobile-menu-btn {
    color: var(--primary-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu ul li {
    margin-bottom: 30px;
}

.mobile-menu ul li a {
    color: var(--white);
    font-size: 24px;
    font-weight: 500;
}

.mobile-menu ul li a:hover {
    color: var(--accent-color);
}

.mobile-menu .btn {
    margin-top: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(4, 55, 101, 0.85), rgba(4, 55, 101, 0.85)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.animated-headline {
    position: relative;
    display: inline-block;
}

.words-wrapper {
    display: inline-block;
    position: relative;
    text-align: left;
}

.words-wrapper b {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    left: 0;
    top: 0;
    opacity: 0;
}

.words-wrapper b.is-visible {
    position: relative;
    opacity: 1;
}

.words-wrapper b.is-hidden {
    opacity: 0;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23538D2B"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23538D2B"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23538D2B"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 30px;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 0px;
    background-color: var(--light-color);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Who We Serve Section */
.serve {
    background-color: var(--light-color);
}

.serve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.serve-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.serve-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.serve-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.serve-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Impact Stats */
.impact-stats {
    background-color: var(--light-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-box {
    text-align: center;
    background: var(--white);
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-box h4 {
    color: var(--primary-color);
    margin-top: 10px;
}

/* Programs Preview */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
}

.read-more:hover {
    color: #3d6b20;
}

/* News Preview */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    padding: 30px;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.news-date .day {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.news-date .month {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.news-date .year {
    font-size: 14px;
    color: var(--text-light);
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.news-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(4, 55, 101, 0.92), rgba(4, 55, 101, 0.92)), url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--secondary-color);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
    text-align: left;
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-content {
    background: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.newsletter-col input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 0px;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-col .btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

.newsletter-col .btn:hover {
    background-color: #d4a50f;
    color: var(--white);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--accent-color);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .about-content,
    .donate-content,
    .contact-content,
    .program-detail {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .vision-mission-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        text-align: left;
    }
    
    .program-detail {
        grid-template-columns: 1fr !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
}

/* Page Hero */
.page-hero h1 {
    font-size: 48px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(83, 141, 43, 0.2);
}

/* Funders Slider */
.funders-slider {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    width: calc(200px * 14);
}

.funder-logo {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.funder-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.funder-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 7));
    }
}

/* Additional Accent Elements */
.accent-border {
    border-color: var(--accent-color);
}

.accent-bg {
    background-color: var(--accent-color);
}

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

.secondary-bg {
    background-color: var(--secondary-color);
}

.secondary-text {
    color: var(--secondary-color);
}

/* Hover Effects with New Colors */
.hover-secondary:hover {
    color: var(--secondary-color);
}

.hover-accent:hover {
    color: var(--accent-color);
}

/* Button Variants */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: #d4a50f;
    color: var(--white);
}

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

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

/* Card Borders with New Colors */
.card-secondary-border {
    border-top: 4px solid var(--secondary-color);
}

.card-accent-border {
    border-top: 4px solid var(--accent-color);
}

.card-primary-border {
    border-top: 4px solid var(--primary-color);
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--light-color);
}

.bg-primary-light {
    background-color: rgba(4, 55, 101, 0.05);
}

.bg-secondary-light {
    background-color: rgba(83, 141, 43, 0.05);
}

/* Timeline Dot */
.timeline-item:before {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-item:nth-child(odd):before {
    right: -8px;
}

.timeline-item:nth-child(even):before {
    left: -8px;
}

@media (max-width: 768px) {
    .timeline-item:before {
        left: 12px !important;
    }
}
/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Make footer logo responsive */
@media (max-width: 768px) {
    .footer-logo-img {
        max-width: 160px;
    }
}

@media (max-width: 576px) {
    .footer-logo-img {
        max-width: 140px;
    }
}

/* Ensure proper spacing in footer columns */
.footer-col.about-col p {
    margin-top: 0;
}