/* ============================================================
   FULLY WORKING MOBILE FIX – MELODYSTARS.IN
   ============================================================ */
@media (max-width: 768px) {

    /* UNIVERSAL RESET */
    * { box-sizing: border-box !important; }
    html, body { overflow-x: hidden !important; width: 100% !important; }

    /* =======================
       HERO BANNER TEXT FIX
       ======================= */
/* === MELODYSTARS SLIDER - MOBILE FONT SIZE FIX === */
/* === MELODYSTARS SLIDER - MOBILE FONT SIZE ONLY === */

@media (max-width: 480px) {
    /* Image Slide 1 */
    #slide-1-layer-1.tp-caption.BigWhiteText {
        font-size: 24px !important;
    }

    #slide-1-layer-2.tp-caption.SmallWhiteText {
        font-size: 14px !important;
    }

    #slide-1-layer-3.tp-caption.MelodyButton {
        font-size: 13px !important;
    }

    /* Video Slide 2 */
    #slide-2-layer-1.tp-caption.BigWhiteText {
        font-size: 24px !important;
    }

    #slide-2-layer-2.tp-caption.SmallWhiteText {
        font-size: 14px !important;
    }

    #slide-2-layer-3.tp-caption.MelodyButton {
        font-size: 13px !important;
    }

    /* Generic class selectors */
    .tp-caption.BigWhiteText {
        font-size: 24px !important;
    }

    .tp-caption.SmallWhiteText {
        font-size: 14px !important;
    }

    .tp-caption.MelodyButton.rev-btn {
        font-size: 13px !important;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    /* Tablet sizes */
    #slide-1-layer-1.tp-caption.BigWhiteText,
    #slide-2-layer-1.tp-caption.BigWhiteText {
        font-size: 32px !important;
    }

    #slide-1-layer-2.tp-caption.SmallWhiteText,
    #slide-2-layer-2.tp-caption.SmallWhiteText {
        font-size: 16px !important;
    }

    #slide-1-layer-3.tp-caption.MelodyButton,
    #slide-2-layer-3.tp-caption.MelodyButton {
        font-size: 14px !important;
    }

    .tp-caption.BigWhiteText {
        font-size: 32px !important;
    }

    .tp-caption.SmallWhiteText {
        font-size: 16px !important;
    }

    .tp-caption.MelodyButton.rev-btn {
        font-size: 14px !important;
    }
}

@media (max-width: 360px) {
    /* Extra small sizes */
    #slide-1-layer-1.tp-caption.BigWhiteText,
    #slide-2-layer-1.tp-caption.BigWhiteText {
        font-size: 18px !important;
    }

    #slide-1-layer-2.tp-caption.SmallWhiteText,
    #slide-2-layer-2.tp-caption.SmallWhiteText {
        font-size: 12px !important;
    }

    #slide-1-layer-3.tp-caption.MelodyButton,
    #slide-2-layer-3.tp-caption.MelodyButton {
        font-size: 11px !important;
    }

    .tp-caption.BigWhiteText {
        font-size: 18px !important;
    }

    .tp-caption.SmallWhiteText {
        font-size: 12px !important;
    }

    .tp-caption.MelodyButton.rev-btn {
        font-size: 11px !important;
    }
}

    /* =======================
       SEARCH BAR FIX
       ======================= */
    input[type="text"][placeholder*="What"],
    input[type="text"][placeholder*="want"],
    .search-field {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        height: 50px !important;
    }

    .search-submit,
    button[style*="Search"] {
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        position: absolute !important;
        height: 38px !important;
        font-size: 11px !important;
        padding: 5px 10px !important;
    }

    /* =======================
       TESTIMONIALS FIX
       ======================= */
 /* =======================
   AGGRESSIVE TESTIMONIAL CENTERING FIX
   ======================= */

@media (max-width: 768px) {
    /* Target the specific testimonial container with ID */
    #sc_testimonials_62847156 {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        transform: translateX(0) !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Override the inline style that says margin: 0 auto 0 20% */
    #sc_testimonials_62847156[style*="margin: 0 auto 0 20%"],
    #sc_testimonials_62847156[style*="margin:0 auto 0 20%"] {
        margin: 0 auto !important;
        margin-left: 0 !important;
    }

    /* Target the testimonial items directly */
    .sc_testimonial_item {
        width: 95% !important;
        margin: 20px auto !important;
        padding: 25px 20px !important;
        text-align: center !important;
        
        border-radius: 10px !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Target the specific content wrapper */
    .sc_content.content_wrap {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    /* Target the parallax content that might be causing issues */
    .sc_parallax_content .sc_content.content_wrap {
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
    /* =======================
       FOOTER FIX
       ======================= */
    .footer_wrap {
        padding: 30px 0 !important;
        text-align: center !important;
    }

    .footer_wrap .columns_wrap {
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
    }

    .footer_wrap .column-1_3 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }

    .widget_title {
        font-size: 18px !important;
        font-weight: 600 !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .textwidget {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }

    /* Address spacing fix */
    .contact-item span {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .contact-item {
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    /* =======================
       COPYRIGHT FIX
       ======================= */
    .copyright_text {
        text-align: center !important;
        width: 100% !important;
    }

    .copyright_text p {
        font-size: 13px !important;
        margin-bottom: 8px !important;
        color: #fff !important;
        line-height: 1.4 !important;
    }

    .copyright_text p:last-child {
        margin-bottom: 0 !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .sc_parallax_content .sc_title,
    .sc_parallax_content .sc_title_regular {
        font-size: 18px !important;
    }

    .sc_parallax_content .sc_highlight {
        font-size: 13px !important;
    }

    .widget_title { font-size: 17px !important; }
}
/* === FEATURED TEACHERS - PROPERLY ALIGNED CAROUSEL === */
@media (max-width: 768px) {
    .featured-teachers-section {
        padding: 3rem 0 !important;
        background: white !important;
        position: relative !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .news_section_header {
        margin-bottom: 2rem !important;
        text-align: center !important;
        padding: 0 20px !important;
        width: 100% !important;
    }
    
    .teachers-slider-container {
        position: relative !important;
        width: 100vw !important; /* Full viewport width */
        margin: 0 !important;
        padding: 0 70px !important; /* Space for arrows */
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    .teachers-slider {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 0 !important;
        padding: 20px 0 !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
    
    .teachers-slider::-webkit-scrollbar {
        display: none !important;
    }
    
    .teacher-card {
        flex: 0 0 calc(100vw - 140px) !important; /* Full width minus arrows space */
        scroll-snap-align: center !important;
        margin: 0 10px !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 16px rgba(0,0,0,0.1) !important;
        border: 1px solid #f0f0f0 !important;
        overflow: hidden !important;
        max-width: 280px !important; /* Maximum card width */
        min-width: 280px !important; /* Minimum card width */
    }
    
    .teacher-image-container {
        height: 180px !important;
        overflow: hidden !important;
    }
    
    .teacher-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .teacher-info {
        padding: 1.5rem !important;
        text-align: center !important;
    }
    
    /* Navigation Arrows - Fixed positioning */
    .slider-nav {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 44px !important;
        height: 44px !important;
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 10 !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
        transition: all 0.2s ease !important;
    }
    
    .slider-nav.prev {
        left: 15px !important;
    }
    
    .slider-nav.next {
        right: 15px !important;
    }
    
    .slider-nav i {
        color: #64cdc4 !important;
        font-size: 1.1em !important;
    }
    
    /* Dots Indicator */
    .slider-dots {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 1.5rem !important;
        padding: 0 20px !important;
        width: 100% !important;
    }
    
    .slider-dot {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background: #ddd !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }
    
    .slider-dot.active {
        background: #64cdc4 !important;
        width: 20px !important;
        border-radius: 10px !important;
    }
}

/* === SMARTPHONE OPTIMIZATION === */
@media (max-width: 480px) {
    .teachers-slider-container {
        padding: 0 60px !important;
    }
    
    .teacher-card {
        flex: 0 0 calc(100vw - 120px) !important;
        max-width: 260px !important;
        min-width: 260px !important;
        margin: 0 8px !important;
    }
    
    .teacher-image-container {
        height: 160px !important;
    }
    
    .teacher-info {
        padding: 1.25rem !important;
    }
    
    .slider-nav {
        width: 40px !important;
        height: 40px !important;
    }
    
    .slider-nav.prev {
        left: 10px !important;
    }
    
    .slider-nav.next {
        right: 10px !important;
    }
}

/* === EXTRA SMALL SCREENS === */
@media (max-width: 360px) {
    .teachers-slider-container {
        padding: 0 55px !important;
    }
    
    .teacher-card {
        flex: 0 0 calc(100vw - 110px) !important;
        max-width: 240px !important;
        min-width: 240px !important;
        margin: 0 6px !important;
    }
    
    .teacher-image-container {
        height: 150px !important;
    }
    
    .slider-nav {
        width: 36px !important;
        height: 36px !important;
    }
}
/* === NEXT EVENTS SECTION MOBILE FIX === */
@media (max-width: 768px) {
    .private_lessons_compact .compact_cta {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    
    .cta_text_compact > div {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .batch_buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        margin-left: 0 !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    
    .batch_btn {
        font-size: 0.85em !important;
        padding: 8px 16px !important;
        width: auto !important;
        min-width: 120px !important;
        white-space: nowrap !important;
        flex: 0 1 auto !important;
    }
    
    .cta_title_compact {
        font-size: 1.4em !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .cta_desc_compact {
        text-align: center !important;
        margin-bottom: 15px !important;
        font-size: 0.95em !important;
    }
}

/* === SMARTPHONE OPTIMIZATION === */
@media (max-width: 480px) {
    .batch_buttons {
        gap: 6px !important;
    }
    
    .batch_btn {
        font-size: 0.8em !important;
        padding: 6px 12px !important;
        min-width: 100px !important;
    }
    
    .cta_title_compact {
        font-size: 1.3em !important;
    }
}

/* === EXTRA SMALL SCREENS === */
@media (max-width: 360px) {
    .batch_buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .batch_btn {
        width: 100% !important;
        min-width: auto !important;
    }
}
/* === PARALLAX SECTION (MelodyStars Search) FIX === */
@media (max-width: 768px) {
    .sc_parallax_content {
        padding: 40px 20px !important;
        min-height: 400px !important;
        text-align: center !important;
    }
    
    /* Remove all inline padding that pushes content right */
    .sc_parallax_content > div[style*="padding-left"],
    .sc_parallax_content > div[style*="padding:"] {
        padding: 0 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Specifically target the problematic divs with inline styles */
    .sc_parallax_content > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .sc_title_regular {
        font-size: 2em !important;
        margin-bottom: 1rem !important;
        padding: 0 15px !important;
        text-align: center !important;
        width: 100% !important;
        color: #ffffff !important;
    }
    
    .sc_highlight {
        font-size: 1.1em !important;
        padding: 0 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        width: 100% !important;
        color: #ffffff !important;
    }
    
    /* Search container fix */
    .sc_parallax_content div[style*="justify-content"] {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    
    .sc_parallax_content div[style*="position: relative"] {
        width: 90% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        position: relative !important;
    }
    
    /* Search input */
    input[type="text"][placeholder*="What"] {
        width: 100% !important;
        padding: 14px 120px 14px 15px !important;
        font-size: 16px !important;
        height: 50px !important;
        border-radius: 8px !important;
        border: none !important;
    }
    
    /* Search button */
    .sc_parallax_content button {
        position: absolute !important;
        right: 5px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        height: 40px !important;
        font-size: 12px !important;
        padding: 8px 16px !important;
        background: #64cdc4 !important;
        color: white !important;
        border: none !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        cursor: pointer !important;
    }
}

/* === SMARTPHONE OPTIMIZATION === */
@media (max-width: 480px) {
    .sc_parallax_content {
        padding: 30px 15px !important;
        min-height: 350px !important;
    }
    
    .sc_title_regular {
        font-size: 1.6em !important;
    }
    
    .sc_highlight {
        font-size: 1em !important;
    }
    
    .sc_parallax_content div[style*="position: relative"] {
        width: 100% !important;
    }
    
    input[type="text"][placeholder*="What"] {
        padding: 12px 110px 12px 12px !important;
        font-size: 14px !important;
        height: 45px !important;
    }
    
    .sc_parallax_content button {
        font-size: 11px !important;
        padding: 6px 12px !important;
        height: 35px !important;
    }
}
/* === MELODYSTARS SCHEDULE SECTION - MOBILE FIX === */

/* Timeline Navigation */
.timeline-nav {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.timeline-dots {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    width: max-content !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    justify-content: flex-start !important;
}

.timeline-dot {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    min-width: max-content !important;
    cursor: pointer !important;
}

/* Mobile Styles - Tablet (768px) */
@media (max-width: 768px) {
    .timeline-nav {
        margin-bottom: 30px !important;
        overflow-x: auto !important;
    }

    .timeline-dots {
        gap: 12px !important;
        padding: 0 10px !important;
        justify-content: flex-start !important;
    }

    .timeline-dot {
        gap: 4px !important;
        padding: 8px !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
    }

    .batch-label {
        font-size: 0.85em !important;
    }

    .batch-date {
        font-size: 0.7em !important;
    }

    /* Schedule Cards */
    .schedule-cards {
        gap: 15px !important;
        padding: 0 10px !important;
    }

    .schedule-card {
        width: calc(50% - 7.5px) !important;
        min-height: 220px !important;
        padding: 10px !important;
    }

    .card-header {
        padding: 6px !important;
        margin-bottom: 6px !important;
    }

    .card-date .month {
        font-size: 11px !important;
    }

    .card-date .day {
        font-size: 20px !important;
    }

    .card-badge {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    .card-body {
        padding: 6px !important;
    }

    .card-title {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }

    .card-description {
        font-size: 12px !important;
    }

    .card-footer {
        padding: 6px !important;
    }

    .card-action {
        font-size: 11px !important;
    }
}

/* Mobile Styles - Phone (480px) */
@media (max-width: 480px) {
    .sc_section_title {
        font-size: 1.5em !important;
    }

    .sc_section_subtitle {
        font-size: 0.9em !important;
        margin-bottom: 20px !important;
    }

    .timeline-nav {
        margin-bottom: 20px !important;
        display: flex !important;
        justify-content: center !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
    }

    .timeline-dots {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: max-content !important;
        padding: 0 10px !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    .timeline-dot {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        padding: 6px 10px !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-width: max-content !important;
    }

    .batch-label {
        font-size: 1.50em !important;
        display: block !important;
    }

    .batch-date {
        font-size: 0.65em !important;
        display: block !important;
    }

    .timeline-dot .dot {
        width: 12px !important;
        height: 12px !important;
    }

    /* Schedule Cards */
    .schedule-cards {
        gap: 12px !important;
        padding: 0 10px !important;
    }

    .schedule-card {
        width: 100% !important;
        min-height: auto !important;
        padding: 12px !important;
    }

    .card-header {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
        padding: 8px !important;
    }

    .card-date {
        align-items: flex-start !important;
        gap: 0 !important;
    }

    .card-date .month {
        font-size: 10px !important;
    }

    .card-date .day {
        font-size: 18px !important;
    }

    .card-badge {
        align-self: flex-end !important;
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    .card-title {
        font-size: 13px !important;
    }

    .card-description {
        font-size: 11px !important;
    }

    .card-action {
        font-size: 10px !important;
    }
}
/* === MELODYSTARS COMPETITION CATEGORIES - MOBILE RESPONSIVE FIX === */

