/*
 * EcoPeace NGO - Custom Styles
 * Framework: Bootstrap 5
 */

:root {
    --primary-color: #FF6012;
    /* Vibrant Orange for CTAs */
    --secondary-color: #003319;
    /* Dark Forest Green for Footer/Logo */
    --accent-color: #5DB044;
    /* Eco Green for secondary accents */
    --heading-color: #003319;
    /* Heading Text Color */
    --body-color: #333333;
    /* Darker solid grey for sharper text */
    --light-bg: #F9F9F9;
    /* Light Section Background */
    --white: #FFFFFF;
    --black: #000000;
    --transition: 0.3s ease-in-out;
    --navbar-bg: #ffffff82;
    /* Semi-transparent white for navbar */
}

/* Typography */
body {
    font-family: 'Lato', sans-serif;
    color: var(--body-color);
    line-height: 1.8;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

/* Global Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navbar */
.navbar {
    /* make navbar stay fixed on scroll */
    background-color: var(--navbar-bg);
    /* background-color: #ffffff82; */
    /* padding: 30px 0; */
    transition: all 0.4s;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar.sticky-top.scrolled {
    /* switch to solid white after scrolling */
    background-color: var(--white);
    padding: 15px 0;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
}

/* darker link colors when navbar has white background */
.navbar.sticky-top.scrolled .nav-link {
    color: var(--body-color) !important;
}

.navbar.sticky-top.scrolled .nav-link:hover,
.navbar.sticky-top.scrolled .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-brand .brand-text h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--white);
}

.nav-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--white) !important;
    padding: 10px 15px !important;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar.sticky-top.scrolled .dropdown-menu {
    /* when navbar has turned white on scroll, keep dropdown white too */
    background-color: var(--white);
    border: none;
    border-top: 3px solid var(--primary-color);
    border-radius: 0;
    padding: 15px 0;
    margin-top: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.navbar .dropdown-menu {
    /* default dropdown when at top uses semi-transparent navbar-bg */
    background-color: var(--navbar-bg);
    border: none;
    border-top: 3px solid var(--primary-color);
    border-radius: 0;
    padding: 15px 0;
    margin-top: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.navbar .dropdown-item {
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 25px;
    transition: all 0.3s;
}

.navbar .dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    padding-left: 30px;
}

/* Navbar Overlay Shadow for readability */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.4s;
}

.navbar.scrolled::before {
    opacity: 0;
}

/* Hover Dropdown functionality */
@media (min-width: 992px) {
    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
}

.btn-donate {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px !important;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-donate:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    /* make the hero taller for more visual impact */
    padding: 200px 0 120px;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    transition: background-image 0.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Page Header (Internal Hero) */
.page-header {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.page-header h1 {
    font-size: 80px;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 991px) {
    .page-header {
        padding: 180px 0 100px;
    }

    .page-header h1 {
        font-size: 48px;
    }
}

/* Quote Section */
.quote-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--white);
}

.quote-icon {
    font-size: 80px;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 30px;
    display: block;
}

.quote-text {
    font-size: 42px;
    font-weight: 800;
    font-style: italic;
    color: var(--secondary-color);
    max-width: 950px;
    margin: 0 auto 30px;
    line-height: 1.3;
    font-family: 'Outfit', sans-serif;
}

.quote-author {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .quote-text {
        font-size: 28px;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.gallery-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.gallery-header p {
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--body-color);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: all 0.5s ease;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.hide {
    display: none;
}

/* folder group styling */
.gallery-folder {
    margin-bottom: 60px;
    text-align: left;
}

.folder-title {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

/* type icon overlay for videos/documents */
.gallery-item .type-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: var(--white);
    pointer-events: none;
}

/* modal for enlarged gallery items */
#galleryModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#galleryModal .modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    text-align: center;
}

#galleryModal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    z-index: 100;
    /* hidden by default; shown via JS only if needed */
    display: none;
}

/* caption positioned above thumbnail with transparent background */
.gallery-item .item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    padding: 10px 14px;
    box-sizing: border-box;

    font-size: 16px;
    font-weight: 600;
    color: #fff;

    /* dark gradient background for visibility */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0));

    /* strong shadow so text visible on any image */
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.7);

    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.gallery-item:hover .item-caption {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0));
}

/* ensure modal close visible at full width */
#galleryModal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

#galleryModal .modal-title {
    margin-top: 15px;
    color: var(--white);
    font-size: 24px;
}

#galleryModal .modal-caption {
    color: var(--body-color);
    margin-top: 8px;
    font-size: 16px;
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }
}

#galleryModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#galleryModal .modal-content {
    max-width: 900px;
    width: 90%;
    text-align: center;
    position: relative;
}

/* CLOSE BUTTON */

#galleryModal .modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 28px;
    color: #fff;
    background: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    cursor: pointer;
    display: block;
}

/* preview image */

.modal-body-content img,
.modal-body-content video,
.modal-body-content iframe {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
}

/* News Page Specific Styles */

.news-title {
    font-size: 40px;
    font-weight: 800;
    color: #0c3b2e;
}

.news-card {
    background: #fff;
}

.news-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.news-heading {
    font-size: 18px;
    font-weight: 700;
    color: #0c3b2e;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news-text {
    font-size: 14px;
    color: #666;
}

.news-read {
    font-size: 13px;
    color: #ff7a00;
    font-weight: 600;
    text-decoration: none;
}

.news-read:hover {
    color: #ff7a00;
}

.hot-title {
    font-weight: 700;
    color: #0c3b2e;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.hot-news-item {
    margin-bottom: 20px;
}

.hot-date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.hot-news-item p {
    font-size: 14px;
    font-weight: 600;
    color: #0c3b2e;
    margin: 0;
}

.news-subscribe {

    background-size: cover;
    border-radius: 10px;
    padding: 120px 20px;
    text-align: center;
    color: white;
    margin-top: 30px;
}

.news-subscribe button {
    margin-top: 10px;
}

.news-details-section .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-details-section.category-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #444;
}

.news-details-section.category-list li i {
    color: #ff7a00;
    font-size: 18px;
}

.btn-post-comment,
.btn-subscribe {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px !important;
    transition: all 0.3s;
    text-transform: uppercase;
}

/* FAQ Page Styles */
.faq-page .page-header {
    background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?auto=format&fit=crop&q=80&w=1920');
}

/* basic accordion colors */
.faq-section {
    margin: 100px 0px;
}

.faq-section .accordion-button {
    color: var(--secondary-color);
    background: #f4f7f5;
    font-weight: 600;
}

.faq-section .accordion-button:not(.collapsed) {
    background: #e7f5ea;
    color: #2c7a3f;
}

.faq-section .accordion-item {
    border: none;
    margin-bottom: 10px;
}

.faq-section .accordion-body {
    color: var(--body-color);
}

/* volunteer banner */
.volunteer-section {

    padding: 90px 0;
    position: relative;
}

.volunteer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.volunteer-section .container {
    position: relative;
    z-index: 2;
}

.volunteer-section h2 {
    color: var(--primary-color);
}

/* FAQ section additions */
.faq-section .faq-title {
    font-size: 40px;
    font-weight: 700;
    color: #3b190c;
    margin-bottom: 15px;
}

.faq-section .faq-text {
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
}

/* accordion style */
.faq-section .accordion-item {
    border: none;
    margin-bottom: 12px;
}

.faq-section .accordion-button {
    background: #eee;
    border-radius: 8px;
    font-weight: 600;
    padding: 16px;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: #ffffff;
}

/* image layout */
.faq-images {
    position: relative;
    height: 420px;
}

.faq-images img {
    border-radius: 12px;
    object-fit: cover;
    position: absolute;
}

/* small top image */
.faq-images .img1 {
    width: 170px;
    top: 30px;
    left: 60px;
    z-index: 2;
}

/* big right image */
.faq-images .img2 {
    width: 260px;
    right: 180px;
    top: 0;
    height: 430px;
}

/* bottom image */
.faq-images .img3 {
    width: 220px;
    bottom: -40px;
    left: 120px;
}

/* Volunteer Grid Section (Replaces CTA & News) */
.volunteer-grid-section {
    padding: 60px 0px 100px 0px;
    background-color: var(--white);
}

.volunteer-card {
    border-radius: 15px;
    overflow: hidden;
    background-color: #002211;
    /* Darker green for info box */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.volunteer-card:hover {
    /* transform: translateY(-10px); */
    /* remove full card shadow, apply below to image */
}

.volunteer-card:hover .volunteer-img-wrapper {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* volunteer card */

.volunteer-card {
    overflow: hidden;
    background: #1e2f2c;
    border-radius: 8px;
}

/* image wrapper */

.volunteer-img-wrapper {
    position: relative;
    overflow: hidden;
}

/* image */

.volunteer-img {
    width: 100%;
    display: block;
    transition: transform .5s ease;
}

/* image zoom */

.volunteer-img-wrapper:hover .volunteer-img {
    transform: scale(1.08);
}

/* overlay */

.volunteer-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    transform: translateY(100%);
    opacity: 0;

    transition: all .4s ease;
}

/* hover effect */

.volunteer-img-wrapper:hover .volunteer-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* social icons */

.social-icon {
    color: #fff;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    transition: .3s;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

/* info box */

.volunteer-info-box {
    padding: 22px;
    text-align: center;
}

.volunteer-info-box h4 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
}

.volunteer-info-box span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
}

.volunteer-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
    /* image height increase */
}

.volunteer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps image ratio */
    display: block;
    transition: transform .5s ease;
}

/* Section Common */
.section-padding {
    padding: 70px 0;
}

.section-title h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 35px 30px;
    /* Reduced for smaller size */
    border-radius: 32px;
    /* Set to 32px */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.03);
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.feature-card .learn-more-hover {
    display: none;
    margin-top: 15px;
    transition: var(--transition);
}

.feature-card:hover {
    background-color: #ff6f00;
    /* Vibrant Yellow */
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .icon-box {
    display: none;
}

.feature-card:hover .learn-more-hover {
    display: inline-block;
}

.feature-card:hover h4,
.feature-card:hover p {
    color: #FFFFFF !important;
}

.feature-card .icon-box {
    margin-bottom: 20px;
    font-size: 35px;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Partner Slider */
.partner-slider-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partner-track {
    display: flex;
    width: max-content;
    animation: scroll-ltr 25s linear infinite;
}

.partner-item {
    padding: 0 60px;
    flex-shrink: 0;
}

.partner-item img {
    max-height: 45px;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
}

.partner-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll-ltr {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Story Section Images */
.story-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.story-img-main {
    width: 80%;
    border-radius: 12px;
}

.story-img-sub {
    width: 47%;
    height: 386px;
    position: absolute;
    top: -37px;
    left: 89px;

    border-radius: 12px;

}

.story-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0 40px;
}

.story-list li {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-list li i {
    color: var(--primary-color);
}

.play-btn-circle {
    width: 65px;
    height: 65px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    transition: var(--transition);
}

.play-btn-circle:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Action Stats Section - Centered & Overhanging Design */
.action-stats-section {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: visible;
    min-height: 480px;
    margin: 60px 0;
    /* margin: 60px 0 250px 0; */
}

.action-stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 8, 0.88);
    z-index: 0;
}

.action-stats-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 480px;
}

/* Left panel: content */
.action-stats-left {
    flex: 0 0 58%;
    padding: 60px 0 0px 4%;
    /* Increased left padding to shift right */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-stats-left h2 {
    font-size: 44px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.action-stats-left p {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 40px;

    line-height: 1.8;
}

/* Stats grid */
.action-stats-grid {
    display: flex;
    gap: 40px;
}

.action-stat-item {
    text-align: left;
}

.action-stat-item i {
    font-size: 32px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 12px;
}

.action-stat-item .stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}

.action-stat-item .stat-number sup {
    font-size: 20px;
    color: var(--primary-color);
    top: -0.5em;
}

.action-stat-item .stat-label {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right panel: slider overhang */
.action-stats-right {
    flex: 0 0 38%;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10;
}

.stats-img-slider {
    width: 90%;
    height: 800px;
    /* TALL PORTRAIT */
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    right: 115px;
    /* OVERHANG */
}

.stats-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.stats-slide.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
    .action-stats-section {
        margin: 60px 0;
        /* overflow: hidden; */
        /* Prevent horizontal scroll on mobile */
    }

    .action-stats-inner {
        flex-direction: column;
        padding: 60px 0;
    }

    .action-stats-left {
        flex: unset;
        width: 100%;
        padding: 0 0 40px;
        text-align: center;
        align-items: center;
    }

    .action-stats-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .action-stats-grid {
        justify-content: center;
    }

    .action-stats-right {
        width: 100%;
        max-width: 400px;
    }

    .stats-img-slider {
        height: 480px;
        margin: 0;
    }
}

/* Legacy Stats (keep in case used elsewhere) */
.stat-item {
    text-align: center;
}

.stat-item span {
    font-weight: 600;
    color: #ffffff;
}

/* Image Cards (Priorities & Campaigns) */
.card-img-custom {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.card-img-custom img {
    width: 100%;
    height: 480px;
    transition: all 0.5s ease;
    object-fit: cover;
    object-position: top;
    display: block;
}

.card-img-custom:hover img {
    transform: scale(1.08);
}

/* Priority Card Hover Overlay */
.priority-card .priority-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 30px 25px;
    background: rgba(0, 100, 40, 0.88);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    border-radius: 14px;
    transition: all 0.4s ease;
}

.priority-card:hover .priority-overlay {
    opacity: 1;
}

.priority-card:hover img {
    transform: scale(1.08);
}

.priority-overlay h4 {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
}

.priority-overlay p {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    line-height: 1.8;
    max-width: 240px;
}

/* Campaigns Section Styles */
.campaign-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 480px;
    margin-bottom: 20px;
}

.campaign-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.campaign-card:hover img {
    transform: scale(1.08);
}

.campaign-content {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #fff;
    width: 85%;
    padding: 30px 25px;
    border-top-right-radius: 40px;
    box-shadow: 5px -5px 20px rgba(0, 0, 0, 0.05);
}

.campaign-content h4 {
    font-size: 21px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.campaign-content p {
    font-size: 14px;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.campaign-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.campaign-link:hover {
    color: #cc5900;
}

/* News Section Styles */
.news-horizontal-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-image {
    flex: 0 0 260px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-horizontal-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    flex: 1;
}

.news-content h4 {
    font-size: 22px;
    line-height: 1.4;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.news-content h4:hover {
    color: var(--primary-color);
}

.news-meta {
    font-size: 14px;
    color: #444444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-meta i {
    color: var(--primary-color);
}

.news-content p {
    font-size: 14px;
    color: #333333;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-read-more:hover {
    color: #cc5900;
}

@media (max-width: 767px) {
    .news-horizontal-card {
        flex-direction: column;
        gap: 20px;
    }

    .news-image {
        flex: unset;
        width: 100%;
    }
}

/* Volunteer CTA Section */
.volunteer-cta-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--white);
}

.volunteer-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 10, 0.75);
    /* Dark forest green tinted overlay */
    z-index: 1;
}

.volunteer-cta-section h2 {
    color: var(--primary-color) !important;
    /* Orange from screenshot */
    font-size: 64px;
    margin-bottom: 25px;
    z-index: 2;
    position: relative;
}

.volunteer-cta-section p {
    z-index: 2;
    position: relative;
    line-height: 1.8;
    color: #ffffff;
}

.volunteer-cta-section .btn {
    z-index: 2;
    position: relative;
    font-weight: 800;
    letter-spacing: 1px;
}

@media (max-width: 767px) {
    .volunteer-cta-section h2 {
        font-size: 40px;
    }
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    padding: 60px 0;
    z-index: 10;
}

.newsletter-card {
    background: var(--primary-color);
    padding: 60px 80px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(255, 115, 0, 0.2);
}

.newsletter-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.newsletter-icon {
    font-size: 80px;
    color: var(--white);
    line-height: 1;
}

.newsletter-text .small-title {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.newsletter-text h3 {
    font-size: 55px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.newsletter-input-group {
    position: relative;
    width: 100%;
}

.newsletter-input-group label {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.newsletter-form-container .form-control {
    background: transparent;
    border: none !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 0;
    padding: 10px 0;
    color: var(--white);
    height: 50px;
    width: 100%;
    font-size: 16px;
}

.newsletter-form-container .form-control:focus {
    box-shadow: none;
    border-bottom-color: var(--white) !important;
}

.newsletter-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .newsletter-card {
        padding: 40px;
    }

    .newsletter-text h3 {
        font-size: 38px;
    }
}

/* Footer Section */
.footer-section {
    background: var(--secondary-color);
    padding-top: 70px;
    /* Extra padding for newsletter overlap */
    color: #ffffff;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.8;
}

.footer-heading {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 3px;
}

.footer-links-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.5;
}

.footer-contact-list i {
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
}

@media (max-width: 991px) {
    .newsletter-section {
        margin-bottom: 0;
        padding-bottom: 20px;
    }

    .footer-section {
        padding-top: 80px;
    }

    .newsletter-card {
        padding: 40px;
    }

    .newsletter-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-btn {
        justify-content: center;
    }
}

/* Feedback Section & Slider */
.feedback-section {
    padding: 60px 0;
    /* Reduced from 80px */
    background-color: var(--white);
    overflow: hidden;
    text-align: center;
}

.feedback-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    /* Reduced to keep it in the middle */
    margin: 40px auto 0;
}

.feedback-slider-track {
    display: flex;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    gap: 30px;
}

.feedback-card {
    flex: 0 0 calc(33.333% - 20px);
    background: #EEEEEE;
    /* Matched the grey background from image */
    padding: 40px 30px;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.feedback-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feedback-info h4 {
    margin: 0;
    font-size: 22px;
    color: #002d12;
    /* Dark Green from image */
    font-weight: 800;
}

.feedback-info span {
    color: #ff6f00;
    /* Orange from image */
    font-size: 14px;
    font-weight: 700;
}

.feedback-text {
    font-size: 15px;
    color: #666;
    /* Muted grey for text */
    line-height: 1.6;
    margin: 0;
}

/* Logo Slider (Specific to Campaign Feedback) */
.logo-slider-container {
    width: 100%;
    max-width: 1100px;
    margin: 60px auto 0;
    overflow: hidden;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.logo-slider-track {
    display: flex;
    align-items: center;
    gap: 100px;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.logo-item {
    flex: 0 0 calc(25% - 75px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item img {
    max-height: 35px;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
    filter: grayscale(0);
}

@media (max-width: 991px) {
    .feedback-card {
        flex: 0 0 calc(50% - 15px);
    }

    .logo-item {
        flex: 0 0 calc(33.333% - 67px);
    }
}

@media (max-width: 767px) {
    .feedback-card {
        flex: 0 0 100%;
    }

    .logo-item {
        flex: 0 0 calc(50% - 50px);
    }

    .logo-slider-track {
        gap: 100px;
    }
}

/* Campaign Two Specific Styles */
.campaign-grid-section {
    padding: 100px 0;
    background-color: var(--white);
}

.campaign-grid-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 380px;
}

.campaign-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.campaign-grid-card:hover img {
    transform: scale(1.1);
}

.campaign-grid-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--white);
    z-index: 2;
}

.campaign-grid-card .category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.campaign-grid-card h3 {
    font-size: 26px;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 800;
}

.campaign-grid-card .action-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.campaign-grid-card .action-link i {
    font-size: 16px;
}

.campaign-grid-card .action-link:hover {
    color: var(--primary-color);
}

/* Action Stats Section */
.action-stats-section {
    padding: 100px 0;
    background-color: #002d12;
    color: var(--white);
    position: relative;
    /* overflow: hidden; */
}

.action-stats-section h2 {
    color: var(--white);
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 800;
}

.action-stats-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    padding-right: 50px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
    margin-bottom: 30px;
}

.stat-item .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.stat-item .label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-image-slider {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.action-image-slider img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Introduction Icon Boxes */
.intro-icon-box {
    padding: 40px;
    background: #f8f8f8;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.intro-icon-box:hover {
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.intro-icon-box .icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 30px;
    margin-bottom: 30px;
}

.intro-icon-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.intro-icon-box p {
    color: #666;
    margin-bottom: 25px;
}

.intro-icon-box .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 0;
}

.contact-form .form-control {
    padding: 1rem .75rem;
}

.contact-form .form-control:hover {
    border-color: var(--primary-color);
    transition: border-color 0.3s ease;
}
/* Archive & Gallery Styles */
.archive-filters .filter-btn {
    background: #f8f9fa;
    border: 2px solid #eee;
    padding: 8px 25px;
    margin: 5px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #555;
    cursor: pointer;
}

.archive-filters .filter-btn.active,
.archive-filters .filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.archive-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: #000;
}

.archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-item:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.archive-item .item-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(var(--primary-rgb, 40, 167, 69), 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.archive-item .item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.archive-item:hover .item-info {
    transform: translateY(0);
}

.archive-item .item-info h5 {
    color: #ffca28;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.category-section h3 {
    color: var(--primary-color, #28a745);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.archive-item .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.archive-item:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

/* Document Style */
.archive-item[data-type="document"] {
    aspect-ratio: 3/4;
    background: #fdfdfd;
    border: 1px solid #ddd;
}

.archive-item[data-type="document"] img {
    object-fit: contain;
    padding: 10px;
}

/* Modal Viewer */
#archiveModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
}

#archiveModal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 101;
}

#archiveModal .viewer-container {
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#archiveModal .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    border-radius: 5px;
}

#archiveModal .nav-btn:hover {
    background: var(--primary-color);
    width: 60px;
}

#archiveModal .prev-btn {
    left: 20px;
}

#archiveModal .next-btn {
    right: 20px;
}

#archiveModal img,
#archiveModal video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#archiveModal iframe {
    width: 80%;
    height: 90%;
    border-radius: 8px;
    border: none;
    background: #fff;
}

#archiveModal .modal-info {
    color: #fff;
    text-align: center;
    padding: 0 60px;
}

#archiveModal .item-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

/* Content Protection */
body.copy-protected {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media print {
    body.copy-protected {
        display: none !important;
    }
}
