/*
==============================================
MOBILE VIEW OPTIMIZATIONS
==============================================
*/

/* Mobile-only styles - applies to screens 768px and below */
@media (max-width: 768px) {
    
    /* ===== SERVICES SECTION - PROPER GRID VIEW ===== */
    .services-area .container .row.justify-content-center {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important;
        margin: 0 !important;
        padding: 0 20px !important;
        column-gap: 25px !important;
        row-gap: 20px !important;
    }

    .services-area .col-lg-4,
    .services-area .col-md-6,
    .services-area .col-sm-8 {
        grid-column: span 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .services-area .services-item {
        margin-top: 0 !important;
        padding: 20px 15px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 12px !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .services-area .services-thumb {
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    .services-area .services-thumb img {
        width: 50px !important;
        height: 50px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .services-area .services-content {
        flex: 1 !important;
        text-align: center !important;
    }

    .services-area .services-content .title h4 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
        color: white !important;
        font-weight: 600 !important;
    }

    .services-area .services-content p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .services-area .services-content a {
        font-size: 12px !important;
        padding: 8px 15px !important;
        display: inline-block !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 5px !important;
        color: white !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }

    .services-area .services-content a:hover {
        background-color: rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-2px) !important;
    }
    
    /* ===== STATISTICS SECTION - SMALLER CIRCLES IN ONE LINE ===== */
    .statistics-section {
        padding: 40px 0 !important;
    }

    .statistics-section .row.no-gutters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 0 10px !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    .statistics-section .col-lg-3,
    .statistics-section .col-md-6 {
        flex: 0 0 auto !important;
        max-width: none !important;
        min-width: 100px !important;
        width: 100px !important;
        padding: 0 !important;
    }

    .statistics-section .round {
        min-height: 120px !important;
        margin: 10px 0 !important;
        padding: 5px !important;
        position: relative !important;
    }

    /* Make the circular progress smaller */
    .statistics-section .round canvas {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto !important;
    }

    .statistics-section .round strong {
        font-size: 18px !important;
        margin-top: -25px !important;
        font-weight: 700 !important;
    }

    .statistics-section .round h5 {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin-top: 8px !important;
        padding: 0 2px !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }

    .statistics-section .round h5 i {
        font-size: 12px !important;
        margin-bottom: 3px !important;
        display: block !important;
    }
    
    /* ===== PACKAGES SECTION - 2 COLUMN GRID LIKE HERO SECTION ===== */
    .pricing-tables .container {
        padding: 0 10px !important;
    }

    .pricing-tables .pricing-carousel {
        display: grid !important;
        grid-template-columns: 25% 25% !important;
    }

    
    /* ===== HERO FEATURES SECTION - GRID VIEW WITH PROPER SPACING ===== */
    .hero-features .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        margin: 0 !important;
        padding: 0 20px !important;
        column-gap: 20px !important;
        row-gap: 15px !important;
    }

    .hero-features .col-md-3,
    .hero-features .col-sm-6 {
        grid-column: span 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hero-features .single-hero-feature {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        margin: 0 !important;
        text-align: center !important;
        height: 130px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
    
    .hero-features .single-hero-feature .outer-container {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-features .single-hero-feature .inner-container {
        text-align: center !important;
        width: 100% !important;
    }

    .hero-features .single-hero-feature .icon-wrapper {
        margin-bottom: 10px !important;
    }

    .hero-features .single-hero-feature .icon-wrapper i {
        font-size: 28px !important;
        color: white !important;
    }

    .hero-features .single-hero-feature h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: white !important;
        font-weight: 600 !important;
    }
    
    /* ===== DISABLE OWL CAROUSEL FOR MOBILE ===== */
    .pricing-carousel.owl-carousel,
    .pricing-carousel.owl-theme {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .pricing-carousel .owl-stage-outer,
    .pricing-carousel .owl-stage,
    .pricing-carousel .owl-item {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .pricing-carousel .owl-nav,
    .pricing-carousel .owl-dots {
        display: none !important;
    }
    
    /* ===== GENERAL MOBILE SPACING FIXES ===== */
    .section-padding {
        padding: 40px 0 !important;
    }
    
    .pb-130 {
        padding-bottom: 40px !important;
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .section-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .section-summary {
        font-size: 20px !important;
        margin-bottom: 25px !important;
        line-height: 1.3 !important;
    }
}

/* Extra small devices - 480px and below */
@media (max-width: 480px) {

    /* ===== PACKAGES - SINGLE COLUMN ON VERY SMALL SCREENS ===== */
    .pricing-tables .pricing-carousel {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        column-gap: 0 !important;
        row-gap: 15px !important;
    }

    .pricing-tables .single-pricing-table {
        grid-column: span 1 !important;
    }

    /* ===== SERVICES - SINGLE COLUMN ON VERY SMALL SCREENS ===== */
    .services-area .container .row.justify-content-center {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
        column-gap: 0 !important;
        row-gap: 20px !important;
    }

    .services-area .col-lg-4,
    .services-area .col-md-6,
    .services-area .col-sm-8 {
        grid-column: span 1 !important;
    }

    .services-area .services-item {
        padding: 20px 15px !important;
        margin-bottom: 5px !important;
    }

    /* ===== STATISTICS - SMALLER ON VERY SMALL SCREENS ===== */
    .statistics-section .col-lg-3,
    .statistics-section .col-md-6 {
        min-width: 80px !important;
        width: 80px !important;
    }

    .statistics-section .round {
        min-height: 100px !important;
    }

    .statistics-section .round canvas {
        width: 60px !important;
        height: 60px !important;
    }

    .statistics-section .round strong {
        font-size: 14px !important;
        margin-top: -20px !important;
    }

    .statistics-section .round h5 {
        font-size: 9px !important;
        margin-top: 5px !important;
    }

    .statistics-section .round h5 i {
        font-size: 10px !important;
    }

    /* ===== PACKAGES - SINGLE COLUMN ON VERY SMALL SCREENS ===== */
    .pricing-tables .pricing-carousel {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        column-gap: 0 !important;
        row-gap: 15px !important;
    }

    .pricing-tables .single-pricing-table {
        grid-column: span 1 !important;
        min-height: 350px !important;
        padding: 20px 15px !important;
    }

    .pricing-tables .single-pricing-table .price h1 {
        font-size: 24px !important;
    }

    .pricing-tables .single-pricing-table .title {
        font-size: 14px !important;
    }

    /* ===== HERO FEATURES - SINGLE COLUMN ON VERY SMALL SCREENS ===== */
    .hero-features .row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 15px !important;
        column-gap: 0 !important;
        row-gap: 15px !important;
    }

    .hero-features .col-md-3,
    .hero-features .col-sm-6 {
        grid-column: span 1 !important;
    }

    .hero-features .single-hero-feature {
        height: 120px !important;
        padding: 15px 10px !important;
    }

    .hero-features .single-hero-feature .icon-wrapper i {
        font-size: 24px !important;
    }

    .hero-features .single-hero-feature h3 {
        font-size: 13px !important;
    }
}
