/* index.php (homepage) styles */

/* ─── Horizontal video rails (Netflix-style) ─── */
.video-rail {
    position: relative;
    /* Allow buttons/fades to sit outside the scroll area without clipping */
    margin: 0;
}
.video-rail .js-video-grid {
    /* Override the existing CSS grid with a single horizontal flex row */
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1.25rem;
    padding: 0.5rem 0 1rem 0;
    scroll-padding-left: 0.25rem;
    width: 100%;
}
.video-rail .js-video-grid::-webkit-scrollbar { display: none; height: 0; }
.video-rail .js-video-card {
    flex: 0 0 auto;
    width: 280px;
    max-width: 80vw;
    scroll-snap-align: start;
}
@media (min-width: 992px) {
    .video-rail .js-video-card { width: 300px; }
}

/* Edge fades (gradient overlays that hint there is more to scroll) */
.video-rail-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 2;
}
.video-rail-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(248,248,248,0.95), rgba(248,248,248,0));
}
.video-rail-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(248,248,248,0.95), rgba(248,248,248,0));
}
.video-rail.can-scroll-left  .video-rail-fade-left  { opacity: 1; }
.video-rail.can-scroll-right .video-rail-fade-right { opacity: 1; }

/* Prev/Next chevron buttons */
.video-rail-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95);
    color: #1a1a1a;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.video-rail-btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.video-rail-btn:focus { outline: 2px solid #2e7d32; outline-offset: 2px; }
.video-rail-btn[hidden] { display: none; }
.video-rail-prev { left: -6px; }
.video-rail-next { right: -6px; }

/* On small screens, hide the chevrons — touch users swipe instead */
@media (max-width: 600px) {
    .video-rail-btn { display: none; }
}

/* Hero / tagline banner */
.js-hero { padding: 28px 16px 8px; }
.js-hero-inner { max-width: 1500px; margin: 0 auto; padding: 0 24px; text-align: center; }
.js-hero-tagline { font-size: 1.05rem; line-height: 1.55; color: #2E7D32; margin: 0; font-style: italic; font-weight: 500; }
@media (min-width: 700px) { .js-hero-tagline { font-size: 1.18rem; } }
@media (max-width: 480px) { .js-hero { padding: 18px 12px 4px; } .js-hero-tagline { font-size: 0.98rem; } }

/* Video duration overlay */
.js-player-wrap { position: relative; }
.js-card-duration { position: absolute; bottom: .5rem; right: .5rem; background: rgba(0,0,0,.78); color: #fff; font-size: .78rem; font-weight: 600; padding: .15rem .4rem; border-radius: 4px; pointer-events: none; z-index: 2; line-height: 1.2; font-variant-numeric: tabular-nums; }