/* islamic-books.css - COMPLETE REFACTORED - OVERFLOW FIXED */

/* ========================================================================= */
/* 1. VISIBILITY CONTROL */
/* ========================================================================= */

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.book-card-actions.desktop-only {
    display: flex;
}

.book-card-actions.mobile-only {
    display: none;
}

/* ========================================================================= */
/* 2. HERO SECTION */
/* ========================================================================= */

.books-hero-section {
    background: linear-gradient(135deg, var(--color-brand-secondary), var(--color-brand-primary));
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-xxl) 0;
    margin-bottom: var(--spacing-xxl);
    box-shadow: 0 8px 32px rgba(173, 82, 7, 0.2);
    border-bottom-left-radius: 50% 30px;
    border-bottom-right-radius: 50% 30px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.books-hero-section h1 {
    font-weight: 800;
    font-size: 3.5em;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.books-hero-section .sub-heading {
    font-weight: 400;
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================================================= */
/* 3. CATEGORY PILLS - FIXED FOR OVERFLOW */
/* ========================================================================= */

.section-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

.category-pills-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--spacing-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: var(--spacing-sm) 0;
    margin: 0 calc(-1 * var(--spacing-lg));
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.category-pills-wrapper::-webkit-scrollbar {
    display: none;
}

.category-pills-wrapper:active {
    cursor: grabbing;
}

.category-pill {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    user-select: none;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.category-pill:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border-color: var(--color-white);
}

.category-pill.active {
    background-color: var(--color-white);
    color: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-pill i {
    width: 0.9rem;
    height: 0.9rem;
}

/* ========================================================================= */
/* 4. BOOKS GRID SECTION */
/* ========================================================================= */

.books-grid-section {
    padding-top: 0;
    padding-bottom: var(--spacing-section);
    background: #ffffff;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #ffffff !important;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    max-width: 1280px;
    margin: 0 auto;
}

/* ========================================================================= */
/* 5. DESKTOP BOOK CARD */
/* ========================================================================= */

.book-card {
    background: linear-gradient(135deg, var(--color-brand-background), var(--color-brand-background-light));
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(173, 82, 7, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    position: relative;
    min-height: 320px;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(173, 82, 7, 0.2);
}

.book-cover-container {
    width: 200px;
    height: 300px;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 1;
}

.book-cover-container img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--color-brand-background);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(173, 82, 7, 0.1);
}

.book-card:hover .book-cover-container img {
    transform: scale(1.05);
}

.book-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* ========================================================================= */
/* 6. BOOK INFO SECTION */
/* ========================================================================= */

.book-info {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.book-info h3 {
    font-weight: 800;
    font-size: 1.4em;
    color: #ad5207;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.book-card:hover .book-info h3 {
    color: var(--color-brand-secondary);
}

.book-info .author {
    font-size: 0.85em;
    color: #6B7280;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
}

.book-info .author a {
    font-weight: 700;
    color: var(--color-brand-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(173, 82, 7, 0.5);
    transition: all 0.3s ease;
}

.book-info .author a:hover {
    color: var(--color-brand-secondary);
    border-bottom: 1px solid var(--color-brand-secondary);
}

.book-info .pages {
    font-size: 0.75em;
    color: #9CA3AF;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

/* ========================================================================= */
/* 7. RATING SYSTEM */
/* ========================================================================= */

.book-info .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-sm);
}

.book-info .rating .stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.book-info .rating svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

svg.full-star path {
    fill: #FFDF00;
}

svg.empty-star path {
    fill: #D1D5DB;
}

.book-info .rating .review-count {
    font-size: 0.75em;
    font-weight: 600;
    color: #6B7280;
    font-style: italic;
    white-space: nowrap;
}

/* ========================================================================= */
/* 8. SHARE OPTIONS */
/* ========================================================================= */

.book-share-options {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-xs);
    flex-wrap: wrap;
}

.book-share-options .share-prompt {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--color-text-dark);
}

.share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
    background-color: transparent;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-btn svg {
    width: 22px;
    height: 22px;
}

.book-share-options .share-count-text {
    font-size: 0.75em;
    font-weight: 600;
    color: #6B7280;
    font-style: italic;
    white-space: nowrap;
}

/* ========================================================================= */
/* 9. ACTION BUTTONS */
/* ========================================================================= */

.book-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.book-action-btn {
    padding: 10px 18px;
    font-size: 0.8em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    color: var(--color-text-light);
}

.book-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.book-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.book-action-btn.read-btn {
    background: linear-gradient(45deg, var(--color-brand-secondary), var(--color-brand-primary));
}

.book-action-btn.download-btn {
    background: var(--color-accent-blue);
}

.book-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================================================= */
/* 10. RESPONSIVE - TABLET */
/* ========================================================================= */

@media (max-width: 1024px) {
    .books-grid {
        max-width: 900px;
        gap: var(--spacing-lg);
    }

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

    .book-cover-container {
        width: 180px;
        height: 270px;
        min-width: 180px;
        padding: 10px;
    }

    .book-info h3 {
        font-size: 1.3em;
    }

    .book-info .author {
        font-size: 0.8em;
    }
}

/* ========================================================================= */
/* 11. RESPONSIVE - MOBILE */
/* ========================================================================= */

@media (max-width: 768px) {
    .books-hero-section {
        padding: var(--spacing-lg) 0 var(--spacing-xl) 0;
        border-bottom-left-radius: 30% 20px;
        border-bottom-right-radius: 30% 20px;
    }

    .books-hero-section h1 {
        font-size: 2.8em;
    }

    .books-hero-section .sub-heading {
        font-size: 1.1em;
        margin-bottom: var(--spacing-lg);
    }

    .desktop-only {
        display: none;
    }

    .book-card-actions.desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .book-card-actions.mobile-only,
    .download-offline-link.mobile-only {
        display: flex;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 500px;
        margin: 0 auto;
    }

    .book-card {
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
        border-radius: 20px;
        min-height: auto;
        background: linear-gradient(135deg, var(--color-brand-background), var(--color-brand-background-light));
    }

    .book-cover-container {
        width: 160px;
        height: 240px;
        min-width: 160px;
        padding: 0;
        margin-bottom: var(--spacing-md);
    }

    .book-cover-container img {
        width: 100%;
        height: 100%;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        border: none;
    }

    .book-content {
        padding: 0;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .book-info.mobile-only {
        width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-md);
    }

    .book-info.mobile-only h3 {
        font-size: 1.5em;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: var(--spacing-xs);
        color: var(--color-brand-primary);
    }

    .book-info.mobile-only .rating {
        justify-content: center;
        border-bottom: 2px dashed rgba(173, 82, 7, 0.2);
        padding-bottom: var(--spacing-md);
        width: 80%;
        margin: 0 auto var(--spacing-md);
    }

    .book-card-actions.mobile-only {
        gap: 10px;
        width: 100%;
    }

    .book-action-btn.read-btn {
        background: var(--color-brand-secondary);
        box-shadow: 0 4px 15px rgba(232, 142, 7, 0.4);
        font-size: 1.1em;
        font-weight: 800;
        width: 100%;
    }

    .download-offline-link.mobile-only {
        font-size: 0.9em;
        color: var(--color-brand-primary);
        font-weight: 600;
        text-decoration: none;
        justify-content: center;
        align-items: center;
        gap: 5px;
        opacity: 0.8;
        transition: opacity 0.3s ease;
        margin-top: 15px;
    }

    .download-offline-link.mobile-only:hover {
        opacity: 1;
    }

    .download-offline-link.mobile-only svg {
        width: 18px;
        height: 18px;
    }

    .attribution-footer.mobile-only {
        font-size: 0.7em;
        color: #9CA3AF;
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-sm);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        line-height: 1.4;
        width: 100%;
        text-align: center;
    }

    .attribution-footer.mobile-only a {
        color: #9CA3AF;
        text-decoration: underline;
    }
}

/* ========================================================================= */
/* 12. RESPONSIVE - SMALL MOBILE */
/* ========================================================================= */

@media (max-width: 576px) {
    .books-hero-section h1 {
        font-size: 2.2em;
    }

    .books-hero-section .sub-heading {
        font-size: 1em;
    }

    .book-card {
        padding: var(--spacing-md) var(--spacing-sm);
        border-radius: 18px;
    }

    .book-cover-container {
        width: 140px;
        height: 210px;
        min-width: 140px;
    }

    .book-info.mobile-only h3 {
        font-size: 1.3em;
    }

    .book-card-actions.mobile-only {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .category-pill {
        padding: 5px 12px;
        font-size: 0.8em;
        gap: 4px;
    }

    .category-pill i {
        width: 0.8rem;
        height: 0.8rem;
    }

    .book-cover-container {
        width: 120px;
        height: 180px;
        min-width: 120px;
    }

    .book-info.mobile-only h3 {
        font-size: 1.2em;
    }

    .book-action-btn {
        font-size: 0.9em;
    }
}

/* ========================================================================= */
/* 13. DESKTOP WIDE - Center pills */
/* ========================================================================= */

@media (min-width: 992px) {
    .category-pills-wrapper {
        display: flex;
        justify-content: center;
        overflow-x: visible;
        margin: 0;
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* ========================================================================= */
/* 14. NO RESULTS MESSAGE */
/* ========================================================================= */

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xxl);
    font-size: 1.2em;
    color: #6B7280;
}
/* ========================================================================= */
/* 15. LANGUAGE & TAGS SECTION (Book Card Details) */
/* (Insert after RATING SYSTEM or before RESPONSIVE) */
/* ========================================================================= */

/* Language Tag Container & Layout */
.tags-and-languages {
    display: flex;
    flex-direction: column; /* Stacks language above tags if tags were present */
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.language-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--color-brand-primary);
}

.language-tags i {
    width: 1rem;
    height: 1rem;
    color: var(--color-brand-secondary);
    flex-shrink: 0;
}

.language-tag {
    background-color: var(--color-brand-background);
    color: var(--color-brand-primary);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid rgba(173, 82, 7, 0.2);
}

/* Styling for Pages Text (Used for book page count) */
/* NOTE: Overrides the previous generic .book-info .pages styling */
.book-info .pages {
    font-size: 0.85em;
    color: var(--color-brand-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-xs); 
    display: block;
}

/* ========================================================================= */
/* MOBILE ADJUSTMENTS for Language/Pages */
/* ========================================================================= */

@media (max-width: 768px) {
    /* Ensures language info is centered in mobile view */
    .tags-and-languages {
        justify-content: center;
        align-items: center;
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
        padding: 0 var(--spacing-md);
    }

    .language-tags {
        justify-content: center;
        font-size: 0.8em;
    }

    /* Ensures the pages count is centered on mobile */
    .book-info.mobile-only .pages {
        text-align: center;
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
        /* Overrides any default text alignment from parent element */
        margin-left: auto; 
        margin-right: auto;
    }
}
/* ========================================================================= */
/* 15. PAGINATION CONTROLS */
/* ========================================================================= */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.pagination-link {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pagination-link:hover {
    background: var(--color-brand-background);
    border-color: var(--color-brand-primary);
}

.pagination-link.active {
    background: var(--color-brand-primary);
    color: var(--color-white);
}

/* ========================================================================= */
/* 16. EXPLORE MORE SECTION (Audiobooks, Qaida, Duas) */
/* ========================================================================= */

.explore-more-section {
    padding: var(--spacing-section) 0;
    background-color: var(--color-brand-background-light); /* Lighter background for contrast */
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.explore-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--color-brand-secondary);
}

.explore-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-brand-background);
    color: var(--color-brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2em;
    transition: background-color 0.3s ease;
}

.explore-card:hover .explore-card-icon {
    background-color: var(--color-brand-primary);
    color: var(--color-white);
}

.explore-card-icon i {
    width: 32px;
    height: 32px;
}

.explore-card h3 {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 0 0 var(--spacing-sm) 0;
}

.explore-card p {
    font-size: 0.95em;
    color: #6B7280;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.explore-btn {
    display: inline-block;
    padding: 8px 15px;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--color-brand-primary);
    border: 2px solid var(--color-brand-primary);
    border-radius: 20px;
    transition: all 0.3s ease;
    align-self: center;
}

.explore-card:hover .explore-btn {
    background-color: var(--color-brand-primary);
    color: var(--color-white);
}

/* ========================================================================= */
/* 17. CATEGORY FOCUS/DESCRIPTION SECTION */
/* ========================================================================= */

.category-focus-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-white);
}

.category-focus-section .section-title {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.focus-content p {
    max-width: 800px;
    margin: 0 auto var(--spacing-md) 0;
    font-size: 1.05em;
}

/* ========================================================================= */
/* 18. CTA QURAN SECTION */
/* ========================================================================= */

.cta-quran-section {
    /* UPDATED: Changed the background to a gradient using #ad5207 and white */
    background: linear-gradient(90deg, #ad5207, #e88e07); 
    color: var(--color-white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.cta-quran-section .cta-icon {
    margin-bottom: var(--spacing-md);
}

.cta-quran-section .cta-icon i {
    width: 50px;
    height: 50px;
}

.cta-quran-section h2 {
    font-size: clamp(2em, 5vw, 3.2em);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-quran-section p {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--color-brand-secondary);
    color: var(--color-white);
    font-size: 1.1em;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(232, 142, 7, 0.5);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-brand-primary);
    box-shadow: 0 10px 30px rgba(173, 82, 7, 0.6);
    transform: translateY(-2px);
}

/* ========================================================================= */
/* 19. FAQ SECTION */
/* ========================================================================= */

.faq-section {
    padding: var(--spacing-section) 0;
    background-color: var(--color-white);
}

.faq-section h2 {
    font-size: clamp(2em, 5vw, 2.8em);
    color: var(--color-brand-primary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.grid-container-faq {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E5E7EB;
    padding: var(--spacing-md) 0;
    transition: background-color 0.3s ease;
}

.faq-item.active {
    background-color: var(--color-brand-background-light);
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    margin-left: calc(-1 * var(--spacing-sm));
    margin-right: calc(-1 * var(--spacing-sm));
}

.faq-question {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: var(--spacing-sm) 0;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-text-dark);
    font-family: var(--font-family-nunito);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-brand-secondary);
}

.faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--color-brand-primary);
    transition: transform 0.3s ease;
}

.faq-icon::before { /* Horizontal bar (always visible) */
    width: 100%;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after { /* Vertical bar (rotates to close) */
    width: 2px;
    height: 100%;
    transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-sm);
    font-size: 0.95em;
    line-height: 1.6;
    color: #6B7280;
}


/* ========================================================================= */
/* 20. RESPONSIVE MEDIA QUERIES FOR NEW SECTIONS */
/* ========================================================================= */

@media (max-width: 1024px) {
    .explore-grid {
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .explore-more-section,
    .category-focus-section,
    .cta-quran-section,
    .faq-section {
        padding: var(--spacing-xxl) 0;
    }

    .explore-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .explore-card {
        padding: var(--spacing-md);
    }

    .explore-card h3 {
        font-size: 1.3em;
    }
    
    .explore-card p {
        font-size: 0.9em;
    }
    
    .cta-quran-section h2 {
        font-size: 2em;
    }
    
    .cta-quran-section p {
        font-size: 1em;
        margin-bottom: var(--spacing-lg);
    }

    .faq-question {
        font-size: 1em;
    }

    .category-focus-section .section-title {
        text-align: center;
    }

    .focus-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .category-focus-section .section-title {
        text-align: center;
    }

    .focus-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}