/* --- COMMON STYLES (Retained for this page) --- */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- SURAH GRID STYLES --- */
#surah-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.surah-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #faeadd;
    border: 1px solid #e0d1c1;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.3s, transform 0.2s;
}

.surah-item:hover {
    background-color: #f5e2d0;
    transform: translateY(-5px);
}

.surah-number-container {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
}

.surah-number-text {
    transform: rotate(-45deg);
    color: #4B5563;
    font-size: 0.9rem;
    font-weight: 500;
}

.surah-details-container {
    flex-grow: 1;
}

.surah-details-container p {
    margin: 0;
}

.surah-name {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

.surah-translation {
    font-size: 0.8rem;
    color: #4B5563;
}

.surah-arabic-name {
    font-size: 1.5rem;
    font-family: 'Amiri', serif;
    color: #ad5207;
    margin: 0;
}

/* --- SHOW MORE BUTTON STYLES --- */
.show-more-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-top: 10px;
}

.show-more-btn {
    padding: 12px 30px;
    font-size: 1rem;
    color: #374151;
    background-color: #e0d1c1;
    border: 1px solid #d3c4b5;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.show-more-btn:hover {
    background-color: #d3c4b5;
    border-color: #c7b8a8;
}


/* --- HOMEPAGE SPECIFIC STYLES --- */

/* Hero Section Styles */
.hero-section {
    justify-content: center;
    text-align: center;
    padding: 20px 0 40px 0;
    margin-bottom: 50px;
    border-top: 1px solid #e0d1c1;
    border-bottom: 1px solid #e0d1c1;
    background-image: linear-gradient(to bottom, rgba(173, 82, 7, 0.05), transparent);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ad5207;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4B5563;
    margin-bottom: 40px;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-input {
    width: 100%;
    padding: 15px 50px;
    border: 1px solid #e0d1c1;
    border-radius: 30px;
    font-size: 1rem;
    background-color: #faeadd;
    color: #374151;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
    border-color: #e88e07;
    box-shadow: 0 0 8px rgba(232, 142, 7, 0.5);
}

.search-input::placeholder {
    color: #8a7a6a;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a7a6a;
}

.suggestion-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.suggestion-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background-color: #faeadd;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.suggestion-btn:hover {
    background-color: #f5e2d0;
}


/* --- NEW CAROUSEL RECITER SECTION --- */

.reciter-section-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 50px;
    background-color: #faeadd;
    border-top: 1px solid #e0d1c1;
    border-bottom: 1px solid #e0d1c1;
    overflow: hidden;
}

.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ad5207;
    text-align: center;
    margin-bottom: 80px;
}

.slideshow-container {
    height: 280px;
    perspective: 1200px;
    position: relative;
    margin-bottom: 80px;
}

.carousel {
    width: 220px;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

a.reciter-card-link {
    text-decoration: none;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), 
                opacity 0.6s, 
                filter 0.6s;
}

.reciter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    padding: 20px;
    background-image: linear-gradient(to bottom, #fff0e1, #faeadd);
    border-radius: 12px;
    border: 1px solid #e0d1c1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.reciter-card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0d1c1;
}

.reciter-card-name {
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

/* Navigation Styles */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.nav-arrow {
    background: none;
    border: none;
    color: #8a7a6a;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-arrow:hover {
    color: #374151;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #d3c4b5;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #ad5207;
    transform: scale(1.2);
}

.see-all-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    background-color: transparent;
    border: 1px solid #d3c4b5;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

.see-all-btn:hover {
    background-color: #faeadd;
    border-color: #c7b8a8;
}
/* --- FEATURES SECTION --- */
.features-section {
    text-align: center;
    padding: 50px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #faeadd;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e0d1c1;
}

.feature-item i {
    font-size: 2.5rem;
    color: #ad5207;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ad5207;
}

.feature-item p {
    color: #4B5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- BENEFITS SECTION --- */
.benefits-section {
    text-align: center;
    padding: 50px 0;
    background-color: #faeadd;
    border-top: 1px solid #e0d1c1;
    border-bottom: 1px solid #e0d1c1;
}

.benefits-content p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4B5563;
}

/* --- FAQS SECTION --- */
.faq-section {
    padding: 50px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion .faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #e0d1c1;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    color: #374151;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: #4B5563;
    line-height: 1.7;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    padding-bottom: 15px;
    font-size: 0.9rem;
    color: #4B5563;
    text-align: left;
}

.breadcrumbs a {
    color: #ad5207;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    font-weight: 500;
    color: #374151;
}
.page-introduction {
    max-width: 700px;
    margin: 25px auto 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #4B5563;
}

.page-introduction p {
    margin: 0;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .suggestion-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    #surah-list-container {
        grid-template-columns: 1fr;
    }

    .slideshow-container {
        height: 250px;
        perspective: 1000px;
        margin-bottom: 60px;
    }

    .carousel {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .search-input {
        padding: 15px 20px 15px 50px;
    }

    .suggestion-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .reciter-section-wrapper {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .slideshow-container {
        height: 220px;
        perspective: 800px;
        margin-bottom: 40px;
    }

    .carousel {
        width: 150px;
    }

    .reciter-card-image {
        width: 60px;
        height: 60px;
    }

    .carousel-nav {
        margin-bottom: 20px;
    }

    .benefits-content p,
    .faq-question {
        font-size: 1rem;
    }

    .page-introduction {
        font-size: 0.9rem; /* Reduced font size for mobile */
    }
}