/* =================================================================
   Video Section — Storefront Styles
   4 layouts: single / horizontal / vertical / carousel
   3 bg variants: light / dark / gradient
   Click-to-play with optional autoplay
   ================================================================= */

:root {
    --vs-radius: 12px;
    --vs-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --vs-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.14);
    --vs-radius-thumb: 14px;
    --vs-radius-card: 14px;
    --vs-play-size: 72px;
    --vs-play-size-sm: 56px;
    --vs-gap: 24px;
    --vs-primary: #D10024;
    --vs-text: #15161D;
    --vs-text-muted: #666;
    --vs-border: #eee;
    --vs-light-bg: #ffffff;
    --vs-light-bg-soft: #f8f8f8;
    --vs-dark-bg: #15161D;
    --vs-dark-text: #f1f5f9;
    --vs-dark-text-muted: #b6bccb;
    --vs-dark-border: rgba(255, 255, 255, 0.08);
}

/* ----- Section shell ----- */
.videos-section {
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.videos-section-bg-light {
    background: var(--vs-light-bg);
    color: var(--vs-text);
}
.videos-section-bg-light .videos-section-title { color: var(--vs-text); }
.videos-section-bg-light .videos-section-subtitle { color: var(--vs-text-muted); }

.videos-section-bg-dark {
    background: var(--vs-dark-bg);
    color: var(--vs-dark-text);
}
.videos-section-bg-dark .videos-section-title { color: var(--vs-dark-text); }
.videos-section-bg-dark .videos-section-subtitle { color: var(--vs-dark-text-muted); }

.videos-section-bg-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffe9ec 50%, #f5f7fa 100%);
    color: var(--vs-text);
}

/* ----- Header ----- */
.videos-section-head {
    text-align: center;
    margin-bottom: 40px;
}
.videos-section-title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
    line-height: 1.2;
}
.videos-section-subtitle {
    font-size: 16px;
    color: var(--vs-text-muted);
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.5;
}

/* ============================================================
   HORIZONTAL GRID (default)
   ============================================================ */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vs-gap);
}
.videos-grid-card {
    background: var(--vs-light-bg);
    border-radius: var(--vs-radius-card);
    overflow: hidden;
    box-shadow: var(--vs-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.videos-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vs-shadow-hover);
}
.videos-grid-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.videos-grid-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.videos-grid-card:hover .videos-grid-thumb {
    transform: scale(1.05);
}
.videos-grid-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.videos-grid-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--vs-text);
    margin: 0 0 6px;
    line-height: 1.35;
}
.videos-grid-caption {
    font-size: 13px;
    color: var(--vs-text-muted);
    margin: 0 0 14px;
    line-height: 1.45;
}
.videos-grid-body .videos-cta {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================================
   SINGLE LAYOUT (hero)
   ============================================================ */
.videos-single {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--vs-light-bg);
    border-radius: var(--vs-radius-card);
    overflow: hidden;
    box-shadow: var(--vs-shadow);
}
.videos-section-bg-dark .videos-single {
    background: #1e1f29;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.videos-section-bg-gradient .videos-single {
    background: #ffffff;
}
.videos-single-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.videos-single-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.videos-single-body {
    padding: 36px 40px;
}
.videos-single-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--vs-text);
    margin: 0 0 12px;
    line-height: 1.25;
}
.videos-section-bg-dark .videos-single-title { color: var(--vs-dark-text); }
.videos-single-caption {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vs-primary);
    margin: 0 0 14px;
    font-weight: 600;
}
.videos-single-desc {
    font-size: 15px;
    color: var(--vs-text-muted);
    line-height: 1.6;
    margin: 0 0 22px;
}
.videos-section-bg-dark .videos-single-desc { color: var(--vs-dark-text-muted); }

/* ============================================================
   VERTICAL STACK (image + text rows)
   ============================================================ */
.videos-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--vs-gap);
}
.videos-vertical-row {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 32px;
    background: var(--vs-light-bg);
    border-radius: var(--vs-radius-card);
    overflow: hidden;
    box-shadow: var(--vs-shadow);
    transition: box-shadow 0.25s ease;
    align-items: stretch;
}
.videos-vertical-row:hover {
    box-shadow: var(--vs-shadow-hover);
}
.videos-section-bg-dark .videos-vertical-row {
    background: #1e1f29;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.videos-vertical-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.videos-vertical-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.videos-vertical-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.videos-vertical-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--vs-text);
    margin: 0 0 8px;
    line-height: 1.3;
}
.videos-section-bg-dark .videos-vertical-title { color: var(--vs-dark-text); }
.videos-vertical-caption {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vs-primary);
    margin: 0 0 10px;
    font-weight: 600;
}
.videos-vertical-desc {
    font-size: 14px;
    color: var(--vs-text-muted);
    line-height: 1.55;
    margin: 0 0 16px;
}
.videos-section-bg-dark .videos-vertical-desc { color: var(--vs-dark-text-muted); }

/* ============================================================
   CAROUSEL (Slick)
   ============================================================ */
.videos-carousel {
    margin: 0 -12px;
}
.videos-carousel .slick-slide {
    padding: 0 12px;
}
.videos-carousel-slide {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--vs-radius-thumb);
    overflow: hidden;
    cursor: pointer;
}
.videos-carousel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.videos-carousel-slide:hover .videos-carousel-thumb {
    transform: scale(1.05);
}
.videos-carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #fff;
    pointer-events: none;
}
.videos-carousel-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.videos-carousel-sub {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Slick arrow restyle for our section */
.videos-section .slick-prev,
.videos-section .slick-next {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}
.videos-section .slick-prev:hover,
.videos-section .slick-next:hover {
    background: var(--vs-primary);
    transform: scale(1.05);
}
.videos-section .slick-prev:hover:before,
.videos-section .slick-next:hover:before {
    color: #fff;
}
.videos-section .slick-prev:before,
.videos-section .slick-next:before {
    color: var(--vs-text);
    font-size: 20px;
    opacity: 1;
}
.videos-section .slick-prev { left: -8px; }
.videos-section .slick-next { right: -8px; }
.videos-section-bg-dark .slick-prev:before,
.videos-section-bg-dark .slick-next:before { color: var(--vs-text); }

/* ============================================================
   PLAY BUTTON OVERLAY (all layouts)
   ============================================================ */
.videos-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--vs-play-size);
    height: var(--vs-play-size);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.videos-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.videos-play:focus { outline: none; }
.videos-play:focus-visible .videos-play-circle { box-shadow: 0 0 0 4px rgba(209, 0, 36, 0.4); }

.videos-play-circle {
    width: var(--vs-play-size);
    height: var(--vs-play-size);
    background: rgba(209, 0, 36, 0.92);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(209, 0, 36, 0.35), 0 0 0 0 rgba(209, 0, 36, 0.6);
    transition: box-shadow 0.3s ease, background 0.2s ease;
    animation: vs-pulse 2.4s ease-in-out infinite;
    padding-left: 4px; /* visual centering of the play triangle */
}
.videos-play:hover .videos-play-circle {
    background: var(--vs-primary);
    box-shadow: 0 8px 26px rgba(209, 0, 36, 0.5);
}
.videos-play-circle i { line-height: 1; }

@keyframes vs-pulse {
    0%   { box-shadow: 0 6px 20px rgba(209, 0, 36, 0.35), 0 0 0 0 rgba(209, 0, 36, 0.6); }
    50%  { box-shadow: 0 6px 20px rgba(209, 0, 36, 0.35), 0 0 0 18px rgba(209, 0, 36, 0); }
    100% { box-shadow: 0 6px 20px rgba(209, 0, 36, 0.35), 0 0 0 0 rgba(209, 0, 36, 0); }
}

/* Subtle gradient on thumbnails to make play button pop */
.videos-grid-media::after,
.videos-single-media::after,
.videos-vertical-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.videos-grid-card:hover .videos-grid-media::after,
.videos-vertical-row:hover .videos-vertical-media::after {
    opacity: 0.8;
}

/* Embed state — when an iframe/video is swapped in */
.videos-embed-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.videos-embed-wrap iframe,
.videos-embed-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.videos-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--vs-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}
.videos-cta:hover {
    background: #b3001f;
    transform: translateY(-1px);
    color: #fff !important;
}
.videos-cta i { font-size: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .videos-section { padding: 48px 0; }
    .videos-section-title { font-size: 24px; }
    .videos-grid { grid-template-columns: repeat(2, 1fr); }

    .videos-single {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .videos-single-body { padding: 24px 24px 28px; }
    .videos-single-title { font-size: 20px; }

    .videos-vertical-row { grid-template-columns: 280px 1fr; gap: 24px; }
    .videos-vertical-body { padding: 22px 24px; }
}

@media (max-width: 640px) {
    .videos-section { padding: 36px 0; }
    .videos-section-head { margin-bottom: 28px; }
    .videos-section-title { font-size: 20px; }
    .videos-section-subtitle { font-size: 14px; }

    .videos-grid { grid-template-columns: 1fr; gap: 18px; }
    .videos-grid-body { padding: 14px 16px 18px; }
    .videos-grid-title { font-size: 15px; }

    .videos-vertical-row { grid-template-columns: 1fr; gap: 0; }
    .videos-vertical-body { padding: 18px 20px 22px; }
    .videos-vertical-title { font-size: 17px; }

    .videos-single-body { padding: 20px 20px 24px; }
    .videos-single-title { font-size: 18px; }
    .videos-single-desc { font-size: 14px; }

    .videos-play,
    .videos-play-circle { width: var(--vs-play-size-sm); height: var(--vs-play-size-sm); }
    .videos-play-circle { font-size: 22px; }

    .videos-section .slick-prev { left: 4px; }
    .videos-section .slick-next { right: 4px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .videos-grid-card,
    .videos-grid-thumb,
    .videos-carousel-thumb,
    .videos-vertical-row,
    .videos-play,
    .videos-play-circle,
    .videos-cta {
        transition: none !important;
        animation: none !important;
    }
}
