/* ==================== BASE CONTAINER ==================== */

.top-margin{
    margin-top: 100px;
}

.hero-base {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    text-align: center;
    background: linear-gradient(to bottom, #42434800, #E092FC4F);
    box-sizing: border-box;
    padding: 0 1rem;
}

.hero {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1280px;
    align-items: start;
    box-sizing: border-box;
}

/* ==================== MOBILE HEADER (HIDDEN BY DEFAULT) ==================== */

.hero-mobile-header {
    display: none;
}

/* ==================== HERO SECTION ==================== */

.hero-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: start;
    flex: 3;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.hero-section-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #525252;
    text-align: start;
    margin: 0;
}

/* ==================== SERVICE CONTAINER ==================== */

.hero-section-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-section-container h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.hero-section-container-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== SERVICE CARD ==================== */

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #F4F3FF;
    border-radius: 16px;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 0;
    transition: all 0.2s ease;
}

.service-card:hover {
    background-color: #EBE9FF;
    transform: translateY(-2px);
}

.service-card img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-card p {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==================== HERO IMAGES ==================== */

.hero-images {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
}

.hero-image1 {
    width: 38px;
    height: 38px;
    position: absolute;
    top: 0;
    right: 10%;
}

.hero-image2 {
    width: 72px;
    height: 72px;
    position: absolute;
    top: 5%;
    left: 15%;
}

.hero-image3 {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==================== MOBILE RESPONSIVE (max-width: 768px) ==================== */

@media (max-width: 768px) {
    .top-margin{
        margin-top: 60px;
    }

    .hero-base {
        padding: 0;
        overflow-x: hidden;
    }

    .hero {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* SHOW MOBILE HEADER */
    .hero-mobile-header {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100vw;
        /* padding: 1rem; */
        box-sizing: border-box;
        overflow: hidden;
    }

    /* HIDE DESKTOP IMAGES */
    .hero-images {
        display: none;
    }

    .hero-section {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
        gap:1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 2.1rem;
    }

    .hero-section-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .hero-section-container {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    /* ✅ FIXED: 3 COLUMNS ON MOBILE (MATCHING YOUR IMAGE) */
    .hero-section-container-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .service-card {
        padding: 0.875rem 0.625rem;
        min-width: 0;
        overflow: hidden;
    }

    .service-card img {
        height: 44px;
        width: 44px;
    }

    .service-card p {
        font-size: 0.875rem;
        line-height: 1.3;
    }
}

/* ==================== SMALL MOBILE (max-width: 480px) ==================== */

@media (max-width: 480px) {
    

    .hero-section-container {
        padding: 1.25rem 1rem;
    }

    /* ✅ KEEP 3 COLUMNS ON SMALL SCREENS TOO */
    .hero-section-container-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .service-card {
        padding: 0.75rem 0.5rem;
    }

    .service-card img {
        height: 40px;
        width: 40px;
    }

    .service-card p {
        font-size: 0.8125rem;
        line-height: 1.25;
    }
}
