/* ============================================================
   AL-WASIYYAT — PRODUCTION STYLESHEET
   National Wasaya Department, Ahmadiyya Muslim Community USA
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Primary */
    --primary-dark: #0A2E2E;
    --primary: #1A4A4A;
    --primary-light: #2a6363;

    /* Accent */
    --accent-gold: #C9A84C;
    --accent-gold-light: #E8D5A3;
    --accent-gold-muted: rgba(201, 168, 76, 0.15);

    /* Neutrals & Surfaces */
    --surface: #FAFAF7;
    --surface-alt: #F2F0EB;
    --surface-white: #FFFFFF;
    --border-light: rgba(0, 0, 0, 0.06);

    /* Text */
    --text-primary: #1A1A1A;
    --text-body: #4A4A4A;
    --text-muted: #7A7A7A;
    --text-on-dark: rgba(255, 255, 255, 0.85);
    --text-on-dark-muted: rgba(255, 255, 255, 0.6);

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Radii */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
    --duration-slow: 0.4s;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-arabic: 'Scheherazade New', 'Traditional Arabic', serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-body);
    background: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-body);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover, a:focus {
    color: var(--accent-gold);
}

a:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

blockquote {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    color: var(--text-body);
}

/* Arabic text */
[lang="ar"], .arabic {
    font-family: var(--font-arabic);
    direction: rtl;
    line-height: 2.2;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-size: 0.85rem;
    transition: top 0.15s var(--ease);
}

.skip-link:focus {
    top: 8px;
    color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--surface-white);
}

.section-cream {
    background: var(--surface-alt);
}

.section-dark {
    background: var(--primary-dark);
    color: var(--text-on-dark);
}

.section-dark p {
    color: var(--text-on-dark-muted);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h1,
.section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-dark .section-header h1,
.section-dark .section-header h2 {
    color: var(--accent-gold);
}

.section-header .divider {
    width: 48px;
    height: 2px;
    background: var(--accent-gold);
    margin: 16px auto;
    border-radius: 1px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header--compact {
    margin-bottom: 0;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-area img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold);
}

.logo-text .site-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    line-height: 1.2;
}

.logo-text .site-subtitle {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

/* Navigation */
.primary-nav {
    display: flex;
    gap: 2px;
    align-items: center;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
    position: relative;
    white-space: nowrap;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--duration) var(--ease), left var(--duration) var(--ease);
}

.primary-nav a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.primary-nav a:hover::after {
    width: 60%;
    left: 20%;
}

.primary-nav a[aria-current="page"] {
    color: var(--accent-gold);
}

.primary-nav a[aria-current="page"]::after {
    width: 60%;
    left: 20%;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent-gold);
    margin: 4px 0;
    border-radius: 1px;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.45;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 46, 46, 0.4) 0%,
        rgba(10, 46, 46, 0.6) 50%,
        rgba(10, 46, 46, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 8px;
}

.hero h1 span {
    color: var(--accent-gold);
}

.hero .tagline {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Hero variant — Musian (Baiat background) */
.hero--musian::before {
    background-image: url('../assets/baiat.jpg');
}

/* Hero variant — Family (Bahishti Maqbarah) */
.hero--family::before {
    background-image: url('../assets/hero-bg.jpg');
}

/* Quote attribution (replaces <footer> in blockquotes) */
.quote-attribution {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-top: 12px;
    font-weight: 500;
}

.section-dark .quote-attribution {
    color: var(--accent-gold-light);
}

/* Verse Box */
.verse-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    border-left: 3px solid var(--accent-gold);
    text-align: left;
}

.verse-box .arabic {
    font-family: var(--font-arabic);
    font-size: 2rem;
    color: var(--accent-gold-light);
    line-height: 2.2;
    margin-bottom: 12px;
}

.verse-box .translation {
    font-size: 0.95rem;
    color: var(--text-on-dark);
    font-style: italic;
    line-height: 1.7;
    font-weight: 300;
}

.verse-box .reference {
    font-size: 0.75rem;
    color: var(--text-on-dark-muted);
    margin-top: 8px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface-white);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--duration) var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-gold);
    fill: none;
    stroke-width: 1.5;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.65;
}

.card-quote {
    font-style: italic;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 12px;
}

.card-attribution {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 500;
}

/* Card portrait (circular photo in card) */
.card-portrait {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold-light);
    object-fit: cover;
    margin-bottom: 12px;
}

/* Featured quote card — full width */
.card-featured {
    grid-column: 1 / -1;
    background: var(--surface-alt);
    border: none;
    padding: 48px 40px;
    text-align: center;
}

.card-featured .card-quote {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 16px;
    color: var(--text-primary);
}

.card-featured .card-attribution {
    font-size: 0.85rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    border: none;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-gold:hover, .btn-gold:focus {
    background: #b8993f;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--accent-gold);
}

.btn-outline:hover, .btn-outline:focus {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Outline button on dark backgrounds */
.section-dark .btn-outline,
.apply-banner .btn-outline {
    color: var(--text-on-dark);
}

.section-dark .btn-outline:hover,
.section-dark .btn-outline:focus,
.apply-banner .btn-outline:hover,
.apply-banner .btn-outline:focus {
    color: var(--primary-dark);
}

.btn-teal {
    background: var(--primary-light);
    color: #fff;
}

.btn-teal:hover, .btn-teal:focus {
    background: var(--primary);
    color: #fff;
}

/* Text link style CTA */
.link-arrow {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--duration) var(--ease);
}

.link-arrow:hover {
    gap: 10px;
    color: var(--accent-gold);
}

/* ============================================================
   APPLY / CTA SECTION
   ============================================================ */
.apply-banner {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.apply-banner h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
}

.apply-banner p {
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
    max-width: 480px;
}

/* ============================================================
   ABOUT SECTION (replaces inline grid)
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

.about-grid img {
    border-radius: var(--radius);
    border: 2px solid var(--accent-gold-light);
}

.section-dark .about-grid img {
    border-color: var(--accent-gold);
    opacity: 0.9;
}

.about-grid h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.about-grid p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-body);
}

/* ============================================================
   RESOURCE CARDS
   ============================================================ */
.resource-card {
    background: var(--surface-white);
    border-radius: var(--radius);
    padding: 24px;
    border-left: 3px solid var(--primary-light);
    border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.resource-card h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: 6px;
}

.resource-card li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 0.88rem;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.resource-card li a:hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.resource-card li a::before {
    content: '→';
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.8rem;
}

/* ============================================================
   TIMELINE / STEPS
   ============================================================ */
.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 680px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h2,
.step-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 28px;
}

.contact-card h2,
.contact-card h3 {
    color: var(--accent-gold);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.contact-detail {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-on-dark);
    font-size: 0.88rem;
}

.contact-detail .label {
    color: var(--accent-gold-light);
    font-weight: 500;
    min-width: 70px;
}

/* Form */
.form-group {
    margin-bottom: 14px;
}

.faq-prompt {
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 20px;
}

.faq-prompt a {
    color: var(--accent-gold);
    font-weight: 500;
}

.form-group label {
    display: block;
    color: var(--accent-gold-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--duration) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px var(--accent-gold-muted);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ============================================================
   FAQ PAGE — SEARCH, FILTERS, ACCORDION
   ============================================================ */
.faq-search-wrapper {
    max-width: 600px;
    margin: 0 auto 24px;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface-white);
    color: var(--text-primary);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-muted);
}

.faq-search-input::placeholder {
    color: var(--text-muted);
}

.faq-search-count {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.faq-filter {
    padding: 6px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: var(--surface-white);
    color: var(--text-body);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.faq-filter:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.faq-filter.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 500;
}

.faq-no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-style: italic;
}

/* Hide all FAQ items on page load if a hash is present — prevents flash */
.faq-list--loading .faq-item {
    display: none !important;
}

/* FAQ Item */
.faq-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-copy-link {
    flex-shrink: 0;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
    opacity: 0;
}

.faq-item:hover .faq-copy-link,
.faq-copy-link:focus {
    opacity: 1;
}

.faq-copy-link:hover {
    color: var(--accent-gold);
    background: var(--surface-alt);
}

.faq-copy-link.copied {
    color: #22c55e;
    opacity: 1;
}

.faq-share-btn {
    flex-shrink: 0;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
    opacity: 0;
}

.faq-item:hover .faq-share-btn,
.faq-share-btn:focus {
    opacity: 1;
}

.faq-share-btn:hover {
    color: #25D366;
    background: var(--surface-alt);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform var(--duration) var(--ease);
    color: var(--accent-gold);
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

.faq-highlighted {
    animation: faq-highlight 2s ease;
}

@keyframes faq-highlight {
    0% { background: var(--accent-gold-muted); }
    100% { background: transparent; }
}

/* Focused mode styles — DEPRECATED (using individual pages now) */
.faq-focused-item {
    border: 2px solid var(--accent-gold);
    background: var(--surface-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

/* Individual FAQ page styles */
.faq-single {
    max-width: 720px;
    margin: 0 auto;
}

.faq-single-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.faq-single-question {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.faq-single-answer {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.faq-single-answer p {
    margin-bottom: 14px;
}

.faq-single-answer ul {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-single-answer li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.faq-single-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.faq-copy-link-single,
.faq-share-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.faq-copy-link-single {
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    color: var(--text-body);
}

.faq-copy-link-single:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.faq-share-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.faq-share-whatsapp:hover {
    background: #1da851;
    color: white;
}

.faq-single-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.faq-single-related h2 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.faq-related-link {
    display: block;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    transition: all var(--duration) var(--ease);
}

.faq-related-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: var(--surface-alt);
}

.faq-single-back {
    margin-top: 40px;
    text-align: center;
}

.faq-related-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 32px 0 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.faq-related-item {
    opacity: 0.85;
}

.faq-view-all-btn {
    display: block;
    margin: 32px auto 0;
}


/* ============================================================
   FAQ / ACCORDION (base styles)
   ============================================================ */
.faq-item {
    background: var(--surface-white);
    border-radius: var(--radius);
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background var(--duration) var(--ease);
}

.faq-question:hover {
    background: var(--surface-alt);
}

.faq-question .icon {
    color: var(--accent-gold);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform var(--duration) var(--ease);
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease);
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 20px 16px;
}

.faq-answer p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================================
   VIDEO PLACEHOLDER
   ============================================================ */
.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2.5rem;
    position: relative;
}

.video-embed {
    border-radius: var(--radius);
    overflow: hidden;
}

.video-embed iframe {
    display: block;
    border-radius: var(--radius);
}

.video-placeholder::after {
    content: 'Video Coming Soon';
    position: absolute;
    bottom: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0 24px;
}

.footer-content {
    text-align: center;
    color: var(--text-on-dark-muted);
    font-size: 0.85rem;
}

.footer-content > p {
    color: var(--text-on-dark-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 16px 0;
}

.footer-social a {
    opacity: 0.6;
    transition: opacity var(--duration) var(--ease);
}

.footer-social a:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 16px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-org {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 16px;
}

/* Hide the old version number class */
.footer-version {
    display: none;
}

/* Footer logo — hidden (logo only in header) */
.footer-logo {
    display: none;
}

/* ============================================================
   SEARCH PLACEHOLDER
   ============================================================ */
.search-placeholder {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}

.search-placeholder label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.search-placeholder input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--surface-alt);
    color: var(--text-muted);
    cursor: not-allowed;
    font-family: inherit;
}

/* ============================================================
   FORM SUCCESS
   ============================================================ */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success div[aria-hidden] {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.form-success h3 {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
}

/* ============================================================
   UTILITY
   ============================================================ */

/* Revelation blockquote */
.revelation {
    margin: 20px 0;
    padding: 0;
    border: none;
}

.revelation .arabic {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* Search placeholder */
.search-placeholder {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}

.search-placeholder label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.search-placeholder input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--surface-alt);
    color: var(--text-muted);
    cursor: not-allowed;
    font-family: inherit;
}

/* Form success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success h3 {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
}

.show-more-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 18px;
    font-size: 0.85rem;
    color: var(--primary-light);
    background: none;
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    font-family: inherit;
}

.show-more-btn:hover {
    background: var(--primary-light);
    color: #fff;
}

/* ============================================================
   ABOUT PAGE — REDESIGN COMPONENTS
   ============================================================ */

/* About page — Lead paragraph */
.about-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

/* Pull quote */
.pull-quote {
    max-width: 640px;
    margin: 32px auto;
    padding: 24px 32px;
    border-left: 3px solid var(--accent-gold);
    background: var(--surface-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote p {
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pull-quote footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

.pull-quote-light {
    background: rgba(255,255,255,0.05);
    border-left-color: var(--accent-gold);
}

.pull-quote-light p {
    color: var(--text-on-dark);
}

.pull-quote-light footer {
    color: var(--text-on-dark-muted);
}

/* Collapsible quote */
.quote-details {
    max-width: 720px;
    margin: 24px auto 0;
}

.quote-details summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 500;
    padding: 8px 0;
    list-style: none;
}

.quote-details summary::before {
    content: '▸ ';
}

.quote-details[open] summary::before {
    content: '▾ ';
}

.quote-details blockquote {
    margin-top: 16px;
    padding: 20px;
    background: var(--surface-alt);
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.7;
}

.quote-details-dark summary {
    color: var(--accent-gold-light);
}

.quote-details-dark blockquote {
    background: rgba(255,255,255,0.04);
    color: var(--text-on-dark-muted);
}

/* About vertical stepper */
.about-stepper {
    max-width: 640px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.about-stepper::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--accent-gold-light);
}

.about-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    position: relative;
}

.about-step-num {
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.about-step-content h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.about-step-content p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* About Why grid (photo + quote) */
.about-why-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.about-figure {
    text-align: center;
}

.about-figure img {
    border-radius: var(--radius);
    border: 2px solid var(--accent-gold);
    width: 100%;
    max-width: 280px;
}

.about-figure figcaption {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-on-dark-muted);
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .apply-banner {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .about-grid img {
        max-width: 200px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: var(--shadow-lg);
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav a {
        padding: 12px 16px;
        width: 100%;
    }

    .primary-nav a::after {
        display: none;
    }

    .primary-nav a[aria-current="page"] {
        background: rgba(201, 168, 76, 0.08);
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 64px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-featured {
        padding: 32px 24px;
    }

    .apply-banner h2 {
        font-size: 1.3rem;
    }

    .verse-box {
        padding: 24px;
        margin: 0 8px;
    }

    .verse-box .arabic {
        font-size: 1.6rem;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.6rem;
    }

    .about-why-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-figure img {
        max-width: 200px;
        margin: 0 auto;
    }

    .about-stepper::before {
        left: 23px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .verse-box .arabic {
        font-size: 1.4rem;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.4rem;
    }
}
