/* ============================================
   Hero Slider - Default Template Design
   Supports both Images and Videos
   ============================================ */

/* Slider container */
.hiraola-slider_area-2 {
    position: relative;
    overflow: hidden;
    background: #11100e;
}

.main-slider {
    position: relative;
}

/* Single slide */
.main-slider .single-slide {
    --slide-title-color: #ffffff;
    --slide-subtitle-color: #f4d890;
    --slide-description-color: #ffffff;
    --slide-button-color: #c59a4a;
    --slide-button-text-color: #ffffff;
    --slide-overlay-color: rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 76vh, 820px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-slider .single-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(16, 13, 10, 0.72) 0%, rgba(16, 13, 10, 0.42) 45%, rgba(16, 13, 10, 0.12) 100%),
        linear-gradient(0deg, rgba(16, 13, 10, 0.32) 0%, rgba(16, 13, 10, 0) 40%);
    pointer-events: none;
}

/* Video background support */
.slider-bg-video,
.slider-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 7s ease, filter 0.6s ease;
}

.slick-current .slider-bg-video,
.slick-current .slider-bg-image {
    transform: translate(-50%, -50%) scale(1.035);
}

/* Slider overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--slide-overlay-color);
    z-index: 2;
    mix-blend-mode: multiply;
}

.hero-slide-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* Content container */
.main-slider .container,
.main-slider .container-fluid {
    position: relative;
    z-index: 4;
}

.hero-slide-shell {
    width: 100%;
    min-height: inherit;
}

/* Slider content */
.slider-content {
    position: absolute;
    z-index: 5;
    max-width: 640px;
    padding: 34px 38px 38px;
    isolation: isolate;
}

.slider-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-left: 2px solid rgba(244, 216, 144, 0.7);
    background: linear-gradient(90deg, rgba(15, 12, 10, 0.42), rgba(15, 12, 10, 0));
    opacity: 0.86;
    pointer-events: none;
}

.slider-content h5 {
    color: var(--slide-subtitle-color);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slider-content h2 {
    color: var(--slide-title-color);
    font-size: clamp(42px, 5.4vw, 78px);
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 0.98;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 16px 38px rgba(0,0,0,0.42);
}

.slider-content h3 {
    color: var(--slide-description-color);
    max-width: 560px;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 500;
    margin-bottom: 28px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.slider-content h4 {
    color: var(--slide-description-color);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out;
}

.slider-fallback-slide {
    background: linear-gradient(135deg, #123f35 0%, #5b1f2d 58%, #c59a4a 100%);
}

/* Button */
.slide-btn {
    animation: fadeInUp 1.4s ease-out;
    display: inline-flex;
    width: auto;
    max-width: 100%;
    position: relative;
    z-index: 6;
}

.hiraola-slider_area-2 .slider-content .hiraola-btn-ps_center,
.hiraola-slider_area-2 .slide-btn.hiraola-btn-ps_center {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    max-width: 100%;
}

.hiraola-slider_area-2 .hiraola-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    line-height: 1.1;
    box-sizing: border-box;
    padding: 16px 28px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    border-radius: 14px;
    border-color: var(--slide-button-color);
    background-color: var(--slide-button-color);
    color: var(--slide-button-text-color);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(0,0,0,0.28);
    white-space: nowrap;
}

.hiraola-slider_area-2 .hiraola-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(0,0,0,0.36);
    opacity: 1;
}

.hero-button-style-outline .hiraola-btn {
    background-color: transparent;
    color: var(--slide-button-color);
}

.hero-button-style-rounded .hiraola-btn {
    border-radius: 16px;
}

.hero-button-style-pill .hiraola-btn {
    border-radius: 999px;
}

.hero-button-pos-top-left,
.hero-button-pos-top-center,
.hero-button-pos-top-right,
.hero-button-pos-center-left,
.hero-button-pos-center-center,
.hero-button-pos-center-right,
.hero-button-pos-bottom-left,
.hero-button-pos-bottom-center,
.hero-button-pos-bottom-right {
    position: absolute;
}

.hero-content-pos-top-left,
.hero-button-pos-top-left {
    top: 14%;
    left: 15px;
    text-align: left;
}

.hero-content-pos-top-center,
.hero-button-pos-top-center {
    top: 14%;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
}

.hero-content-pos-top-right,
.hero-button-pos-top-right {
    top: 14%;
    right: 15px;
    text-align: right;
}

.hero-content-pos-center-left,
.hero-button-pos-center-left {
    top: 50%;
    left: 15px;
    text-align: left;
    transform: translateY(-50%);
}

.hero-content-pos-center-center,
.hero-button-pos-center-center {
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.hero-content-pos-center-right,
.hero-button-pos-center-right {
    top: 50%;
    right: 15px;
    text-align: right;
    transform: translateY(-50%);
}

.hero-content-pos-bottom-left,
.hero-button-pos-bottom-left {
    bottom: 14%;
    left: 15px;
    text-align: left;
}

.hero-content-pos-bottom-center,
.hero-button-pos-bottom-center {
    bottom: 14%;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
}

.hero-content-pos-bottom-right,
.hero-button-pos-bottom-right {
    right: 15px;
    bottom: 14%;
    text-align: right;
}

.hero-animation-slide-left .slider-content {
    animation: heroSlideLeft 0.8s ease both;
}

.hero-animation-slide-right .slider-content {
    animation: heroSlideRight 0.8s ease both;
}

.hero-animation-slide-up .slider-content {
    animation: heroSlideUp 0.8s ease both;
}

.hero-animation-slide-down .slider-content {
    animation: heroSlideDown 0.8s ease both;
}

.hero-animation-zoom .slider-content {
    animation: heroZoom 0.8s ease both;
}

/* Progress bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(244, 216, 144, 0.95), rgba(255,255,255,0.5));
    width: 0%;
    transition: width linear;
    z-index: 10;
}

.main-slider .slick-dots {
    bottom: 30px;
    z-index: 8;
}

.main-slider .slick-dots li {
    width: 34px;
    height: 4px;
    margin: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.main-slider .slick-dots li.slick-active,
.main-slider .slick-dots li:hover {
    width: 52px;
    background: rgba(244, 216, 144, 0.95);
}

.main-slider .slick-dots li button {
    width: 100%;
    height: 100%;
    padding: 0;
}

.main-slider .slick-dots li button::before {
    display: none;
}

.main-slider .slick-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(244, 216, 144, 0.42);
    background: rgba(15, 12, 10, 0.36);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideLeft {
    from { opacity: 0; margin-left: 44px; }
    to { opacity: 1; margin-left: 0; }
}

@keyframes heroSlideRight {
    from { opacity: 0; margin-right: 44px; }
    to { opacity: 1; margin-right: 0; }
}

@keyframes heroSlideUp {
    from { opacity: 0; margin-top: 44px; }
    to { opacity: 1; margin-top: 0; }
}

@keyframes heroSlideDown {
    from { opacity: 0; margin-top: -44px; }
    to { opacity: 1; margin-top: 0; }
}

@keyframes heroZoom {
    from { opacity: 0; scale: 0.94; }
    to { opacity: 1; scale: 1; }
}

/* Responsive design */
@media (max-width: 1199px) {
    .main-slider .single-slide {
        min-height: 620px;
    }

    .slider-content h2 {
        font-size: 56px;
    }
}

@media (max-width: 991px) {
    .main-slider .single-slide {
        min-height: 560px;
    }
    
    .slider-content h2 {
        font-size: 38px;
    }
    
    .slider-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .main-slider .single-slide {
        min-height: 540px;
    }

    .slider-content {
        padding: 26px 24px 28px;
    }

    .slider-content h5 {
        font-size: 11px;
    }
    
    .slider-content h2 {
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.04;
    }
    
    .slider-content h3 {
        font-size: 16px;
    }
    
    .slider-content h4 {
        font-size: 20px;
    }
    
    .hiraola-slider_area-2 .hiraola-btn {
        padding: 14px 24px;
        font-size: 12px;
    }

    .slider-content {
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .hero-content-pos-top-center,
    .hero-content-pos-center-center,
    .hero-content-pos-bottom-center {
        left: 15px;
        transform: none;
    }

    .hero-content-pos-top-right,
    .hero-content-pos-center-right,
    .hero-content-pos-bottom-right {
        right: 15px;
        left: 15px;
        text-align: left;
    }

    .main-slider .slick-arrow {
        display: none !important;
    }

    .main-slider .slick-dots {
        bottom: 18px;
    }
}

@media (max-width: 575px) {
    .main-slider .single-slide {
        min-height: 510px;
    }
    
    .slider-content h5 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .slider-content h2 {
        margin-bottom: 12px;
    }
    
    .slider-content h3 {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .slider-content h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .hiraola-slider_area-2 .hiraola-btn {
        padding: 13px 20px;
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .slider-content::before {
        border-left-width: 1px;
    }

    .main-slider .slick-dots li {
        width: 24px;
    }

    .main-slider .slick-dots li.slick-active,
    .main-slider .slick-dots li:hover {
        width: 36px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .slider-content h5,
    .slider-content h2,
    .slider-content h3,
    .slider-content h4,
    .slide-btn,
    .hiraola-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .main-slider .single-slide {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .slider-progress {
        display: none;
    }
}
