/* Services Page Styles - Flexbox Version */
.services {
    padding: 0;
}

.container-fluid {
    width: 100%;
    margin: 0;
    padding: 0;
}

.row {
    margin: 0;
    padding: 0;
}

.firstSection,
.secondSection {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
}

/* Desktop Layout */
.firstSection .col-sm-5 {
    flex: 0 0 41.66%;
    max-width: 41.66%;
}

.firstSection .col-sm-7 {
    flex: 0 0 58.34%;
    max-width: 58.34%;
}

.secondSection .col-sm-7 {
    flex: 0 0 58.34%;
    max-width: 58.34%;
}

.secondSection .col-sm-5 {
    flex: 0 0 41.66%;
    max-width: 41.66%;
}

.textWrapper {
    padding: 60px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.firstSection .textWrapper {
    background: #fff;
    color: #000;
}

.secondSection .textWrapper {
    background: #000;
    color: #fff;
}

.imgWrapper {
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
}

.imgWrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.textWrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: "Ovo", Sans-serif;
}

.textWrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    font-family: 'Ovo', serif;
}

.btn {
    background: #ff6600;
    color: #fff;
    padding: 12px 30px;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #e55a00;
    color: #fff;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {

    .firstSection,
    .secondSection {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .firstSection .col-sm-5,
    .firstSection .col-sm-7,
    .secondSection .col-sm-5,
    .secondSection .col-sm-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Text always comes first on mobile */
    .firstSection .col-sm-5,
    .secondSection .col-sm-5 {
        order: 1;
    }

    /* Image always comes second on mobile */
    .firstSection .col-sm-7,
    .secondSection .col-sm-7 {
        order: 2;
    }

    .textWrapper {
        padding: 30px 20px;
        min-height: auto;
        background: #fff !important;
        color: #333 !important;
        text-align: center;
    }

    .imgWrapper {
        height: 250px;
    }

    .textWrapper h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .textWrapper p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .textWrapper {
        padding: 25px 15px;
    }

    .textWrapper h2 {
        font-size: 1.5rem;
    }

    .textWrapper p {
        font-size: 0.95rem;
    }

    .imgWrapper {
        height: 200px;
    }
}