/* ============================================================
   NBFStudyHub - Online Quran Page Styles
   Premium Emerald + Gold, page-scoped (loaded only on online-quran.html)
   ============================================================ */

/* ---------- Page-scoped Palette Override ---------- */
:root {
    --primary-color: #0F766E;
    --primary-dark: #115E59;
    --primary-light: #34D399;
    --primary-decor: #0F766E;
    --primary-color-rgb: 15, 118, 110;
    --secondary-color: #D4AF37;
    --accent-color: #D4AF37;
    --accent-dark: #B8960F;
    --text-dark: #1F2937;
    --text-color: #334155;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --bg-color: #F8FAFC;
    --background-grey: #F1F5F9;
    --white: #FFFFFF;
    --border-color: #E2E8F0;

    --q-gold: #D4AF37;
    --q-gold-light: #E9C865;
    --q-gold-dark: #B8960F;
    --q-emerald-soft: #ECFDF5;
    --q-emerald-deep: #134E4A;
}

/* ---------- Shared Component Adoptions ---------- */
.site-header {
    border-bottom-color: rgba(15, 118, 110, 0.15);
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.nav-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--q-emerald-deep));
}

.footer-top-accent {
    background: linear-gradient(90deg, var(--q-gold-dark), var(--primary-color), var(--primary-light), var(--primary-color), var(--q-gold-dark));
}

.hero-highlight {
    color: var(--q-gold-light);
    background: linear-gradient(135deg, var(--q-gold), var(--q-gold-light));
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .hero-highlight {
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.site-logo .logo-icon img,
.footer-logo .logo-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.site-logo .logo-icon,
.footer-logo .logo-icon {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* ---------- Popup Overlay ---------- */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-modal, 1000);
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.popup-dialog {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-large);
}

.popup-close-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: var(--white);
    font-size: var(--font-size-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.popup-dialog-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.popup-dialog h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.popup-dialog p {
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: var(--line-height-relaxed, 1.7);
    margin: 0;
}

/* ---------- Quran Hero ---------- */
.quran-hero {
    position: relative;
    background:
        radial-gradient(60% 55% at 78% 18%, rgba(212, 175, 55, 0.18), transparent 60%),
        radial-gradient(50% 45% at 12% 80%, rgba(52, 211, 153, 0.16), transparent 60%),
        linear-gradient(150deg, #0B3D2E 0%, #0F766E 48%, #115E59 78%, #134E4A 100%);
    padding: 0;
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

.quran-hero .container {
    padding-top: 0;
    padding-bottom: var(--space-xl);
}

.quran-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.q-particle {
    position: absolute;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.08);
}

.q-particle-1 { top: 8%; left: 10%; animation: qFloat 10s ease-in-out infinite; font-size: 1.4rem; }
.q-particle-2 { top: 20%; right: 15%; animation: qFloat 12s ease-in-out infinite 1s; font-size: 1rem; }
.q-particle-3 { bottom: 25%; left: 6%; animation: qFloat 11s ease-in-out infinite 2s; font-size: 1.2rem; }
.q-particle-4 { bottom: 15%; right: 8%; animation: qFloat 9s ease-in-out infinite 0.5s; font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
    .quran-hero { animation: none; }
    .q-particle { animation: none; }
}

@keyframes qFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.15; }
}

.quran-hero-mosque {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.q-mosque-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .q-mosque-img { opacity: 0.2; }
}

@media (max-width: 480px) {
    .q-mosque-img { opacity: 0.15; }
}

.quran-hero-content {
    position: relative;
    z-index: 2;
    max-width: 840px;
    margin: 0 auto;
}

.quran-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-lg);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--q-gold-light);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.06em;
}

.quran-hero-content h1 {
    font-size: var(--font-size-5xl);
    line-height: 1.2;
    margin: 0 0 var(--space-md);
    color: var(--white);
}

.quran-hero-content .tagline {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto var(--space-md);
    line-height: 1.6;
}

.quran-hero-content .subheading {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.quran-hero-bismallah {
    margin-bottom: var(--space-xs);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.q-bismallah-img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

@media (max-width: 768px) {
    .quran-hero-bismallah { max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
    .quran-hero-bismallah { max-width: 300px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .q-bismallah-img { width: 200px; }
}

@media (max-width: 480px) {
    .q-bismallah-img { width: 160px; }
}

.quran-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.quran-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xs);
}

.qhs-number {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--q-gold-light);
}

.qhs-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Trusted By Strip ---------- */
.q-trusted {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg) 0;
    text-align: center;
}

.q-trusted-label {
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.q-trusted-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.q-trusted-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-light);
}

.q-trusted-item i {
    color: var(--q-gold);
}

/* ---------- Wave Divider ---------- */
.q-wave-divider {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.q-wave-divider svg {
    display: block;
    width: 100%;
    height: 50px;
}

/* ---------- Quran Section Background Image ---------- */
.quran-bg-quran {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.q-bg-quran-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.05;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .q-bg-quran-img { opacity: 0.03; }
}

/* ---------- General Section ---------- */
.quran-section {
    position: relative;
    padding: var(--space-fluid-lg) var(--space-md);
    background: var(--bg-color);
}

.quran-section .container {
    position: relative;
    z-index: 1;
}

.q-section-alt {
    background: var(--white);
}

.quran-section .section-header h2 {
    font-size: var(--font-size-4xl);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.quran-section .section-header p {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-color);
    font-size: var(--font-size-base);
    line-height: 1.7;
}

/* ---------- Why Choose Us ---------- */
.q-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.q-why-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.q-why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--q-gold), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.q-why-card:hover::before {
    transform: scaleX(1);
}

.q-why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.q-why-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--q-emerald-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 var(--space-md);
    border: 1px solid rgba(15, 118, 110, 0.15);
    transition: all 0.3s ease;
}

.q-why-card:hover .q-why-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--q-emerald-deep));
    color: var(--white);
    transform: scale(1.05);
}

.q-why-card h3 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    margin: 0 0 var(--space-xs);
    font-weight: 600;
    line-height: 1.3;
}

.q-why-card p {
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Courses ---------- */
.q-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.q-course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.q-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(15, 118, 110, 0.2);
}

.q-course-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.q-course-tag {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--primary-color);
    background: var(--q-emerald-soft);
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: var(--radius-full);
    padding: 2px var(--space-sm);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.04em;
}

.q-course-card h3 {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    margin: 0 0 var(--space-xs);
}

.q-course-card p {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* ---------- How It Works ---------- */
.q-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.q-step {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.q-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.q-step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--q-gold), var(--q-gold-dark));
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.q-step-content h3 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    margin: 0 0 var(--space-xs);
}

.q-step-content p {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* ---------- Features ---------- */
.q-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.q-feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.q-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(212, 175, 55, 0.3);
}

.q-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(212, 175, 55, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto var(--space-md);
    transition: all 0.3s ease;
}

.q-feature-card:hover .q-feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--q-gold-dark));
    color: var(--white);
    transform: scale(1.05);
}

.q-feature-card h3 {
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    margin: 0 0 var(--space-xs);
    font-weight: 600;
    line-height: 1.3;
}

.q-feature-card p {
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Parents Section ---------- */
.q-parents-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-top: var(--space-2xl);
}

.q-parents-text h2 {
    font-size: var(--font-size-4xl);
    color: var(--text-dark);
    margin: 0 0 var(--space-md);
    line-height: 1.2;
}

.q-parents-text > p {
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0 0 var(--space-lg);
}

.q-parent-list {
    list-style: none;
    margin: 0 0 var(--space-xl);
    padding: 0;
    display: grid;
    gap: var(--space-sm);
}

.q-parent-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-base);
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.q-parent-list li i {
    color: var(--q-gold);
    margin-top: 3px;
    flex-shrink: 0;
}

.q-parents-card {
    position: relative;
    background: linear-gradient(150deg, var(--q-emerald-deep), var(--primary-dark), var(--primary-color));
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    color: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.q-parents-card::after {
    content: "\f54c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -30px;
    bottom: -30px;
    font-size: 10rem;
    opacity: 0.08;
    color: var(--q-gold-light);
    pointer-events: none;
}

.q-parents-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    margin: 0 0 var(--space-lg);
    color: var(--q-gold-light);
}

.q-parents-stat {
    display: grid;
    gap: var(--space-md);
}

.q-parents-stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
}

.q-parents-stat-item i {
    font-size: 1.4rem;
    color: var(--q-gold-light);
    flex-shrink: 0;
}

.q-parents-stat-item strong {
    font-size: var(--font-size-lg);
    color: var(--white);
    display: block;
}

.q-parents-stat-item span {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Stats Band ---------- */
.q-stats-band {
    position: relative;
    background: linear-gradient(150deg, var(--q-emerald-deep), var(--primary-dark), var(--primary-color));
    padding: var(--space-fluid-lg) var(--space-md);
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.q-stats-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(50% 60% at 85% 10%, rgba(212, 175, 55, 0.15), transparent 60%);
    pointer-events: none;
}

.q-stats-band .container {
    position: relative;
    z-index: 1;
}

.q-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.q-stat {
    padding: var(--space-lg);
}

.q-stat-num {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--q-gold-light);
    line-height: 1.1;
}

.q-stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Pricing ---------- */
.q-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    align-items: stretch;
}

.q-price-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.q-price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.q-price-card.popular {
    border: 2px solid var(--q-gold);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.2);
}

.q-price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--q-gold), var(--q-gold-dark));
    color: var(--white);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-2xs) var(--space-lg);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
    white-space: nowrap;
}

.q-price-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin: 0 0 var(--space-xs);
}

.q-price-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 var(--space-lg);
}

.q-price-amount {
    font-family: var(--font-heading);
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.q-price-period {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.q-price-list {
    list-style: none;
    margin: 0 0 var(--space-xl);
    padding: 0;
    display: grid;
    gap: var(--space-sm);
    text-align: left;
}

.q-price-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-color);
    line-height: 1.5;
}

.q-price-list li i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.q-price-card .btn {
    margin-top: auto;
}

/* ---------- Testimonials ---------- */
.q-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.q-testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-small);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.q-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.qt-stars {
    color: var(--q-gold);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
}

.qt-text {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 var(--space-md);
}

.qt-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.qt-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(212, 175, 55, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-base);
    flex-shrink: 0;
}

.qt-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.qt-location {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

/* ---------- FAQ ---------- */
.q-faq-list {
    max-width: 780px;
    margin: var(--space-2xl) auto 0;
}

.q-faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.3s ease;
}

.q-faq-item:hover {
    box-shadow: var(--shadow-small);
}

.q-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: all 0.3s ease;
}

.q-faq-question i {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.q-faq-item.active .q-faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.q-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    padding: 0 var(--space-lg);
}

.q-faq-item.active .q-faq-answer {
    grid-template-rows: 1fr;
}

.q-faq-answer > div {
    overflow: hidden;
}

.q-faq-answer p {
    font-size: var(--font-size-sm);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0 0 var(--space-md);
}

/* ---------- Inquiry Form ---------- */
.q-inquiry {
    position: relative;
    background: var(--q-emerald-soft);
    padding: var(--space-fluid-lg) var(--space-md);
}

.q-inquiry-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.q-inquiry-info h2 {
    font-size: var(--font-size-4xl);
    color: var(--text-dark);
    margin: 0 0 var(--space-md);
    line-height: 1.2;
}

.q-inquiry-info > p {
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0 0 var(--space-lg);
}

.q-inquiry-points {
    list-style: none;
    margin: 0 0 var(--space-xl);
    padding: 0;
    display: grid;
    gap: var(--space-sm);
}

.q-inquiry-points li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-base);
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.q-inquiry-points li i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.q-inquiry-contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.q-inquiry-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.q-inquiry-form h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    color: var(--text-dark);
    margin: 0 0 var(--space-sm);
}

.q-inquiry-form > p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 var(--space-lg);
}

.q-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.q-field {
    margin-bottom: var(--space-md);
}

.q-field label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.q-field input,
.q-field select,
.q-field textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-dark);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.q-field textarea {
    resize: vertical;
    min-height: 96px;
}

.q-field input:focus,
.q-field select:focus,
.q-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.q-form-submit {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--q-gold), var(--q-gold-dark));
    color: var(--white);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.q-form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.q-form-note {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
    margin: var(--space-md) 0 0;
}

/* ---------- CTA ---------- */
.quran-cta {
    position: relative;
    background:
        radial-gradient(60% 55% at 20% 20%, rgba(212, 175, 55, 0.16), transparent 60%),
        linear-gradient(150deg, #0B3D2E 0%, #0F766E 48%, #115E59 78%, #134E4A 100%);
    padding: var(--space-fluid-lg) var(--space-md);
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.quran-cta-mosque {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.q-mosque-img-cta {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    opacity: 0.1;
}

@media (max-width: 768px) {
    .q-mosque-img-cta { opacity: 0.06; }
}

@media (max-width: 480px) {
    .q-mosque-img-cta { opacity: 0.04; }
}

.quran-cta-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.quran-cta-content h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    margin: 0 0 var(--space-md);
    line-height: 1.2;
}

.quran-cta-content p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0 0 var(--space-xl);
}

.quran-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.quran-cta-buttons .btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--font-size-base);
}

.quran-cta-content .quran-cta-note {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.quran-cta-note i {
    color: var(--q-gold-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .quran-hero-particles { display: none; }
    .q-why-grid { grid-template-columns: repeat(2, 1fr); }
    .q-courses-grid { grid-template-columns: repeat(2, 1fr); }
    .q-steps { grid-template-columns: repeat(2, 1fr); }
    .q-features-grid { grid-template-columns: repeat(2, 1fr); }
    .q-parents-layout { grid-template-columns: 1fr; }
    .q-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .q-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .q-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .q-inquiry-layout { grid-template-columns: 1fr; }
    .quran-cta-content h2 { font-size: var(--font-size-3xl); }
}

@media (max-width: 768px) {
    .quran-hero-content h1 { font-size: var(--font-size-2xl); }
    .quran-hero-content .tagline { font-size: var(--font-size-sm); }
    .quran-hero-particles { display: none; }
    .quran-hero-stats { gap: var(--space-lg); }
    .qhs-number { font-size: var(--font-size-xl); }
    .q-why-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .q-courses-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .q-steps { grid-template-columns: 1fr; gap: var(--space-md); }
    .q-features-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .q-testimonials-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .q-stats-band { padding: var(--space-2xl) var(--space-md); }
    .q-stat-num { font-size: var(--font-size-3xl); }
    .q-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .quran-hero-content h1 { font-size: var(--font-size-xl); }
    .quran-hero-stats { flex-direction: column; align-items: center; gap: var(--space-md); }
    .q-why-grid { grid-template-columns: 1fr; }
    .q-courses-grid { grid-template-columns: 1fr; }
    .q-steps { grid-template-columns: 1fr; }
    .q-features-grid { grid-template-columns: 1fr; }
    .q-pricing-grid { grid-template-columns: 1fr; }
    .q-testimonials-grid { grid-template-columns: 1fr; }
    .q-stats-grid { grid-template-columns: 1fr; }
    .q-trusted-items { flex-direction: column; gap: var(--space-sm); }
}

/* ===== Pricing guarantee ===== */
.q-price-guarantee {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--q-emerald-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.q-price-guarantee i { color: var(--q-gold); }

/* ===== Sticky mobile CTA ===== */
.q-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: var(--space-sm) var(--space-md);
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom));
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(13, 64, 60, 0.97));
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(8px);
    gap: var(--space-sm);
}
.q-sticky-cta a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.q-sticky-cta .q-sticky-primary {
    background: linear-gradient(135deg, var(--q-emerald), var(--q-emerald-deep));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}
.q-sticky-cta .q-sticky-wa {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.35);
}
.q-sticky-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.45);
}
@media (max-width: 768px) {
    .q-sticky-cta { display: flex; }
    .q-sticky-cta a { padding: var(--space-sm) var(--space-md); }
}

/* ============================================================
   Islamic Geometric Star Pattern Overlay (page-scoped)
   8-pointed star / girih tile, subtle emerald on light,
   subtle gold on dark sections.
   ============================================================ */

.quran-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cg fill='none' stroke='%230F766E' stroke-width='1'%3E%3Crect x='42' y='42' width='60' height='60'/%3E%3Crect x='42' y='42' width='60' height='60' transform='rotate(45 72 72)'/%3E%3Crect x='62' y='0' width='20' height='20'/%3E%3Crect x='62' y='124' width='20' height='20'/%3E%3Crect x='0' y='62' width='20' height='20'/%3E%3Crect x='124' y='62' width='20' height='20'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.14;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.q-section-alt::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cg fill='none' stroke='%230F766E' stroke-width='1'%3E%3Crect x='42' y='42' width='60' height='60'/%3E%3Crect x='42' y='42' width='60' height='60' transform='rotate(45 72 72)'/%3E%3Crect x='62' y='0' width='20' height='20'/%3E%3Crect x='62' y='124' width='20' height='20'/%3E%3Crect x='0' y='62' width='20' height='20'/%3E%3Crect x='124' y='62' width='20' height='20'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.12;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.quran-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1'%3E%3Crect x='42' y='42' width='60' height='60'/%3E%3Crect x='42' y='42' width='60' height='60' transform='rotate(45 72 72)'/%3E%3Crect x='62' y='0' width='20' height='20'/%3E%3Crect x='62' y='124' width='20' height='20'/%3E%3Crect x='0' y='62' width='20' height='20'/%3E%3Crect x='124' y='62' width='20' height='20'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.quran-cta-content {
    position: relative;
    z-index: 2;
}

.q-stats-band::before {
    background:
        radial-gradient(50% 60% at 85% 10%, rgba(212, 175, 55, 0.15), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1'%3E%3Crect x='42' y='42' width='60' height='60'/%3E%3Crect x='42' y='42' width='60' height='60' transform='rotate(45 72 72)'/%3E%3Crect x='62' y='0' width='20' height='20'/%3E%3Crect x='62' y='124' width='20' height='20'/%3E%3Crect x='0' y='62' width='20' height='20'/%3E%3Crect x='124' y='62' width='20' height='20'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
    .quran-section::before,
    .q-section-alt::before,
    .quran-cta::after {
        opacity: 0.12;
    }
}
