/**
 * ST Slider Style 5 CSS
 * Responsive 50/50 Split Layout with Navy Background and Circular Pattern
 * All classes prefixed with .st-style5 for consistency
 */

/* Base Styles */
.mkh-slider-wrapper {
    position: relative;
    /*width: 100%;*/
    overflow: hidden;
    margin-bottom: 30px;
}

.st-style5-swiper {
    width: 100%;
    height: 100%;
    min-height: 500px; /* Set a min-height for desktop */
    overflow: hidden;
    position: relative;
    background: 
        linear-gradient(135deg, #032f7a 0%, #0046be 100%) 0 0 / 90% 100% no-repeat, 
        #fff;
}

/* Background overlay that covers left column + 40% of right */
.st-style5-swiper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 70%; /* 50% (left column) + 20% (40% of right column) = 70% total */
    height: 100%;
    background: linear-gradient(135deg, #003a9b 0%, #0046be 100%);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2.5px, transparent 2.5px);
    background-size: 80px 80px, 120px 120px, 60px 60px, 100px 100px;
    background-position: 0 0, 40px 40px, 20px 20px, 60px 60px;
    opacity: 0.4;
    animation: patternFloat 20s ease-in-out infinite;
    z-index: 0;
}

/* Concentric circle patterns underneath slide content */
.st-style5-swiper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 50%;
    background-size: 
        120px 120px,
        80px 80px,
        50px 50px;
    background-position: 0 0, 60px 60px, 30px 30px;
    opacity: 0.8;
    animation: concentricFloat 25s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Slide Container */
.st-style5-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main 50/50 Container */
.st-style5-container {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Left Column - Content Only */
.st-style5-left-column {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    overflow: visible;
    z-index: 1;
}


/* Circular Pattern Overlay */
.st-style5-circular-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2.5px, transparent 2.5px);
    background-size: 80px 80px, 120px 120px, 60px 60px, 100px 100px;
    background-position: 0 0, 40px 40px, 20px 20px, 60px 60px;
    opacity: 0.4;
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-5px) translateX(-3px); }
    75% { transform: translateY(-15px) translateX(2px); }
}

@keyframes concentricFloat {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateX(5px) translateY(-8px) scale(1.02);
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-3px) translateY(-5px) scale(0.98);
        opacity: 0.7;
    }
    75% { 
        transform: translateX(8px) translateY(-10px) scale(1.01);
        opacity: 0.85;
    }
}

/* Content Styling */
.st-style5-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Control spacing for all elements here */
}

.st-style5-tag {
    display: block;
    padding: 4px 8px;
    /* margin-bottom: 20px; */ /* Replaced by gap */
    background-color: #f4c633;
    color: #1a365d;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    font-size: 9px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    width: fit-content;
}

/* Entry Animation States */
.swiper-slide-active .st-style5-tag,
.st-style5-slide.st-style5-active .st-style5-tag {
    animation: fadeInUpFast 0.6s ease-out 0.1s forwards;
}

.swiper-slide-active .st-style5-title,
.st-style5-slide.st-style5-active .st-style5-title {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.swiper-slide-active .st-style5-description,
.st-style5-slide.st-style5-active .st-style5-description {
    animation: fadeInUp 0.7s ease-out 0.3s forwards;
}

.swiper-slide-active .st-style5-cta-btn,
.st-style5-slide.st-style5-active .st-style5-cta-btn {
    animation: fadeInUpSlow 0.9s ease-out 0.4s forwards;
}

/* Exit Animation States */
.st-style5-slide.st-style5-exiting .st-style5-tag,
.st-style5-slide.st-style5-exiting .st-style5-title,
.st-style5-slide.st-style5-exiting .st-style5-description,
.st-style5-slide.st-style5-exiting .st-style5-cta-btn {
    animation: fadeOutDown 0.4s ease-in forwards;
}

/* slider title */
.st-style5-title {
   font-size: 28px;
    /*font-family: 'Gordita', sans-serif !important;*/
   font-weight: 700;
   line-height: 1.2;
   /* margin-bottom: 24px; */ /* Replaced by gap */
   color: #ffffff;
   opacity: 0;
   transform: translateY(30px);
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   text-rendering: optimizeLegibility;
   backface-visibility: hidden;
   -webkit-backface-visibility: hidden;
   position: relative;
   cursor: pointer;
   display: inline; /* required for per-line underline */
   text-decoration: none; /* default off */
}

.st-style5-title:hover {
   text-decoration: underline;
   text-decoration-thickness: 2px;   /* adjust thickness */
   text-underline-offset: 4px;       /* spacing from text */
}


/* end slider */
.st-style5-description {
    font-size: 15px;
    line-height: 1.6;
    /* margin-top: 20px; */ /* Replaced by gap */
    /* margin-bottom: 32px; */ /* Replaced by gap */
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    min-height: 0; /* Ensures no space is taken when empty */
}

.st-style5-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #0046be;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 12px 35px rgba(0, 70, 190, 0.25), 0 4px 15px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(40px);
    margin-top: auto; /* Push button to bottom when no description */
    align-self: flex-start; /* Prevent button from stretching */
}

.st-style5-cta-btn:hover {
    background: #000;
    color: #ffffff;
    transform: translateY(-2px);
}

.st-style5-cta-btn svg {
    transition: transform 0.3s ease;
}

.st-style5-cta-btn:hover svg {
    transform: translateX(4px);
}

/* Right Column - Flyer Layout */
.st-style5-right-column {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align to right edge */
    min-height: 600px;
    z-index: 2;
    position: relative;
    padding: 10px 0 10px 20px; /* Reduced top/bottom, no right padding */
}

.st-style5-flyer-wrapper {
    width: 100%;
<<<<<<< HEAD
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for landscape */
=======
    height: 0px;
>>>>>>> 2a8536fda3ecd487a3d2a5b4e82431dd204f3236
    /* border-radius: 12px; */
    padding-bottom: 56.25%;
    overflow: hidden;
    position: relative;
}

.st-style5-flyer-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.st-style5-slide.active .st-style5-flyer-image {
    transform: scale(1.02);
}

.st-style5-flyer-overlay {
    display: none;
}

.st-style5-flyer-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    color: white;
}

.st-style5-flyer-top {
    display: flex;
    justify-content: flex-end;
}

.st-style5-flyer-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #1a365d;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.st-style5-flyer-bottom {
    text-align: left;
}

.st-style5-flyer-heading {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.st-style5-flyer-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.st-style5-flyer-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.st-style5-flyer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    color: white;
}

.st-style5-flyer-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.st-style5-flyer-placeholder .st-style5-flyer-content {
    color: #64748b;
    text-align: center;
}

.st-style5-flyer-placeholder .st-style5-flyer-badge {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.st-style5-flyer-placeholder .st-style5-flyer-heading {
    color: #475569;
    text-shadow: none;
}

.st-style5-flyer-placeholder .st-style5-flyer-text {
    color: #64748b;
    text-shadow: none;
}

.st-style5-flyer-placeholder .st-style5-flyer-button {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

/* Navigation Controls - Clean Design */
.st-style5-navigation {
    position: absolute;
    top: 30px;
    left: 170px;
    z-index: 10;
}

.st-style5-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-style5-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
     padding: 3px 8px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 35px;
}

.st-style5-nav-btn:hover {
    left: -2.5rem;
    transform: scale(1.1);
}

.st-style5-nav-btn i {
    transition: transform 0.2s ease;
}

.st-style5-nav-btn:hover i {
    transform: scale(1.1);
}

.st-style5-counter {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 30px;
}

.st-style5-separator {
    opacity: 0.7;
    margin: 0 2px;
}

/* Animations */
/* Simple Entry Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpSlow {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpFast {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Exit Animations */
@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Tablet and Mobile Stacking Layout */
@media (max-width: 1024px) {
    .st-style5-navigation {
        position: absolute;
        top: 0px;
        right: 20px;
        left: auto; /* Ensure left is not set */
        z-index: 20;
    }
    /* Full width background cover */
    .st-style5-swiper {
        background: linear-gradient(135deg, #003a9b 0%, #0046be 100%);
        width: 100%;
        position: relative;
    }

    .st-style5-container {
        display: flex;
        flex-direction: column;
        min-height: auto;
        height: auto;
    }

    /* Image on top */
    .st-style5-right-column {
        order: 1;
        width: 100%;
        flex: none;
        min-height: auto;
    }

    .st-style5-flyer-wrapper {
        width: 100%;
        padding-bottom: 40%;
        /*height: auto;*/
    }

    .st-style5-flyer-image {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        object-position: center;
    }

    /* Text below */
    .st-style5-left-column {
        order: 2;
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 28px 20px;
        box-sizing: border-box;

        /* ✅ Align everything left */
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Title */
    .st-style5-title {
        font-size: 25px; /* fixed size */
        font-weight: 700; /* remain bold */
        line-height: 1.2;
        margin-bottom: 1px; /* tighter spacing */
    }

    /* Description */
    .st-style5-description {
        font-size: 15px; /* fixed size */
        line-height: 1.4;
        margin-bottom: 16px; /* tighter spacing */
    }

    /* Button */
    .st-style5-cta-btn {
        padding: 10px 18px;
        font-size: 13px;
        margin-bottom: 20px;
        align-self: flex-start; /* ✅ keep button left */
    }

   /* Navigation controls */
.st-style5-navigation {
    position: absolute;
    top: 15px;      /* distance from top */
    right: 15px;    /* distance from right */
    z-index: 20;
    display: inline-flex;
    align-items: center;
    /* gap: 8px; */
    background: rgba(26, 54, 93, 0.7);
    border-radius: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    width: auto;
    max-width: fit-content;
}

.st-style5-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-style5-counter {
    font-size: 14px;
    line-height: 1;
    color: #fff; /* ensure visibility */
}

    .st-style5-flyer-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .st-style5-flyer-content {
        padding: 20px;
    }

    .st-style5-flyer-heading {
        font-size: clamp(18px, 2.5vw, 24px);
    }

    .st-style5-flyer-text {
        font-size: 13px;
    }

    .st-style5-flyer-button {
        padding: 10px 20px;
        font-size: 13px;
    }

  
}

/* Responsive Design */
@media (max-width: 991px) {
    .st-style5-container {
        min-height: 600px;
    }
    
    .st-style5-left-column {
        padding: 50px 30px;
    }
    
    .st-style5-title {
        font-size: clamp(28px, 3.5vw, 48px);
    }
    
    .st-style5-description {
        font-size: 16px;
    }
    
    .st-style5-flyer-wrapper {
        padding-bottom: 60%; /* Slightly more square for large tablets */
    }
    
    .st-style5-flyer-content {
        padding: 20px;
    }
    
    .st-style5-flyer-heading {
        font-size: clamp(18px, 2.5vw, 24px);
    }
    
    .st-style5-flyer-text {
        font-size: 13px;
    }
    
    .st-style5-flyer-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Mobile Stacking Layout */
@media (max-width: 767px) {
    /* Full width background cover for mobile */
    .st-style5-swiper {
        background: linear-gradient(135deg, #003a9b 0%, #0046be 100%);
        height: auto !important; /* Force auto height to grow with content */
        min-height: auto !important; /* Remove any min-height constraints */
    }
    
    .st-style5-swiper::before {
        width: 100%; /* Full width coverage */
    }
    
    .st-style5-container {
        flex-direction: column;
        min-height: auto;
        height: auto;
        overflow: visible; /* Ensure content isn't clipped */
    }
    
    /* Image on top for stacked layout - Full width */
    .st-style5-right-column {
        order: 1;
        min-height: 250px; /* Reduced from 300px */
        flex: none;
        padding: 0; /* No padding for full width */
        width: 100%;
        margin: 0; /* Remove any margins */
    }
    
    .st-style5-flyer-wrapper {
        height: 250px; /* Reduced from 300px */
    }
    
    .st-style5-flyer-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .st-style5-flyer-content {
        padding: 16px;
    }
    
    .st-style5-flyer-heading {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .st-style5-flyer-text {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    .st-style5-flyer-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .st-style5-flyer-badge {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    /* Text below for stacked layout - Fully responsive */
    .st-style5-left-column {
        order: 2;
        flex: none;
        height: auto; /* Let content define height */
        min-height: auto; /* Remove any min-height constraints */
        padding: clamp(30px, 5vw, 50px) clamp(15px, 3vw, 25px) clamp(40px, 6vw, 80px); /* Fluid padding */
        justify-content: flex-start; /* Align content to left */
        align-items: flex-start; /* Align items to left */
        text-align: left;
        position: relative; /* Ensure proper stacking context */
        z-index: 3; /* Higher z-index than other elements */
        width: 100%;
        box-sizing: border-box;
    }
    
    .st-style5-content {
        max-width: 100%; /* Use full available width */
        width: 100%;
        align-items: flex-start; /* Left align all content */
        display: flex;
        flex-direction: column;
        gap: clamp(6px, 1.5vw, 12px); /* Fluid spacing that adapts to screen size */
    }
    
    .st-style5-cta-btn {
        margin-top: clamp(12px, 2vw, 24px); /* Fluid margin above button */
        z-index: 4; /* Ensure button is on top */
        position: relative;
        width: fit-content; /* Don't stretch the button */
    }
    
    .st-style5-title {
        font-size: clamp(18px, 4vw, 28px); /* Fluid font size */
        line-height: 1.1;
    }
    
    .st-style5-description {
        font-size: clamp(13px, 2.5vw, 16px); /* Fluid font size */
        line-height: 1.4;
    }
    
    .st-style5-cta-btn {
        padding: clamp(10px, 2vw, 16px) clamp(18px, 3vw, 28px); /* Fluid padding */
        font-size: clamp(12px, 2.2vw, 15px); /* Fluid font size */
        box-shadow: 0 4px 12px rgba(0, 70, 190, 0.3); /* Enhanced shadow for visibility */
        border: 2px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    }
    
    .st-style5-navigation {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 15;
        background: none; /* Remove background */
        border: none; /* Remove border */
        padding: 0; /* Remove padding */
        backdrop-filter: none; /* Remove blur effect */
        -webkit-backdrop-filter: none;
        width: auto; /* Auto width to fit content only */
        min-width: auto;
    }
    
    st-style5-nav-controls {
        padding: 6px 16px;
        gap: 12px;
    } 
    
    .st-style5-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .st-style5-counter {
        font-size: 12px;
        padding: 0 6px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .st-style5-right-column {
        padding: 0; /* No padding for full width */
    }
    
    .st-style5-flyer-wrapper {
        padding-bottom: 45%; /*  More landscape for mobile */
        width: 100vw; /* Full viewport width */
        margin-left: calc(-50vw + 50%); /* Center and extend to edges */
    }
    
    .st-style5-left-column {
        padding: 30px 16px; /* Reduced padding for mobile */
    }
    
    .st-style5-navigation {
        top: 15px;
        right: 15px;
        padding: 0; /* Remove padding */
        background: none; /* Remove background */
        border: none; /* Remove border */
        border-radius: 0; /* Remove border radius */
    }
}

@media (max-width: 575px) {
    .st-style5-right-column {
        min-height: auto; /* Let aspect ratio control height */
        padding: 0; /* No padding for full width */
    }
    
    .st-style5-flyer-wrapper {
        padding-bottom: 42%; /* Even more landscape for small mobile */
        width: 100vw; /* Full viewport width */
        margin-left: calc(-50vw + 50%); /* Center and extend to edges */
    }
    
    .st-style5-left-column {
        padding: 25px 12px; /* More compact for small mobile */
    }
    
    .st-style5-flyer-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .st-style5-placeholder {
        height: 220px;
    }
    
    .st-style5-left-column {
        padding: 25px 16px; /* Further reduced padding */
    }
    
    .st-style5-title {
        font-size: 20px; /* Reduced from 24px */
    }
    
    .st-style5-description {
        font-size: 13px; /* Reduced from 14px */
        line-height: 1.3;
    }
    
    .st-style5-cta-btn {
        padding: 8px 16px; /* Reduced padding */
        font-size: 12px; /* Reduced from 13px */
    }
    
    .st-style5-tag {
        font-size: 8px !important; /* Reduced tag size */
        padding: 3px 6px;
    }
    
    .st-style5-navigation {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 15;
        background: rgba(0, 0, 0, 0.45);
        padding: 2px 4px;
        max-width: calc(100% - 24px);
    }
    
    .st-style5-nav-controls {
        gap: 8px;
    }
    
    .st-style5-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
    
    .st-style5-counter {
        font-size: 15px;
    }
}
