/* Podcasts Page Styles */
.podcasts-page {
    background: #000;
    color: #fff;
    min-height: 60vh;
    padding: 0 180px 0 40px;
}

/* Featured Podcast Styles */
.featured-podcast {
    background: #000;
    padding: 60px 0;
    position: relative;

}

.featured-podcast-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 60px;
    align-items: center;
    overflow: hidden;
}

.featured-podcast-content {
    padding-right: 20px;
    margin-top: auto;
}

.featured-podcast-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.featured-podcast-description {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #FFF;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.7px;
}

.featured-podcast-listen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 15px;
}

.listen-label {
    font-size: 0.9rem;
    text-transform: uppercase;

    color: var(--Primary-Alabaster, #F6F4EF);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.8px;
}

.featured-podcast-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;


}

.podcast-btn {
    padding-bottom: 5px;
    border-bottom: 1px solid #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.85rem;
    color: #fff;
    background: transparent;
}

.podcast-btn:hover {
    transform: translateY(-5px);
}

.podcast-btn-primary {
    margin-right: 10px;
}

.featured-podcast-image {
    position: relative;
    height: 600px;
    /* aspect-ratio: 16/9; */
    width: auto;
    overflow: hidden;

}

.featured-podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;

}

.featured-podcast-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px;
    text-align: center;
}

.overlay-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.overlay-subtitle {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #ccc;
    margin: 0;
}


/* Podcasts Grid Section */
.podcasts-grid-section {
    padding: 80px 0;
    background: #000;
}

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

.podcasts-section-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 60px;

    color: var(--Primary-Alabaster, #F6F4EF);
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    /* 36px */
    letter-spacing: 1.5px;
}

/* Dynamic Grid Layout - Exact Pattern */
.podcasts-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.podcast-row {
    display: grid;
    gap: 20px;
    align-items: start;
}

.podcast-row.odd-row {
    grid-template-columns: repeat(3, 1fr);
}

.podcast-row.even-row {
    grid-template-columns: repeat(2, 1fr);
}

/* Size Classes for Different Card Sizes */
.podcast-card.size-large {
    grid-row: span 2;
}

.podcast-card.size-large .podcast-card-image {
    height: 650px !important;
}

.podcast-card.size-medium .podcast-card-image {
    height: 320px !important;
}

.podcast-card.size-small .podcast-card-image {
    height: 320px !important;
}

.podcast-card.size-small-down .podcast-card-image {
    height: 320px !important;
    margin-top: 320px;
}

/* Remove the old staggered transforms */
.podcast-row .podcast-card {
    transform: none;
}

/* Remove alternating row direction */
.podcast-row.even-row {
    direction: ltr;
}

/* Remove the masonry height variations */
.podcast-row:nth-child(3n+1) .podcast-card:nth-child(1) .podcast-card-image,
.podcast-row:nth-child(3n+1) .podcast-card:nth-child(2) .podcast-card-image,
.podcast-row:nth-child(3n+1) .podcast-card:nth-child(3) .podcast-card-image,
.podcast-row:nth-child(3n+2) .podcast-card:nth-child(1) .podcast-card-image,
.podcast-row:nth-child(3n+2) .podcast-card:nth-child(2) .podcast-card-image,
.podcast-row:nth-child(3n+2) .podcast-card:nth-child(3) .podcast-card-image,
.podcast-row:nth-child(3n+3) .podcast-card:nth-child(1) .podcast-card-image,
.podcast-row:nth-child(3n+3) .podcast-card:nth-child(2) .podcast-card-image,
.podcast-row:nth-child(3n+3) .podcast-card:nth-child(3) .podcast-card-image {
    height: auto;
}

/* Podcast Card Styles */
.podcast-card {
    /* background: #111; */
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    position: relative;
}

.podcast-card:hover {
    transform: translateY(-8px);
    /* box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1); */
}

.podcast-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.podcast-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.podcast-card:hover .podcast-card-image img {
    transform: scale(1.1);
}

.podcast-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* background: linear-gradient(135deg, #111 0%, #1a1a1a 100%); */
}

.podcast-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* .podcast-card:hover .podcast-card-title {
    color: #f0f0f0;
} */

.podcast-card-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.9rem;
}

.podcast-card-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}

.podcast-card-btn {
    padding: 10px 20px;
    border: 1px solid #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    min-width: 100px;
    color: #fff;
    background: transparent;
}

.podcast-card-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Add visual variety with pseudo-elements */
.podcast-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast-card:hover::before {
    opacity: 1;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: transparent;
    color: #fff;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-5px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-podcast-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .featured-podcast-content {
        padding-right: 0;
        order: 2;
    }

    .featured-podcast-image {
        order: 1;
        height: 500px;
    }

    .podcast-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset transforms for smaller screens */
    .podcast-row .podcast-card {
        transform: none !important;
    }

    .podcast-card:hover {
        transform: translateY(-5px) !important;
    }

    /* Reset size classes on tablet */
    .podcast-card.size-large .podcast-card-image,
    .podcast-card.size-medium .podcast-card-image,
    .podcast-card.size-small .podcast-card-image {
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    .podcasts-page {
    padding: 0 40px 0 40px;
}

.podcast-row.odd-row {
    grid-template-columns: repeat(1, 1fr);
}

.podcast-row.even-row {
    grid-template-columns: repeat(1, 1fr);
}

.podcast-card.size-small-down .podcast-card-image {
    margin-top: 0px;
}
    .featured-podcast {
        padding: 40px 0;
    }

    .featured-podcast-container,
    .container {
        padding: 0 20px;
    }

    .featured-podcast-title {
        font-size: 2rem;
    }

    .featured-podcast-image {
        height: 400px;
    }

    .overlay-title {
        font-size: 1.5rem;
    }

    .podcasts-section-title {
        font-size: 2rem;
    }

    .podcast-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .podcast-row.even-row {
        direction: ltr;
    }

    .podcast-card-buttons {
        flex-direction: column;
    }

    .podcast-card-btn {
        flex: none;
    }

    /* Reset all image heights and sizes on mobile */
    .podcast-card-image,
    .podcast-card.size-large .podcast-card-image,
    .podcast-card.size-medium .podcast-card-image,
    .podcast-card.size-small .podcast-card-image {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .featured-podcast-title {
        font-size: 1.5rem;
    }

    .featured-podcast-image {
        height: 300px;
    }

    .overlay-title {
        font-size: 1.2rem;
    }

    .overlay-subtitle {
        font-size: 0.7rem;
    }

    .podcasts-grid-section {
        padding: 40px 0;
    }
}