/*
=====================================================
Project: Home / Landing Layout
Version: 1.0
Author: Bashar Kherz
Copyright © 2025

Palette:
- Primary Gradient: #6076ED → #0020CB → #0019A2 → #0D249E
- Text: #111, #222, #333, #555, #666, #777
- Surfaces: #FFFFFF, #F7F7F7
=====================================================

SECTION STRUCTURE
=====================================================
1) BASE ------------------------ Body + container
2) NAVBAR ---------------------- Brand, links, CTA
3) HERO ------------------------ Hero image + TV info bar
4) ABOUT ----------------------- Intro text block
5) NEXT EPISODE --------------- CTA + ticker marquee
6) UPCOMING GUESTS ------------ Alternating rows (image + text)
7) GUEST CARDS ---------------- Grid of small cards
8) DIAGONAL SECTION ----------- Split panel with gradient
9) FOOTER --------------------- Columns + bottom links
10) RESPONSIVE ---------------- 1200px, 1071px, 768px, etc.
=====================================================
*/


/* ===========================
   1) BASE
   =========================== */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #F7F7F7;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.main-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* ===========================
   2) NAVBAR
   =========================== */
.custom-navbar {
    background: white;
    border-radius: 80px 80px 0 0;
    padding: 20px 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.custom-navbar .logo {
    height: 100px;
    object-fit: contain;
    margin-top: -25px;
    margin-bottom: -30px;
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

/* CTA */
.contact-btn {
    background: linear-gradient(90deg, #6076ED 0%, #0020CB 50%, #0019A2 90%, #0D249E 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}


/* ===========================
   3) HERO + TV INFO BAR
   =========================== */
.hero-wrapper {
    background-color: #F7F7F7;
    overflow: visible;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
}
.hero-wrapper img {
    width: 100%;
    display: block;
    border-radius: 0 0 80px 80px;
}

/* Floating TV info pill */
.tv-info-bar {
    position: absolute;
    bottom: -35px;
    left: 50%;
    height: 80px;
    width: 60%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 80px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    font-weight: 600;
    font-size: 1.5rem;
    align-items: center;
    z-index: 10;
    margin: 0 auto;
}
.divider {
    font-size: 18px;
    color: #aaa;

}
.tv-info-bar i {
    margin-right: 6px;
    color: #555;
}


/* ===========================
   4) ABOUT
   =========================== */
.about-section {
    text-align: center;
    padding: 60px 20px 40px;
}
.about-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}
.about-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
}
.learn-more {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 16px;
    color: #2A2F99;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.learn-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2A2F99, #041CA1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.learn-more:hover {
    color: #041CA1;
}

.learn-more:hover::after {
    transform: scaleX(1);
}


/* ===========================
   5) NEXT EPISODE + TICKER
   =========================== */
.next-episode-bar {
    background: #1b1b2f;
    color: white;
    padding: 20px 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 8px;
    overflow: hidden;
}

.episode-btn {
    background: linear-gradient(90deg, #6076ED 0%, #0020CB 50%, #0019A2 90%, #0D249E 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease;
}
.episode-btn:hover {
    opacity: 0.95;
}

/* Marquee */
.ticker-container {
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: 100%;
    height: 28px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
    font-size: 14px;
    color: white;
    font-weight: 500;
}
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.ticker-container:hover .ticker-text {
    animation-play-state: paused;
}

/* ===========================
   THIS WEEK GUESTS (Rows)
   =========================== */
.this-week-guests {
    padding: 60px 20px;
    text-align: center;
}
.this-week-guests h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.thisweek-row {
    display: flex;
    align-items: center;
    max-width: 900px;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    text-align: left;
}
.thisweek-row.reverse {
    flex-direction: row-reverse;
}

.thisweek-image img {
    width: 380px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.thisweek-details {
    flex: 1;
    max-width: 600px;
}
.thisweek-details h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}
.thisweek-date {
    font-weight: 600;
    color: #777;
    margin-top: 10px;
}

/* section divider */
.thisweek-divider {
    border: none;
    height: 3px;
    background: #0D249E !important;
    width: 77%;
    margin: 40px auto;
    border-radius: 50px;
}

/* ===========================
   6) UPCOMING GUESTS (Rows)
   =========================== */
.upcoming-guests {
    padding: 60px 20px;
    text-align: center;
}
.upcoming-guests h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Grid wrapper */
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card style */
.upcoming-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.upcoming-image img {
    width: auto;
    max-width: 280px;
    border-radius: 16px;
    /*object-fit: cover;*/
    margin-bottom: 20px;
    height: 250px;
}

.upcoming-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}
.upcoming-date {
    font-weight: 600;
    color: #777;
    margin-top: 5px;
}
/* ===========================
   7) GUEST CARDS (Grid)
   =========================== */
.guest-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.guest-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
}

.guest-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Cards scale responsively; no giant fixed width that forces upscaling */
.guest-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: clamp(280px, 32vw, 360px); /* was 390px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Uniform portrait crop, no distortion, no forced height cap */
.guest-card img {
    display: block;
    width: 100%;
    height: auto;             /* keep natural aspect ratio */
    aspect-ratio: 4 / 5;      /* choose the ratio you want (4/5 works well for portraits) */
    object-fit: cover;        /* fills the box without stretching */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 0 auto;
    /* removed: max-height: 300px;  (this caused squish and blur) */
}

/* Text */
.guest-info { padding: 15px; }

.guest-name {
    font-weight: 600;
    color: #0020CB;
    margin-bottom: 5px;
    font-size: 1rem;
}

.guest-org {
    color: #666;
    font-size: 0.95rem;
}

/* CTA under grid */
.see-all-btn {
    display: inline-block;
    margin-top: 40px;
    background: linear-gradient(90deg, #6076ED 0%, #0020CB 50%, #0019A2 90%, #0D249E 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.see-all-btn:hover { background: #0D249E; }
/* ===========================
   8) DIAGONAL SECTION (Split)
   =========================== */
.diagonal-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
    background: linear-gradient(135deg, #ffffff 49.9%, #041CA1 30%, #010A3B 100%);
    color: #2E2E2E;
}

.left,
.right {
    flex: 1 1 50%;
    min-width: 300px;
    padding: 60px 40px;
    box-sizing: border-box;
    z-index: 1;
}

.left {
    background: transparent;
}
.right {
    color: #ffffff;
}

.left h2, .right h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.left ul {
    list-style: none;
    padding: 0;
}
.left li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.right a {
    display: inline-block;
    margin-top: 20px;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}
.right a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Gradient text accents */
.diagonal-section .right h2 {
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #041CA1 14%, #FFFFFF 47%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.diagonal-section .right p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 500px;
    background: linear-gradient(135deg, #041CA1 7%, #FFFFFF 15%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ===========================
   9) FOOTER
   =========================== */
.footer {
    background: #fff;
    padding: 40px 10px 20px 10px;
    border-radius: 20px;
    width: 100%;
    margin: 80px auto 0px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
    gap: 40px;
}

.footer-box { min-width: 200px; }
.footer-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-box ul {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-box ul li {
    margin-bottom: 8px;
}

.footer-box ul li a,
.footer-box p a {
    color: #000;
    text-decoration: none;
}

/* underline-on-hover links */
.footer-box a {
    color: #000;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}
.footer-box a::after {
    content: "";
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background-color: #0D249E;
    transition: width 0.3s ease;
}
.footer-box a:hover {
    color: #0D249E;
}
.footer-box a:hover::after {
    width: 100%;
}

.social-icon {
    font-size: 2rem;
    margin-right: 10px;
    color: #0d0d0d;
}
.social-icon:hover {
    color: #0073e6;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #555;
}
.footer-bottom a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: #0073e6;
    text-decoration: underline;
}

/* (ADDED) Small heading for the Famous Relatives block */
.footer-subhead {
    margin: 10px 0 6px;
    font-size: 1rem;
}

/* Famous Relatives polish */
.rel-avatars {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 6px;                    /* tighter rhythm */
}

.rel-avatars li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    padding: 6px 8px;            /* gives a “hit area” */
    border-radius: 10px;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.rel-avatars li a:hover {
    background: #F2F5FF;         /* subtle brand-tinted hover */
    color: #0D249E;
    transform: translateY(-1px);
}

.rel-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    /* thin ring to make the avatar pop on white */
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E8ECFF;
}

/* Divider above Socials inside the same footer box */
.footer-sep {
    height: 1px;
    background: #eee;
    margin: 12px 0 10px;
    border-radius: 1px;
}

/* Socials label smaller than main box title (keeps hierarchy) */
.footer-subhead {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

/* Tidy the FB icon line */
.footer-box .socials-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-box .socials-row .social-icon {
    font-size: 1.6rem;           /* a touch smaller to match text height */
    color: #0D249E;
}
.footer-box .socials-row .social-icon:hover {
    color: #0020CB;
}

/* Mobile: center the whole column nicely when stacked */
@media (max-width: 1071px){

}


/* ===========================
   10) RESPONSIVE
   =========================== */

/* — Up to 1200px: fit cards two per row */
@media (max-width: 1200px) {
    .guest-card {
        width:  clamp(280px, calc(50% - 20px), 360px);
    }
}

/* — Up to 1071px: TV info pill compacts, footer stacks */
@media (max-width: 1071px){
    .tv-info-bar {
        font-size: clamp(0.6rem, 2vw, 0.9rem);
        height: auto;
        width: 80%;
        bottom: -20px;
        padding: 10px 16px;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .tv-info-bar i {
        font-size: 1em;
        margin-right: 6px;
    }
    .divider {
        font-size: 1em;
        margin: 2px 6px;
        color: #aaa;
    }
    .tv-info-bar span {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-box {
        width: 100%;
        max-width: 400px;
    }
    .footer-box h3 {
        font-size: 1.4rem;
    }

    .footer iframe {
        width: 80% !important;
        height: 200px;
    }

    .social-icon {
        font-size: 1.5rem;
        margin: 0 8px;
    }
    .footer {
        padding: 40px 20px 20px 20px;
        border-radius: 0;
    }
    .rel-avatars { justify-items: center; }
    .rel-avatars li a { width: 100%; max-width: 360px; }
}

/* — Up to 768px: navbar/hero/about/guests stack */
@media (max-width: 768px) {
    .custom-navbar .logo {
        height: 60px;
        margin-top: -10px;
        margin-bottom: -15px;
    }
    .custom-navbar { padding: 8px 20px; }

    .nav-links {
        gap: 12px;
        font-size: clamp(0.75rem, 2vw, 0.875rem);
        margin-top: 10px;
    }
    .contact-btn {
        font-size: clamp(0.75rem, 2vw, 0.875rem);
        padding: 6px 12px;
        color: white !important;
    }

    .hero-wrapper img {
        border-radius: 0 0 40px 40px;
    }

    .about-section h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    .about-section p {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }

    .next-episode-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 15px;
        text-align: center;
    }
    .episode-btn {
        width: 100%;
        text-align: center;
        font-size: 15px;
        padding: 12px;
    }
    .ticker-container {
        height: auto;
        max-width: 100%;
    }
    .ticker-text {
        font-size: 14px;
        animation-duration: 15s;
    }

    .upcoming-guests { padding: 60px 20px 0px; }
    .guest-row, .guest-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    .guest-image img {
        width: 100%; max-width: 320px;
    }
    .guest-details {
        max-width: 100%;
    }

    .guest-card {
        width: 100%;
        max-width: 520px; /* a friendly cap for sharpness on phones */
        margin-left: auto;
        margin-right: auto;
    }
    .guest-card img {
        height: auto;
    }

    .guest-section h2 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 40px;
    }

    /* Force vertical stack + solid backgrounds on split section */
    .diagonal-section {
        display: block !important;
        background: none !important;
    }
    .left, .right {
        width: 100% !important;
        padding: 40px 20px !important;
    }
    .left {
        background: #ffffff !important;
        color: #2E2E2E !important;
    }
    .right {
        background: #2A2F99 !important;
        color: #ffffff !important;
    }
    .diagonal-section .right h2,
    .diagonal-section .right p {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        color: #ffffff !important;
    }
}


/* 2) Medium screens (≤ 1024px) — tighten spacing */
@media (max-width: 1024px){
    .this-week-guests, .upcoming-guests{ padding: 40px 18px; }
    .thisweek-row{ gap: 16px; margin: 0 auto 24px; max-width: 720px; }
    .thisweek-image img{ width: min(300px, 50vw); }
    .thisweek-details{ max-width: 420px; }
    .upcoming-grid{ max-width: 880px; gap: 18px; }
    .upcoming-image img{ max-width: 220px; }
    .upcoming-details h3{ font-size: 16px; }
    .upcoming-date{ font-size: 13px; }
}

/* 3) Tablets (≤ 820px) — stack This Week rows, 2-up Upcoming */
@media (max-width: 820px){
    .thisweek-row{
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        max-width: 560px;
        gap: 12px;
    }
    .thisweek-row.reverse{ flex-direction: column; }

    .thisweek-image img{
        width: 100%;
        max-width: 520px;
        border-radius: 16px;
    }
    .thisweek-details{ max-width: 100%; }
    .thisweek-details h3{ font-size: 18px; }
    .thisweek-date{ font-size: 13px; }

    .thisweek-divider{ width: 64%; height: 2px; margin: 22px auto; }

    .upcoming-grid{
        grid-template-columns: repeat(2, minmax(0,1fr));
        max-width: 560px;
        gap: 14px;
    }
    .upcoming-card{ padding: 16px; border-radius: 16px; }
    .upcoming-image img{ max-width: none; aspect-ratio: 16/10; }
    .upcoming-details h3{ font-size: 15px; }
}

/* 4) Phones (≤ 520px) — single column, smaller typography/media */
@media (max-width: 520px){
    .guest-card{ width: 100%; max-width: 420px; }
    .this-week-guests, .upcoming-guests{ padding: 28px 14px; }

    .thisweek-row{ gap: 10px; margin: 0 auto 18px; max-width: 420px; }
    .thisweek-image img{
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }
    .thisweek-details h3{ font-size: 16px; }
    .thisweek-date{ font-size: 12px; }

    .thisweek-divider{ width: 50%; height: 1.5px; margin: 14px auto; }

    .upcoming-grid{
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 10px;
    }
    .upcoming-card{
        padding: 12px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }
    .upcoming-image img{ aspect-ratio: 16/10; }
    .upcoming-details h3{ font-size: 15px; }
    .upcoming-date{ font-size: 12px; }
}

/* 5) XS phones (≤ 360px) — ultra compact */
@media (max-width: 360px){
    .thisweek-details h3{ font-size: 15px; }
    .upcoming-details h3{ font-size: 14px; }
}

/* 6) Motion preferences — calmer hovers when reduced motion is on */
@media (prefers-reduced-motion: reduce){
    .upcoming-card{ transition: none; }
    .upcoming-card:hover{ transform: none; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
}
