/* Mobile Slider Styles for Pageant Subtitles and Titles */

/* Mobile Swiper Containers */
.mySwiper6, .mySwiper7, .mySwiper8 {
    width: 100%;
    padding-bottom: 50px;
}

.swiper {
    width: 100%;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .mySwiper, .mySwiper2, .mySwiper3 {
        padding-bottom: 60px;
    }
    
    /* Ensure swiper slides are properly sized */
    .mySwiper .swiper-slide,
    .mySwiper2 .swiper-slide,
    .mySwiper3 .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Remove any transform that might cause blank spaces */
    .mySwiper .swiper-wrapper,
    .mySwiper2 .swiper-wrapper,
    .mySwiper3 .swiper-wrapper {
        transition-duration: 300ms;
    }
}

/* Mobile Swiper Slides */
.mySwiper6 .swiper-slide,
.mySwiper7 .swiper-slide,
.mySwiper8 .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Main swiper slides mobile fixes */
.mySwiper .swiper-slide,
.mySwiper2 .swiper-slide,
.mySwiper3 .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .mySwiper .swiper-slide,
    .mySwiper2 .swiper-slide,
    .mySwiper3 .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
        flex-shrink: 0;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Award Items in Mobile Sliders */
.mySwiper6 .award-item,
.mySwiper7 .award-item {
    width: 100%;
    margin-bottom: 0;
    padding: 0 10px;
}

/* Frame Box Items in Mobile Slider */
.mySwiper8 .fbi-item {
    width: 100%;
    margin-bottom: 0;
    padding: 0 10px;
}

/* Pagination Styles */
.mySwiper6 .swiper-pagination,
.mySwiper7 .swiper-pagination,
.mySwiper8 .swiper-pagination {
    bottom: 10px;
}

.mySwiper6 .swiper-pagination-bullet,
.mySwiper7 .swiper-pagination-bullet,
.mySwiper8 .swiper-pagination-bullet {
    background: rgba(255, 204, 96, 0.5);
    opacity: 1;
}

.mySwiper6 .swiper-pagination-bullet-active,
.mySwiper7 .swiper-pagination-bullet-active,
.mySwiper8 .swiper-pagination-bullet-active {
    background: #FFCC60;
}

/* Mobile Frame Adjustments - Bigger images, readable text */
@media (max-width: 767.98px) {
    .mySwiper8 .fbi-img {
        transform: scale(1.2);
    }
    
    .mySwiper8 .fb-text {
        width: 320px;
    }
    
    .mySwiper8 .ft-heading {
        font-size: 20px;
    }
    
    .mySwiper8 .ft-ll h4 {
        font-size: 14px;
    }
    
    .mySwiper8 .ft-ll p {
        font-size: 12px;
    }
    
    .mySwiper8 .ft-maintt {
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .mySwiper8 .fbi-img {
        transform: scale(1.3);
    }
    
    .mySwiper8 .fb-text {
        width: 300px;
    }
    
    .mySwiper8 .ft-heading {
        font-size: 18px;
    }
    
    .mySwiper8 .ft-ll h4 {
        font-size: 12px;
    }
    
    .mySwiper8 .ft-ll p {
        font-size: 10px;
    }
    
    .mySwiper8 .ft-maintt {
        font-size: 12px;
    }
}

/* Additional mobile fixes for swiper containers */
@media (max-width: 480px) {
    .mySwiper,
    .mySwiper2,
    .mySwiper3 {
        padding: 0 10px;
    }
    
    .mySwiper .card-item,
    .mySwiper2 .card-item,
    .mySwiper3 .card-item {
        max-width: 280px;
    }
    
    .mySwiper .mib-box,
    .mySwiper2 .mib-box,
    .mySwiper3 .mib-box {
        height: 280px;
    }
}

/* Prevent blank spaces and ensure proper centering */
@media (max-width: 767.98px) {
    .swiper-slide {
        width: 100% !important;
        flex-shrink: 0;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .swiper-wrapper {
        /* transform: translate3d(0px, 0, 0) !important; */
        display: flex;
        align-items: center;
    }
    
    .swiper-slide-active {
        opacity: 1 !important;
    }
    
    /* Ensure cards fill the container */
    .card-item {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mib-box {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Force proper slide width */
    .mySwiper .swiper-slide,
    .mySwiper2 .swiper-slide,
    .mySwiper3 .swiper-slide {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* Fix for very small screens */
@media (max-width: 375px) {
    .mySwiper .mib-box,
    .mySwiper2 .mib-box,
    .mySwiper3 .mib-box {
        height: 260px;
        max-width: 280px;
    }
    
    .mySwiper,
    .mySwiper2,
    .mySwiper3 {
        padding: 0 5px;
    }
    
    .mySwiper .swiper-slide,
    .mySwiper2 .swiper-slide,
    .mySwiper3 .swiper-slide {
        padding: 0 2px;
    }
}

/* Ensure proper spacing for mobile sliders */
@media (max-width: 767.98px) {
    .mySwiper6, .mySwiper7, .mySwiper8 {
        margin: 20px 0;
    }
    
    .mySwiper6 .ai-text,
    .mySwiper7 .ai-text {
        font-size: 20px;
    }
    
    /* Fix for main content swipers on mobile */
    .mySwiper,
    .mySwiper2,
    .mySwiper3 {
        padding: 0 20px;
        margin: 20px 0;
    }
    
    .mySwiper .swiper-slide,
    .mySwiper2 .swiper-slide,
    .mySwiper3 .swiper-slide {
        padding: 0 10px;
        box-sizing: border-box;
        width: 100% !important;
        flex-shrink: 0;
    }
    
    /* Ensure proper slide positioning */
    .mySwiper .swiper-wrapper,
    .mySwiper2 .swiper-wrapper,
    .mySwiper3 .swiper-wrapper {
        transform: translate3d(0px, 0, 0) !important;
    }
}

@media (max-width: 575.98px) {
    .mySwiper6 .ai-text,
    .mySwiper7 .ai-text {
        font-size: 18px;
    }
    
    .mySwiper,
    .mySwiper2,
    .mySwiper3 {
        padding: 0 15px;
    }
    
    .mySwiper .swiper-slide,
    .mySwiper2 .swiper-slide,
    .mySwiper3 .swiper-slide {
        padding: 0 5px;
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    /* Center the content properly */
    .mySwiper .card-item,
    .mySwiper2 .card-item,
    .mySwiper3 .card-item {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* Desktop text size improvements */
@media (min-width: 768px) {
    .ft-heading {
        font-size: 28px !important;
    }
    
    .ft-ll h4 {
        font-size: 16px !important;
    }
    
    .ft-ll p {
        font-size: 14px !important;
    }
    
    .ft-maintt {
        font-size: 16px !important;
    }
}

/* Swiper container fixes for mobile */
@media (max-width: 767.98px) {
    .swiper-wrapper {
        align-items: center;
    }
    
    .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100% !important;
    }
    
    /* Ensure no blank spaces in mobile view */
    .mySwiper,
    .mySwiper2,
    .mySwiper3 {
        overflow: hidden;
        width: 100%;
        position: relative;
    }
    
    .mySwiper .swiper-wrapper,
    .mySwiper2 .swiper-wrapper,
    .mySwiper3 .swiper-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    /* Force single slide display on mobile */
    .mySwiper[data-mobile="true"] .swiper-slide,
    .mySwiper2[data-mobile="true"] .swiper-slide,
    .mySwiper3[data-mobile="true"] .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

.swiper {
    touch-action: pan-x;
    cursor: grab;
}

.swiper-slide {
    user-select: none;
}

.swiper:active {
    cursor: grabbing;
}

/* Mobile responsiveness fixes for main swipers */
@media (max-width: 767.98px) {
    .mySwiper .swiper-slide,
    .mySwiper2 .swiper-slide,
    .mySwiper3 .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
        flex-shrink: 0;
    }
    
    .mySwiper .card-item,
    .mySwiper2 .card-item,
    .mySwiper3 .card-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    
    .mySwiper .mib-box,
    .mySwiper2 .mib-box,
    .mySwiper3 .mib-box {
        width: 100%;
        height: 400px;
        max-width: 300px;
    }
}

@media (max-width: 575.98px) {
    .mySwiper .mib-box,
    .mySwiper2 .mib-box,
    .mySwiper3 .mib-box {
        height: 350px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .mySwiper .mib-box,
    .mySwiper2 .mib-box,
    .mySwiper3 .mib-box {
        height: 300px;
        max-width: 260px;
    }
}