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;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 0 1rem;
    gap: 2.5rem;
}

.hero-text {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #ffffff 20%, #67e8f9 55%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--light-text-secondary);
    max-width: 36rem;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: min(100%, 520px);
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    object-fit: contain;
}

.cta-button {
    margin-top: 1.5rem;
}

/* Responsive adjustments for hero section */
@media (max-width: 1024px) {
    .hero {
        padding: 3rem 1.5rem;
        gap: 2rem;
        min-height: auto;
    }

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

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

    .hero-image img {
        max-width: min(100%, 500px);
    }
}

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

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

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

    .hero-image img {
        max-width: min(100%, 420px);
        border-radius: 22px;
    }
}

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

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

    .hero-image img {
        max-width: 100%;
        border-radius: 18px;
    }
}
