.hero-news-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--furniture-border);
    border-radius: var(--furniture-radius-md, 16px);
    background: var(--furniture-charcoal);
    box-shadow: 0 16px 42px rgba(32, 28, 24, 0.14);
}

.hero-news-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: clamp(460px, 64vh, 660px);
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
}

.hero-news-swiper > .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.hero-news-swiper > .swiper-wrapper > .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform, opacity;
    display: block;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.swiper-slide-active {
    pointer-events: auto;
    z-index: 2;
}

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

.hero-slide__image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide__image > img,
.hero-slide__image .hero-slide__cover-img,
.hero-slide__image video.hero-bg-video,
.hero-slide__image iframe.hero-bg-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
    z-index: 2;
}

/* Placeholder background when slide has no image */
.hero-slide__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 35%, rgba(42, 36, 30, 0.95), rgba(24, 20, 17, 1)),
                linear-gradient(135deg, #181512 0%, #2b241e 50%, #1e1915 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-slide__placeholder-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

.hero-slide__placeholder-logo {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    max-width: min(340px, 65vw);
    max-height: 110px;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
    pointer-events: none;
    z-index: 1;
}

.hero-slide__placeholder-symbol {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    max-width: 35vw;
    max-height: 40%;
    object-fit: contain;
    opacity: 0.8;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
    pointer-events: none;
    z-index: 1;
}

.hero-slide__image.has-failed-image > img,
.hero-slide__image.has-failed-image .hero-slide__cover-img {
    display: none !important;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 25% 75%, color-mix(in srgb, var(--furniture-charcoal, #201c18) 88%, transparent) 0%, transparent 68%),
        linear-gradient(
            to top,
            color-mix(in srgb, var(--furniture-charcoal, #201c18) 96%, transparent) 0%,
            color-mix(in srgb, var(--furniture-charcoal, #201c18) 75%, transparent) 36%,
            color-mix(in srgb, var(--furniture-charcoal, #201c18) 35%, transparent) 68%,
            color-mix(in srgb, var(--furniture-charcoal, #201c18) 12%, transparent) 100%
        );
    pointer-events: none;
}

.hero-slide__content {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: clamp(34px, 7vh, 76px);
    z-index: 3;
    width: min(calc(100% - 48px), 1220px);
    transform: translateX(-50%);
    display: grid;
    color: #fffdf8;
    pointer-events: none;
}

.hero-slide__content a {
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.hero-slide__floating-top {
    position: absolute;
    top: clamp(18px, 4vh, 34px);
    left: 50%;
    right: auto;
    z-index: 4;
    width: min(calc(100% - 48px), 1220px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-slide__category,
.hero-slide__timestamp {
    width: fit-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(255, 253, 248, 0.32);
    border-radius: var(--furniture-radius-full);
    background: rgba(24, 20, 16, 0.76);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide__category:hover,
.hero-slide__category:focus-visible {
    background: rgba(32, 28, 24, 0.95);
    border-color: rgba(255, 253, 248, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-slide__body,
.hero-slide__body--publication {
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.hero-slide__publication-head {
    display: grid;
    gap: 16px;
}

.hero-slide__title {
    margin: 0;
    font-family: "Marcellus", Georgia, serif;
    font-size: clamp(2.0rem, 3.8vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    max-width: 22ch;
    letter-spacing: -0.01em;
    text-wrap: balance;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-slide__title a {
    color: #fffdf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-slide__title a:hover,
.hero-slide__title a:focus-visible {
    color: #e4c9aa;
}

.hero-slide__summary {
    margin: 0;
    max-width: 640px;
    font-size: clamp(0.92rem, 1.1vw, 1.06rem);
    line-height: 1.6;
    color: rgba(255, 253, 248, 0.92);
    text-wrap: pretty;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-slide__action {
    margin-top: 6px;
}

.hero-slide__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border: 1px solid rgba(255, 253, 248, 0.38);
    border-radius: var(--furniture-radius, 8px);
    background: rgba(255, 253, 248, 0.12);
    color: #fffdf8;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide__action-btn i {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide__action-btn:hover,
.hero-slide__action-btn:focus-visible {
    background: #fffdf8;
    color: var(--furniture-charcoal, #201c18);
    border-color: #fffdf8;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero-slide__action-btn:hover i,
.hero-slide__action-btn:focus-visible i {
    transform: translateX(4px);
}

.hero-slide__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 253, 248, 0.76);
}

.hero-slide__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-slide__avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--furniture-surface) 25%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--furniture-surface) 12%, transparent);
}

.hero-slide__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__avatar-initials {
    color: var(--furniture-surface);
    font-size: 0.72rem;
    font-weight: 800;
}

.hero-slide__author-copy {
    display: grid;
    gap: 2px;
}

.hero-slide__author-name {
    color: rgba(255, 253, 248, 0.88);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-slider__controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-slider__controls--fixed {
    position: absolute;
    right: clamp(20px, 3vw, 44px);
    bottom: clamp(20px, 4.5vh, 46px);
    z-index: 10;
}

.hero-news-swiper-button-prev,
.hero-news-swiper-button-next {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 253, 248, 0.35);
    border-radius: var(--furniture-radius-full);
    background: rgba(20, 16, 12, 0.62);
    color: #fffdf8;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-news-swiper-button-prev:hover,
.hero-news-swiper-button-next:hover,
.hero-news-swiper-button-prev:focus-visible,
.hero-news-swiper-button-next:focus-visible {
    background: #ffffff;
    color: #191613;
    border-color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-news-swiper-pagination {
    position: absolute;
    left: 50% !important;
    right: auto !important;
    bottom: clamp(16px, 4vh, 30px) !important;
    width: min(calc(100% - 48px), 1220px) !important;
    transform: translateX(-50%);
    z-index: 5;
    text-align: left;
}

.hero-news-swiper-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 5px;
    border-radius: var(--furniture-radius-full);
    background: rgba(255, 253, 248, 0.45);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-news-swiper-pagination .swiper-pagination-bullet-active {
    width: 48px;
    background: var(--furniture-warning, #b98955);
    box-shadow: 0 2px 10px rgba(185, 137, 85, 0.45);
}

@media (max-width: 767.98px) {
    .hero-news-swiper {
        height: 500px;
    }

    .hero-slide__floating-top {
        top: 16px;
        width: calc(100% - 32px);
        justify-content: flex-start;
    }

    .hero-slide__content {
        width: calc(100% - 32px);
        bottom: 52px;
    }

    .hero-slide__title {
        font-size: 2.45rem;
        max-width: 11ch;
    }

    .hero-slide__category,
    .hero-slide__timestamp {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .hero-news-swiper-button-prev,
    .hero-news-swiper-button-next {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .hero-slide__title {
        font-size: 3.4rem;
    }
}

/* Play Button Overlay Styles */
.hero-slide__video-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(20, 16, 12, 0.45);
    border: 1px solid rgba(255, 253, 248, 0.35);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fffdf8;
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none; /* Hitbox handles mouse clicks */
    box-shadow: var(--furniture-shadow-soft);
}

.hero-slide.swiper-slide-active:hover .hero-slide__video-trigger {
    background: #ffffff;
    color: #191613;
    border-color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
}

.play-btn-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 253, 248, 0.25);
    animation: playPulse 2s infinite;
    pointer-events: none;
}

@keyframes playPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Video Lightbox Modal Styles */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 6, 0.88);
    backdrop-filter: blur(15px);
}

.video-lightbox__container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 32px), 960px);
    background: #14110f;
    border: 1px solid rgba(255, 253, 248, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-lightbox.is-open .video-lightbox__container {
    transform: scale(1);
}

.video-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 253, 248, 0.15);
    background: rgba(255, 253, 248, 0.06);
    color: rgba(255, 253, 248, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.video-lightbox__close:hover {
    background: #ffffff;
    color: #100a06;
    border-color: #ffffff;
    transform: rotate(90deg);
}

.video-lightbox__content {
    padding: clamp(16px, 3vw, 24px);
    display: grid;
    gap: 16px;
}

.video-lightbox__title {
    margin: 0;
    padding-right: 48px;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #fffdf8;
    line-height: 1.2;
}

.video-lightbox__video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-lightbox__video-wrapper video,
.video-lightbox__video-wrapper iframe,
.video-lightbox__embed-container {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.video-lightbox__video-wrapper video {
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .hero-slide__video-trigger {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .video-lightbox__close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .video-lightbox__content {
        padding: 12px;
        gap: 12px;
    }
    
    .video-lightbox__title {
        font-size: 1.2rem;
        padding-right: 36px;
    }
}

