@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;900&family=Playfair+Display:wght@400;700&display=swap');

@keyframes loader-progress {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--gold-primary)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--gold-primary)); }
}

@keyframes particle-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

@keyframes slow-rotate {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes hero-entrance {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.noor-alilm-wrap {
/* ========================================
   نور العلم - تصميم احترافي فاخر
   ======================================== */



/* ========================================
   ROOT VARIABLES - متغيرات التصميم
   ======================================== */
.noor-alilm-wrap {
    /* الألوان الأساسية */
    --gold-primary: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark: #9A7B2F;
    --gold-glow: rgba(201, 168, 76, 0.4);
    --gold-ultra: #FFD700;

    --green-deep: #0A1628;
    --green-dark: #0F2137;
    --green-mid: #163347;
    --green-primary: #1B4D3E;
    --green-accent: #2E7D52;
    --green-light: #4CAF73;

    --cream-dark: #F5EDD6;
    --cream-light: #FFFDF5;
    --cream-warm: #FBF4E0;

    --white: #FFFFFF;
    --black: #000000;

    /* النصوص */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aaa;
    --text-light: #f0ead6;
    --text-white: #ffffff;

    /* الخلفيات */
    --bg-dark: #060c18;
    --bg-darker: #030810;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.08);

    /* التأثيرات */
    --shadow-gold: 0 0 30px rgba(201, 168, 76, 0.3);
    --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 60px rgba(201, 168, 76, 0.2);

    /* الحدود */
    --border-gold: 1px solid rgba(201, 168, 76, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);

    /* التحولات */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

    /* الزوايا */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    --radius-full: 9999px;

    /* المسافات */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Cairo', 'Amiri', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(27, 77, 62, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(6, 12, 24, 0.9) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: 'Cairo', sans-serif; }
ul, ol { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ========================================
   LOADING SCREEN
   ======================================== */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-emblem {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(201, 168, 76, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-ultra));
    border-radius: 2px;
    animation: loader-progress 1.5s ease-in-out forwards;
}





/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all var(--transition-med);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(6, 12, 24, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

/* الشعار */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-fast);
}
.logo:hover { transform: scale(1.03); }

.logo-emblem {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
}
.logo-emblem::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.68rem;
    color: rgba(201, 168, 76, 0.7);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* قائمة التنقل */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: rgba(240, 234, 214, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(201, 168, 76, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 168, 76, 0);
    opacity: 0;
    transition: all var(--transition-fast);
}

.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::before {
    opacity: 1;
    border-color: rgba(201, 168, 76, 0.2);
}

.nav-link.active {
    color: var(--gold-primary);
}
.nav-link.active::before {
    opacity: 1;
    border-color: rgba(201, 168, 76, 0.25);
    background: rgba(201, 168, 76, 0.1);
}

/* زر البحث */
.nav-search-btn {
    width: 40px;
    height: 40px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    color: var(--gold-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-right: 0.5rem;
}
.nav-search-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* زر القائمة للموبايل */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform-origin: right;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(0px, 0px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(0px, 0px); }

/* شريط البحث */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 24, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-med);
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-box {
    width: 100%;
    max-width: 700px;
    padding: 0 2rem;
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-input-wrap i {
    position: absolute;
    right: 1.5rem;
    color: var(--gold-primary);
    font-size: 1.2rem;
}
.search-input {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 1.2rem;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: all var(--transition-fast);
}
.search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 30px var(--gold-glow);
    background: rgba(255,255,255,0.1);
}
.search-input::placeholder { color: rgba(240, 234, 214, 0.4); }
.search-close {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.search-close:hover { color: var(--gold-primary); }
.search-hint {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   HERO SECTION - القسم الرئيسي
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 75px;
}

/* الخلفية المتحركة */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #060c18 0%, #0d1f30 40%, #1B4D3E 100%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: particle-float linear infinite;
    opacity: 0;
}



/* النمط الهندسي الإسلامي */
.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    background-image:
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(201, 168, 76, 1) 1deg, transparent 2deg, transparent 30deg);
    background-size: 80px 80px;
}

.hero-glow-1 {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 77, 62, 0.5) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 1;
    animation: slow-rotate 20s linear infinite;
}
.hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    z-index: 1;
    animation: slow-rotate 25s linear infinite reverse;
}



.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: hero-entrance 1.2s var(--ease-smooth) both;
}



/* البسملة */
.bismillah {
    font-family: 'Amiri', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    opacity: 0.9;
    animation: hero-entrance 1.2s var(--ease-smooth) 0.2s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-full);
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    animation: hero-entrance 1.2s var(--ease-smooth) 0.3s both;
    backdrop-filter: blur(10px);
}
.hero-badge i { color: var(--gold-primary); font-size: 0.8rem; }

.hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: hero-entrance 1.2s var(--ease-smooth) 0.4s both;
}

.title-line-1 {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 0.55em;
    margin-bottom: 0.2em;
    letter-spacing: 2px;
}

.title-line-2 {
    display: block;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(201, 168, 76, 0.4));
}

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(240, 234, 214, 0.75);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: hero-entrance 1.2s var(--ease-smooth) 0.5s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: hero-entrance 1.2s var(--ease-smooth) 0.6s both;
}

/* الإحصائيات في الهيرو */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
    animation: hero-entrance 1.2s var(--ease-smooth) 0.8s both;
}

.hero-stat {
    text-align: center;
    position: relative;
}
.hero-stat::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -1.25rem;
    height: 80%;
    width: 1px;
    background: rgba(201, 168, 76, 0.2);
}
.hero-stat:first-child::after { display: none; }

.hero-stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1;
    display: block;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.4));
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(240, 234, 214, 0.6);
    margin-top: 0.3rem;
    display: block;
    letter-spacing: 0.5px;
}

/* الشريط السفلي */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(201, 168, 76, 0.6);
    font-size: 0.75rem;
    animation: bounce-slow 2s ease-in-out infinite;
    cursor: pointer;
}
.hero-scroll i { font-size: 1.2rem; }



/* ========================================
   BUTTONS - الأزرار
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #0a1628;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-outline {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid rgba(201, 168, 76, 0.5);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.2);
}

.btn-glass {
    background: rgba(255,255,255,0.07);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.875rem;
}

/* ========================================
   SECTION STYLES - أنماط الأقسام
   ======================================== */
section { padding: var(--space-2xl) 0; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    padding: 0.4rem 1.2rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title span {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.05rem;
    color: rgba(240, 234, 214, 0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-dark));
    border-radius: 2px;
    margin: 1.5rem auto 0;
}

/* ========================================
   FEATURES SECTION - مميزات الموقع
   ======================================== */
.features {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(11, 24, 43, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(27, 77, 62, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-med);
    cursor: default;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-med);
    border-radius: inherit;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.1);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform var(--transition-med);
}

.feature-card:hover .feature-icon-wrap { transform: scale(1.1) rotate(-5deg); }

.icon-gold { background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.05)); border: 1px solid rgba(201, 168, 76, 0.3); }
.icon-green { background: linear-gradient(135deg, rgba(46, 125, 82, 0.2), rgba(46, 125, 82, 0.05)); border: 1px solid rgba(46, 125, 82, 0.3); }
.icon-blue { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.05)); border: 1px solid rgba(33, 150, 243, 0.3); }
.icon-purple { background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(156, 39, 176, 0.05)); border: 1px solid rgba(156, 39, 176, 0.3); }
.icon-orange { background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.05)); border: 1px solid rgba(255, 152, 0, 0.3); }
.icon-teal { background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(0, 188, 212, 0.05)); border: 1px solid rgba(0, 188, 212, 0.3); }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: rgba(240, 234, 214, 0.6);
    line-height: 1.7;
}

/* ========================================
   COURSES SECTION - قسم الدروس
   ======================================== */
.courses {
    background: rgba(8, 16, 30, 0.98);
    position: relative;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(27, 77, 62, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.courses-filter {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: rgba(240, 234, 214, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-med);
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

.course-thumbnail {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
}

.course-icon {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.4));
    transition: transform var(--transition-med);
}
.course-card:hover .course-icon { transform: scale(1.15); }

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(201, 168, 76, 0.9);
    color: #0a1628;
    backdrop-filter: blur(10px);
}

.course-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(201, 168, 76, 0.1);
    border-radius: var(--radius-full);
    border: 1px solid rgba(201, 168, 76, 0.2);
    width: fit-content;
}

.course-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.course-card p {
    font-size: 0.9rem;
    color: rgba(240, 234, 214, 0.6);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 1.25rem;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(240, 234, 214, 0.6);
}
.course-meta-item i { color: var(--gold-primary); font-size: 0.85rem; }

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--gold-primary);
    margin-bottom: 1.25rem;
}

/* ========================================
   ARTICLES SECTION - قسم المقالات
   ======================================== */
.articles {
    background: linear-gradient(180deg, rgba(11, 24, 43, 0.95) 0%, var(--bg-dark) 100%);
    position: relative;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-med);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.article-thumb {
    height: 220px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.article-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6));
}

.article-thumb-emoji {
    transition: transform var(--transition-med);
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.5));
    position: relative;
    z-index: 1;
}
.article-card:hover .article-thumb-emoji { transform: scale(1.1); }

.article-tag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.25rem 0.75rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    color: var(--gold-light);
    backdrop-filter: blur(10px);
}

.article-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(240, 234, 214, 0.5);
    margin-bottom: 0.9rem;
}
.article-meta i { color: var(--gold-primary); font-size: 0.75rem; }
.article-meta-divider { width: 3px; height: 3px; background: rgba(201, 168, 76, 0.4); border-radius: 50%; }

.article-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    transition: color var(--transition-fast);
}
.article-card:hover h3 { color: var(--gold-light); }

.article-card p {
    font-size: 0.875rem;
    color: rgba(240, 234, 214, 0.6);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    transition: all var(--transition-fast);
}
.read-more i { transition: transform var(--transition-fast); }
.read-more:hover { color: var(--gold-light); }
.read-more:hover i { transform: translateX(-5px); }

.article-read-time {
    font-size: 0.75rem;
    color: rgba(240, 234, 214, 0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ========================================
   FATWAS SECTION - قسم الفتاوى
   ======================================== */
.fatwas {
    background: rgba(8, 16, 30, 0.98);
    position: relative;
    overflow: hidden;
}

.fatwas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(27, 77, 62, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.fatwas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.75rem;
}

.fatwa-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-med);
    position: relative;
}

.fatwa-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
    border-radius: 0 0 0 0;
}

.fatwa-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateX(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.fatwa-header {
    padding: 1.5rem 1.5rem 1rem;
    background: rgba(201, 168, 76, 0.05);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fatwa-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.fatwa-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.fatwa-date {
    font-size: 0.75rem;
    color: var(--gold-primary);
    background: rgba(201, 168, 76, 0.1);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.75rem;
    white-space: nowrap;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.fatwa-body {
    padding: 1.5rem;
}

.fatwa-qa { margin-bottom: 0.75rem; }

.fatwa-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 4px;
}

.fatwa-body p {
    font-size: 0.875rem;
    color: rgba(240, 234, 214, 0.65);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.read-fatwa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
    transition: all var(--transition-fast);
}
.read-fatwa:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold-primary);
}
.read-fatwa i { transition: transform var(--transition-fast); }
.read-fatwa:hover i { transform: translateX(-4px); }

/* ========================================
   STATISTICS SECTION - الإحصائيات
   ======================================== */
.statistics {
    background: linear-gradient(135deg, #0A1628 0%, #1B4D3E 50%, #0A1628 100%);
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(201, 168, 76, 0.03) 1deg, transparent 2deg, transparent 60deg);
    background-size: 150px 150px;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-lg);
    transition: all var(--transition-med);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    border-radius: 0 0 3px 3px;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.3));
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.4));
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(240, 234, 214, 0.7);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   ABOUT SECTION - قسم عن الموقع
   ======================================== */
.about {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(11, 24, 43, 0.95) 100%);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text { color: rgba(240, 234, 214, 0.75); }

.about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.about-text h3::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(240, 234, 214, 0.75);
    transition: all var(--transition-fast);
    border-right: 3px solid rgba(201, 168, 76, 0.4);
}
.values-list li:hover {
    background: rgba(201, 168, 76, 0.06);
    border-right-color: var(--gold-primary);
    color: var(--text-light);
    transform: translateX(-5px);
}
.values-list li .icon {
    font-size: 1.3rem;
    width: 2rem;
    flex-shrink: 0;
}

/* الصورة التوضيحية */
.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-orb {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.4), rgba(201, 168, 76, 0.15));
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.about-orb::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--gold-primary) 90deg, transparent 180deg, transparent 360deg);
    animation: spin 8s linear infinite;
    opacity: 0.4;
}

.about-orb::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bg-dark);
}





.about-orb-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.about-orb-icon {
    font-size: 5rem;
    filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.5));
    display: block;
    margin-bottom: 0.5rem;
}

.about-orb-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: 'Amiri', serif;
}

/* الزخارف الطائرة حول الدائرة */
.float-badge {
    position: absolute;
    background: rgba(6, 12, 24, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    animation: float-badge 4s ease-in-out infinite;
}
.float-badge span { font-size: 1.2rem; }
.float-badge-1 { top: 10%; right: -10%; animation-delay: 0s; }
.float-badge-2 { bottom: 20%; left: -15%; animation-delay: 1.5s; }
.float-badge-3 { top: 60%; right: -12%; animation-delay: 0.8s; }



/* ========================================
   SUBSCRIBE SECTION - قسم الاشتراك
   ======================================== */
.subscribe {
    background: linear-gradient(135deg, #0A1628 0%, #1B4D3E 50%, #0A1628 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 5rem 0;
}

.subscribe::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 100% at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.subscribe-content { position: relative; z-index: 1; }

.subscribe-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    max-width: 560px;
    margin: 2rem auto;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-input-wrap {
    flex: 1;
    min-width: 280px;
    position: relative;
}
.subscribe-input-wrap i {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.subscribe-form input {
    width: 100%;
    padding: 0.9rem 3rem 0.9rem 1.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
    backdrop-filter: blur(10px);
}
.subscribe-form input:focus {
    border-color: var(--gold-primary);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 25px rgba(201, 168, 76, 0.2);
}
.subscribe-form input::placeholder { color: rgba(240, 234, 214, 0.4); }

.subscribe-note {
    font-size: 0.82rem;
    color: rgba(201, 168, 76, 0.6);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

/* ========================================
   CONTACT SECTION - قسم التواصل
   ======================================== */
.contact {
    background: rgba(8, 16, 30, 0.98);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.info-card:hover {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateX(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 0.85rem;
    color: rgba(240, 234, 214, 0.5);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.info-card p, .info-card a {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    transition: color var(--transition-fast);
}
.info-card a:hover { color: var(--gold-primary); }

.social-section {
    padding: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
}

.social-title {
    font-size: 0.85rem;
    color: rgba(240, 234, 214, 0.5);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--text-light);
}
.social-link:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* نموذج التواصل */
.contact-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(240, 234, 214, 0.7);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1.2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(240, 234, 214, 0.3); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; }
.form-group select option { background: #1a2840; color: var(--text-light); }

/* ========================================
   FOOTER - تذييل الصفحة
   ======================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    padding: 4rem 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .logo { margin-bottom: 1.25rem; display: inline-flex; }

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(240, 234, 214, 0.55);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li {
    margin-bottom: 0.65rem;
}
.footer-section ul li a {
    font-size: 0.875rem;
    color: rgba(240, 234, 214, 0.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    padding: 0.2rem 0;
}
.footer-section ul li a::before {
    content: '›';
    color: var(--gold-primary);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform var(--transition-fast);
}
.footer-section ul li a:hover {
    color: var(--gold-light);
}
.footer-section ul li a:hover::before { transform: translateX(-5px); }

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(240, 234, 214, 0.35);
}
.footer-copy span { color: var(--gold-primary); }

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    font-size: 0.82rem;
    color: rgba(240, 234, 214, 0.35);
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--gold-primary); }

/* ========================================
   SCROLL TO TOP - زر العودة للأعلى
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: #0a1628;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.3);
    z-index: 999;
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.4);
}

/* ========================================
   NOTIFICATION TOAST - إشعارات
   ======================================== */
.toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(6, 12, 24, 0.95);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.toast i { color: var(--gold-primary); font-size: 1.1rem; }
.toast.toast-success i { color: #4caf73; }
.toast.toast-error i { color: #e57373; }

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* تأخير الكشف */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ========================================
   UTILITIES - أدوات مساعدة
   ======================================== */
.text-gold { color: var(--gold-primary); }
.text-gold-light { color: var(--gold-light); }
.text-white { color: #ffffff; }
.text-muted { color: rgba(240, 234, 214, 0.5); }
.font-amiri { font-family: 'Amiri', serif; }
.bg-dark-section { background: rgba(8, 16, 30, 0.98); }

/* ========================================
   RESPONSIVE DESIGN - تصميم متجاوب
   ======================================== */
@media (max-width: 1200px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .about-visual { display: none; }
    .contact-content { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 75px;
        right: 0;
        left: 0;
        background: rgba(6, 12, 24, 0.97);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(201, 168, 76, 0.15);
        transform: translateY(-110%);
        transition: transform var(--transition-med);
        z-index: 999;
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-link { width: 100%; padding: 0.75rem 1rem; }

    .nav-search-btn { margin-right: 0; }

    .hero-stats { gap: 1.5rem; }
    .hero-stat::after { display: none; }

    .courses-grid,
    .articles-grid { grid-template-columns: 1fr; }

    .fatwas-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .float-badge { display: none; }
}

@media (max-width: 480px) {
    .noor-alilm-wrap { font-size: 15px; }

    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-stats { gap: 1rem; }
    .hero-stat-num { font-size: 1.6rem; }

    .section-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }

    .stats-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }

    .contact-form { padding: 1.5rem; }

    .scroll-top {
        bottom: 1rem;
        left: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-particles, .particle { display: none; }
}

:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

}
