/* ========================================
   جمعية الأنوار - الأنماط الرئيسية
   Al-Anwar Association - Main Styles
======================================== */

/* استيراد خط Cairo العربي */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* المتغيرات الأساسية */
:root {
    --primary-green: #1a4d3e;
    --primary-green-light: #2a6b5a;
    --primary-green-dark: #0f3329;
    --gold: #c9a962;
    --gold-light: #d4bc7d;
    --gold-dark: #a88b4a;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 5px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 10px 50px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* إعادة تعيين الأنماط */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
}

/* أنماط التمرير المخصصة */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-green-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* الحاوية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

/* ========================================
   شريط التنقل - Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.logo-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--gold);
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--primary-green-dark);
    font-weight: 700;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.navbar.scrolled .logo-text h1 {
    color: var(--primary-green-dark);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.navbar:not(.scrolled) .nav-links a {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-green);
}

/* زر القائمة للموبايل */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-fast);
}

.navbar.scrolled .menu-toggle span {
    background: var(--primary-green-dark);
}

/* ========================================
   القسم البطولي - Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 77, 62, 0.92) 0%,
        rgba(15, 51, 41, 0.95) 100%
    );
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='%23c9a962' fill-opacity='0.03'/%3E%3C/svg%3E");
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 25px;
    background: rgba(201, 169, 98, 0.2);
    border: 1px solid var(--gold);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
    color: var(--gold);
}

.hero-verse {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-verse-reference {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 2;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: var(--gold);
}

/* ========================================
   الأزرار - Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(201, 169, 98, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
}

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

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201, 169, 98, 0.4);
}

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

.btn-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(26, 77, 62, 0.4);
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========================================
   الأقسام - Sections
======================================== */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--off-white);
}

.section-dark {
    background: var(--primary-green-dark);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(26, 77, 62, 0.1);
    color: var(--primary-green);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-dark .section-badge {
    background: rgba(201, 169, 98, 0.2);
    color: var(--gold);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   بطاقات الأهداف - Goals Cards
======================================== */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.goal-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--gold));
    transform: scaleX(0);
    transition: var(--transition-fast);
}

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

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.goal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.1), rgba(26, 77, 62, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition-fast);
}

.goal-card:hover .goal-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
}

.goal-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-green);
    transition: var(--transition-fast);
}

.goal-card:hover .goal-icon svg {
    fill: var(--white);
}

.goal-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-green-dark);
}

.goal-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   قسم الأنشطة - Activities Section
======================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.activity-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.activity-content {
    padding: 25px;
}

.activity-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.activity-date svg {
    width: 16px;
    height: 16px;
    fill: var(--gold);
}

.activity-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-green-dark);
}

.activity-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.activity-link svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-green);
    transition: var(--transition-fast);
}

.activity-link:hover svg {
    transform: translateX(-5px);
}

/* ========================================
   قسم التطبيقات - Apps Section
======================================== */
.apps-section {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    position: relative;
    overflow: hidden;
}

.apps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23c9a962' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.app-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-medium);
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.app-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.app-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--white);
}

.app-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.app-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.8;
}

.app-features {
    margin-bottom: 30px;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.app-features li svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
}

.app-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.app-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(201, 169, 98, 0.2);
    border-radius: 10px;
    border-right: 3px solid var(--gold);
}

.app-notice svg {
    width: 24px;
    height: 24px;
    fill: var(--gold);
    flex-shrink: 0;
}

.app-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gold-light);
}

/* ========================================
   قسم الإحصائيات - Stats Section
======================================== */
.stats-section {
    background: var(--primary-green-dark);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   التذييل - Footer
======================================== */
.footer {
    background: var(--primary-green-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 10px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    fill: var(--gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom a {
    color: var(--gold);
}

/* ========================================
   صفحة من نحن - About Page
======================================== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='%23c9a962' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--gold);
    font-size: 0.9rem;
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.5);
}

/* قسم القصة */
.story-section {
    padding: 100px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.story-content p {
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
}

.story-image {
    position: relative;
}

.story-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
}

.story-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

/* قسم القيم */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.value-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.value-icon svg {
    width: 45px;
    height: 45px;
    fill: var(--white);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========================================
   صفحة المسجد - Mosque Page
======================================== */
.mosque-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.mosque-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mosque-gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.mosque-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-medium);
}

.mosque-gallery-item:hover img {
    transform: scale(1.1);
}

.mosque-gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 77, 62, 0.8), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.mosque-gallery-item:hover::after {
    opacity: 1;
}

/* Timeline */
.timeline {
    position: relative;
    padding-right: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-green), var(--gold));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    padding-right: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-light);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========================================
   صفحة التواصل - Contact Page
======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    background: var(--primary-green-dark);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    color: var(--white);
}

.contact-info h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.9;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(201, 169, 98, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--gold);
}

.contact-item-text h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-medium);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ========================================
   صفحة الأنشطة - Activities Page
======================================== */
.activities-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Cairo', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

/* ========================================
   الرسوم المتحركة - Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* عناصر الظهور عند التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-medium);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-medium);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-medium);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   التصميم المتجاوب - Responsive Design
======================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-medium);
        box-shadow: var(--shadow-heavy);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-grid,
    .mosque-intro,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-verse {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .mosque-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .app-card {
        padding: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .mosque-gallery {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-filter {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* ========================================
   أنماط إضافية - Additional Styles
======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-green { color: var(--primary-green); }
.bg-light { background: var(--off-white); }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* الإخفاء والإظهار */
.hidden { display: none; }

/* تأثير التحميل */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition-medium);
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
    box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}
