@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
/* --- RESET --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    color: #333;
    line-height: 1.6;
    background-color: #f7f7f7;
    overflow-x: hidden; /* Prevent horizontal scrolling on small screens */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}


ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p{
    font-weight: normal;
}

/* --- VARIABLES & UTILITIES --- */
:root {
    --green-theme: #0c7c4b;
    --yellow-theme: #f7b924;
    --black-text: #222;
    --light-bg: #f9f9f9;
    --dark-bg: #333;
    --white: #ffffff;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-green { color: var(--green-theme); }
.text-white { color: var(--white); }
.text-black { color: var(--black-text); }
.green-bg { background-color: var(--green-theme); }
.black-bg { background-color: var(--black-text); }
.card { background: var(--white); padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Buttons */
.btn-readmore {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--green-theme);
    color: var(--white);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 13px;
    border-radius: 4px;
    margin-top: 15px;
}

.btn-readmore:hover {
    background-color: var(--green-theme);
    color: var(--white);
}

.btn-primary-yellow {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--yellow-theme);
    color: var(--black-text);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 15px;
}

.btn-primary-yellow:hover {
    background-color: var(--yellow-theme);
}

/* Titles */
.section-title {
    background: var(--green-theme);
    margin-bottom: 30px
}

.section-title h3 {
    /* width: fit-content; */
    font-size: 18px;
    /* background: var(--green-theme); */
    color: var(--white);
    padding: 10px 20px;
    text-transform: uppercase;
}

.title-box {
    padding: 15px 25px;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 25px;
}

.title-box h3 {
    margin-bottom: 0;
}

/* Separators */
.footer-separator {
    width: 60px;
    height: 3px;
    margin: 10px 0 20px;
}

.yellow-sep {
    background-color: var(--yellow-theme);
}

/* --- 1. TOP BAR --- */
.top-bar {
    background-color: var(--green-theme);
    color: var(--white);
    font-size: 12px;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
}

.top-bar a:hover {
    color: var(--yellow-theme); /* Default hover color (Green) */
}


.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.top-contacts a {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}



.top-contacts i,
.top-right-links i {
    margin-right: 6px;
    font-size: 13px;
}

.top-right-links a {
    margin-left: 20px;
}

.top-socials {
    display: inline-flex;
    margin-left: 20px;
    gap: 10px;
}

.top-socials a i {
    margin-right: 0;
}

/* --- 2. HEADER --- */
.main-header {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--light-bg);
}

.main-header-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo-text{
    color: var(--black-text);
}

.logo-text:hover{
    color: var(--green-theme);
}

.logo-text h1 {
    font-size: 15px;
    font-weight: bolder;
    letter-spacing: -0.5px;
    margin: -8px 0; 
}

.logo-text p {
    font-size: 10px;
    color: var(--green-theme);
    text-transform: uppercase;
    margin-top: 5px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-size: 12px;
    font-weight: bold;
    color: var(--black-text);
    padding: 8px 10px;
}

/* .main-nav a.active, */
.main-nav a:hover {
    color: var(--white);
    background: var(--green-theme);
    
}

.mobile-menu-icon {
    display: none; /* Hidden on desktop */
    font-size: 24px;
    cursor: pointer;
}





/* --- 3. HERO / BANNER --- */

.hero-banner {
    background-color: #ddd; /* Basic background before image loads */
    /* max-height: 75vh; */
    overflow: hidden;
}


.hero-banner img {
    width: 100%; 
    object-fit: cover;
    object-position: center;
}

.building-facade-side {
    width: 200px; /* Specific width for the pattern bar */
    background-color: #eee; /* Basic pattern background color */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 10px;
}

.facade-element {
    background-color: var(--yellow-theme);
    border: 1px solid var(--dark-bg); /* Dark outline like the image */
    height: 60px;
}


/* =========================
   HERO BANNER SLIDER
========================= */

.hero-banner-slider{
    margin-top: 130px;
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
}

/* Slide Item */
.hero-slide-item{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: heroSlider 32s infinite;
}

/* Delay each slide */
.hero-slide-item:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide-item:nth-child(2) {
    animation-delay: 4s;
}

.hero-slide-item:nth-child(3) {
    animation-delay: 8s;
}

.hero-slide-item:nth-child(4) {
    animation-delay: 12s;
}

.hero-slide-item:nth-child(5) {
    animation-delay: 16s;
}

.hero-slide-item:nth-child(6) {
    animation-delay: 20s;
}

.hero-slide-item:nth-child(7) {
    animation-delay: 24s;
}

.hero-slide-item:nth-child(8) {
    animation-delay: 28s;
}


/* Background Image */
.hero-slide-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    animation: zoomEffect 16s infinite;
}

/* Dark Overlay */
.hero-slide-item::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.103);
    z-index: 1;
}

/* Content */
.slide-content{
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    max-width: 650px;

    animation: contentFade 1.2s ease;
}

.slide-content h1{
    font-size: 3rem;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: left;
}

.slide-content p{
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #f1f1f1;
}

/* Button */
/* .slide-content .btn{
    display: inline-block;
    padding: 14px 34px;
    background: #2ecc71;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.4s ease;
} */

/* .slide-content .btn:hover{
    background: #27ae60;
    transform: translateY(-3px);
} */

/* =========================
   SLIDE ANIMATION
========================= */

@keyframes heroSlider{
    0%{
        opacity: 0;
    }
    5%{
        opacity: 1;
    }
    25%{
        opacity: 1;
    }
    30%{
        opacity: 0;
    }
    100%{
        opacity: 0;
    }
}

/* Background Zoom */
@keyframes zoomEffect{
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(1.15);
    }
}

/* Content Animation */
@keyframes contentFade{
    from{
        opacity: 0;
        transform: translateY(-50%) translateX(-40px);
    }
    to{
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}




/* --- 4. NEWS & SERVICES --- */
.news-services {
    display: flex;
    gap: 30px;
    margin: 50px auto;
}

.news-block {
    flex: 3;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 25px;
}

.news-item-large {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.news-item-large img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease-in;
}

.news-item-large img:hover{
    transform: scale(1.05);
}

.news-item-large h4:hover, .news-item-large p:hover{
    text-decoration: underline;
}

.news-content-card {
    padding: 20px;
}

.news-content-card h4 {
    font-size: 16px;
    color: #222;
    font-weight: 700;
}

.date {
    font-size: 12px;
    color: #888;
    margin: 5px 0 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.news-headlines {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.headline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 10px;
    border-radius: 4px;
    transition: 0.3s ease-in;
}

.headline-item:hover{
    background: #e9e7e7;
    text-decoration: underline;
}

.headline-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.headline-text p.date {
    margin: 0;
}

.headline-text h5 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
    margin-top: 3px;
}

.view-more-news {
    font-size: 12px;
    /* font-weight: bold; */
    display: inline-block;
    color: var(--yellow-theme);
    background: var(--green-theme);
    padding: 8px 15px;
    /* margin-top: 10px; */
    /* border-bottom: 2px solid transparent; */
}

.view-more-news:hover {
    background: var(--yellow-theme);
    color: var(--green-theme)
}

.services-block {
    flex: 1.2;
}

.service-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--white);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
}

.service-links a:hover {
    background-color: #f1f1f1;
    color: var(--green-theme);
}

.service-links i {
    font-size: 18px;
    color: var(--green-theme);
}

.view-all-services {
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
}

/* --- 5. PROJECTS & LEADERSHIP --- */
.projects-leadership {
    padding: 60px 0;
    color: var(--white);
}

.projects-and-leadership-inner {
    display: flex;
    gap: 30px;
}

.projects-block {
    flex: 3;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.3s ease-in;
}


.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease-in;
}

.project-item:hover.project-item img{
    transform: scale(1.15);
}

.project-item:hover{
    color: var(--yellow-theme);
}





.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.856), transparent);
}

.project-overlay h5 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.project-overlay p {
    font-size: 12px;
    color: var(--white);
}

.leadership-block {
    flex: 1;
}

.leader-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.leader-card {
    background-color: var(--white);
    color: var(--dark-bg);
    text-align: center;
    padding: 25px;
    border-radius: 5px;
}

.leader-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--light-bg);
    transition: all 0.3s ease-in-out;
}

.leader-card h4 {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: #888;
}

.leader-card:hover .leader-photo{
    border: 3px solid var(--green-theme);
}

/* .leader-separator {
    width: 40px;
    height: 2px;
    background-color: var(--green-theme);
    margin: 8px auto 12px;
} */

.leader-name {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.view-profile {
    font-size: 12px;
    font-weight: 500;
    color: var(--green-theme);
}

/* --- 6. NOTICES & EVENTS --- */
.notices-events {
    display: flex;
    gap: 30px;
    margin: 60px auto;
}

.events-main {
    flex: 3;
    background: var(--light-bg);
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

.event-details {
    position: relative;
    margin-top: -100px; /*Partially overlay the image */
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background: #ffffffd2;
}

.event-details h4 {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    text-align: center;
    /* margin-bottom: 10px; */
}

.event-details p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.location-detail, .date-detail {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.notices-list {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notice-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
}

.notice-card p {
    font-size: 12px;
    color: #777;
}

.notice-card .btn-readmore {
    font-size: 11px;
    padding: 7px 15px;
}

/* --- 7. FOOTER --- */
.main-footer {
    background-color: var(--black-text);
    color: #aaa;
    padding: 70px 0 30px;
    font-size: 13px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-logo {
   width: 60px;
}

.footer-logo-link{
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-text h1 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.about-footer .btn-readmore {
    margin-top: 20px;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.about-footer .btn-readmore:hover {
    background-color: var(--white);
    color: var(--black-text);
}

.links-footer ul li {
    margin-bottom: 10px;
}

.links-footer a:hover {
    color: var(--white);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-list i {
    color: var(--yellow-theme);
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #aaa;
}

.sub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
}


/* population-section */

.population-section{
    background: var(--green-theme);
}

.population-items{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.population-section-item{
    color: var(--white);
    text-align: center;
    padding: 30px;
    border-right: 1px solid var(--white);
    border-left: 1px solid var(--white);
    font-size: 1.2rem;
}
.population-section-item p{
    color: var(--yellow-theme);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--green-theme);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none; /* Hidden until scroll */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background-color: var(--black-text);
}







/* ============================= Send us a message styling */

.send-us-message{
    position: fixed;
    bottom: 50px;
    left: 50px;
    background: var(--green-theme);
    color: var(--white);
    border-radius:  30px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    transition: all .3s ease;
    z-index: 99;

}

.send-us-message:hover{
    background: var(--yellow-theme);
    color: var(--green-theme);
    transform: scale(1.08);
}

.contact-us-form{
    display: none;
    width: 500px;
    position: fixed;
    z-index: 100;
    bottom: -700px;
    left: 30px;
    transition: all 0.3s ease-in;
}

.activeForm{
    /* display: block; */
    bottom: 60px;


}

.msg-close-btn{
    cursor: pointer;
    font-size: 20px;
    color: var(--black-text);
}




/* --- RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1440px) {
    /* General Container Adjustments */

    /* .container {
        width: 75%;
    } */

}



@media (max-width: 992px) {
    /* General Container Adjustments */

    .container {
        width: 95%;
    }

    /* Main Flex Layouts to Columns */
    .news-services, 
    .projects-and-leadership-inner, 
    .notices-events {
        flex-direction: column;
        gap: 40px;
    }

    /* Column Widths */
    .news-block, .services-block, .projects-block, .leadership-block, .events-main, .notices-list {
        width: 100%;
        flex: none;
    }

    /* News Grid & Large Item Adjustment */
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-item-large img {
        height: 300px;
    }

    /* Project Grid Adjustment */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Leader Card Container Adjustment */
    .leader-cards-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }


    /* Hero banner */

    .slide-content{
        left: 7%;
        max-width: 550px;
    }

    .slide-content h1{
        font-size: 3rem;
    }

    .slide-content p{
        font-size: 1.05rem;
    }

    .leader-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    /* .hero-banner-slider{
    height: 50vh;
    } */
    /* Top Bar Elements Stack or Hide */
    .top-bar-content {
        flex-direction: column;
        height: auto;
        padding: 10px;
        align-items: flex-start;
    }

    .top-contacts {
        display: none; /* Hide contacts for brevity on mobile, show via a menu? */
    }

    .top-right-links {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 5px;
    }

    .top-right-links a {
        margin-left: 0;
    }

    /* Header adjustments for Menu */
    .logo img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 15px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 70%;
        height: 100vh;
        background: rgba(0,0,0,0.9);
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
    }

    /* hero banner */

    .hero-banner-slider{
        height: 70vh;
    }

    .slide-content{
        left: 5%;
        right: 5%;
        max-width: 100%;
        text-align: center;
    }

    .slide-content h1{
        font-size: 2.4rem;
    }

    .slide-content p{
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .slide-content .btn{
        padding: 12px 28px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .main-nav a {
        color: var(--white);
        font-size: 18px;
    }

    .mobile-menu-icon {
        z-index: 1000;
        display: block; /* Show menu icon */
    }

    /* Leader Cards Stack */
    .leader-cards-container {
        flex-direction: column;
    }

    .send-us-message{
        display: none;
    }


    .population-items{
        display: none;
    }

    

    /* Farmers Event Adjustments */
    .event-details {
        margin-top: -30px;
        width: 100%;
    }

    /* Footer adjustments */
    .sub-footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .footer-logo-text h1 {
        font-size: 12px;
    }
}


/* Mobile Devices */
@media (max-width: 576px){

    .hero-banner-slider{
        height: 60vh;
    }

    .slide-content h1{
        font-size: 1.8rem;
    }

    .slide-content p{
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .slide-content .btn{
        font-size: 0.9rem;
        padding: 10px 22px;
    }
}

/* Small Phones */
@media (max-width: 400px){

    .slide-content h1{
        font-size: 1.5rem;
    }

    .slide-content p{
        font-size: 0.85rem;
    }
}
