/* ==========================================
   Mobile Hero Section - Optimized for Mobile
   ========================================== */

/* Hide mobile hero on desktop, show slider */
.mobile-hero-only {
    display: none !important;
}

.desktop-slider {
    display: block !important;
}

/* Mobile Hero Styles - Show on Mobile Only */
@media only screen and (max-width: 991px) {
    /* Hide desktop slider on mobile */
    .desktop-slider {
        display: none !important;
    }
    
    /* Show mobile hero */
    .mobile-hero-only {
        display: block !important;
    }
    
    /* Mobile Hero Container */
    .tj-mobile-hero {
        position: relative;
        width: 100%;
        margin: 0 8px;
        border-radius: 16px;
        overflow: hidden;
    }
    
    /* Mobile Hero Image Container */
    .mobile-hero-image {
        position: relative;
        width: 100%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        overflow: hidden;
    }
    
    /* Mobile Hero Overlay */
    .mobile-hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(12, 30, 33, 0.3) 0%, rgba(12, 30, 33, 0.7) 60%, rgba(12, 30, 33, 0.9) 100%);
        z-index: 1;
    }
    
    /* Mobile Hero Content */
    .mobile-hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 30px 20px;
        width: 100%;
    }
    
    /* Mobile Hero Title */
    .mobile-hero-title {
        color: #ffffff;
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 15px;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
        letter-spacing: -0.5px;
    }
    
    .mobile-hero-title span {
        color: var(--tj-color-theme-primary, #FF5A00);
    }
    
    /* Mobile Hero Description */
    .mobile-hero-desc {
        color: #ffffff;
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
        max-width: 100%;
    }
    
    /* Mobile Hero Button */
    .mobile-hero-btn {
        margin-top: 20px;
    }
    
    .mobile-hero-btn .tj-primary-btn {
        display: inline-flex;
        align-items: center;
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Tablet Optimization (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .tj-mobile-hero {
        margin: 0 15px;
    }
    
    .mobile-hero-image {
        height: 550px;
    }
    
    .mobile-hero-content {
        padding: 40px 30px;
    }
    
    .mobile-hero-title {
        font-size: 42px;
        margin-bottom: 18px;
    }
    
    .mobile-hero-desc {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .mobile-hero-btn {
        margin-top: 25px;
    }
}

/* Small Phones (less than 576px) */
@media only screen and (max-width: 575px) {
    .tj-mobile-hero {
        margin: 0 8px;
        border-radius: 12px;
    }
    
    .mobile-hero-image {
        height: 450px;
        border-radius: 12px;
    }
    
    .mobile-hero-content {
        padding: 25px 15px;
    }
    
    .mobile-hero-title {
        font-size: 28px;
        margin-bottom: 12px;
        letter-spacing: -0.3px;
    }
    
    .mobile-hero-desc {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .mobile-hero-btn {
        margin-top: 15px;
    }
    
    .mobile-hero-btn .tj-primary-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Very Small Phones (less than 400px) */
@media only screen and (max-width: 399px) {
    .mobile-hero-image {
        height: 400px;
    }
    
    .mobile-hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .mobile-hero-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }
}

/* Landscape Mode for Mobile */
@media only screen and (max-width: 991px) and (orientation: landscape) {
    .mobile-hero-image {
        height: 90vh;
    }
    
    .mobile-hero-content {
        padding: 20px 15px;
    }
    
    .mobile-hero-title {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .mobile-hero-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .mobile-hero-btn {
        margin-top: 12px;
    }
}

/* Ensure container fits properly */
@media only screen and (max-width: 991px) {
    .mobile-hero-image .container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

