:root {
    --primary-green: #2E7D32;
    --secondary-green: #81C784;
    --accent-gold: #FFD54F;
    --dark-text: #263238;
    --light-bg: #F5F5F6;
    --transition: all 0.3s ease-in-out;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--dark-text);
}

/* Responsive Fixes */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-content {
        text-align: center;
        padding: 3rem;
    }
    .hero-section {
        height: 80vh;
    }
}

@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .navbar-nav {
        text-align: center;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        padding-left: 0;
    }
    .core-values .value-box {
        margin-bottom: 20px;
    }
    .impact-item {
        padding: 1.5rem;
    }
    .impact-item .display-6 {
        font-size: 1.8rem;
    }
    .modal-content {
        width: 90%;
        margin: auto;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-section {
        height: auto;
        padding: 4rem 0;
    }
    .navbar-collapse {
        text-align: center;
    }
    .about-section {
        padding: 40px 0;
    }
    .about-text h2 {
        font-size: 2rem;
    }
    .about-image {
        max-width: 80%;
        margin: 0 auto 20px;
    }
    .contact-section {
        padding: 3rem 0;
    }
    .impact-section h3 {
        font-size: 1.5rem;
    }
    .impact-item .display-6 {
        font-size: 1.5rem;
    }
    .services-section .service-card img {
        height: 200px;
    }
    .btn {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-section {
        text-align: center;
        padding: 5rem 0;
    }
    .team-card {
        margin-bottom: 20px;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
    }
    .btn {
        padding: 0.5rem 1rem;
    }
    .testimonial-text {
        font-size: 1rem;
    }
    .partner-box img {
        width: 80%;
        margin: auto;
    }
    .services-section .service-card img {
        height: 180px;
    }
    .navbar-toggler {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    .modal-content {
        width: 95%;
    }
}

/* Header */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-green) !important;
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green) !important;
    transform: translateY(-2px);
}
.navbar {
    padding: 1rem 0;
    transition: background 0.3s ease-in-out;
    background: rgba(255,255,255,0.95);
}
        
.navbar.scrolled {
    background-color: var(--secondary-green) !important;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-expand-lg {
    background: rgba(255, 255, 255, 0.95);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(46, 125, 50, 0.8)),
                url('asset/images/Farm1.jpg') center/cover;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
/* CTA Button */
.btn-warning {
    background-color: var(--accent-gold);
    color: #000;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-warning:hover {
    background-color: #e6b800;
    color: white;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease;
    overflow: hidden;
    background: var(--light-bg);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Impact Section */
.impact-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.impact-item:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-5px);
}

/* Modern Contact Form */
.contact-section {
    background: var(--light-bg);
    padding: 5rem 0;
}

.contact-form input,
.contact-form textarea {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-green);
    box-shadow: none;
}

.about-section {
    background-color: #fff;
    padding: 60px 0;
}
.about-section .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.about-image {
    flex: 1 1 50%;
    max-width: 50%;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
}
.about-text {
    flex: 1 1 50%;
    max-width: 50%;
    padding-left: 30px;
}
.about-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Core Values Styles */
.core-values {
    margin-top: 50px;
}
.core-values .value-box {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.2s;
}
.core-values .value-box:hover {
    transform: translateY(-10px);
}
.core-values i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}
.core-values h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.core-values p {
    font-size: 1rem;
    color: #6c757d;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: white;
    padding: 0.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Impact Section Styles */
.impact-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.impact-section h3 {
    margin-bottom: 40px;
    font-weight: 700;
    color: #333;
}

.testimonial {
    padding: 20px 40px;
}

.testimonial img {
    object-fit: cover;
    border: 3px solid #66bb6a;
    width: 100px;
    height: 100px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: #66bb6a;
}

.carousel-indicators [data-bs-target] {
    background-color: #66bb6a;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%);
}

/* Services Section Styles */
.services-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.services-section h2 {
    margin-bottom: 40px;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
}

.services-section h2::after {
    content: '';
    width: 50%;
    height: 3px;
    background-color: #66bb6a;
    position: absolute;
    left: 25%;
    bottom: -10px;
}

.service-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 50px;
    color: #66bb6a;
}

.service-box h3 {
    margin-top: 20px;
    font-weight: 600;
    color: #333;
}

.service-box p {
    color: #555;
    margin-top: 15px;
}

.service-box .btn {
    transition: background-color 0.3s, color 0.3s;
}

.service-box .btn:hover {
    background-color: #66bb6a;
    color: #fff;
}

@media (max-width: 767px) {
    .service-box {
        margin-bottom: 30px;
    }
}

/* General Styles */
.text-accent {
    color: var(--primary-green);
}

.fw-bold {
    font-weight: bold;
}

/* Team Section Styles */
.team-section {
    background-color: var(--light-bg); 
}

.team-card {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    width: 60%;
    border-radius: 50%;
    margin-bottom: 15px;
    margin-left: 45px;
}
.team-member {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center; /* Centers the images horizontally */
    text-align: center; /* Ensures text is centered */
}

.team-member img {
    width: 150px; /* Adjust the size as needed */
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

/* Partners Section Styles */
.partners-section {
    background-color: var(--light-bg);
}

.partner-box img {
    width: 100%;
    padding: 20px;
    filter: grayscale(10%);
    transition: filter 0.3s, transform 0.3s;
}

.partner-box img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* KorrectFarmer */
.hero-section{
    padding-top: 6rem;
}

/* Hidden Sidebar for Categories - Moved to Left and Themed */
.sidebar-categories {
    position: fixed;
    top: 0;
    left: 0; /* Moved to left */
    width: 280px;
    height: 100%;
    background-color: var(--primary-green); /* Matches website theme */
    color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    transform: translateX(-250px); /* Hidden off-screen */
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 2rem 1rem;
}
.sidebar-categories:hover {
    transform: translateX(0);
}
.sidebar-categories h5 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}
.sidebar-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories li {
    margin-bottom: 1rem;
}
.sidebar-categories a {
    text-decoration: none;
    color: #ecf0f1;
    font-size: 1rem;
    display: block;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}
.sidebar-categories a:hover {
    background: rgba(236, 240, 241, 0.2);
    border-radius: 4px;
}

/* Cart Icon - Fixed Position */
.cart-icon {
    position: fixed;
    top: 6rem;
    right: 3rem;
    z-index: 1100;
}
.cart-icon a {
    font-size: 2rem;
    background: #bbefb1;
    padding: 0.75rem;
    border-radius: 70%;
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
}
.cart-icon .badge {
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Buttons */
.btn-warning {
    background-color: var(--accent-gold);
    color: #000;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-warning:hover {
    background-color: #e6b800;
    color: white;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .sidebar-categories {
        width: 220px;
        transform: translateX(-220px);
    }
    .sidebar-categories:hover {
        transform: translateX(0);
    }
    .cart-icon {
        top: 4rem;
        right: 1rem;
    }
}

/* Additional inline styles */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
  }
  .product-card img {
    height: 220px;
    object-fit: cover;
  }
  .filter-bar input {
    border-radius: 50px;
    padding: 0.5rem 1rem;
  }

  /* Fixed Cart Icon */
  .cart-icon {
    position: fixed;
    top: 6rem;
    right: 3rem;
    z-index: 1100;
  }
  .cart-icon a {
    font-size: 2rem;
    background: #bbefb1;
    padding: 0.75rem;
    border-radius: 70%;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  }
  .cart-icon .badge {
    position: absolute;
    top: -10px;
    right: -10px;
  }
  /* Wishlist Button on Product Cards */
  .wishlist-btn {
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 1.25rem;
  }
   
 /* Main content styles */
 #main-content {
    transition: opacity 0.5s ease;
  }
  /* Subscription overlay styling */
  #subscription-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    z-index: 10000;
    text-align: center;
    padding-top: 20%;
  }
  #subscription-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  #subscription-overlay p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
  .swiper-container {
    margin-left: 20rem;
  }