/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-green: #1e3a2a;
    --medium-green: #2d5a3d;
    --light-green: #e8f5e9;
    --bright-green: #d4edd8; /* Brighter green for backgrounds */
    --orange: #ff9800;
    --light-orange: #ffb74d;
    --blue: #2196f3; /* Blue for donation buttons */
    --light-blue: #64b5f6; /* Light blue for hover */
    --black: #121212;
    --gray: #f5f5f5;
    --dark-gray: #333;
    --white: #ffffff;
    --text-dark: #222;
    --text-light: #555;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--light-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
}

.btn-secondary:hover {
    background-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark-green);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--orange);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.announcement-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcement-bar i {
    margin-right: 8px;
    color: var(--orange);
}

.register-link {
    color: var(--orange);
    font-weight: 600;
    margin-left: 5px;
}

.register-link:hover {
    color: var(--light-orange);
    text-decoration: underline;
}

/* Navigation - Thinner header */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 8px 0; /* Reduced from 15px to make thinner */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Removed vertical padding to make thinner */
}

.logo {
    display: flex;
    flex-direction: column;
    font-weight: 700;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--dark-green);
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 0.8rem;
    color: var(--orange);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px; /* Slightly reduced spacing */
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark-green);
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem; /* Slightly smaller font */
}

.nav-menu a:hover {
    color: var(--orange);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Blue Donate Button */
.btn-donate {
    background-color: var(--blue); /* Blue donate button */
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-donate:hover {
    background-color: var(--light-blue); /* Light blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-green);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bright-green) 0%, var(--light-green) 100%); /* Light green gradient */
    padding: 100px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--orange);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--medium-green);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon {
    font-size: 10rem;
    color: var(--dark-green);
    opacity: 0.7;
    z-index: 2;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background-color: var(--orange);
    opacity: 0.2;
}

.shape1 {
    width: 120px;
    height: 120px;
    top: 20px;
    right: 40px;
    animation: float 6s ease-in-out infinite;
}

.shape2 {
    width: 80px;
    height: 80px;
    bottom: 60px;
    left: 30px;
    background-color: var(--dark-green);
    animation: float 8s ease-in-out infinite reverse;
}

.shape3 {
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 80px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bright-green); /* Light green background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-icon i {
    font-size: 2rem;
    color: var(--dark-green);
}

.about-card h3 {
    color: var(--dark-green);
    margin-bottom: 15px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 60px;
    background-color: var(--bright-green); /* Light green background */
    padding: 40px;
    border-radius: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    min-width: 180px; /* Ensure enough space for counting numbers */
}

.stat-number {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums; /* Better number alignment */
    font-family: 'Poppins', monospace; /* Monospace for counting effect */
    min-height: 60px; /* Fixed height to prevent layout shift */
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    color: var(--dark-green);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Programs Section */
.programs {
    background-color: var(--bright-green); /* Light green background */
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bright-green); /* Light green background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.program-icon i {
    font-size: 1.8rem;
    color: var(--dark-green);
}

.program-card h3 {
    color: var(--dark-green);
    margin-bottom: 15px;
}

.program-features {
    list-style: none;
    margin: 20px 0;
}

.program-features li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.program-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
}

.program-link {
    color: var(--orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.program-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.program-link:hover {
    color: var(--light-orange);
}

.program-link:hover i {
    transform: translateX(5px);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card.featured {
    grid-column: span 2;
    display: flex;
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--orange);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.news-image {
    height: 250px;
    background: linear-gradient(45deg, var(--dark-green), var(--medium-green));
    position: relative;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 58, 42, 0.7), rgba(45, 90, 61, 0.7));
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--orange);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.news-card h3 {
    color: var(--dark-green);
    margin-bottom: 10px;
}

.news-link {
    color: var(--orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
}

.news-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--light-orange);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* Stories Section */
.stories {
    background-color: var(--white);
}

.stories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.story-card {
    background-color: var(--bright-green); /* Light green background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.story-quote {
    color: var(--orange);
    font-size: 2rem;
    margin-bottom: 20px;
}

.story-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.8;
}

.story-author h4 {
    color: var(--dark-green);
    margin-bottom: 5px;
}

.story-author p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.story-cta {
    text-align: center;
    background-color: var(--bright-green); /* Light green background */
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
}

.story-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-green);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bright-green); /* Light green background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--dark-green);
}

.contact-details h4 {
    color: var(--dark-green);
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--bright-green); /* Light green background */
    padding: 40px;
    border-radius: 15px;
}

.contact-form h3 {
    color: var(--dark-green);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--orange);
}

.footer-description {
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--orange);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #aaa;
}

.footer-bottom a:hover {
    color: var(--orange);
}

.made-with {
    margin-top: 10px;
}

.made-with i {
    color: #ff4757;
    margin: 0 5px;
}

/* Blue Donate Float Button */
.donate-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--blue); /* Blue background */
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4); /* Blue shadow */
    z-index: 100;
    transition: var(--transition);
    overflow: hidden;
}

.donate-float:hover {
    width: 180px;
    border-radius: 50px;
    background-color: var(--light-blue); /* Light blue on hover */
}

.donate-float i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.donate-float span {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donate-float:hover span {
    opacity: 1;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .news-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .news-image {
        height: 200px;
    }
    
    .stat-item {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px; /* Adjusted for thinner header */
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .stats-container {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
        min-height: 50px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 15px 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .navbar {
        padding: 6px 0; /* Even thinner on mobile */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 250px;
    }
    
    .announcement-bar {
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .stat-number {
        font-size: 2.2rem;
        min-height: 45px;
    }
}