/* ==========================================================================
   Home: featured podcast (28 Nov 2026, compact redesign). Markup: resources/views/user/partials/_home_podcast.blade.php
   A small header, then one card: the episode on the left, its details on the right.
   Colours only from gateway-theme.css variables; font = var(--gw-font).
   ========================================================================== */
.gw-pod {
    --gw-pod-ease: cubic-bezier(.2, .8, .2, 1);
    padding: 60px 0 68px;
    background: var(--gw-ice);
    font-family: var(--gw-font);
}

/* ---------- header ---------- */
.gw-pod-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 24px;
}
.gw-pod .gw-pod-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gw-gold-dark);
}
.gw-pod .gw-pod-h {
    margin: 0;
    font-family: var(--gw-font);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--gw-navy);
    background: none;
    text-transform: none;
}
.gw-pod .gw-pod-h span { color: var(--gw-gold-dark); }
.gw-pod-sub {
    max-width: 380px;
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gw-slate);
}

/* ---------- card ---------- */
.gw-pod-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 24px;
    overflow: hidden;
    background: var(--gw-white);
    border: 1px solid rgba(var(--gw-navy-rgb), .08);
    box-shadow: 0 18px 44px rgba(var(--gw-navy-rgb), .1);
}

.gw-pod-screen {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--gw-navy);
    overflow: hidden;
}
.gw-pod-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--gw-pod-ease);
}
.gw-pod-screen::after {                          /* navy fade at the bottom behind the play button */
    content: "";
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(to top, rgba(var(--gw-navy-rgb), .8), transparent);
    pointer-events: none;
}
.gw-pod-screen:hover img { transform: scale(1.04); }
.gw-pod-screen:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: -3px; }

.gw-pod-play {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gw-gold-shine);
    color: var(--gw-navy);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transition: transform .25s var(--gw-pod-ease);
}
.gw-pod-play svg { margin-left: 3px; }
.gw-pod-play::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--gw-gold);
    animation: gwPodRing 2.2s ease-out infinite;
}
@keyframes gwPodRing {
    0%   { transform: scale(.92); opacity: .9; }
    100% { transform: scale(1.4); opacity: 0; }
}
.gw-pod-screen:hover .gw-pod-play { transform: scale(1.08); }
.gw-pod-time {
    position: absolute;
    right: 14px;
    bottom: 16px;
    z-index: 1;
    padding: 4px 9px 3px;
    border-radius: 7px;
    background: rgba(var(--gw-navy-rgb), .85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--gw-white);
}

.gw-pod-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 36px;
}
.gw-pod-ep {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gw-gold-dark);
}
.gw-pod-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.gw-pod-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--gw-gold); transform-origin: bottom; animation: gwPodEq 1s ease-in-out infinite; }
.gw-pod-eq i:nth-child(2) { animation-delay: -.3s; }
.gw-pod-eq i:nth-child(3) { animation-delay: -.6s; }
.gw-pod-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes gwPodEq {
    0%, 100% { transform: scaleY(.3); }
    50%      { transform: scaleY(1); }
}
.gw-pod .gw-pod-title {
    margin: 0 0 14px;
    font-family: var(--gw-font);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gw-navy);
    background: none;
    text-transform: none;
}
.gw-pod .gw-pod-title span { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; color: var(--gw-slate); }

.gw-pod-guests {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--gw-slate);
}
.gw-pod-guests b { font-weight: 600; color: var(--gw-navy); }
.gw-pod-avatars { display: inline-flex; flex: none; }
.gw-pod-avatars i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gw-white);
    background: var(--gw-navy);
    color: var(--gw-gold);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
}
.gw-pod-avatars i + i { margin-left: -9px; background: var(--gw-gold-shine); color: var(--gw-navy); }

.gw-pod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.gw-pod-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--gw-navy);
    color: var(--gw-white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s var(--gw-pod-ease), background-color .2s ease;
}
.gw-pod-btn svg { color: var(--gw-gold); }
.gw-pod-btn:hover, .gw-pod-btn:focus-visible { color: var(--gw-white); background: var(--gw-navy-light); transform: translateY(-2px); }
.gw-pod-yt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gw-navy);
    text-decoration: none;
}
.gw-pod-yt svg { color: var(--gw-danger); }
.gw-pod-yt:hover { color: var(--gw-gold-dark); text-decoration: underline; text-underline-offset: 4px; }
.gw-pod-btn:focus-visible, .gw-pod-yt:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 3px; }

/* ---------- video popup ---------- */
.gw-pod-modal { position: fixed; inset: 0; z-index: 10650; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gw-pod-modal[hidden] { display: none; }
.gw-pod-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--gw-navy-rgb), .92);
    opacity: 0;
    transition: opacity .2s ease;
}
.gw-pod-modal-dialog {
    position: relative;
    width: min(1100px, 100%, calc((100vh - 120px) * 16 / 9));
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity .2s var(--gw-pod-ease), transform .2s var(--gw-pod-ease);
}
.gw-pod-modal.is-open .gw-pod-modal-backdrop { opacity: 1; }
.gw-pod-modal.is-open .gw-pod-modal-dialog { opacity: 1; transform: none; }
.gw-pod-modal-frame {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--gw-navy), var(--gw-navy)) padding-box,
        var(--gw-gold-shine) border-box;
    box-shadow: 0 0 60px rgba(var(--gw-gold-rgb), .25), 0 40px 100px rgba(0, 0, 0, .5);
}
.gw-pod-modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 16px; }
.gw-pod-modal-close {
    position: absolute;
    top: -56px;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--gw-gold);
    color: var(--gw-navy);
    cursor: pointer;
    transition: transform .2s ease;
}
.gw-pod-modal-close:hover { transform: rotate(90deg); }
.gw-pod-modal-close:focus-visible { outline: 3px solid var(--gw-white); outline-offset: 3px; }
html.gw-pod-lock, html.gw-pod-lock body { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .gw-pod .gw-pod-h { font-size: 36px; }
    .gw-pod-info { padding: 26px 28px; }
    .gw-pod .gw-pod-title { font-size: 21px; }
    .gw-pod .gw-pod-title span { font-size: 16px; }
}
@media (max-width: 991.98px) {
    .gw-pod { padding: 60px 0 68px; }
    .gw-pod-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
    .gw-pod-sub { max-width: none; }
    .gw-pod-card { grid-template-columns: 1fr; max-width: 640px; }
    .gw-pod-info { padding: 22px 24px 26px; }
}
@media (max-width: 767.98px) {
    .gw-pod { padding: 52px 0 56px; }
    .gw-pod .gw-pod-h { font-size: 28px; }
    .gw-pod-sub { font-size: 14px; }
    .gw-pod-card { border-radius: 20px; }
    .gw-pod-play { width: 50px; height: 50px; left: 14px; bottom: 12px; }
    .gw-pod-play svg { width: 20px; height: 20px; }
    .gw-pod .gw-pod-title { font-size: 19px; }
    .gw-pod .gw-pod-title span { font-size: 15px; }
    .gw-pod-guests { font-size: 13px; }
    .gw-pod-modal { padding: 12px; }
    .gw-pod-modal-close { top: -54px; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-pod-play::before, .gw-pod-eq i { animation: none; }
    .gw-pod-screen img, .gw-pod-btn, .gw-pod-modal-dialog, .gw-pod-modal-backdrop { transition: none; }
}

/* Copy from the reference (28 Nov 2026): description line, "Watch the episode" label on the video, "Available on YouTube" note */
.gw-pod-desc { margin: -4px 0 22px; font-size: 15px; line-height: 1.6; color: var(--gw-slate); }
.gw-pod-watch {
    position: absolute;
    left: 90px;
    bottom: 36px;
    z-index: 1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gw-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.gw-pod-info .gw-pod-yt { margin: 14px 0 0; font-size: 13px; font-weight: 500; color: var(--gw-slate); }
.gw-pod-info .gw-pod-yt:hover { color: var(--gw-slate); text-decoration: none; }
@media (max-width: 767.98px) {
    .gw-pod-watch { left: 76px; bottom: 28px; font-size: 12px; }
    .gw-pod-desc { font-size: 14px; }
}

/* Header is only the "The Gateway Podcast" line (28 Nov 2026): no big heading, no side text. It is the section's h2. */
.gw-pod .gw-pod-kicker {
    display: block;
    margin: 0 0 18px;
    font-family: var(--gw-font);
    line-height: 1.35;
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* "The Gateway Podcast" is the section heading, same size / colours as the other home section titles (28 Nov 2026) */
.gw-pod .gw-pod-h { margin: 0 0 24px; }
@media (max-width: 767.98px) { .gw-pod .gw-pod-h { margin-bottom: 18px; } }
@media (max-width: 767.98px) { .gw-pod .gw-pod-h { font-size: 30px; } }
@media (max-width: 359.98px) { .gw-pod .gw-pod-h { font-size: 26px; } }
