/* 
   Why Choose Contract Farming Section - Redesigned
*/
.why-choose-section {
    background-color: #f4fcf7;
    /* Very light green hint */
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e8f5e9 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

/* Center the last two items if there are 5 */
.why-choose-grid .why-choose-card:nth-child(4) {
    grid-column-start: 1;
    /* Default, will be overridden */
}

/* Desktop: 3 on top, 2 on bottom centered */
@media (min-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(6, 1fr);
        /* Use 6 columns for flexibility */
    }

    .why-choose-card {
        grid-column: span 2;
        /* Each card takes 2 columns = 3 cards per row */
    }

    /* The 4th item (start of 2nd row) starts at column 2 (centered left) */
    .why-choose-grid .why-choose-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    /* The 5th item */
    .why-choose-grid .why-choose-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.why-choose-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(54, 132, 150, 0.15);
    border-color: rgba(54, 132, 150, 0.2);
}

/* Decorative top border */
.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-choose-card:hover::before {
    transform: scaleX(1);
}

.why-choose-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e0f2f1, #e8f5e9);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(54, 132, 150, 0.1);
}

.why-choose-card:hover .icon-wrapper {
    background: var(--primary-green);
    color: #fff;
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px rgba(54, 132, 150, 0.3);
}

.why-choose-card .icon-wrapper i {
    transition: transform 0.4s ease;
}

.why-choose-card:hover .icon-wrapper i {
    transform: rotateY(-180deg);
    /* Counter rotate icon so it stays upright */
}

.why-choose-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.why-choose-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose-card:nth-child(4),
    .why-choose-card:nth-child(5) {
        grid-column: auto;
        /* Reset specifically for tablet */
    }

    /* Center the last item if odd number */
    .why-choose-grid .why-choose-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-card {
        margin-bottom: 0;
    }


}

/* 
   Internal Page Styles (About Us)
*/

/* Page Hero */
.page-hero {
    height: 258px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    margin-bottom: 50px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumbs {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: #fff;
    text-decoration: underline;
}

.breadcrumbs a:hover {
    color: var(--secondary-gold);
}

/* About Profile */
.about-image-stack {
    position: relative;
    height: 500px;
}

.about-image-stack .img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image-stack .img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    object-fit: cover;
    border-radius: 12px;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.exp-badge {
    position: absolute;
    bottom: 50px;
    left: 50px;
    background: var(--secondary-gold);
    color: #fff;
    padding: 20px;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.4);
    z-index: 2;
}

.exp-badge .num {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.exp-badge .text {
    font-size: 0.8rem;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

/* Mission Vision */
.mission-vision-section {
    background-color: #f8f9fa;
}

.mv-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-left: 5px solid var(--primary-green);
    height: 100%;
    transition: transform 0.3s;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--secondary-gold);
    margin-bottom: 20px;
}

.mv-card h3 {
    margin-bottom: 20px;
}

.mv-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Values Section */
.values-section {
    background-color: #2c3e50;
    /* Dark background */
    padding: 80px 0;
    color: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.value-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--secondary-gold);
    margin-bottom: 20px;
}

.value-item h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.value-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* CTA */
.cta-section {
    background: var(--bg-cream);
    padding: 80px 0;
}

/* Responsive */
@media (max-width: 991px) {
    .about-image-stack {
        height: 400px;
        margin-bottom: 50px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2.5rem;
    }

    .about-image-stack {
        height: 300px;
    }

    .exp-badge {
        width: 100px;
        height: 100px;
        bottom: 20px;
        left: 20px;
    }

    .exp-badge .num {
        font-size: 1.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* 
   Contact Page Styles
*/

.contact-info-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary-gold);
}

.contact-info-card .icon-box {
    width: 60px;
    height: 60px;
    background: #f4fcf7;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.contact-info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper .form-control {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    height: auto;
    border-radius: 8px;
}

.contact-form-wrapper .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-green);
    background: #fff;
}

.contact-form-wrapper textarea.form-control {
    min-height: 150px;
}

.map-wrapper {
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 
   Product Page Styles
*/

.product-section {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Table Styles */
.table-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
}

.custom-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border: 1px solid #eee;
}

.custom-table thead {
    background-color: var(--primary-color);
    color: #fff;
}

.custom-table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.custom-table tbody td,
.custom-table tbody th {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f2f2f2;
    color: #555;
    font-weight: 500;
}

.custom-table tbody tr:last-child td,
.custom-table tbody tr:last-child th {
    border-bottom: none;
}

.custom-table tbody tr:hover {
    background-color: #f9fff9;
    transform: translateY(-2px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-content {
    padding: 20px;
    text-align: center;
}

.product-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* 
   Project Detail Page "Stunning" UI 
*/
.blog-text {
    /* Reset generic styles if any */
}

/* Card wrapper for each section (Introduction, Soil, etc.) */
.project-section-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(54, 132, 150, 0.1);
}

/* Section Title with Icon */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    /* Using standard green */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f0f7f4;
    padding-bottom: 15px;
}

.section-title i {
    background: #e8f5e9;
    color: var(--primary-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

/* Content Typography */
.section-text {
    font-size: 1.05rem;
    color: var(--text-light);
    /* #555 usually */
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Stunning Lists */
/* Stunning Lists */
.project-content-styled ul,
.stunning-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.project-content-styled ul li,
.stunning-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.project-content-styled ul li::before,
.stunning-list li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    /* Updated for FA 6 */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--secondary-gold);
    /* Gold color for bullets */
    background: #fffbf0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Economics / Table Images */
.economics-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px dashed #ddd;
    /* Subtle border for images */
}

/* Call to Action Button in Content */
.btn-project-cta {
    background: linear-gradient(135deg, var(--primary-green), #2e7d32);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
    transition: all 0.3s;
}

.btn-project-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.4);
    color: white;
}

/* Dropdown Menu Styles */
.desktop-nav ul li {
    position: relative;
}

.desktop-nav ul li.dropdown>ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.desktop-nav ul li.dropdown:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav ul li.dropdown ul li {
    display: block;
    width: 100%;
}

.desktop-nav ul li.dropdown ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.desktop-nav ul li.dropdown ul li a:hover {
    background: #f8f9fa;
    border-left-color: var(--primary-green);
    color: var(--primary-green);
    padding-left: 25px;
}

/* Mobile Menu Dropdown */
.mobile-menu ul li.dropdown>ul {
    display: none;
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.05);
    margin-top: 5px;
    border-radius: 5px;
}

.mobile-menu ul li.dropdown.active>ul {
    display: block;
}

.mobile-menu ul li.dropdown>a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s;
}

.mobile-menu ul li.dropdown.active>a::after {
    transform: rotate(180deg);
}

.mobile-menu ul li.dropdown ul li a {
    padding: 10px 15px;
    font-size: 14px;
}

/* =========================================================================
   News & Media Page Styles
   ========================================================================= */

.news-card {
    background: #fff;
    border-radius: 15px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.news-image-wrapper {
    overflow: hidden;
    cursor: pointer;
    margin: 15px;
    border-radius: 12px;
}

.news-img {
    transition: transform 0.5s ease;
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

.news-image-wrapper:hover .news-img {
    transform: scale(1.05);
}

.news-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.news-desc {
    color: var(--text-color);
    line-height: 1.7;
}

.news-video-wrapper {
    margin: 15px;
    border-radius: 12px;
}

/* Modern Gallery */
.modern-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    cursor: pointer;
}

.gallery-img-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    background-color: #f1f1f1;
}

.gallery-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(19, 42, 75, 0.7);
    /* Primary dark blue with alpha */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Reinstated Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox.show img:hover {
    transform: scale(1.02);
}

.lightbox.show {
    display: flex !important;
}

/* =========================================================================
   Sidebar Widget Styles (Services)
   ========================================================================= */

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 100px;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-gold));
    border-radius: 3px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: #fdfdfd;
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.category-list li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: var(--secondary-gold);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.category-list li a:hover {
    background: #fff;
    color: var(--primary-green);
    border-color: rgba(54, 132, 150, 0.1);
    box-shadow: 0 5px 15px rgba(54, 132, 150, 0.08);
    transform: translateX(5px);
}

.category-list li a:hover::before {
    transform: translateX(4px);
    color: var(--primary-green);
}

.category-list li a.active {
    background: linear-gradient(135deg, var(--primary-green), #296675);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(54, 132, 150, 0.25);
}

.category-list li a.active::before {
    color: #fff;
}

/* Mobile responsive fix for sidebar widget */
@media (max-width: 991px) {
    .sidebar-widget {
        position: relative;
        top: auto;
        margin-bottom: 30px;
    }

    .position-sticky {
        position: relative !important;
        top: auto !important;
    }
}