/* ==================================================
   SERVICES SECTION
   ================================================== */
.services-section {
    padding: 100px 0;
    background: #f4f5f7;
    /* Light gray background */
    font-family: 'Poppins', sans-serif;
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.services-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #4F94D2;
    text-transform: uppercase;
}

.services-header p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Tabs Container */
.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-tabs-container {
    background: var(--primary-black);
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    gap: 4px;
    position: relative;
    z-index: 10;
    margin-bottom: -24px;
    /* Overlap the card slightly */
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.services-tabs-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.tab-btn {
    background: #505050;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background: var(--accent-yellow);
    color: #ffffff;
    font-weight: 600;
}

.tab-btn:hover:not(.active) {
    background: #606060;
}

/* Content Card */
.service-card {
    background: #ffffff;
    border-radius: 32px;
    display: flex;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding: 40px;
    padding-top: 60px;
    /* Extra padding top for overlapping tabs */
    gap: 40px;
    transition: opacity 0.3s ease;
}

/* Fading animation class for JS */
.service-card.fading {
    opacity: 0.5;
}

.service-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-left h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--primary-black);
    text-transform: uppercase;
    line-height: 1.1;
}

.service-card-left p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

.offers h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#serviceChecklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
    padding: 0;
}

#serviceChecklist li {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

#serviceChecklist li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: var(--accent-yellow);
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.start-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-yellow);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background: #ffffff;
    color: var(--accent-yellow);
    box-shadow: 0 10px 20px rgba(79, 148, 210, 0.4);
}

.service-card-right {
    flex: 1;
}

.service-image-container {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsiveness */
@media (max-width: 991px) {
    .services-section {
        padding: 80px 0;
    }

    .service-card {
        flex-direction: column;
        padding: 30px;
        padding-top: 50px;
    }

    .service-image-container {
        height: auto;
    }
    
    .service-image-container img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767px) {
    .services-section {
        padding: 50px 0;
    }

    .services-tabs-container {
        justify-content: flex-start;
        padding: 6px 12px;
    }

    #serviceChecklist {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
        padding-top: 40px;
    }
}