/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --primary: #002e6d;
    --secondary: #1a3e80;
    --accent: #ff7f3d;
    --light-blue: #5690d6;
    --cream: #f9f4ef;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

body.has-player {
    padding-bottom: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.subscribe-btn {
    position: relative;
}

.subscribe-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 5px;
    z-index: 100;
    display: none;
}

.subscribe-menu.active {
    display: block;
}

.subscribe-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.subscribe-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.subscribe-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.subscribe-menu a:hover {
    background: var(--cream);
}

/* ============================================================
   NAVIGATION (inc/nav.php)
   ============================================================ */

.site-nav {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--accent);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--accent);
}

.nav-cta {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    text-decoration: none;
    padding: 9px 22px;
    background: var(--accent);
    border-radius: 6px;
    margin-left: 10px;
    transition: background 0.2s ease;
}

.nav-cta:hover {
    background: #e66f35;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        position: absolute;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--primary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 14px 24px;
        border-radius: 0;
        font-size: 1.05rem;
        text-align: right;
    }

    .nav-cta {
        margin: 12px 24px 0;
        text-align: center;
        border-radius: 6px;
    }
}

/* ============================================================
   FOOTER (inc/footer.php)
   ============================================================ */

.site-footer {
    background: var(--primary);
    border-top: 3px solid var(--accent);
    padding: 60px 20px 76px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(255, 127, 61, .04) 12%, transparent 12.5%, transparent 87%, rgba(255, 127, 61, .04) 87.5%),
        linear-gradient(60deg, rgba(86, 144, 214, .06) 25%, transparent 25.5%, transparent 75%, rgba(86, 144, 214, .06) 75%);
    background-size: 80px 140px;
    opacity: 0.5;
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
}

.footer-about h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 14px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.75;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-icon-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer-brand .footer-logo img {
    height: 56px;
    width: auto;
    display: block;
}

.footer-divider {
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-listen h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.footer-listen-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.footer-nav {
    text-align: right;
}

.footer-nav h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 14px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav ul a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav ul a:hover {
    color: white;
}

.footer-nav .footer-cta-link {
    display: inline-block;
    margin-top: 8px;
    padding: 9px 22px;
    background: var(--accent);
    color: white !important;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease !important;
}

.footer-nav .footer-cta-link:hover {
    background: #e66f35 !important;
}

.footer-bottom {
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        order: -1;
    }

    .footer-nav {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding-bottom: 60px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-nav {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   HOME PAGE (index.php) — body.page-home
   ============================================================ */

/* Hero */
.page-home .hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.page-home .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(255, 127, 61, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 127, 61, 0.05) 87.5%, rgba(255, 127, 61, 0.05)),
        linear-gradient(150deg, rgba(255, 127, 61, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 127, 61, 0.05) 87.5%, rgba(255, 127, 61, 0.05)),
        linear-gradient(30deg, rgba(255, 127, 61, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 127, 61, 0.05) 87.5%, rgba(255, 127, 61, 0.05)),
        linear-gradient(150deg, rgba(255, 127, 61, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 127, 61, 0.05) 87.5%, rgba(255, 127, 61, 0.05)),
        linear-gradient(60deg, rgba(86, 144, 214, 0.08) 25%, transparent 25.5%, transparent 75%, rgba(86, 144, 214, 0.08) 75%, rgba(86, 144, 214, 0.08)),
        linear-gradient(60deg, rgba(86, 144, 214, 0.08) 25%, transparent 25.5%, transparent 75%, rgba(86, 144, 214, 0.08) 75%, rgba(86, 144, 214, 0.08));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.5;
}

.page-home .hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 127, 61, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1100px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.hero-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 30px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-line-1 { animation-delay: 0.1s; }
.hero-line-2 { animation-delay: 0.35s; }

.hero-accent {
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent), #ffaa70, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeUp 0.8s ease forwards, shimmer 3s linear 1.2s infinite;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease 0.6s forwards;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-text p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-weight: 400;
    margin: 0 auto;
}

/* Latest Episodes */
.latestcontainer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.latest-episodes {
    padding: 80px 0;
    background: white;
    position: relative;
}

.latest-episodes::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0, 46, 109, 0.03) 0px,
        rgba(0, 46, 109, 0.03) 1px,
        transparent 1px,
        transparent 40px
    );
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.latest-episodes > * {
    position: relative;
    z-index: 1;
}

.episodes-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.episodes-main {
    min-width: 0;
}

.page-home .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-home .episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-section {
    background: var(--cream);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listen-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listen-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.listen-link:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.listen-link i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.listen-link img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.listen-link.apple i { color: #9B59B6; }
.listen-link.spotify i { color: #1DB954; }
.listen-link.amazon i { color: #00A8E1; }
.listen-link.overcast i { color: #FC7E0F; }
.listen-link.castro i { color: #00B265; }
.listen-link.pocket-casts i { color: #F43E37; }
.listen-link.podchaser i { color: #7C3FEB; }
.listen-link.rss i { color: #FF6600; }

/* Episode Cards — Home */
.page-home .episode-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-home .episode-card:hover {
    box-shadow: 0 8px 30px rgba(0, 46, 109, 0.15);
    transform: translateY(-5px);
}

.episode-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.page-home .episode-artwork {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream);
    margin-bottom: 15px;
    cursor: pointer;
}

.page-home .episode-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-home .episode-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
    cursor: pointer;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-home .episode-title:hover {
    color: var(--accent);
}

.page-home .episode-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.page-home .episode-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    flex: 1;
}

.episode-player {
    width: 100%;
    margin-top: auto;
}

.page-home .episode-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.page-home .action-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.page-home .action-btn:hover,
.page-episode .action-btn:hover {
    background: var(--cream);
    border-color: var(--accent);
    color: var(--accent);
}

/* Custom Audio Player — Home */
.custom-player {
    background: var(--cream);
    border-radius: 8px;
    padding: 12px;
}

.custom-player .player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-player .play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.custom-player .play-btn:hover,
.episode-player-large .play-btn:hover {
    background: #e66f35;
}

.custom-player .progress-container {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.custom-player .progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.custom-player .time-display {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 80px;
    text-align: right;
}

.three-dots-btn,
.episode-menu,
.menu-section,
.menu-item,
.menu-label {
    display: none;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--cream);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.about-show-info {
    background: white;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border);
    height: 100%;
}

.about-show-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-show-info p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.hosts-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border);
}

.hosts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.host-card {
    padding: 30px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 30px;
    align-items: center;
    transition: background 0.2s ease;
}

.host-card:first-child {
    border-bottom: 2px solid var(--border);
}

.host-card:hover {
    background: var(--cream);
}

.host-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.host-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 4px solid var(--cream);
}

.host-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-card h4 {
    font-family: 'Solitreo', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.host-bio p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Book Section */
.book-section {
    padding: 20px 0;
    background: white;
    overflow: visible;
    position: relative;
}

.book-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0, 46, 109, 0.03) 0px,
        rgba(0, 46, 109, 0.03) 1px,
        transparent 1px,
        transparent 40px
    );
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.book-section > * {
    position: relative;
    z-index: 1;
}

.book-display {
    display: grid;
    grid-template-columns: 6fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.book-info-column {
    order: 1;
    z-index: 2;
}

.book-details h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.book-details h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 30px;
    line-height: 1.3;
}

.mobilebreak {
    display: none;
}

.book-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.book-link {
    margin-top: 30px !important;
}

.book-link a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    transition: color 0.2s ease;
}

.book-link a:hover {
    color: var(--primary);
}

.amazon-badge {
    float: right;
    max-width: 150px;
    width: 150px;
    height: auto;
    margin: 0 130px 10px 20px;
    clear: right;
    display: none;
}

.book-description {
    overflow: auto;
}

.book-image-column {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.book-cover {
    width: 100%;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    position: relative;
    transform: scale(1.5);
}

/* Sticky Bottom Player */
.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a1628 0%, #001a4d 50%, #0a1628 100%);
    padding: 10px 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5), 0 -2px 0 rgba(255, 127, 61, 0.6);
    z-index: 1000;
    border-top: 2px solid var(--accent);
}

.sticky-player::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), #ffaa70, var(--accent), transparent);
    background-size: 200% auto;
    animation: playerGlow 3s linear infinite;
}

@keyframes playerGlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.sticky-player-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 0;
    align-items: stretch;
    height: 76px;
}

.sticky-player-left {
    display: flex;
    align-items: stretch;
}

.sticky-player-artwork {
    width: 135px;
    height: 76px;
    flex-shrink: 0;
    overflow: hidden;
    background: #1a2a4a;
}

.sticky-player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sticky-player-artwork .artwork-mobile { display: none; }
.sticky-player-artwork .artwork-desktop { display: block; }

.sticky-player-info {
    min-width: 0;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-player-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.sticky-player-info h4 {
    font-family: 'Oswald', sans-serif;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    line-height: 1.2;
}

.sticky-player-info p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
}

.sticky-player-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 340px;
}

.sticky-player-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sticky-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sticky-play-btn:hover {
    background: #ff8c45;
    transform: scale(1.08);
}

.sticky-progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s ease;
}

.sticky-progress-container:hover {
    height: 6px;
}

.sticky-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ffaa70);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.sticky-progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.sticky-progress-container:hover .sticky-progress-bar::after {
    opacity: 1;
}

.sticky-time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    min-width: 90px;
    text-align: right;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.sticky-player-right {
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 10px;
}

.sticky-share-wrap {
    position: relative;
}

.sticky-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1.5px solid rgba(255, 127, 61, 0.5);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sticky-share-btn:hover {
    background: rgba(255, 127, 61, 0.15);
    border-color: var(--accent);
    color: white;
}

.sticky-share-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #0d1e3a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 190px;
    z-index: 1100;
}

.sticky-share-menu.active {
    display: flex;
}

.sticky-share-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sticky-share-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.sticky-share-menu a i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.share-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 8px;
}

/* Home — Responsive */
@media (max-width: 968px) {
    .page-home .hero { padding: 70px 0 60px; }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { font-size: 1.15rem; }
    .latest-episodes { padding: 60px 0; }
    .episodes-layout { grid-template-columns: 1fr; }
    .page-home .episodes-grid { grid-template-columns: 1fr; gap: 20px; }
    .sidebar { position: relative; top: 0; }
    .page-home .section-title { font-size: 2rem; margin-bottom: 30px; }
    .page-home .episode-card { flex-direction: row; }
    .page-home .episode-artwork { width: 160px; min-width: 160px; aspect-ratio: 1 / 1; border-radius: 0; margin-bottom: 0; }
    .episode-content { padding: 16px 20px; }
    .about { padding: 60px 0; }
    .about-layout { grid-template-columns: 1fr; gap: 24px; }
    .about-show-info { padding: 28px; }
    .about-show-info h3 { font-size: 1.6rem; }
    .hosts-container { padding: 28px; }
    .host-card { padding: 20px; gap: 20px; }
    .host-image { width: 100px; height: 100px; }
    .book-section { padding: 40px 0; }
    .book-display { grid-template-columns: 1fr; gap: 30px; }
    .book-image-column { order: 1; max-width: 200px; margin: 0 auto; }
    .book-info-column { order: 2; }
    .book-cover img { transform: scale(1); }
    .book-details h2 { font-size: 2rem; }
    .book-details h3 { font-size: 1.5rem; }
    .mobilebreak { display: block; }
    .sticky-player-content { grid-template-columns: auto auto 1fr; height: 66px; }
    .sticky-player-artwork { width: 117px; height: 66px; }
    .sticky-player-controls { min-width: unset; padding: 10px 16px; border-right: none; }
    .sticky-player-right { display: none; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .latestcontainer { padding: 0 16px; }
    .page-home .hero { padding: 50px 0 44px; }
    .hero-text h1 { font-size: 2.2rem; letter-spacing: 0.5px; }
    .hero-text p { font-size: 1rem; }
    .latest-episodes { padding: 44px 0; }
    .page-home .section-title { font-size: 1.6rem; margin-bottom: 24px; }
    .page-home .episode-card { flex-direction: column; }
    .page-home .episode-artwork { width: 100%; min-width: unset; aspect-ratio: 16 / 9; border-radius: 0; margin-bottom: 0; }
    .episode-content { padding: 14px 16px; }
    .page-home .episode-title { font-size: 1rem; }
    .page-home .episode-description { -webkit-line-clamp: 2; line-clamp: 2;}
    .custom-player { padding: 10px; }
    .custom-player .play-btn { width: 32px; height: 32px; font-size: 0.85rem; }
    .custom-player .time-display { font-size: 0.7rem; min-width: 70px; }
    .listen-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .listen-link { padding: 10px; font-size: 0.8rem; }
    .about { padding: 44px 0; }
    .about-layout { gap: 16px; }
    .about-show-info { padding: 20px; }
    .about-show-info h3 { font-size: 1.4rem; }
    .about-show-info p { font-size: 0.9rem; }
    .hosts-container { padding: 20px 16px; }
    .host-card { grid-template-columns: 1fr; gap: 16px; padding: 20px 0; text-align: center; }
    .host-identity { align-items: center; }
    .host-image { width: 90px; height: 90px; margin-bottom: 8px; }
    .host-card h4 { font-size: 1.2rem; }
    .host-bio p { font-size: 0.88rem; text-align: left; }
    .book-section { padding: 36px 0; }
    .book-display { gap: 24px; }
    .book-image-column { max-width: 140px; }
    .book-details h2 { font-size: 1.5rem; }
    .book-details h3 { font-size: 1.2rem; margin-bottom: 16px; }
    .book-description p { font-size: 0.92rem; }
    .sticky-player { padding: 0; border-top-width: 3px; }
    .sticky-player-content { grid-template-columns: auto 1fr auto; height: 64px; padding: 0; }
    .sticky-player-left { display: flex; align-items: center; padding-left: 10px; }
    .sticky-player-artwork { width: 44px; height: 44px; border-radius: 6px; }
    .sticky-player-artwork .artwork-desktop { display: none; }
    .sticky-player-artwork .artwork-mobile { display: block; }
    .sticky-player-info { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; border-left: none; min-width: 0; }
    .sticky-player-label { display: none; }
    .sticky-player-info h4 { font-size: 0.82rem; letter-spacing: 0; margin-bottom: 3px; text-transform: none; font-family: inherit; font-weight: 600; }
    .sticky-player-info p { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); }
    .sticky-player-controls { display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 0 16px; gap: 0; border-left: none; border-right: none; min-width: unset; }
    .sticky-player-buttons { display: flex; align-items: center; gap: 0; }
    .sticky-progress-container { display: none; }
    .sticky-time { display: none; }
    .sticky-play-btn { width: 40px; height: 40px; font-size: 1rem; }
    .sticky-player-right { display: none; }
}

@media (max-width: 400px) {
    .hero-text h1 { font-size: 1.85rem; }
    .sticky-player-artwork { width: 64px; height: 64px; }
    .listen-links { grid-template-columns: 1fr; }
}

/* ============================================================
   ALL EPISODES PAGE (episodes.php) — body.page-episodes
   ============================================================ */

.page-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.filters-sidebar {
    position: sticky;
    top: 20px;
}

.filters {
    background: var(--cream);
    border-radius: 12px;
    padding: 25px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section input[type="text"],
.filter-section select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    font-family: inherit;
}

.filter-section input[type="text"]:focus,
.filter-section select:focus {
    outline: none;
    border-color: var(--accent);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: auto;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio-item label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.filter-actions {
    margin-top: 20px;
}

.clear-btn {
    width: 100%;
    padding: 10px 20px;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.episodes-content {
    min-width: 0;
}

.results-info {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.page-episodes .episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.page-episodes .episode-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-episodes .episode-card:hover {
    box-shadow: 0 8px 30px rgba(0, 46, 109, 0.15);
    transform: translateY(-5px);
}

.page-episodes .episode-artwork {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--cream);
    display: block;
}

.page-episodes .episode-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-info {
    padding: 20px;
}

.page-episodes .episode-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.page-episodes .episode-title a {
    color: inherit;
    text-decoration: none;
}

.page-episodes .episode-title a:hover {
    color: var(--accent);
}

.page-episodes .episode-meta {
    display: flex;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.page-episodes .episode-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--cream);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .page-title { font-size: 2rem; }
    .page-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: relative; top: 0; }
    .page-episodes .episodes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .page-episodes .episodes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   EPISODE DETAIL PAGE (episode.php) — body.page-episode
   ============================================================ */

.episode-header {
    text-align: center;
    margin-bottom: 40px;
}

.episode-artwork-large {
    max-width: 600px;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.episode-artwork-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-title-large {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.episode-meta-large {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.episode-player-large {
    background: var(--cream);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
}

.episode-player-large .player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.episode-player-large .play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.episode-player-large .progress-container {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.episode-player-large .progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.episode-player-large .time-display {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 100px;
    text-align: right;
}

.page-episode .episode-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.page-episode .action-btn {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.episode-description-large {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.episode-description-large ul,
.episode-description-large ol {
    margin: 15px 0;
    padding-left: 30px;
}

.episode-description-large li { margin: 10px 0; }
.episode-description-large p { margin: 15px 0; }
.episode-description-large div { margin: 15px 0; }

.episode-description-large strong {
    font-weight: 600;
    color: var(--text-dark);
}

.episode-description-large a {
    color: var(--accent);
    text-decoration: none;
}

.episode-description-large a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .episode-title-large { font-size: 1.8rem; }
    .page-episode .episode-actions { flex-direction: column; }
}

/* ============================================================
   RESOURCES PAGE (resources.php) — body.page-resources
   ============================================================ */

.page-resources .hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.page-resources .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(255, 127, 61, .05) 12%, transparent 12.5%, transparent 87%, rgba(255, 127, 61, .05) 87.5%),
        linear-gradient(150deg, rgba(255, 127, 61, .05) 12%, transparent 12.5%, transparent 87%, rgba(255, 127, 61, .05) 87.5%),
        linear-gradient(60deg, rgba(86, 144, 214, .08) 25%, transparent 25.5%, transparent 75%, rgba(86, 144, 214, .08) 75%);
    background-size: 80px 140px;
    opacity: 0.5;
}

.page-resources .hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 127, 61, .15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-resources .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-resources .back-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.page-resources .back-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.page-resources .hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.page-resources .hero h1 span {
    color: var(--accent);
}

.page-resources .hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 50px;
    border-radius: 2px;
}

.resources-body {
    padding: 60px 0 80px;
    background: white;
}

.resources-layout {
    display: grid;
    grid-template-columns: 70% calc(30% - 40px);
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.resources-main {
    min-width: 0;
}

.resources-sidebar {
    position: sticky;
    top: 90px;
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-wrap {
    flex: 1;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 46, 109, 0.12);
    border: 1px solid var(--border);
    border-top: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-sidebar-header {
    background: var(--primary);
    padding: 16px 20px;
    border-bottom: 3px solid var(--accent);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 10px 50px rgba(0, 46, 109, 0.12);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-sidebar-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.chat-sidebar-header p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.chat-sidebar-embed {
    flex: 1;
    min-height: 0;
}

/* Books */
.books-section {
    padding: 10px 0;
    background: white;
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.book-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: center;
    background: var(--cream);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 20px;
}

.book-card:hover {
    box-shadow: 0 10px 40px rgba(0, 46, 109, 0.12);
    transform: translateY(-4px);
}

.book-cover-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover-wrap img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 8px;
}

.book-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.book-info .book-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.book-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.book-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.book-btn:hover {
    background: var(--accent);
}

/* Whitepapers Carousel */
.whitepapers-section {
    padding: 50px 0px 20px 0px;
    background: transparent;
}

.carousel-wrapper {
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
}

.whitepapers-carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.whitepaper-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 16px);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.whitepaper-card:hover {
    box-shadow: 0 8px 30px rgba(0, 46, 109, 0.15);
    transform: translateY(-5px);
}

.whitepaper-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary);
    position: relative;
}

.whitepaper-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.whitepaper-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whitepaper-thumb.placeholder span {
    font-size: 2.5rem;
    opacity: 0.4;
}

.whitepaper-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.whitepaper-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--cream);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
}

.whitepaper-body h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}

.whitepaper-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display:none;
}

.whitepaper-cta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.whitepaper-cta i { font-size: 0.75rem; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 46, 109, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Resources — Responsive */
@media (max-width: 1024px) {
    .resources-layout { grid-template-columns: 1fr; }
    .resources-sidebar { position: relative; top: 0; height: auto; }
    .chat-sidebar-embed { min-height: 600px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .whitepaper-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 768px) {
    .carousel-track-container { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .carousel-track-container::-webkit-scrollbar { display: none; }
    .whitepapers-carousel { transition: none; }
    .whitepaper-card { flex: 0 0 80vw; }
    .carousel-btn { display: none; }
    .page-resources .hero h1 { font-size: 2.5rem; }
    .book-card { grid-template-columns: 1fr; text-align: center; }
    .book-cover-wrap img { max-width: 130px; }
    .section-title { font-size: 2rem; }
}
