@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root {
    --gh-font-heading: 'Cinzel', serif;
    --gh-font-body: 'Inter', system-ui, sans-serif;
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --gold-dark: #8a6f2e;
    --black: #000000;
    --dark: #080808;
    --dark2: #0f0f0f;
    --dark3: #161616;
    --dark4: #1e1e1e;
    --white: #ffffff;
    --off-white: #e8e8e8;
    --muted: #888888;
    --border: rgba(201,168,76,0.2);
    --border-hover: rgba(201,168,76,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--dark);
    color: var(--off-white);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ─── CONTAINER ─── */
.mahdi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── HEADER ─── */
.mahdi-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}

.mahdi-header .mahdi-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.mahdi-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.mahdi-logo:hover { color: var(--gold-light); }

.mahdi-nav { display: flex; align-items: center; gap: 8px; }

.mahdi-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mahdi-menu li a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 3px;
    transition: all 0.3s;
    position: relative;
}
.mahdi-menu li a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 14px; right: 14px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.mahdi-menu li a:hover { color: var(--gold); }
.mahdi-menu li a:hover::after { transform: scaleX(1); }
.mahdi-menu li a.active { color: var(--gold); }

/* ─── HERO ─── */
.mahdi-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/black-banner.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.25);
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.0); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 8px 24px;
    margin-bottom: 36px;
    animation: fadeInDown 0.8s ease both;
}

.hero-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 20px;
    direction: rtl;
    line-height: 1.6;
    animation: fadeInDown 1s ease 0.2s both;
}

.salawat-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    color: var(--gold-light);
    line-height: 1.8;
    direction: rtl;
    text-align: center;
    margin: 0 auto 40px;
    text-shadow: 0 0 32px rgba(201,168,76,0.25);
}

.mahdi-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 0 0 60px rgba(201,168,76,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--gold-light);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 48px;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 2px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
}
.btn-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-light);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 0;
}
.btn-gold:hover::before { transform: translateX(0); }
.btn-gold { position: relative; }
.btn-gold span {
    position: relative;
    z-index: 1;
    color: inherit;
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

/* Legacy compat */
.mahdi-btn { display: inline-block; text-decoration: none; }
.mahdi-btn-primary { background: var(--gold); color: var(--black); padding: 16px 36px; font-weight: 700; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; transition: all 0.4s; border: 1px solid var(--gold); }
.mahdi-btn-primary:hover { background: var(--gold-light); }
.mahdi-btn-secondary { background: transparent; color: var(--gold); padding: 16px 36px; font-weight: 700; font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--gold); transition: all 0.4s; }
.mahdi-btn-secondary:hover { background: var(--gold); color: var(--black); }

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeIn 2s ease 1.5s both;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ─── DIVIDER ─── */
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto 24px;
}
.gold-divider-left {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin-bottom: 24px;
}

/* ─── SECTIONS ─── */
.section {
    padding: 100px 0;
    position: relative;
}
.section-alt { background: var(--dark2); }
.section-dark { background: var(--black); }

.section-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 640px;
    line-height: 1.8;
}

/* ─── GRID ─── */
.mahdi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.mahdi-card {
    background: var(--dark3);
    padding: 48px 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.mahdi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.mahdi-card:hover { background: var(--dark4); }
.mahdi-card:hover::before { transform: scaleX(1); }

.mahdi-card .card-num {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    margin-bottom: 20px;
}

.library-card-image {
    height: 220px;
    margin: -44px -44px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--black);
    overflow: hidden;
}

.library-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.78);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.mahdi-card:hover .library-card-image img {
    transform: scale(1.04);
    filter: brightness(0.92);
}

.mahdi-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.mahdi-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ─── IMAGE SPLIT ─── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}
@media (max-width: 768px) {
    .split-section { grid-template-columns: 1fr; }
}

.split-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.8s ease;
}
.split-image:hover img { transform: scale(1.05); }
.split-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(8,8,8,0.8));
}

.split-content {
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--dark2);
}
@media (max-width: 768px) {
    .split-content { padding: 60px 32px; }
}

/* ─── QUOTE BLOCK ─── */
.quote-block {
    border-left: 3px solid var(--gold);
    padding: 24px 32px;
    margin: 40px 0;
    background: rgba(201,168,76,0.04);
    position: relative;
}
.quote-block::before {
    content: '"';
    position: absolute;
    top: -20px; left: 20px;
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
}
.quote-block p {
    font-style: italic;
    color: var(--off-white);
    font-size: 1.05rem;
    line-height: 1.8;
}
.quote-block cite {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 2px;
    font-style: normal;
}

/* ─── TIMELINE / PROOFS ─── */
.proof-list { list-style: none; display: flex; flex-direction: column; gap: 32px; }

.proof-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.proof-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 700;
}
.proof-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.proof-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ─── STAT STRIP ─── */
.stat-strip {
    background: var(--black);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
    padding: 40px 32px;
    text-align: center;
    background: var(--black);
}
.stat-prophecy {
    background:
        radial-gradient(circle at 50% 20%, rgba(232,201,106,0.14), transparent 55%),
        linear-gradient(180deg, rgba(201,168,76,0.12), rgba(8,8,8,0.98));
    border: 1px solid rgba(232,201,106,0.55);
    box-shadow: inset 0 0 40px rgba(201,168,76,0.08);
}
.stat-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    border: 1px solid rgba(232,201,106,0.5);
    color: var(--gold-light);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(201,168,76,0.08);
}
.stat-num {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-prophecy .stat-num {
    color: var(--gold-light);
    text-shadow: 0 0 28px rgba(232,201,106,0.32);
}
.stat-label {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ─── CTA SECTION ─── */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--black);
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}
.cta-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 48px;
}

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--black);
}
.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.15);
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(8,8,8,1));
}
.page-header-content { position: relative; z-index: 2; }
.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.page-header p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ─── CONTENT SECTIONS ─── */
.content-prose {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #b8b8b8;
    max-width: 760px;
}
.content-prose p { margin-bottom: 24px; }
.content-prose strong { color: var(--gold); font-weight: 600; }

.content-prose .kg-width-wide {
    width: min(100%, 980px);
    max-width: 980px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.content-prose .kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.content-image {
    width: 100%;
    border-radius: 2px;
    border: 1px solid var(--border);
    display: block;
    transition: border-color 0.4s;
}
.content-image:hover { border-color: var(--border-hover); }

/* ─── KABAR GEMBIRA PAGE ─── */
.page-header-tall {
    min-height: 620px;
    display: flex;
    align-items: center;
}

.interfaith-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    border: 1px solid var(--border);
    background: var(--border);
}

.interfaith-card {
    min-height: 320px;
    padding: 40px 32px;
    background:
        linear-gradient(180deg, rgba(201,168,76,0.06), rgba(8,8,8,0.96)),
        var(--dark3);
    position: relative;
    overflow: hidden;
}

.interfaith-card::after {
    content: '';
    position: absolute;
    inset: auto 32px 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.faith-label {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--gold-light);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.interfaith-card h3,
.profile-copy h3,
.proof-card h3,
.next-step-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    line-height: 1.25;
}

.interfaith-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.interfaith-card p,
.proof-card p,
.next-step-card p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

.interfaith-card cite {
    display: block;
    margin-top: 22px;
    color: var(--gold);
    font-size: 0.72rem;
    font-style: normal;
    letter-spacing: 1.5px;
}

.conclusion-panel {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 36px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(201,168,76,0.16), rgba(201,168,76,0.04));
    border: 1px solid rgba(201,168,76,0.35);
}

.conclusion-panel p {
    color: var(--off-white);
    font-size: 1.18rem;
    line-height: 1.8;
}

.conclusion-panel strong { color: var(--gold-light); }

.profile-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.profile-card {
    background: var(--dark3);
    border: 1px solid var(--border);
    overflow: hidden;
}

.profile-image {
    height: 340px;
    background: var(--black);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.78);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.profile-image-contain {
    height: 360px;
    background:
        radial-gradient(circle at 50% 35%, rgba(232,201,106,0.16), transparent 52%),
        var(--black);
}

.profile-image-contain img {
    object-fit: contain;
    object-position: center bottom;
    padding: 20px 20px 0;
    filter: brightness(0.95);
}

.profile-image-abdullah img {
    object-position: 64% center;
    filter: brightness(0.9);
}

.profile-card:hover .profile-image img {
    transform: scale(1.04);
    filter: brightness(0.92);
}

.profile-card:hover .profile-image-contain img {
    transform: scale(1.02);
    filter: brightness(1);
}

.profile-copy {
    padding: 42px 36px 46px;
}

.profile-copy h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 28px;
}

.profile-copy h3 span { color: var(--gold); }

.gold-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gold-list li {
    color: var(--muted);
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
}

.gold-list li::before {
    content: '';
    position: absolute;
    top: 0.86em;
    left: 0;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

.rajah-grid,
.proof-cards,
.next-steps-grid {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.rajah-grid { grid-template-columns: repeat(3, 1fr); }

.quote-centered {
    max-width: 900px;
    margin: 56px auto 0;
}

.covenant-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.proof-cards {
    grid-template-columns: repeat(2, 1fr);
}

.proof-cards-balanced .proof-card:last-child {
    grid-column: 1 / -1;
}

.proof-card,
.next-step-card {
    background: var(--dark3);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}

.proof-card span,
.next-step-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 24px;
}

.proof-card h3,
.next-step-card h3 {
    color: var(--gold-light);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.goal-section {
    border: 1px solid var(--border);
    min-height: 560px;
}

.next-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 56px;
}

.next-step-card .btn {
    margin-top: 28px;
    width: 100%;
    text-align: center;
}

.final-banner {
    min-height: 360px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.28);
    transform: scale(1.04);
}

.final-banner-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: 64px 44px;
    text-align: center;
}

.final-banner-content p {
    font-family: 'Cinzel', serif;
    color: var(--white);
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    line-height: 1.45;
    margin-bottom: 20px;
}

.final-banner-content cite {
    color: var(--gold);
    font-style: normal;
    letter-spacing: 2px;
}

@media (max-width: 980px) {
    .interfaith-grid,
    .profile-duo,
    .covenant-layout,
    .next-steps-grid {
        grid-template-columns: 1fr;
    }

    .rajah-grid,
    .proof-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header-tall { min-height: 540px; }
    .interfaith-card,
    .profile-copy,
    .proof-card,
    .next-step-card {
        padding: 32px 24px;
    }
    .profile-image { height: 280px; }
    .conclusion-panel { padding: 28px 22px; }
    .final-banner-content { padding: 48px 24px; }
}

/* ─── ACCORDION / FAQ ─── */
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 28px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--off-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: color 0.3s;
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.4s;
}
.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.3s;
}
.faq-answer.open { max-height: 500px; }
.faq-answer-inner {
    padding-bottom: 28px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--gold); }

/* ─── FOOTER ─── */
.mahdi-footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

.footer-brand .mahdi-logo { display: block; margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; max-width: 300px; }

.footer-col h5 {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── HAMBURGER / MOBILE ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--gold);
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1180px) {
    .hamburger { display: flex; }
    .mahdi-menu {
        position: fixed;
        top: 72px; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.97);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 44px 32px 120px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        overflow-y: auto;
    }
    .mahdi-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .mahdi-menu li a { padding: 16px 0; display: block; font-size: 0.9rem; }
    .mahdi-menu li a::after { display: none; }
    .split-section { grid-template-columns: 1fr; }
    .split-content { padding: 48px 32px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .mahdi-container { padding: 0 20px; }
    .section { padding: 70px 0; }
    .mahdi-hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
}

/* ─── TAGS / LABELS ─── */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    border-radius: 2px;
    margin-right: 8px;
    margin-bottom: 8px;
}
.tag-gold { border-color: var(--gold); color: var(--gold); }

/* ─── UTILITY ─── */
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--muted) !important; }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
