/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Merriweather:wght@400;700&display=swap');

/* --- Theme Colors & Variables --- */
:root {
    --agro-primary: #2C5E1A;
    --agro-secondary: #7A5548;
    --agro-accent: #F4A261;
    --text-dark: #333;
    --text-light: #fff;
    --border-light: #e0e0e0;
    --navbar-height: 70px; /* Navbar height variable */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #fdfcfb;
    /* REMOVED: padding-top from here. It's now handled per section. */
}

/* UPDATED: Common section padding */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}
/* The hero slider should have no padding */
#home {
    padding-top: 0;
    padding-bottom: 0;
}
/* Products section has a different background, so padding is handled inline */
#products {
    padding-top: 80px;
    padding-bottom: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--agro-primary);
}

/* UPDATED: Navbar styling */
.navbar {
    background-color: var(--agro-primary) !important;
    min-height: var(--navbar-height);
    transition: all 0.3s;
}
.navbar .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: color 0.3s;
    margin: 0 5px;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--text-light); }
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }

/* Hero Slider */
#heroCarousel {
    height: 100vh;
    /* This makes sure the slider starts from the very top */
    margin-top: calc(-1 * var(--navbar-height));
}
.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    padding-top: var(--navbar-height); /* Push content down to avoid navbar */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.carousel-caption h1 { color: var(--text-light); }

/* Feature Card (About/Vision/Mission) */
.feature-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(44, 94, 26, 0.15); }
.feature-card-image { height: 180px; overflow: hidden; }
.feature-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.feature-card:hover .feature-card-image img { transform: scale(1.1); }
.feature-card-content { padding: 2rem 1.5rem; position: relative; text-align: center; }
.feature-card .icon-box { width: 80px; height: 80px; background-color: var(--agro-primary); color: var(--text-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); border: 5px solid #fff; }
.feature-card h4 { margin-top: 2rem; }
.feature-card p { font-size: 0.9rem; color: #666; }

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.product-card .card-img-top { height: 250px; object-fit: cover; border-radius: 10px 10px 0 0; cursor: pointer; }
.product-card .card-title { font-size: 1.1rem; color: var(--agro-secondary); }
.product-details { border-top: 1px dashed var(--border-light); padding-top: 1rem; }
.mrp-price { font-weight: 500; color: #d9534f; }
.dp-price { font-size: 1.2rem; font-weight: 700; color: var(--agro-primary); }
.bv-value { color: var(--agro-accent); font-weight: 700; }

/* UPDATED: Team member image fix */
.team-member img {
    width: 180px;           /* Fixed width */
    height: 180px;          /* Fixed height */
    object-fit: cover;      /* Prevents stretching/squashing */
    border-radius: 50%;     /* Makes it a perfect circle */
    border: 5px solid #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    margin-bottom: 1.5rem;
}
.team-member:hover img { transform: scale(1.05); }
.team-member .social-icons a { color: #333; margin: 0 10px; font-size: 1.2rem; transition: color 0.3s; }
.team-member .social-icons a:hover { color: var(--agro-primary); }

/* Other styles (News, Footer, Lightbox) from previous answer */
.news-card { border-left: 4px solid var(--agro-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
footer { background-color: var(--agro-primary); color: rgba(255, 255, 255, 0.8); }
footer h5 { color: var(--text-light); border-bottom: 2px solid var(--agro-accent); padding-bottom: 10px; }
/* --- FOOTER STYLES: UPDATED FOR SPACING --- */
footer#contact { 
    background-color: var(--agro-primary); 
    color: rgba(255, 255, 255, 0.8); 
    padding-top: 60px; /* Internal padding from top */
    padding-bottom: 30px; /* Internal padding from bottom */
    
    /* ---- THIS IS THE FIX FOR THE SPACING PROBLEM ---- */
    margin-top: 80px; 
    /* This adds a large space between the footer and the section above it */
}

footer h5 { 
    color: var(--text-light); 
    border-bottom: 2px solid var(--agro-accent); 
    padding-bottom: 10px; 
    margin-bottom: 20px;
}
footer p { 
    font-size: 0.9rem; 
}
footer a, footer .social-icons a { 
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover, footer .social-icons a:hover { 
    color: #fff; 
}
.map-container iframe { 
    border-radius: 8px; 
    filter: grayscale(1); 
}