:root {
    --primary-green: #0A4F01;  /* Deep Forest Green */
    --accent-green: #8BC34A;   /* Vibrant Light Green */
    --text-white: #ffffff;
    --text-light-gray: #f8f9fa;
    --text-dark: #333333;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- 1. Top Bar --- */
.top-bar {
    background-color: #053000;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}
.top-bar a:hover { color: var(--accent-green); }

/* --- 2. Navbar --- */
.navbar {
    background-color: var(--primary-green);
    padding: 0; 
    height: 65px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}
.navbar-brand img { max-height: 45px; transition: transform 0.3s; }
.navbar-nav .nav-link {
    color: var(--text-white) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 22px 12px !important; 
    position: relative;
    opacity: 0.9;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 18px; left: 12px; right: 12px; height: 2px;
    background-color: var(--accent-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.navbar-nav .nav-link:hover { color: var(--accent-green) !important; opacity: 1; }
.navbar-nav .nav-link:hover::before { transform: scaleX(1); }
.navbar-nav .nav-link.active { color: var(--accent-green) !important; }

/* --- 3. Donate Button (Nav) --- */
.donate-btn-container { margin-left: 15px; }
.btn-donate-nav {
    background: linear-gradient(45deg, var(--accent-green), #7cb342);
    color: white !important;
    border-radius: 30px;
    padding: 8px 25px !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(139, 195, 74, 0.3);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-donate-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 195, 74, 0.5);
    background: white;
    color: var(--primary-green) !important;
    border-color: var(--accent-green);
}

/* --- 4. Dropdown --- */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-top: 3px solid var(--accent-green);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 5px 0;
    margin-top: 0;
}
.dropdown-item {
    color: #444;
    padding: 10px 20px;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
    transition: 0.2s;
}
.dropdown-item:hover {
    background-color: #f4f9f0;
    color: var(--primary-green);
    border-left: 3px solid var(--accent-green);
    padding-left: 25px;
}

/* --- 5. HERO SLIDER (Enhanced) --- */
.hero-slider .carousel-item {
    height: 85vh;
    min-height: 600px;
    background-position: center center;
    background-size: cover;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
}
.hero-caption {
    position: absolute;
    bottom: 25%;
    left: 0; right: 0;
    text-align: center;
    z-index: 10;
    padding: 0 15px;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: var(--text-white);
    animation: fadeInDown 1.2s ease;
}
.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 35px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto; margin-right: auto;
    animation: fadeInUp 1.2s ease 0.3s both;
}
/* Slider Button */
.btn-donate-hero {
    background-color: var(--accent-green);
    color: white;
    font-weight: 700;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    border: 2px solid transparent;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1.2s ease 0.6s both;
    text-decoration: none;
    display: inline-block;
}
.btn-donate-hero:hover {
    background-color: white;
    color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
/* Slider Arrows */
.carousel-control-prev, .carousel-control-next { width: 5%; opacity: 0.7; transition: opacity 0.3s; }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 3rem; height: 3rem;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    background-size: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    transform: scale(1.1);
}

/* --- 6. Section Styles --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}
.mission-card, .cause-card {
    border: none;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}
.mission-card:hover, .cause-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.mission-icon-box {
    width: 80px; height: 80px; margin: 0 auto 20px auto;
    display: flex; align-items: center; justify-content: center;
    background-color: #f4f9f0; border-radius: 50%; transition: 0.3s;
}
.mission-card:hover .mission-icon-box { background-color: var(--accent-green); }
.mission-card:hover .mission-icon-box img { filter: brightness(0) invert(1); }
.cause-img-wrap { overflow: hidden; height: 220px; position: relative; }
.cause-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cause-card:hover .cause-img-wrap img { transform: scale(1.1); }

/* --- 7. LATEST UPDATES (Refined) --- */
.news-card {
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex; flex-direction: column; overflow: hidden;
}
.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-green);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.news-img-wrap {
    height: 200px; overflow: hidden; position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.news-card:hover .news-img-wrap img { transform: scale(1.08); }
.news-date {
    position: absolute; top: 12px; right: 12px;
    background: rgba(10, 79, 1, 0.9); color: white;
    padding: 4px 12px; border-radius: 30px;
    font-size: 0.7rem; font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); backdrop-filter: blur(4px); z-index: 2;
}
.news-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-title {
    font-size: 1.1rem; font-weight: 700; line-height: 1.4;
    margin-bottom: 10px; color: var(--text-dark); transition: color 0.3s;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card:hover .news-title { color: var(--primary-green); }
.news-excerpt {
    font-size: 0.85rem; color: #666; margin-bottom: 15px; line-height: 1.5;
    flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.read-more-btn {
    color: var(--primary-green); font-weight: 700; text-transform: uppercase; font-size: 0.75rem;
    text-decoration: none; display: inline-flex; align-items: center; transition: all 0.3s; margin-top: auto;
}
.read-more-btn i { margin-left: 6px; font-size: 0.7rem; transition: transform 0.3s; }
.read-more-btn:hover { color: var(--accent-green); }
.read-more-btn:hover i { transform: translateX(4px); }

/* --- 8. Animated Achievements --- */
.achievement-section {
    background-color: white; padding: 80px 0; position: relative; overflow: hidden;
}
.progress-wrapper { margin-bottom: 35px; }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 700; color: var(--text-dark); }
.progress {
    height: 14px; background-color: #e9ecef; border-radius: 20px; overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); position: relative;
}
.progress-bar {
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    border-radius: 20px; position: relative; transition: width 2s cubic-bezier(0.4, 0, 0.2, 1); width: 0;
}
.progress-bar::after {
    content: ""; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
    background-image: linear-gradient(-45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%, transparent);
    z-index: 1; background-size: 50px 50px; animation: move 2s linear infinite;
}
@keyframes move { 0% { background-position: 0 0; } 100% { background-position: 50px 50px; } }

/* --- 9. Social Media (Interactive) --- */
.social-section { background-color: #f9f9f9; }
.social-card {
    background: white; border-radius: 16px; padding: 35px 20px; text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden; z-index: 1; height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.social-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background-color: var(--social-color); transition: height 0.3s ease; z-index: -1;
}
.social-card:hover::after { height: 100%; }
.social-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-color: transparent; }
.social-icon-box {
    width: 70px; height: 70px; margin: 0 auto 20px auto; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    color: var(--social-color); background-color: rgba(0,0,0,0.04); transition: all 0.3s ease;
}
.social-card:hover .social-icon-box { background-color: white; color: var(--social-color); transform: scale(1.1) rotate(10deg); }
.social-username, .social-count { transition: color 0.3s; }
.social-card:hover .social-username, .social-card:hover .social-count { color: white; }
.btn-social-follow {
    display: inline-block; padding: 10px 30px; border-radius: 50px;
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase; text-decoration: none; transition: all 0.3s;
    background-color: var(--social-color); color: white; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.social-card:hover .btn-social-follow { background-color: white; color: var(--social-color); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

/* --- 10. Scroll to Top (Fixed) --- */
#scrollToTop {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background-color: var(--accent-green); color: white; border: none; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 9999; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; visibility: hidden; transform: translateY(20px);
}
#scrollToTop.show-btn { opacity: 1; visibility: visible; transform: translateY(0); display: flex; }
#scrollToTop:hover { background-color: var(--primary-green); transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
#scrollToTop i { font-size: 1.1rem; line-height: 1; margin-top: -1px; }

/* --- 11. Footer Styles --- */
footer { background-color: #1a1a1a !important; border-top: 5px solid var(--primary-green); }
footer h5 { font-size: 0.9rem; letter-spacing: 1px; }
footer .form-control { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); color: white; }
footer .form-control:focus { background-color: rgba(255, 255, 255, 0.2); border-color: var(--accent-green); color: white; box-shadow: none; }

/* --- 12. Mobile Responsive --- */
@media (max-width: 991px) {
    .navbar { height: auto; padding: 10px 0; }
    .navbar-collapse { background-color: #073a01; margin-top: 10px; border-radius: 8px; padding: 15px; }
    .navbar-nav .nav-link { padding: 10px 0 !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .navbar-nav .nav-link::before { display: none; }
    .donate-btn-container { margin-left: 0; margin-top: 15px; text-align: center; }
    .btn-donate-nav { display: block; width: 100%; padding: 12px !important; }
    
    /* Tablet Text */
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.3rem; }
}
@media (max-width: 767px) {
    /* Mobile Slider */
    .hero-slider .carousel-item { height: 70vh; min-height: 450px; }
    .hero-title { font-size: 2.2rem; margin-bottom: 10px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 20px; }
    .btn-donate-hero { padding: 12px 30px; font-size: 0.9rem; }
    .hero-caption { bottom: 15%; }
    
    .section-title { font-size: 1.8rem; }
    .news-card { margin-bottom: 15px; }
    .news-img-wrap { height: 180px; }
    #scrollToTop { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* SECTION HEADER */
h6 {
    letter-spacing: 1px;
}
/* CARD */
.news-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden; /* keeps image clean */
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transition: all 0.45s ease;
    height: 100%;
}

/* REMOVE ANY BACKGROUND FEEL OVER IMAGE */
.news-image {
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0; /* image only */
}

/* IMAGE */
.news-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block; /* IMPORTANT */
    background: #000;
    transition: transform 0.9s ease;
}

/* IMAGE HOVER ZOOM */
.news-card:hover .news-image img {
    transform: scale(1.08);
}

/* DATE BADGE */
.news-date {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(25, 135, 84, 0.95);
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
}

/* CONTENT SEPARATED FROM IMAGE */
.news-content {
    padding: 26px;
    background: #ffffff; /* clean white */
}

/* TITLE */
.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #212529;
    line-height: 1.4;
}

/* TEXT */
.news-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* LINK */
.news-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #198754;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.news-card:hover .news-link i {
    transform: translateX(6px);
}

/* BUTTON */
.btn-success {
    box-shadow: 0 6px 18px rgba(25,135,84,0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
}

