:root {
    --primary-green: #009345;
    /* Matches the green in the image */
    --accent-orange: #ff7f00;
    /* Matches the orange buttons */
    --dark-gray: #333333;
    --light-gray: #f4f4f4;
    --text-color: #555;
    --heading-color: #222;
    --footer-bg: #222;
    --section-padding: 80px 0;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-orange);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e06d00;
}

/* Top Bar */
.top-bar {
    background: var(--primary-green);
    color: #fff;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: #fff;
    margin-left: 10px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--heading-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: #fff;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--primary-green);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Hero Slideshow */
#hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Fit whole image */
    background: #fdfdfd;
    /* Light background for gaps */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 8px;
}

.slide.active {
    opacity: 1;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-green);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-video {
    flex: 1;
    position: relative;
}

.hero-video img {
    width: 100%;
    border-radius: 8px;
}

/* Green Strip (Vision/Mission) */
.green-strip {
    background: var(--primary-green);
    color: #fff;
    padding: 40px 0;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.strip-item i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.strip-item h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.strip-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* About / Farmers Section */
.farmers-section {
    padding: 80px 0;
}

.farmers-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.farmers-text {
    flex: 1;
}

.farmers-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.farmers-text .sub-title {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.farmers-img {
    flex: 1;
    position: relative;
}

.stats-cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: var(--primary-green);
    color: #fff;
    padding: 20px;
    width: 150px;
    text-align: center;
    border-radius: 4px;
}

.stat-card h3 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Siri Vikas Section */
.siri-vikas {
    background: #808080;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.siri-vikas img {
    width: 150px;
    margin: 0 auto 20px;
}

.siri-vikas p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: #fff;
}

.products-container {
    display: flex;
    gap: 40px;
}

.products-sidebar {
    flex: 1;
    min-width: 250px;
}

.basket-box {
    position: relative;
}

.basket-box img {
    width: 100%;
    border-radius: 8px;
    filter: brightness(0.7);
}

.basket-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
}

/* Home Page Split Product Layout */
.home-products-top {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch;
    /* Enforce equal height */
}

.home-featured-card {
    flex: 1;
    min-width: 300px;
    position: relative;
}

/* Ensure the absolute image/content in sidebar fills full height */
.home-featured-card .basket-box {
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.home-featured-card img {
    height: 100% !important;
    object-fit: cover;
    border-radius: 12px;
}

.home-featured-card .basket-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    text-align: left;
}

.home-featured-card .basket-content h3 {
    color: var(--accent-orange);
    /* Orange color for 60 Products */
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
}

.home-featured-card .basket-content p {
    color: #fff;
    font-size: 2.2rem;
    /* Large OUR PRODUCTS */
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: 20px;
}

.home-products-grid-4 {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Removed fixed rows so content can flow */
    gap: 20px;
}

.home-products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Matching the Card Style from Image */
.home-products-grid-4 .product-item,
.home-products-grid-3 .product-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    /* Fixed height for consistency */
    display: block;
    box-shadow: none;
    /* Clean look */
}

.home-products-grid-4 .product-item img,
.home-products-grid-3 .product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.home-products-grid-4 .product-item:hover img,
.home-products-grid-3 .product-item:hover img {
    transform: scale(1.05);
}

/* Floating White Label */
.home-products-grid-4 .product-item .product-label,
.home-products-grid-3 .product-item .product-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    /* Rounded label */
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Home Grid */
@media (max-width: 992px) {
    .home-products-top {
        flex-direction: column;
    }

    .home-featured-card {
        width: 100%;
        min-height: 400px;
        /* Provide height when stacked */
    }

    .home-products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .home-products-grid-4,
    .home-products-grid-3 {
        grid-template-columns: 1fr;
    }

    .home-products-grid-4 {
        grid-template-rows: auto;
        /* Allow auto height on mobile */
    }
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: #f9f9f9;
    text-align: center;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 70px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.footer-col ul li:last-child {
    border: none;
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 50px;
    padding-top: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 15px 20px;
    }

    .hero-section {
        flex-direction: column-reverse;
        /* Text on top, or maybe video on top? User said video is on right (desktop), on mobile they want it 'below'. If strictly below text, then column-reverse if text is first in HTML? Wait, HTML is text then video. Default column puts text then video. */
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .hero-section .container {
        width: 100%;
    }

    .hero-content {
        padding: 0 15px;
        margin-bottom: 30px;
        width: 100%;
    }

    .hero-video {
        width: 100%;
        padding: 0 15px;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        /* Ensure above other elements */
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

    .hero-content {
        padding: 0;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .strip-grid {
        grid-template-columns: 1fr;
    }

    .farmers-grid {
        flex-direction: column;
    }

    .products-container {
        flex-direction: column;
    }

    .products-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        /* Smaller gap for mobile */
    }

    .product-card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .product-card img {
        height: 160px;
        /* Smaller image on mobile */
    }

    .product-info {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 1rem;
    }
}

/* Products Page Styles */
.products-layout {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

.sidebar h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
}

.category-list li {
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: 0.3s;
}

.category-list li:hover,
.category-list li.active {
    background: var(--light-gray);
    color: var(--primary-green);
    font-weight: 600;
}

.products-main {
    flex: 3;
}

.products-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Default 2 columns desktop */
    gap: 30px;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #f9f9f9;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.product-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
}

.filtered-out {
    display: none;
}

/* Navigation Dropdown */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-content {
    display: block;
    /* Use opacity/visibility for transition */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    /* Wider for professional feel */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 6px;
    overflow: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.dropdown-content li a {
    color: var(--heading-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-content li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-green);
    border-left-color: var(--primary-green);
    padding-left: 25px;
    /* Slight slide effect */
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h3 {
    color: var(--primary-green);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.styled-form .form-group {
    margin-bottom: 20px;
}

.styled-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.9rem;
}

.styled-form input,
.styled-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: #f9f9f9;
}

.styled-form input:focus,
.styled-form textarea:focus {
    border-color: var(--primary-green);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 147, 69, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.2rem;
    color: #fff;
    background: var(--primary-green);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.info-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 300px;
}

/* Enhanced Modal Styles */
.modal-content {
    width: 90%;
    max-width: 800px;
    /* Wider modal */
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.modal-body {
    display: flex;
    flex-direction: row;
}

.modal-image {
    flex: 1;
    background: #f4f4f4;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1.5;
    padding: 30px;
}

.modal-category {
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.modal-details h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.modal-details p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

.table-container {
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.product-table td:first-child {
    font-weight: 600;
    color: var(--dark-gray);
    width: 40%;
}

.product-table tr:last-child td {
    border-bottom: none;
}


/* Enhanced Responsive */
@media (max-width: 1024px) {
    .products-display {
        grid-template-columns: repeat(2, 1fr);
        /* 2 products per row on tablet/small laptop */
    }
}

@media (max-width: 768px) {
    .products-display {
        grid-template-columns: 1fr;
        /* 1 product per row on mobile */
    }
}

@media (max-width: 768px) {

    /* Navbar Dropdown Mobile */
    .dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: visible;
        /* Vital override */
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.3s ease;
        display: block;
        padding-top: 0;
        padding-bottom: 0;
    }

    .dropdown.active .dropdown-content {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: 5px;
        /* Add small margin for separation */
    }

    .dropdown>a i {
        transition: transform 0.3s ease;
    }

    .dropdown.active>a i {
        transform: rotate(180deg);
    }

    /* Hero Section Mobile Reorder */
    /* Hero Section Mobile Reorder */
    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        /* Video on TOP */
        text-align: center;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 30px;
    }

    .hero-video {
        width: 100%;
        min-width: 100%;
        /* Force full width on mobile */
    }

    .products-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .category-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
        gap: 10px;
    }

    .category-list li {
        margin-bottom: 0;
        border: 1px solid #eee;
    }

    /* Modal Mobile */
    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        height: 250px;
    }

    .modal-details {
        padding: 20px;
    }

    /* About Page Mobile */
    .about-content {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        width: 100%;
        padding-right: 0;
    }

    .about-image {
        margin-bottom: 30px;
    }

    /* Contact Global Grid stack */
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* New Contact Page Mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container {
        height: 250px;
    }

    /* Global Typography adjustments */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

/* About Page Desktop Defaults (ensure flex exists) */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

/* Contact Features Grid Desktop */
.features-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.feature-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    max-width: 400px;
}

/* About Page Cleanup */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-list {
    margin-top: 15px;
    list-style: none;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: #444;
}

.about-list li i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Stats Section Professional */
.stats-container {
    background: linear-gradient(rgba(0, 147, 69, 0.95), rgba(0, 147, 69, 0.9)), url('../images/pattern.png');
    /* Texture overlay if available, else plain gradient */
    background-size: cover;
    padding: 60px 0;
    color: #fff;
    text-align: center;
    margin-top: 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    /* Center the group */
    align-items: center;
    gap: 80px;
    /* Large space between items */
    flex-wrap: nowrap;
    /* Force one row on desktop */
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
    display: block;
}

.stat-item h2 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1;
}

.stat-item p {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Separator lines between stats */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .stats-grid {
        gap: 40px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
        /* Remove separators on smaller screens */
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .stats-grid {
        flex-direction: column;
        /* Stack on mobile */
        gap: 40px;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }
}

/* Hero Video/Slider Container */
.hero-video {
    flex: 1;
    min-width: 50%;
    position: relative;
    height: 400px;
    /* Fixed height for consistency */
    overflow: hidden;
    border-radius: 12px;
    background-color: #f0f0f0;
    /* Fallback color */
}

/* Force Fix for Mobile Hero Slider */
@media (max-width: 768px) {
    .hero-container {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 20px;
    }

    .hero-video {
        flex: none !important;
        /* Don't flex, just be a block */
        display: block !important;
        width: 100% !important;
        height: 350px !important;
        margin-bottom: 0;
        z-index: 5;
        /* Ensure on top */
    }

    #hero-slider {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .slide {
        height: 100% !important;
        width: 100% !important;
        position: absolute !important;
        top: 0;
        left: 0;
        opacity: 0;
    }

    .slide.active {
        opacity: 1 !important;
        /* Visible when active */
    }
}

/* Mobile Modal Fix */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
        /* Prevent modal from being taller than screen */
        overflow-y: auto;
        /* Enable scrolling if content is long */
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image {
        width: 100%;
        height: 250px;
        /* Fixed height for image on mobile */
        flex: none;
    }

    .modal-image img {
        object-fit: contain;
        /* Ensure full image is visible */
        background: #f4f4f4;
        /* Background for whitespace */
    }

    .modal-details {
        padding: 20px;
    }

    .modal-details h2 {
        font-size: 1.5rem;
    }
}