﻿/* Header Section */
.header-section {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.header-carousel {
    position: relative;
    z-index: 1;
}

    .header-carousel .header-carousel-item,
    .header-carousel .header-carousel-item img {
        height: 550px;
    }

        .header-carousel .header-carousel-item img {
            width: 100%;
            object-fit: cover;
        }

/* Page Title Overlay */
.page-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.page-title-content {
    text-align: center;
    color: white;
    padding: 20px;
}

    .page-title-content h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

/* Breadcrumb */
.breadcrumb {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .breadcrumb li {
        color: #fff;
    }

    .breadcrumb a {
        color: #84ba3f;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 25px 0;
}

.white-bg {
    background-color: #fff;
}

.gray-bg {
    background-color: #f5f5f5;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title h2 {
        font-size: 2rem;
        color: #84ba3f;
        margin-bottom: 15px;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 3px;
        background: #84ba3f;
        margin: 15px auto;
    }

/* Layout Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-6 {
    flex: 0 0 50%;
    padding: 0 15px;
}

.col-12 {
    flex: 0 0 100%;
    padding: 0 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    padding: 0 15px;
}

.col-md-8 {
    flex: 0 0 66.666%;
    padding: 0 15px;
}

.col-lg-3 {
    flex: 0 0 25%;
    padding: 0 15px;
    padding-left: 30px;
    /*border-left: 2px solid #e0e0e0;*/
}

.col-lg-6 {
    flex: 0 0 50%;
    padding: 0 15px;
}

.col-lg-9 {
    flex: 0 0 75%;
    padding: 0 15px;
    padding-right: 30px;
}

.text-justify {
    text-align: justify;
}

/* Sidebar Styles */
.sidebar-widget {
    margin-bottom: 30px;
}

    .sidebar-widget h6 {
        font-size: 1.2rem;
        color: #333;
        font-weight: 600;
        margin-bottom: 15px;
    }

/* Widget Search */
.widget-search {
    position: relative;
    margin-bottom: 30px;
}

    .widget-search .fa-search {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        z-index: 1;
    }

    .widget-search .form-control {
        width: 100%;
        padding: 12px 15px 12px 40px;
        border: 2px solid #e0e0e0;
        border-radius: 25px;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .widget-search .form-control:focus {
            outline: none;
            border-color: #84ba3f;
            box-shadow: 0 0 0 3px rgba(132, 186, 63, 0.1);
        }

        .widget-search .form-control::placeholder {
            color: #999;
        }

/* Widget Tags */
.widget-tags {
    margin-top: 15px;
}

    .widget-tags ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

        .widget-tags ul li {
            display: inline-block;
        }

            .widget-tags ul li a {
                display: inline-block;
                padding: 8px 16px;
                background: #f5f5f5;
                color: #333;
                text-decoration: none;
                border-radius: 20px;
                font-size: 13px;
                transition: all 0.3s ease;
                border: 1px solid #e0e0e0;
            }

                .widget-tags ul li a:hover {
                    background: #84ba3f;
                    color: white;
                    border-color: #84ba3f;
                    transform: translateY(-2px);
                    box-shadow: 0 2px 8px rgba(132, 186, 63, 0.3);
                }

/* Intro Image Wrapper */
.intro-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 320px;
}

    .intro-image-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(132, 186, 63, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
        z-index: 1;
        transition: opacity 0.3s ease;
    }

    .intro-image-wrapper:hover::before {
        opacity: 0;
    }

.intro-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.intro-image-wrapper:hover .intro-image {
    transform: scale(1.05);
}

/* Funding Support Boxes */
.funding-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    height: 100%;
}

    .funding-box h5 {
        color: #84ba3f;
        margin-bottom: 20px;
        font-size: 1.3rem;
    }

    .funding-box ul {
        list-style: none;
        padding-left: 0;
    }

        .funding-box ul li {
            padding-left: 25px;
            position: relative;
            margin-bottom: 12px;
        }

            .funding-box ul li::before {
                content: '✓';
                position: absolute;
                left: 0;
                color: #84ba3f;
                font-weight: bold;
            }

/* Project Cards */
.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.project-content {
    display: flex;
    flex-wrap: wrap;
}

.project-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

    .project-image::before,
    .project-image::after {
        content: none !important;
    }

    .project-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        transition: none;
        filter: none;
    }

.project-card:hover .project-image::after {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-color: rgba(132, 186, 63, 0.6);
}

.project-card:hover .project-image img {
    transform: scale(1.08) rotate(1deg);
    filter: grayscale(0%) brightness(1);
}

.project-info {
    flex: 0 0 60%;
    padding: 20px;
    background: #f8f8f8;
}

    .project-info h4 {
        color: #333;
        margin-bottom: 20px;
        font-size: 1.4rem;
    }

.project-meta {
    list-style: none;
    padding: 0;
}

    .project-meta li {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

        .project-meta li:last-child {
            border-bottom: none;
        }

    .project-meta strong {
        color: #84ba3f;
    }

.project-description {
    padding: 30px;
    background: #f9f9f9;
}

.outcomes-list {
    list-style: none;
    padding-left: 0;
}

    .outcomes-list li {
        padding: 10px 0 10px 30px;
        position: relative;
    }

        .outcomes-list li::before {
            content: '•';
            position: absolute;
            left: 10px;
            color: #84ba3f;
            font-size: 1.5rem;
            line-height: 1;
        }

/* Contact Box */
.contact-box {
    border: 2px solid #84ba3f;
    padding: 30px;
    border-radius: 8px;
    background: #fff;
    margin-top: 40px;
}

    .contact-box h5 {
        color: #333;
        margin-bottom: 20px;
    }

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

    .contact-item:last-child {
        border-bottom: none;
    }

.contact-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.contact-email {
    color: #84ba3f;
    text-decoration: none;
}

    .contact-email:hover {
        text-decoration: underline;
    }

/* Action Box - Green Ribbon Style */
.action-box {
    position: relative;
    padding: 50px 0;
    background: linear-gradient(135deg, #84ba3f 0%, #6fa030 100%);
    overflow: hidden;
    background-image: linear-gradient(135deg, #84ba3f 0%, #6fa030 100%), repeating-linear-gradient( 45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px );
}

    .action-box::before,
    .action-box::after {
        content: '';
        position: absolute;
        width: 100px;
        height: 100%;
        background: rgba(255, 255, 255, 0.05);
        transform: skewX(-15deg);
    }

    .action-box::before {
        left: -50px;
        top: 0;
    }

    .action-box::after {
        right: -50px;
        top: 0;
    }

    .action-box .row {
        align-items: center;
        gap: 20px;
    }

    .action-box .col-md-8 {
        flex: 0 0 calc(66.666% - 10px);
    }

    .action-box .col-md-4 {
        flex: 0 0 calc(33.333% - 10px);
    }

.action-box-text h3 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .button:hover {
        background: white;
        color: #84ba3f;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        text-decoration: none;
    }

    .button i {
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    .button:hover i {
        transform: translateY(2px);
    }

.action-box .ribbon-fold-left,
.action-box .ribbon-fold-right {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.action-box .ribbon-fold-left {
    left: 0;
    top: 0;
    border-width: 20px 20px 0 0;
    border-color: #6fa030 transparent transparent transparent;
}

.action-box .ribbon-fold-right {
    right: 0;
    top: 0;
    border-width: 0 20px 20px 0;
    border-color: transparent #6fa030 transparent transparent;
}

.text-md-end {
    text-align: right;
}

/* Factsheet */
.factsheet {
    margin-top: 20px;
}

    .factsheet img {
        transition: transform 0.3s ease;
    }

        .factsheet img:hover {
            transform: scale(1.02);
        }

/* Links */
a {
    color: #84ba3f;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Utility Classes */
.text-white {
    color: #ffffff;
}

.text-center {
    text-align: center;
}

.text-success {
    color: #84ba3f;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-40 {
    margin-top: 40px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-3 {
    padding-top: 1rem;
}

.sm-mt-40 {
    margin-top: 40px;
}

.page-section-ptb {
    padding: 60px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .col-lg-3,
    .col-lg-6,
    .col-lg-9 {
        flex: 0 0 100%;
        border-left: none;
        padding-left: 15px;
        padding-right: 15px;
    }

    .col-lg-3 {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .page-title-content h1 {
        font-size: 1.8rem;
    }

    .col-6,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
    }

    .project-image,
    .project-info {
        flex: 0 0 100%;
    }

        .project-image img {
            height: 250px;
        }

    .intro-image-wrapper {
        height: 250px;
        margin-top: 20px;
    }

    .action-box {
        padding: 35px 0;
    }

    .action-box-text h3 {
        font-size: 24px;
        text-align: center;
    }

    .text-md-end {
        text-align: center;
    }

    .action-box .col-md-8,
    .action-box .col-md-4 {
        flex: 0 0 100%;
    }

    .widget-tags ul {
        justify-content: center;
    }
}

.page-title-content {
    text-align: center;
    color: white;
    padding: 20px;
}

    .page-title-content h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

.project-card {
    border-radius: 10px;
    transition: all 0.4s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

.image-box {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f8f8f8;
    flex-shrink: 0;
}

.equal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .equal-img {
    transform: scale(1.05);
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.read-more-link {
    color: #84ba3f;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #5b892b;
    text-decoration: underline;
}

.hover-link:hover {
    color: #84ba3f !important;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .image-box {
        height: 220px;
    }

    .page-title-content h1 {
        font-size: 2.5rem;
    }
}

/* Match global section spacing and layout */
.page-section-ptb {
    padding-top: 80px;
    padding-bottom: 80px;
}

.gray-bg {
    background-color: #f9f9f9;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-wrapper {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.external-carousel-btn {
    position: static;
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

    .external-carousel-btn:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .external-carousel-btn .carousel-control-prev-icon,
    .external-carousel-btn .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

@media (max-width: 768px) {
    .carousel-container {
        gap: 10px;
    }

    .external-carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* Accordion look & feel */
.accordion-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
}

    .accordion-item:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

.accordion-button {
    background-color: #f8faf8;
    color: #333;
    font-size: 1rem;
    border-radius: 10px;
}

    .accordion-button:not(.collapsed) {
        color: #84ba3f;
        background-color: #f0f6ed;
        box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 0.2rem rgba(132,186,63,.25);
    }

.accordion-body {
    padding: 1.5rem 1.25rem;
}

    .accordion-body p {
        color: #444;
        font-size: 0.96rem;
        line-height: 1.55;
    }

/* Image layout */
.small-img {
    max-width: 160px;
    height: auto;
    transition: transform 0.2s ease;
}

    .small-img:hover {
        transform: scale(1.04);
    }

.news-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.news-carousel .owl-stage-outer {
    padding: 10px 0;
}

/* Arrows */
.news-carousel .owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: -50px;
    right: -50px;
    transform: translateY(-50%);
    pointer-events: none;
}

    .news-carousel .owl-nav button {
        background: #198754 !important;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
        border: none;
        pointer-events: all;
    }

        .news-carousel .owl-nav button:hover {
            background: #157347 !important;
            transform: scale(1.1);
        }

        .news-carousel .owl-nav button i {
            color: white;
            font-size: 1rem;
        }

.news-carousel .owl-dots {
    display: none !important;
}

/* Cards */
.news-card-wrapper {
    cursor: pointer;
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.news-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: #f9f9f9;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    }

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

/* Overlay */
.news-card-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
    padding: 20px 18px;
    color: #fff;
    transition: bottom 0.4s ease;
}

.news-card:hover .news-card-overlay {
    bottom: 0;
}

.news-card-title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* Modal */
.news-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1060;
    background: rgba(255,255,255,0.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .news-modal-close:hover {
        background: white;
        transform: rotate(90deg);
    }

.news-modal-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.news-modal-content-wrapper {
    padding: 3rem 3rem 4rem;
    background: #fff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .news-card {
        height: 280px;
    }

    .news-card-overlay {
        bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    }

    .news-card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .news-card {
        height: 260px;
    }

    .news-carousel .owl-nav {
        left: -30px;
        right: -30px;
    }
}

@media (max-width: 576px) {
    .news-carousel-container {
        padding: 10px;
    }

    .news-card {
        height: 240px;
    }

    .news-modal-content-wrapper {
        padding: 1.5rem;
    }

    .news-modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .news-carousel .owl-nav {
        left: -15px;
        right: -15px;
    }
}