/* ============ ABJAD 2026 DESIGN SYSTEM ============ */
/* Concept: Culturally Immersive, Premium, Arabic Heritage */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;600&display=swap');

:root {
    /* --- COLOR SYSTEM --- */
    /* Primary: Deep Turquoise / Emerald */
    --primary-h: 175;
    --primary-s: 100%;
    --primary-l: 16%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    /* #005248 approx */
    --primary-dark: hsl(175, 100%, 10%);
    --primary-light: hsl(175, 60%, 25%);
    --primary-soft: hsl(175, 30%, 90%);
    /* Muted Jade for backgrounds */

    /* Accent: Luminous Gold */
    --gold-base: #D4AF37;
    --gold-light: #F8E796;
    --gold-shadow: #8A6E2F;
    --gold-gradient: linear-gradient(135deg, #AA771C 0%, #F9D976 25%, #D4AF37 50%, #F9D976 75%, #AA771C 100%);
    --gold-shimmer: linear-gradient(45deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 60%);

    /* Neutrals: Parchment & Ivory */
    --bg-body: #FDFBF7;
    /* Warm Ivory */
    --bg-paper: #F3EFE0;
    /* Aged Parchment */
    --bg-surface: #FFFFFF;
    --bg-alt: hsl(175, 30%, 94%);
    --ink-blue: #0A1A1C;
    /* Deep Ink Blue for text */

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Amiri', serif;
    --font-ui: 'Cairo', sans-serif;
    --font-latin: 'Outfit', sans-serif;
    /* For English headings if needed */

    /* --- SHAPES & FLOW --- */
    --curve-soft: 20px;
    --curve-organic: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Blobby shape */
    --arch-radius: 200px 200px 0 0;

    /* --- SHADOWS & GLOWS --- */
    --shadow-sm: 0 4px 12px rgba(0, 56, 64, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 56, 64, 0.08);
    --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.25);
    --glow-text: 0 0 20px rgba(212, 175, 55, 0.3);

    /* --- ANIMATION --- */
    --transition-slow: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition: all 0.3s ease-out;
}

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

/* Force pointer cursor on interactive elements */
a,
button,
[onclick],
input[type="submit"],
input[type="button"] {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-body);
    /* Noise + Arabic Calligraphy Pattern (Hurufiyya) */
    background-image:
        url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3Etext%7Bfont-family:'Amiri',serif;font-style:italic;font-weight:700%7D%3C/style%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Ctext x='80' y='100' font-size='100' transform='rotate(15 80 100)'%3E%D8%B6%3C/text%3E%3Ctext x='320' y='80' font-size='80' transform='rotate(-10 320 80)'%3E%D8%B9%3C/text%3E%3Ctext x='100' y='350' font-size='120' transform='rotate(-20 100 350)'%3E%D9%86%3C/text%3E%3Ctext x='350' y='320' font-size='90' transform='rotate(10 350 320)'%3E%D9%82%3C/text%3E%3C/g%3E%3Cg fill='%23002b36' fill-opacity='0.015'%3E%3Ctext x='200' y='200' font-size='250' text-anchor='middle' alignment-baseline='middle' transform='rotate(-5 200 200)'%3E%D8%A3%D8%A8%D8%AC%D8%AF%3C/text%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-blend-mode: multiply;
    background-attachment: fixed;
    /* Parallax feel */
    color: var(--ink-blue);
    line-height: 1.8;
    overflow-x: hidden;
}

/* LTR Support */
body.ltr {
    direction: ltr;
}

body.ltr h1,
body.ltr h2,
body.ltr h3 {
    font-family: var(--font-latin);
    letter-spacing: -0.02em;
}

/* ============ TYPOGRAPHY SYSTEM ============ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.4;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    position: relative;
    z-index: 2;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    /* Fallback */
    color: rgba(10, 26, 28, 0.8);
    margin-bottom: 1.5rem;
    max-width: 65ch;
    line-height: 1.9;
}

/* Section Header Container */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Ornamental Divider for Titles */
/* Ornamental Divider for Titles */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
    /* Space for the ornament */
    margin-bottom: 1rem;
}

/* Bold Golden Line */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    /* Clear width */
    height: 4px;
    /* Visible thickness */
    background: var(--gold-gradient);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    /* Glow */
}

/* Central Diamond Ornament */
.section-title::before {
    content: '';
    position: absolute;
    bottom: -4px;
    /* Centered vertically on the line */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--gold-base);
    /* Solid gold */
    border: 2px solid var(--bg-body);
    /* Cutout effect matching bg */
    z-index: 2;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    display: block;
}

/* ============ LAYOUT UTILITIES ============ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: clamp(3rem, 5vw, 5rem) 0;
    position: relative;
}

/* ============ HEADER ============ */
header {
    background: rgba(253, 251, 247, 0.85);
    /* Parchment transparent */
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.footer-logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL default */
    width: 0%;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ltr .nav-link::before {
    right: auto;
    left: 0;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--gold-base);
    color: var(--primary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-lang:hover {
    background: var(--gold-gradient);
    color: #fff;
    box-shadow: var(--shadow-gold);
    border-color: transparent;
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--gold-base);
    cursor: pointer;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--primary-dark), #001a1d);
    /* Fallback */
    overflow: hidden;
    color: #fff;
    padding-top: 4rem;
    /* For fixed header */
    padding-bottom: 1rem;
    border-radius: 0 0 50% 50% / 0 0 5% 5%;
    /* Subtle bottom curve */
}

/* Simulated Marble Texture via CSS Layering */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 200, 0.05) 0%, transparent 40%);
    filter: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005' numOctaves='5'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 15 -7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 1;
    mix-blend-mode: overlay;
}



/* Re-adding the gradient overlay separately requires a new strategy if we use ::after for text. 
   Let's use a new approach: Add the letter to background-image of .hero alongside the radial gradients.
*/
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content::before {
    content: 'أبجد';
    position: absolute;
    top: -10%;
    /* Adjusted for better centering */
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    font-family: 'Amiri', serif;
    font-size: 18rem;
    /* Scaled down for the full word */
    color: rgba(255, 255, 255, 0.04);
    z-index: -1;
    pointer-events: none;
    text-shadow: 0 0 100px rgba(212, 175, 55, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero h1 {
    color: #fff;
    /* Override default primary color */
    font-weight: 400;
    /* Amiri looks good regular */
    line-height: 1.3;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-inline: auto;
}

.section-header p {
    margin-inline: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
    font-family: var(--font-ui);
    backdrop-filter: blur(5px);
    margin-bottom: 2rem;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.btn {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #002b36;
    /* Deep Teal Base */
    color: #fff;
    border: 2px solid var(--gold-base);
    box-shadow:
        0 0 0 4px #002b36,
        /* Inner gap */
        0 0 0 5px var(--gold-base),
        /* Outer Line */
        0 10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    /* Sharp edges */
    position: relative;
    overflow: hidden;
    /* Clip content */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    z-index: 1;
    letter-spacing: 1px;
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    margin: 6px;
    /* For the off-border effect */
}

/* Calligraphy Watermark Background */
.btn-primary::before {
    content: 'أبجد';
    position: absolute;
    top: 55%;
    right: -15px;
    transform: translateY(-50%) rotate(-15deg);
    font-family: 'Amiri', serif;
    font-size: 3.5rem;
    /* Adjusted for word */
    color: var(--gold-base);
    opacity: 0.1;
    z-index: -1;
    transition: var(--transition);
}

/* Islamic Pattern Texture Overlay */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0l10 10-10 10L0 10z' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
    z-index: -2;
    opacity: 0.5;
}

.btn-primary:hover {
    background: #003840;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 4px #003840,
        0 0 0 5px var(--gold-light),
        0 15px 30px rgba(0, 0, 0, 0.4);
    color: var(--gold-light);
}

.btn-primary:hover::before {
    transform: translateY(-50%) rotate(0deg) scale(1.2);
    opacity: 0.2;
    right: 10px;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* ============ CARDS & ORNAMENTS ============ */
.card {
    background: var(--bg-surface);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.card::before {
    /* Islamic Geometry Watermark */
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle, black, transparent);
    opacity: 0.6;
    pointer-events: none;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.3);
}

.card:hover::before {
    transform: rotate(45deg) scale(1.2);
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(212, 175, 55, 0.2));
}

/* ============ GRIDS ============ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* ============ SECTIONS WITH CURVES ============ */
/* Use a class for curved headers/backgrounds */
.bg-paper {
    background-color: var(--bg-paper);
}

.bg-alt {
    background-color: var(--primary-soft);
}

/* SVG Wave Divider */
.wave-divider {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-bottom {
    bottom: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-fill {
    fill: var(--bg-body);
}



/* ============ STATS SECTION (Premium) ============ */
.stats-new-section {
    position: relative;
    background: var(--primary-dark);
    padding: 5rem 0;
    color: #fff;
    overflow: hidden;
}

.stats-new-section::before {
    /* Islamic Geometry Watermark */
    content: '';
    position: absolute;
    inset: 0;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    animation: movePattern 60s linear infinite;
}

.stats-new-section::after {
    content: 'أبجد';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-family: 'Amiri', serif;
    font-size: 20rem;
    color: var(--gold-base);
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

@keyframes movePattern {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

.stats-flex-container {
    display: flex;
    justify-content: center;
    gap: 5vw;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.stats-circle-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Gold Ring Animation */
.stats-outer-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.stats-outer-ring::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--gold-base);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-base);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.stat-number {
    font-family: var(--font-ui);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label-new {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ FOOTER ============ */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
    border-top: 5px solid var(--gold-base);
    position: relative;
    overflow: hidden;
    /* Ensure watermark doesn't spill */
}

footer::before {
    content: 'أبجد';
    position: absolute;
    bottom: -50px;
    right: 5%;
    font-family: 'Amiri', serif;
    font-size: 15rem;
    color: var(--gold-base);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    transform: rotate(5deg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--gold-base);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
    padding-right: 10px;
    /* Slide effect rtl */
}

body.ltr .footer-col a:hover {
    padding-right: 0;
    padding-left: 10px;
}

/* ============ MISSING MODULES ============ */

/* Hero Kicker */
.hero-kicker {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Custom Lists */
ul.custom-list {
    list-style: none;
    margin-top: 1rem;
}

ul.custom-list li {
    position: relative;
    padding-right: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--ink-blue);
}

body.ltr ul.custom-list li {
    padding-right: 0;
    padding-left: 2.5rem;
}

ul.custom-list li::before {
    content: '✦';
    position: absolute;
    right: 0;
    color: var(--gold-base);
    font-size: 1.4rem;
    top: -2px;
}

body.ltr ul.custom-list li::before {
    right: auto;
    left: 0;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.stage-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
    border-right: 5px solid var(--gold-base);
    position: relative;
    overflow: hidden;
}

body.ltr .stage-card {
    border-right: none;
    border-left: 5px solid var(--gold-base);
}

.stage-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-gold);
}

body.ltr .stage-card:hover {
    transform: translateX(10px);
}

.stage-num {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: rgba(212, 175, 55, 0.2);
    min-width: 80px;
    text-align: center;
}

/* Accordion (FAQ) */
.accordion-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-item.active {
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.3);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    text-align: right;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

body.ltr .accordion-header {
    text-align: left;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: var(--text-light);
    line-height: 1.8;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item.active .accordion-body {
    display: block;
}

.accordion-icon {
    transition: transform 0.3s;
    color: var(--gold-base);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Contact Forms */
.contact-wrapper {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    width: 100%;
}

.contact-info {
    background: var(--primary-dark);
    color: #fff;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.2), transparent 60%);
    z-index: 1;
}

.contact-info::after {
    content: 'أبجد';
    position: absolute;
    bottom: -20px;
    left: -20px;
    font-family: 'Amiri', serif;
    font-size: 12rem;
    color: var(--gold-base);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-10deg);
}

.contact-info h3 {
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-info p,
.contact-info span {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.contact-form {
    padding: 4rem;
    background: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--gold-base);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.custom-table th,
.custom-table td {
    padding: 1.2rem;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-table th {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

body.ltr .custom-table th,
body.ltr .custom-table td {
    text-align: left;
}

/* Responsive */
@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding-bottom: 5rem;
    }

    .poem-plaque {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        transform: none;
        margin-bottom: 2rem;
        background: rgba(0, 0, 0, 0.3);
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu needed */
    .mobile-toggle {
        display: block;
        font-size: 2rem;
        color: var(--gold-base);
        background: none;
        border: none;
        cursor: pointer;
    }
}

/* Utility to show/hide pages */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-section.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Styles (Active) */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
}