/* ─────────────────────────────────────────────
   Episode Category Section (Reusable Component)
   ───────────────────────────────────────────── */

.episode-category-section {
    padding: 60px 0 60px;
    background: #21182C;
}

.episode-category-block {
    padding: 44px 42px 48px;
    border-radius: 22px;
    background: #271C33;
}

.episode-category-block+.episode-category-block {
    margin-top: 52px;
}

/* ── Header row ── */
.episode-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.episode-category-header-text {
    flex: 1;
    min-width: 0;
}

.episode-category-title {
    margin: 0 0 20px;
    color: #8AC7E6 !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.episode-category-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.65;
}

.episode-category-desc.is-collapsible:not(.is-expanded) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.episode-text-toggle {
    display: inline-flex;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fed305;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.episode-text-toggle:hover {
    color: #ffe94a;
}

.episode-category-cta {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 40px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #fed305;
    color: #4D3766 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.episode-category-cta:hover {
    background: #ffe94a;
    color: #4d3766;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(254, 211, 5, 0.25);
}

/* ── Episode cards grid ── */
.episode-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* ── Individual card ── */
.episode-card {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: transform 0.24s ease;
}

.episode-card:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
}

.episode-card-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.episode-card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.episode-card:hover .episode-card-thumb img {
    transform: scale(1.04);
}

.episode-card-body {
    margin-top: 12px;
}

.episode-card-body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-card:hover .episode-card-body p {
    color: rgba(255, 255, 255, 0.78);
}

/* ─── Responsive ─── */
@media (max-width: 959px) {
    .episode-category-block {
        padding: 32px 28px 36px;
    }

    .episode-category-title {
        font-size: 22px;
    }

    .episode-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 639px) {
    .episode-category-section {
        padding: 40px 0 52px;
    }

    .episode-category-block {
        padding: 24px 18px 28px;
        border-radius: 16px;
    }

    .episode-category-block+.episode-category-block {
        margin-top: 36px;
    }

    .episode-category-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 22px;
    }

    .episode-category-title {
        font-size: 20px;
    }

    .episode-category-desc {
        font-size: 13px;
    }

    .episode-category-cta {
        align-self: flex-start;
        min-width: 130px;
        height: 36px;
        padding: 0 22px;
        font-size: 13px;
    }

    .episode-category-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
