/* Services Detail Page */
.services-details {
    padding: 130px 20px;
    position: relative;
}

/* Background patterns */
.service_circle {
    position: absolute;
    left: -400px;
    top: 0px;
    width: 710px;
    height: 710px;
    border-radius: 50%;
    background-color: #f5f5f5;
    z-index: -9999;
}

.service_pattern {
    background-position: right bottom;
    background-repeat: no-repeat;
    z-index: -3;
}

.overlay-layer {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.service-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    font-family: 'Outfit', sans-serif;
    padding: 20px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.tab-btn.active {
    background: #228B22;
    color: white;
}

/* Tab content visibility */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Layout wrapper */
.service-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

/* ========== LEFT: STACKED IMAGES ========== */
.image-stack {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}
.image-stack img {
    border-radius: 10px;
    display: block;
    object-fit: cover;
}
.img-top {
    width: 100%;
    height: auto;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    margin-bottom: -80px; /* Overlap */
    margin-left: -120px; /* Offset horizontally */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.img-bottom-wrapper {
    position: relative;
    width: 100%;
}
.img-bottom {
    max-width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ========== RIGHT: TEXT + FEATURES ========== */
.service-text {
    flex: 1;
}

.section-intro {
    color: orange;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp( 2rem, 5vw, 3.5rem );
    margin-bottom: 15px;
}

.service-text p {
    font-family: 'Manrope', sans-serif;
    line-height: 30px;
    font-weight: 400;
    font-size: 16px;
    color: #666;
}

/* Features grid */
.features-grid {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}
.features-grid .feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.features-grid .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.features-grid .feature-item i {
    font-size: clamp(  1.5rem, 3vw, 2rem );
    color: #fcb03f;
    flex-shrink: 0;
}
.features-grid .feature-item h4 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp( 0.7rem, 3vw, 1rem );
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

/* Grid column counts */
#farm-management .features-grid {
    grid-template-columns: repeat(2, 1fr);
}
#rubber-processing .features-grid,
#export-solutions .features-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Checklist */
.check-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px;
}
.check-list li {
    font-family: 'Manrope', sans-serif;
    margin-bottom: 15px;
    font-size: 16px;
}
.check-list li i {
    color: #95f39ac4;
    padding-right: 20px;
}


@media (max-width: 992px) {

    .service-details .container{
        max-width: 100% !important;
    }  

    .service-detail-content {
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 0.5rem;
    }

    .img-top {
        width: 100%;
        margin-left: 0;
        margin-bottom: 40px;
    }
}



@media (max-width: 768px) {
    
    .service-tabs {
        flex-direction: column;
        align-content: center;
        margin: 0 auto;
    }

    #farm-management .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #rubber-processing .features-grid,
    #export-solutions .features-grid {
        grid-template-columns: 1fr;
    }

    .img-bottom-wrapper{
        display: contents;
    }

}

@media (max-width: 576px) {

    .service-tabs {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .tab-btn{
        padding: 25px 34px;
    }
}