.hero {
    display: flex;
    align-items: center;
    padding: 0;
    background-color: var(--color-bg-light);
}

.hero-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-height: 560px;
}

.hero-left {
    width: 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 5rem 4rem;
    color: var(--color-white);
    background-color: var(--color-bg-light);
}

.hero-left-container {
    max-width: 508px;
    width: 100%;
}

.episode-meta {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.episode-category {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-mid);
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.33rem 0.5rem;
}

.hero-headline {
    font-size: clamp(1.5rem, 1.1094rem + 1.25vw, 2.25rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.hero-description {
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    color: rgba(0, 0, 0, 0.8);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.episode-info {
    display: flex;
    gap: 1rem;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
}

.episode-time,
.episode-duration {
    display: flex;
    align-items: center;
    gap: 0.33rem;
}

.hero-right {
    width: 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-lighter);
}

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

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-lighter);
    font-size: 1.2rem;
}

/* -------------------------------- */
/* ------- Content sections ------- */
/* -------------------------------- */
.content {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.featured {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-item {
    padding: 2rem;
    border: 1px solid var(--color-bg-featured-border);
    border-radius: 8px;
}

.featured-item h3 {
    margin-bottom: 1rem;
}

.featured-item a {
    text-decoration: none;
    color: #333;
}

.featured-item a:hover {
    color: var(--color-text-link);
}

/* -------------------------------- */
/* ------- Section Styles ------- */
/* -------------------------------- */
.section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-header-content {
    display: flex;
    flex-direction: column;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-darker);
    margin: 0 0 0.2rem 0;
}

.section-header p {
    color: rgba(0, 0, 0, 0.8);
    margin: 0.25rem 0 0 0;
}

/* ------------------------------ */
/* ------- Latest Stories ------- */
/* ------------------------------ */
.latest-stories {
    margin: 4rem auto;
    padding: 0 30px;
    overflow: hidden;
}

.latest-stories-container {
    max-width: 1400px;
    margin: 0 auto;
}

.slider-navigation {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-text-darker);
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-darker);
}

.slider-btn:hover {
    border-color: var(--color-text-darker);
    color: var(--color-text-darker);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* -------------------------------- */
/* ----- Swiper Slider Styles ----- */
/* -------------------------------- */
.latest-stories-slider {
    overflow: visible;
}

.latest-stories-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.latest-stories-slider .swiper-slide {
    width: 320px;
    margin-right: 1.5rem;
}

.no-episodes {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
}

/* -------------------------------- */
/* ------- Community Stories ------- */
/* -------------------------------- */
.community-stories {
    padding: 0 30px;
    margin: 5rem auto;
}

.community-stories-container {
    max-width: 1400px;
    margin: 0 auto;
}

.community-stories-slider {
    overflow: visible;
}

.community-card {
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: flex-end;
    color: var(--color-white);
    background-color: var(--color-bg-light);
    background-image: url(../../images/woven-pattern.png);
    background-repeat: repeat;
    background-size: 95px;
}

.community-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
}

.community-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.community-card:hover .community-image img {
    transform: scale(1.05);
}

.community-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 2;
}

.community-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    width: 100%;
    align-self: flex-end;
}

.community-title {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.community-meta {
    display: flex;
    align-items: center;
}

.community-count {
    font-size: 0.875rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--color-white);
    padding: 0.4rem 0.6rem;
}

.community-cta {
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--color-bg-community-cta);
    color: var(--color-white);
    padding: 0.4rem 0.6rem;
    transition: background-color 0.3s ease;
}

.community-link:hover .community-cta {
    background-color: var(--color-bg-community-cta-hover);
}

.community-next {
    right: 0;
}

/* ---------------------------------------- */
/* ---------- Responsive Styles ----------- */
/* ---------------------------------------- */
@media (max-width: 1200px) {
    .hero-left {
        width: 50%;
    }

    .hero-right {
        width: 50%;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-left {
        padding: 3rem 2rem;
    }

    .episode-category {
        font-size: 0.75rem;
    }

    .hero-image-placeholder {
        height: 50vh;
    }

    .latest-stories,
    .community-stories {
        padding: 0 1rem;
    }

    .latest-stories-slider,
    .community-stories-slider {
        margin-left: -1rem;
        padding-left: 1rem;
    }

    .latest-stories-slider .swiper-slide,
    .community-stories-slider .swiper-slide {
        width: 280px;
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        max-height: none;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left {
        padding: 3rem 1.5rem;
        align-items: flex-start;
    }

    .hero-headline {
        font-size: clamp(1.75rem, 1.2836rem + 1.4925vw, 2rem);
    }

    .hero-description {
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .episode-info {
        display: flex;
        flex-direction: row;
    }

    .hero-right {
        aspect-ratio: 4/3;
        min-height: 0;
    }

    .hero-image,
    .hero-image-placeholder {
        height: 100%;
    }

    .content,
    .featured,
    .latest-stories {
        margin: 2rem auto;
    }

    .section-header,
    .latest-stories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .latest-stories h2 {
        font-size: 1.75rem;
    }

    .latest-stories-slider .swiper-slide,
    .community-stories-slider .swiper-slide {
        width: 260px;
    }

    .community-stories-slider .swiper-slide {
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {

    .content,
    .featured {
        padding: 0 1rem;
    }

    .hero-left {
        padding: 1.25rem;
    }

    .episode-category {
        font-size: 0.65rem;
    }

    .hero-description {
        font-size: 0.875rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.875rem;
    }

    .latest-stories {
        margin: 2rem 0;
    }

    .latest-stories-slider .swiper-slide,
    .community-stories-slider .swiper-slide {
        width: calc(100vw - 3rem);
        margin-right: 1rem;
    }

    .community-stories {
        margin: 2rem 0;
    }

    .community-card {
        height: 160px;
    }

    .community-title {
        font-size: 1.1rem;
    }
}