﻿.services-section {
    text-align: center;
}

.service-heading span.highlight {
    color: yellow;
}

.service-description {
    font-size: 14px;
    color: white;
    text-align: center;
    margin-top: 1vh;
}

.container {
    margin: 20px auto;
}

.service-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; 
    height: 100%;
}

.service-subheading {
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0;
    color: #d3e630;
    margin-bottom: 3px;
    text-align: center;
}

.service-btn {
    background-color: #010d0f;
    color: yellow;
    border: 2px solid yellow;
    padding: 8px 16px;
    margin: 20px auto 10px auto;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.service-icon {
    width: 12vh;
    margin: 0 auto;
}

.service-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    margin: 10vh 0;
    padding-top: 20px;
    gap: 10px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.vertical-separator {
    width: 1px;
    height: 300px;
    background: linear-gradient(to top, transparent, yellow, transparent),
                linear-gradient(to bottom, transparent, yellow, transparent);
    margin: 0 15px;
}

.slide-card {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 16px;
}

.slide-card-front, .slide-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide-card-front {
    z-index: 2;
}

.slide-card-back {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transform: translateY(-100%);
}

.back-text {
    text-align: center;
}

.back-text h3 {
    font-size: 24px;
    margin: 5px 0;
    font-weight: bold;
}

.back-text p {
    font-size: 16px;
    margin: 3px 0;
}

/* Media Query for Smaller Screens */
@media (max-width: 1368px) {
    .service-row {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 90%;
        margin-bottom: 10px;
    }

    .service-subheading {
        margin-bottom: 2vh;
        font-size: 16px;
        color: yellow;
    }

    .service-description {
        font-size: 16px;
        text-align: center;
        margin: 2px 0 8px;
    }

    .service-btn {
        background-color: #010d0f;
        color: yellow;
        border: 2px solid yellow;
        padding: 8px 16px;
        margin: 20px auto 10px auto;
        text-align: center;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .vertical-separator {
        display: none;
    }

    .horizontal-separator {
        width: 60%;
        height: 1px;
        background: linear-gradient(to right, transparent, yellow, transparent);
        margin: 15px auto;
    }
}



/* extra code  */

.service-box-wrapper {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gradient Vertical Line Styling */
.vertical-separator {
    width: 1px;
    height: 250px;
    background: linear-gradient(to top, transparent, yellow, transparent),
                linear-gradient(to bottom, transparent, yellow, transparent);
    background-blend-mode: screen;
    margin: 0 10px;
    display: none;
}

/* Mobile Horizontal Line (Optional) */
.horizontal-separator {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, yellow, transparent);
    margin: 15px auto;
    display: none;
}

/* Show based on device width */
@media (min-width: 768px) {
    .vertical-separator {
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .horizontal-separator {
        display: block;
    }
}
