/* Custom Slider Styles - Mobile Fixes */


/* Small mobile devices - below 480px */
@media only screen and (max-width: 480px) {

    /* Adjust content padding for small screens */
    .wrap-slider .box-content {
        padding: 25px 15px !important;
    }

    .wrap-slider .box-content .container {
        text-align: center !important;
        padding: 0 10px;
    }

    /* Smaller text for very small screens */
    .wrap-slider .box-content h1,
    .wrap-slider .box-content .heading {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .tf-slideshow .wrap-slider .box-content p,
    .slider-women .wrap-slider .box-content p,
    .wrap-slider .box-content p.fade-item-2,
    .wrap-slider .box-content p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 14px !important;
    }

    .wrap-slider .box-content .tf-btn {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
}

/* Tablet styles - 768px to 991px */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .wrap-slider .box-content h1,
    .wrap-slider .box-content .heading {
        font-size: 36px !important;
        line-height: 42px !important;
        margin-bottom: 20px !important;
    }

    .wrap-slider .box-content p {
        font-size: 16px !important;
        line-height: 22px !important;
        margin-bottom: 25px !important;
        display: block !important;
    }

    /* Vertically center content for tablet */
    .wrap-slider .box-content {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        padding: 25px 0 !important;
    }

    /* Medium button size for tablet */
    .wrap-slider .box-content .tf-btn {
        padding: 12px 25px !important;
        font-size: 14px !important;
        line-height: 20px !important;
    }
}

/* Default site typography */
.wrap-slider .box-content h1,
.wrap-slider .box-content .heading {
    color: #ffffff !important;
    font-weight: 400;
    text-shadow: none;
    letter-spacing: -0.02em;
    font-family: inherit;
    line-height: 1.2 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    z-index: 2;
    text-transform: none;
}

.wrap-slider .box-content p {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 400;
    text-shadow: none;
    font-family: inherit;
    font-size: 1.1em !important;
    line-height: 1.6 !important;
    letter-spacing: 0;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 2;
}

/* Desktop only - Light pink overlay gradient from left to center for text visibility */
@media only screen and (min-width: 768px) {
    .wrap-slider::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: linear-gradient(90deg,
                    rgba(255, 182, 193, 0.3) 0%,
                    rgba(255, 182, 193, 0.2) 30%,
                    rgba(255, 182, 193, 0.1) 50%,
                    transparent 70%);
        z-index: 1;
        pointer-events: none;
    }

    /* Add dark overlay for better text contrast */
    .wrap-slider::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: linear-gradient(90deg,
                    rgba(0, 0, 0, 0.25) 0%,
                    rgba(0, 0, 0, 0.15) 30%,
                    rgba(0, 0, 0, 0.05) 50%,
                    transparent 70%);
        z-index: 1;
        pointer-events: none;
    }
}

/* Mobile - Default styles */
@media only screen and (max-width: 767px) {
    /* Remove pink overlay on mobile */
    .wrap-slider::before,
    .wrap-slider::after {
        display: none !important;
    }

    /* Hide desktop content on mobile */
    .desktop-content {
        display: none !important;
    }

    /* Mobile layout structure */
    .wrap-slider {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        min-height: 100vh !important;
        overflow: hidden !important;
    }

    /* Hide desktop image on mobile */
    .slide-bg-image.desktop-only {
        display: none !important;
    }

    /* Mobile background image with better control */
    .mobile-slide-image {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: 50vh !important;
        background-size: cover !important;
        background-position: 25% top !important; /* Position to show person's head */
        background-repeat: no-repeat !important;
    }

    .slide-bg-gradient {
        position: relative !important;
        width: 100% !important;
        height: 50vh !important;
    }

    /* Mobile content wrapper - primary color background section */
    .mobile-slide-content-wrapper {
        display: block !important;
        background: #814037 !important; /* Primary brand color */
        padding: 30px 0 !important;
        min-height: 50vh !important; /* Adjusted to 50% to match image height */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-slide-content {
        width: 100% !important;
        text-align: center !important;
    }

    .mobile-slide-content .container {
        padding: 0 20px !important;
    }

    /* Mobile text styling */
    .mobile-title {
        color: white !important;
        font-size: 26px !important;
        margin-bottom: 12px !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
    }

    .mobile-subtitle {
        color: rgba(255,255,255,0.9) !important;
        font-size: 15px !important;
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
    }

    /* Mobile button styling */
    .mobile-btn {
        background: transparent !important;
        color: white !important;
        border: 1px solid rgba(255,255,255,0.7) !important;
        padding: 12px 30px !important;
        border-radius: 30px !important;
        display: inline-block !important;
        font-size: 14px !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
    }

    .mobile-btn:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.9) !important;
    }

    .mobile-btn span {
        color: white !important;
    }

    /* Ensure swiper slide shows content properly */
    .swiper-slide {
        /*height: 100vh !important;*/
        overflow: hidden !important;
    }

    /* Hide default box-content on mobile */
    .tf-slideshow .wrap-slider .box-content {
        display: none !important;
    }
}

/* Remove glass panel background */
.wrap-slider .box-content::before {
    display: none !important;
}

/* Default positioning for box-content */
.wrap-slider .box-content {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 30px 0 !important;
    background: none !important;
    isolation: isolate;
    z-index: 2;
}

/* Ensure container alignment - Left aligned for slides */
.wrap-slider .box-content .container {
    padding: 0 20px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    text-align: left !important;
}

/* Fix for specific slider classes if they exist - Only on desktop */
@media only screen and (min-width: 768px) {
    .slider-women .wrap-slider .box-content p,
    .tf-slideshow .wrap-slider .box-content p {
        display: block !important;
    }
}

/* Ensure z-index is correct for content overlay */
.wrap-slider .box-content {
    z-index: 2;
    position: relative;
}

/* Minimal modern button with outline - smaller size */
.wrap-slider .box-content .tf-btn {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 400;
    font-size: 13px !important;
    padding: 12px 28px !important;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

.wrap-slider .box-content .tf-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.wrap-slider .box-content .tf-btn:hover {
    color: #000000 !important;
    border-color: #ffffff;
    transform: translateY(0);
}

.wrap-slider .box-content .tf-btn:hover::before {
    left: 0;
}

.wrap-slider .box-content .tf-btn span {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    z-index: 1;
}

/* Desktop specific alignment fixes */
@media only screen and (min-width: 768px) {
    /* Show desktop image */
    .slide-bg-image.desktop-only {
        display: block !important;
    }

    /* Hide mobile-specific elements */
    .mobile-slide-image,
    .mobile-slide-content,
    .mobile-slide-content-wrapper {
        display: none !important;
        visibility: hidden !important;
    }

    /* Show desktop background image */
    .tf-slideshow .wrap-slider > img {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        z-index: 0 !important;
    }

    /* Show desktop content overlay */
    .tf-slideshow .wrap-slider .box-content.desktop-content {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        z-index: 2 !important;
    }

    /* Ensure normal slider layout on desktop */
    .tf-slideshow .wrap-slider {
        display: block !important;
        position: relative !important;
        height: 100vh !important;
    }

    .wrap-slider .box-content .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 60px;
        padding-right: 40px;
        text-align: left !important;
    }

    /* Left-aligned text blocks on desktop with smaller size */
    .wrap-slider .box-content h1,
    .wrap-slider .box-content .heading {
        max-width: 600px;
        line-height: 1.2 !important;
        margin: 0 0 15px;
        white-space: normal !important;
        font-size: 36px !important;
    }

    .wrap-slider .box-content p {
        max-width: 500px;
        margin: 0 0 20px !important;
        white-space: normal !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    /* Vertically center content on desktop */
    .wrap-slider .box-content {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        padding: 30px 0 !important;
    }
}

/* Medium desktop screens - fit to viewport height */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    /* Make slider fit screen height on medium desktop */
    .tf-slideshow.slider-women {
        height: 100vh !important;
        max-height: 100vh !important;
    }

    .tf-slideshow .swiper {
        height: 100vh !important;
    }

    .tf-slideshow .swiper-slide {
        height: 100vh !important;
    }

    .tf-slideshow .wrap-slider {
        height: 100vh !important;
        position: relative;
    }

    .tf-slideshow .wrap-slider > img,
    .tf-slideshow .wrap-slider > div[style*="background"] {
        height: 100vh !important;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Large desktop screens */
@media only screen and (min-width: 1200px) {
    /* Make slider fit screen height on desktop */
    .tf-slideshow.slider-women {
        height: 100vh !important;
        max-height: 100vh !important;
    }

    .tf-slideshow .swiper {
        height: 100vh !important;
    }

    .tf-slideshow .swiper-slide {
        height: 100vh !important;
    }

    .tf-slideshow .wrap-slider {
        height: 100vh !important;
        position: relative;
    }

    .tf-slideshow .wrap-slider > img,
    .tf-slideshow .wrap-slider > div[style*="background"] {
        height: 100vh !important;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }


    .wrap-slider .box-content .container {
        padding-left: 80px;
        padding-right: 60px;
        max-width: 1400px;
    }

    /* Default typography for large screens - smaller and left-aligned */
    .wrap-slider .box-content h1,
    .wrap-slider .box-content .heading {
        font-size: 42px !important;
        line-height: 1.2 !important;
        max-width: 700px;
        margin-bottom: 20px !important;
        font-weight: 400;
        white-space: normal !important;
    }

    .wrap-slider .box-content p {
        font-size: 18px !important;
        line-height: 1.6 !important;
        max-width: 600px;
        margin-bottom: 25px !important;
        white-space: normal !important;
    }
}

/* CRITICAL OVERRIDE: Force show subheadings on all mobile devices */
@media only screen and (max-width: 767px) {
    .tf-slideshow.slider-women .swiper-slide .wrap-slider .box-content p.fade-item.fade-item-2,
    body .tf-slideshow .wrap-slider .box-content p.fade-item-2,
    body .wrap-slider .box-content p {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}