:root {
    --primary-color: #7fb883;         /* Lighter forest green - main brand color (40% lighter) */
    --primary-dark: #5a8a5d;          /* Lighter darker forest green (40% lighter) */
    --primary-light: #9bc59e;         /* Even lighter forest green (40% lighter) */
    --secondary-color: #6c757d;
    --success-color: #5cc46b;         /* Lighter success green (40% lighter) */
    --danger-color: #dc3545;          /* Emergency red */
    --warning-color: #ffc107;         /* Amber warning */
    --info-color: #4db8cc;           /* Lighter teal info (40% lighter) */
    --light-color: #f8f9fa;          /* Clean white */
    --dark-color: #2c3e50;           /* Deep blue-gray */
    --accent-color: #a6d4a9;         /* Even lighter green accent (40% lighter) */
    --text-muted: #6c757d;           /* Neutral gray */
    --background-light: #f6faf4;     /* Very light green background (40% lighter) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.95) !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(74,157,78,0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Responsive logo - horizontal version */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 36px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 32px;
    }
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: var(--dark-color) !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(74,157,78,0.9), rgba(45,90,47,0.9)), 
                url('../images/hero-bg.jpg') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero Carousel Styling */
.carousel {
    position: relative;
}

.carousel-inner {
    border-radius: 15px;
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: white;
    opacity: 1;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: -75px;
}

.carousel-control-next {
    right: -75px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    width: 20px;
    height: 20px;
}

/* Carousel slide content styling */
.carousel-item .placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.carousel-item .placeholder-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.carousel-item .placeholder-img > div {
    position: relative;
    z-index: 2;
}

.carousel-item .placeholder-img small {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive carousel controls */
@media (max-width: 992px) {
    .carousel-control-prev {
        left: -25px;
    }
    
    .carousel-control-next {
        right: -25px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: -30px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

/* Statistics Cards */
.stat-card {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(74,157,78,0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(74,157,78,0.2);
    border-color: var(--primary-color);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(74,157,78,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74,157,78,0.2) !important;
    border-color: var(--primary-color);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.program-card {
    cursor: pointer;
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
}

.card-text {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74,157,78,0.3);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
}

.btn-outline-success {
    border: 2px solid var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid rgba(74,157,78,0.3);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74,157,78,0.25);
}

.form-select {
    border-radius: 10px;
    border: 2px solid rgba(74,157,78,0.3);
    padding: 12px 15px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74,157,78,0.25);
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    color: rgba(255,255,255,0.8);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), #34495e);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Sections */
section {
    scroll-margin-top: 100px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Program Filters */
.nav-pills .nav-link {
    border-radius: 25px;
    padding: 10px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
    color: var(--text-muted);
    border: 2px solid rgba(74,157,78,0.3);
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

.nav-pills .nav-link:hover {
    background: rgba(74,157,78,0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Program Items Animation */
.program-item {
    transition: all 0.3s ease-in-out;
}

.program-item.filtering {
    opacity: 0;
    transform: scale(0.95);
}

.program-item.show {
    opacity: 1;
    transform: scale(1);
}

/* Donation Form */
.btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.btn-outline-success:checked,
.btn-outline-success.active {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Contact Form */
#contactForm, #donationForm {
    background: white;
    border-radius: 15px;
}

/* Newsletter Form */
#newsletterForm input {
    border-radius: 25px 0 0 25px;
    border: none;
}

#newsletterForm button {
    border-radius: 0 25px 25px 0;
    border: none;
}

/* Accordion */
.accordion-button {
    border-radius: 10px;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: rgba(45, 110, 62, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(196, 69, 54, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, .social-links {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        min-height: auto;
        background: none;
        color: black;
    }
}