/* book-clubs-section.css */

.book-clubs {
    padding: 4rem 0;
    background-color: #fff;
}

.book-clubs__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3.5rem;
}

.book-clubs__heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 3rem 0;
    line-height: 1.2;
}

.book-clubs__grid {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

/* Individual Card - Default (Inactive) State */
.book-club-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 280px;
    height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active Card - Expanded */
.book-club-card--active {
    flex: 1 1 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.book-club-card__number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.book-club-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-club-card--active .book-club-card__image {
    transform: scale(1.05);
}

/* Overlay Content - Hidden by default */
.book-club-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 2rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transform: translateY(20px);
}

/* Show overlay only on active card */
.book-club-card--active .book-club-card__overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.book-club-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.book-club-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    opacity: 0.95;
}

/* -------------------------------------------------
   Responsive Design
   ------------------------------------------------- */
@media (max-width: 1400px) {
    .book-clubs__container {
        padding: 0 3.5rem;
    }
}

   @media (max-width: 992px) {
    .book-clubs__container {
        padding: 0 3.5rem;
    }

    .book-clubs__grid {
        flex-direction: column;
        gap: 1.2rem;
    }

    .book-club-card {
        flex: 1;
        width: 100%;
        height: 350px;
    }

    .book-club-card--active {
        height: 450px;
    }
}

@media (max-width: 600px) {
    .book-clubs {
        padding: 3rem 0;
    }

    .book-clubs__container {
        padding: 0 1.5rem;
    }

    .book-clubs__heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .book-clubs__grid {
        gap: 1rem;
    }

    .book-club-card {
        height: 300px;
    }

    .book-club-card--active {
        height: 400px;
    }

    .book-club-card__number {
        font-size: 1.25rem;
        top: 1rem;
        left: 1rem;
    }

    .book-club-card__title {
        font-size: 1.5rem;
    }

    .book-club-card__text {
        font-size: 0.85rem;
    }

    /* Always show overlay on active card on mobile */
    .book-club-card--active .book-club-card__overlay {
        opacity: 1;
        visibility: visible;
    }
}