html {
    height: fit-content;
}

.main-container {
    height: fit-content;
}

.main-container h5 {
    font-size: 1.5em;
}

.card-icon {
    margin-top: 1rem;
    width: 5rem;
    height: 5rem;
}

.center-content {
    display: flex;
    justify-content: space-around;
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.left-text {
    width: 40%;
    font-size: 1rem;
    text-align: left;
}

.center-content-right {
    width: fit-content;
}

.service-card {
    background-color: #2a5b9b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20rem;
    height: fit-content;
    min-height: 20vh;
    color: white;
    font-size: 1rem;
    border: none;
    padding: 1rem;
    margin: 1rem;
}

.service-card img {
    width: 8rem;
    height: auto;
}

/* Mobile-first approach: default styles apply to smallest screens */
/* Adjustments for small devices (landscape phones, 370px and up) */
@media (max-width: 767px) {
    .center-content {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .left-text {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .center-content-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 90%;
        min-height: 15vh;
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .service-card img {
        width: 6rem;
    }
}

/* Adjustments for medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .center-content {
        width: 95%;
        flex-wrap: wrap;
    }

    .left-text {
        width: 45%;
        font-size: 0.9rem;
    }

    .service-card {
        width: 22rem;
        min-height: 25vh;
        font-size: 0.9rem;
    }

    .service-card img {
        width: 9rem;
    }
}

/* Adjustments for large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .center-content {
        width: 90%;
    }

    .left-text {
        width: 40%;
        font-size: 1rem;
    }

    .service-card {
        width: 20rem;
        min-height: 20vh;
        font-size: 1rem;
    }

    .service-card img {
        width: 8rem;
    }
}

/* Adjustments for X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .center-content {
        width: 90%;
    }

    .left-text {
        width: 40%;
        font-size: 1rem;
    }

    .service-card {
        width: 20rem;
        min-height: 28vh;
        font-size: 1rem;
    }

    .service-card img {
        width: 8rem;
    }
}

/* Landing Page Specific Styles - Retain and adapt existing hero styles */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--light-text-secondary);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    mix-blend-mode: normal;
    filter: brightness(1.1);
    object-fit: contain;
}

.cta-button {
    margin-top: 2vh;
}

/* Responsive adjustments for hero section */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .hero-text,
    .hero-image {
        min-width: unset;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-image {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .hero-image {
        margin-top: 1rem;
    }
}
