:root {
    --ease-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hst-main-wrapper {
    position: relative;
    width: 100%;
    height: var(--hst-h-pc, 100vh);
    overflow: hidden;
    background: #000;
}

.hst-main-wrapper .hero-slider {
    width: 100%;
    height: 100%;
    background: #000;
    margin: 0 !important;
    padding: 0 !important;
    cursor: grab;
    z-index: 1;
}

.hst-main-wrapper .hero-slider:active {
    cursor: grabbing;
}

.hst-main-wrapper .swiper-slide {
    overflow: hidden;
    background: #000;
    visibility: visible;
    pointer-events: none;
    z-index: 1;
}

.hst-main-wrapper .swiper-slide-active {
    pointer-events: auto;
    z-index: 2;
}

.hst-main-wrapper .slide-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    will-change: transform;
    transform: scale(1);
}

.hst-main-wrapper .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

/* --- Alignment & Layout --- */
.hst-main-wrapper .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Default padding, overridden by specific padding settings if needed */
    padding: 0 5%;
    box-sizing: border-box;
    z-index: 10;
    color: #fff;
    pointer-events: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    opacity: 0;
    transition: opacity .6s ease, transform .8s var(--ease-quart);
}

.hst-align-left .slide-content {
    align-items: flex-start;
    text-align: left;
    padding-left: 10%;
}

.hst-align-right .slide-content {
    align-items: flex-end;
    text-align: right;
    padding-right: 10%;
}

.hst-main-wrapper .swiper-slide-active .slide-content {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* --- Typography --- */
.hst-main-wrapper .slide-title,
.hst-global-title {
    /* Priority to the variable, then fallback to The Seasons */
    font-family: var(--hst-head-font), "The Seasons", "FONTSPRING DEMO - The Seasons", serif;
}

.hst-main-wrapper .slide-title {
    font-size: var(--hst-title-pc, 92px) !important;
    line-height: 108px !important;
    font-weight: var(--hst-w-title, 700);
    letter-spacing: -0.02em;
    
    /* Layout: Margin Top Controlled by Settings now */
    margin-top: var(--hst-title-mt-pc, 0px) !important;
    margin-bottom: 24px !important;
    margin-left: auto;
    margin-right: auto;
    
    max-width: 800px;
    
    /* Text Transform: None (as requested) */
    text-transform: none !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hst-main-wrapper .slide-desc {
    font-family: var(--hst-desc-font), sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    font-weight: var(--hst-w-desc, 400);
    
    margin-bottom: 48px;
    color: #f0f0f0;
    max-width: 750px;
    
    /* Padding Controlled by Settings */
    padding-left: var(--hst-desc-pad-pc, 0px);
    padding-right: var(--hst-desc-pad-pc, 0px);
    
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.hst-main-wrapper .btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.hst-align-left .btn-group {
    justify-content: flex-start;
}

.hst-align-right .btn-group {
    justify-content: flex-end;
}

/* --- Buttons --- */
.hst-main-wrapper .hst-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 53px;
    padding: 0;
    
    border-radius: 0px; 
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-family: var(--hst-desc-font), sans-serif;
    font-size: 16px;
    
    background: transparent;
    border: 1px solid #ffffff;
    
    transition: background .3s, color .3s;
    white-space: nowrap;
}

.hst-main-wrapper .hst-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* --- Social Sidebar (Preserved) --- */
.hst-social-sidebar {
    position: absolute;
    left: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
    color: #fff;
}

.hst-social-sidebar .social-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--hst-desc-font), sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.9;
}

.hst-social-sidebar .social-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
}

.hst-social-sidebar .social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hst-social-sidebar .social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    padding: 0;
}

.hst-social-sidebar .social-item svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

.hst-social-sidebar .social-item:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* --- Pagination & Controls --- */
.hst-main-wrapper .swiper-pagination {
    position: absolute;
    bottom: 40px !important;
    left: 120px !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    z-index: 100;
}

.hst-main-wrapper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    opacity: 1;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    margin: 0 !important;
}

.hst-main-wrapper .swiper-pagination-bullet:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hst-main-wrapper .swiper-pagination-bullet-active {
    width: 40px;
    background: #fff;
    border-color: #fff;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* --- Controls Wrapper --- */
.hst-mob-controls-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.hst-main-wrapper .controls-wrapper {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.hst-main-wrapper .control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 20, .6);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    cursor: pointer;
    transition: transform .2s, background .2s;
    padding: 0;
    outline: 0;
}

.hst-main-wrapper .autoplay-btn {
    width: 56px;
    height: 56px;
    background: 0 0;
    border: none;
}

.hst-main-wrapper .timer-svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.hst-main-wrapper .timer-svg circle {
    fill: none;
    stroke-width: 2.5;
}

.hst-main-wrapper .timer-svg .track {
    stroke: rgba(255, 255, 255, 0.2);
}

.hst-main-wrapper .timer-svg .progress {
    stroke: #fff;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
}

.hst-main-wrapper .icon-wrap {
    position: absolute;
    pointer-events: none;
}

.hst-main-wrapper .icon-state {
    transition: opacity .3s;
    fill: #fff;
    display: block;
}

.hst-main-wrapper .autoplay-btn .icon-play,
.hst-main-wrapper .autoplay-btn.is-paused .icon-pause {
    display: none;
}

.hst-main-wrapper .autoplay-btn.is-paused .icon-play {
    display: block;
}

.hst-main-wrapper .video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, .2);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: .8s linear infinite spin;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 5;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hst-slider-instance.hst-zoom-effect .swiper-slide-active .slide-media {
    animation: 6s ease-out forwards hstZoom;
}

@keyframes hstZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hst-social-sidebar {
        display: none;
    }

    .hst-main-wrapper {
        height: var(--hst-h-mob, 65vh);
        display: flex;
        flex-direction: column;
    }

    .hst-main-wrapper .slide-content {
        padding: 0 20px;
        align-items: center !important;
        text-align: center !important;
    }

    .hst-main-wrapper .slide-title {
        font-size: var(--hst-title-mob, 3rem) !important;
        line-height: 1.1 !important;
        
        /* Mobile Margin Top Setting */
        margin-top: var(--hst-title-mt-mob, 0px) !important;
        margin-bottom: 20px !important;
    }
    
    .hst-main-wrapper .slide-desc {
        margin-bottom: 30px !important;
        /* Mobile Padding Setting */
        padding-left: var(--hst-desc-pad-mob, 0px);
        padding-right: var(--hst-desc-pad-mob, 0px);
    }

    .hst-main-wrapper .btn-group {
        justify-content: center !important;
    }

    .hst-mob-controls-row {
        position: absolute;
        bottom: 20px;
        top: auto;
        height: 60px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .hst-main-wrapper .swiper-pagination {
        position: static !important;
        margin: 0 !important;
        transform: none !important;
    }

    .hst-main-wrapper .controls-wrapper {
        display: none;
    }
    
    .hst-main-wrapper .hst-btn {
        width: 160px;
        height: 48px;
    }
}