:root {
    --primary-color: #2c7a3f;
    --secondary-color: #96ca50;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from AOS or full-width elements */
}

html {
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    /* Ensure navbar stays on top */
    z-index: 1050;
}

/* Modern Toggler Styles - removing border for cleaner look */
.navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

/* Ensure hamburger icon is always visible on dark background */
.navbar-dark .navbar-toggler-icon {
    /* Updated to pure white, slightly thicker lines for visibility */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 30px;
    height: 30px;
}

.navbar-brand h3 {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    color: #fff;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
}

/* Mobile Dropdown Expansion Animation */
@media (max-width: 991.98px) {
    .navbar-collapse .dropdown-menu {
        display: block;
        /* Override default display:none to allow height transition */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        border: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: top;
    }

    .navbar-collapse .dropdown-menu.show {
        max-height: 500px;
        /* Arbitrary large value to accommodate content */
        opacity: 1;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* -------------------------------------------
   Rich Hero Carousel Styles
------------------------------------------- */
/* Ensure the chain of height:100% works from the root */
.hero-section,
#heroCarousel {
    height: 100vh;
    min-height: 600px;
    position: relative;
    padding: 0;
}

.hero-section #heroCarousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    padding-top: 80px;
    /* Offset for fixed navbar to ensure visual centering is correct */
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease-out;
    /* Slight zoom on default state to allow potential JS manipulation */
}

/* Zoom Effect for Active Slide */
.carousel-item.active .carousel-bg {
    animation: kenBurns 6s ease-out forwards;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Vertical centering fix for carousel content */
#heroCarousel .container {
    position: relative;
    z-index: 2;
}

/* Custom Progressive Indicators */
.custom-indicators {
    bottom: 140px;
    /* Position above the shape divider */
    justify-content: flex-start;
    margin-left: 12%;
    /* Align with container grid roughly */
}

.custom-indicators button {
    width: 60px !important;
    height: 4px !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    margin-right: 15px !important;
    position: relative;
    overflow: hidden;
}

.custom-indicators button.active {
    background-color: rgba(255, 255, 255, 0.3) !important;
    /* Keep base low opacity */
}

.progress-bar-fill {
    display: block;
    height: 100%;
    background-color: var(--secondary-color);
    width: 0;
}

/* Animate the fill only when the button has .active class */
.custom-indicators button.active .progress-bar-fill {
    animation: progressFill 6s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Text Entrance Animations */
.carousel-item.active h1 {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.carousel-item.active p {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.carousel-item.active .btn {
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure controls (if we added them, but indicators are primary) don't overlap messy */
.carousel-control-prev,
.carousel-control-next {
    z-index: 10;
}

@media (max-width: 768px) {
    .custom-indicators {
        bottom: 120px;
        justify-content: center;
        margin-left: 0;
    }

    .hero-section #heroCarousel .carousel-item {
        height: 80vh;
        /* Shorter on mobile */
    }
}

/* Old static hero styles removed - handled by carousel block above */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 27, 16, 0.74);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(150, 202, 80, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.bg-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5029 100%) !important;
}

footer {
    background: var(--dark-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--secondary-color) !important;
}

.inner-banner {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.inner-banner .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #fff;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 122, 63, 0.25);
}

.alert-success {
    background-color: rgba(150, 202, 80, 0.1);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        /* Increased from 70vh for better spacing */
        padding-top: 100px;
        padding-bottom: 80px;
        /* Ensure content clears the wave */
    }

    .shape-divider svg {
        height: 50px;
        /* Reduce wave height on mobile */
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }

    .timeline::before {
        left: 30px;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(150, 202, 80, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.border-success {
    border-color: var(--secondary-color) !important;
}

img {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 12px !important;
}

.leader-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.leader-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(150, 202, 80, 0.1);
}

.contact-info-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.hover-card-dark {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hover-zoom {
    overflow: hidden;
    border-radius: 12px;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* SVG Shapes & Decorations */
.shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.shape-divider .shape-fill {
    fill: #ffffff;
}

.blob-bg {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    width: 100%;
    max-width: 600px;
}

.blob-right {
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.blob-left {
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.pattern-overlay {
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}