/* ========================================
   MOBILE LAYOUT FIXES
   Fix scroll indicators and button spacing
   ======================================== */

/* 1. Remove scroll indicators/overflow from hero section */
@media (max-width: 991px) {
    body {
        overflow-x: hidden !important;
    }
}

.hero-premium {
    overflow-x: hidden !important;
    overflow: visible !important;
    min-height: 85vh;
    margin-top: 70px;
}

/* Remove any fixed heights causing scrollbars */
.hero-premium::before {
    overflow: hidden !important;
}

.hero-content-premium {
    overflow: visible !important;
    max-width: 100% !important;
}

/* Ensure no horizontal scroll on mobile */
@media (max-width: 991px) {
    .hero-premium {
        overflow-x: hidden !important;
        overflow: visible !important;
        min-height: 60vh !important;
        padding: 60px 20px !important;
    }

    .hero-content-premium {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .hero-premium {
        overflow-x: hidden !important;
        overflow: visible !important;
        min-height: 50vh !important;
        padding: 40px 15px !important;
    }

    .hero-content-premium {
        overflow: visible !important;
        padding: 0 10px !important;
    }
}

/* 2. Add proper vertical spacing below Apply Now button */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px !important;
    /* Added bottom spacing */
}

.btn-hero-secondary {
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
}

/* Desktop spacing */
@media (min-width: 769px) {
    .hero-buttons {
        margin-bottom: 40px !important;
        gap: 24px;
    }

    .btn-hero-secondary {
        margin-bottom: 0 !important;
    }
}

/* Tablet spacing */
@media (max-width: 768px) and (min-width: 577px) {
    .hero-buttons {
        flex-direction: column;
        gap: 16px !important;
        margin-bottom: 35px !important;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-hero-secondary {
        margin-bottom: 0 !important;
    }
}

/* Mobile spacing */
@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 14px !important;
        margin-bottom: 30px !important;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-hero-secondary {
        margin-bottom: 0 !important;
        padding: 14px 24px !important;
    }

    /* Ensure no overflow on small screens */
    .hero-content-premium h1,
    .hero-content-premium .tagline {
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-buttons {
        margin-bottom: 25px !important;
        gap: 12px !important;
    }

    .btn-hero-secondary {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Prevent any horizontal scroll from hero buttons */
.hero-buttons .btn-hero-primary,
.hero-buttons .btn-hero-secondary {
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

/* Ensure container doesn't cause overflow */
.container-premium {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Fix any potential overflow from hero content */
.hero-content-premium * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Landscape mode fixes */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-premium {
        min-height: 70vh !important;
        overflow-x: hidden !important;
    }

    .hero-buttons {
        margin-bottom: 25px !important;
    }
}