/* ================= المتغيرات الأساسية ================= */
:root {
    /* لوحة الألوان الفاخرة */
    --primary-dark: #0B3B2D;
    --primary: #115945;
    --primary-light: #1A755C;
    --gold: #C5A059;
    --gold-light: #DFBD73;
    --gold-dark: #9E7D3F;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-light: #E9ECEF;
    --gray: #6C757D;
    --dark: #212529;

    /* الخطوط */
    --font-primary: 'IBM Plex Sans Arabic', sans-serif;
    --font-heading: 'IBM Plex Sans Arabic', sans-serif;

    /* التدرجات */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary));
    --gradient-gold: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));

    /* الظلال */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(11,59,45,0.15);
    --shadow-gold: 0 8px 24px rgba(197,160,89,0.2);

    /* التحولات */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= الإعدادات العامة ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--off-white);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= شاشة التحميل ================= */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loader-inner {
    text-align: center;
    color: var(--gold);
}

.loader-kaaba {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.loader-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-gold);
    animation: loading 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loading {
    0% { width: 0; transform: translateX(100%); }
    50% { width: 100%; transform: translateX(0); }
    100% { width: 0; transform: translateX(-100%); }
}

/* ================= شريط التقدم ================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
    width: 0%;
    z-index: 9998;
    transition: width 0.1s;
}

/* ================= شريط التنبيه العلوي ================= */
.top-banner {
    background: var(--gold);
    color: var(--primary-dark);
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.banner-close {
    position: absolute;
    left: 20px;
    background: none;
    border: none;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.banner-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ================= شريط التنقل ================= */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
    z-index: 999;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-sub {
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

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

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

.hijri-badge {
    background: var(--primary-light);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-download-nav {
    background: var(--gradient-gold);
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ================= قسم الهيرو ================= */
.hero {
    position: relative;
    padding: 60px 0;
    background: var(--primary-dark);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/kaaba-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--gold) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--gold-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.title-highlight {
    color: var(--gold);
    display: inline-block;
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(197, 160, 89, 0.3);
    border-radius: 5px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
}

/* بطاقة الرعاية */
.sponsorship-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.sponsor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.sponsor-icon {
    width: 35px;
    height: 35px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.sponsor-header h3 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 1.2rem;
}

.sponsor-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sponsor-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sponsor-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 8px;
    position: relative;
}

.sponsor-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.5;
}

.sponsor-item div {
    display: flex;
    flex-direction: column;
}

.sponsor-item strong {
    font-size: 1.05rem;
    color: var(--white);
}

.sponsor-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* الأزرار والإحصائيات */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary-hero {
    background: var(--gradient-gold);
    border: none;
    color: var(--primary-dark);
    padding: 15px 35px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(197,160,89,0.3);
}

.btn-outline-hero {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-item i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* غلاف الكتاب */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.book-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: floatBook 6s ease-in-out infinite;
}

.book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.book-float {
    position: relative;
    z-index: 2;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: var(--transition);
}

.book-wrapper:hover .book-float {
    transform: rotateY(0deg) rotateX(0deg);
}

.book-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px 20px 20px 10px;
    box-shadow: -10px 20px 40px rgba(0,0,0,0.4);
    border-right: 3px solid #eee;
}

.book-new-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 15px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: rotate(15deg);
    border: 3px solid var(--white);
}

.book-new-badge i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes floatBook {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

/* ================= الأقسام العامة ================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    background: rgba(17, 89, 69, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-tag.gold {
    color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.section-desc {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

.section-header.light .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-divider.gold {
    background: var(--gold);
}

/* ================= قسم المميزات ================= */
.features-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('assets/images/mosque-pattern.png') repeat-y;
    opacity: 0.03;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--off-white);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: rgba(197, 160, 89, 0.3);
}

.feature-icon-wrap {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(17, 89, 69, 0.2);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    background: var(--gradient-gold);
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-gold);
}

.feature-num {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    line-height: 1;
    z-index: -1;
    transition: var(--transition);
}

.feature-card:hover .feature-num {
    color: rgba(197, 160, 89, 0.08);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.feature-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.feature-card:hover .feature-line {
    width: 100%;
}

/* ================= قسم الفيديوهات ================= */
.videos-section {
    padding: 100px 0;
    background: var(--primary-dark);
    position: relative;
}

.videos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.video-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    color: var(--white);
}

.video-badge.new {
    background: #E74C3C;
}

.video-badge.important {
    background: var(--gold);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 25px;
}

.video-info h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.video-info p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.video-meta {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    border-top: 1px solid var(--gray-light);
    padding-top: 15px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
}

/* ================= قسم التحميل ================= */
.download-section {
    padding: 120px 0;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.download-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--gradient-primary);
    z-index: 0;
}

.download-wrapper {
    background: var(--white);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.download-icon-big {
    width: 100px;
    height: 100px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
    box-shadow: inset 0 0 0 2px var(--gold);
}

.download-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.download-desc {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.download-desc strong {
    color: var(--primary);
}

.download-features-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.dl-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--off-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.dl-feature i {
    color: var(--gold);
}

.btn-download-big {
    background: var(--gradient-gold);
    border: none;
    color: var(--primary-dark);
    padding: 20px 50px;
    border-radius: 40px;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}

.btn-download-big:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(197,160,89,0.4);
}

.btn-download-big i {
    font-size: 1.5rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(5px); }
    60% { transform: translateY(3px); }
}

/* ================= الفوتر ================= */
.footer {
    background: #08291F;
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    padding: 80px 0 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 30px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.footer-heading {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 10px;
}

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

.footer-list {
    list-style: none;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-list i {
    color: var(--gold);
    margin-top: 5px;
}

.footer-list strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.footer-list span {
    font-size: 0.85rem;
}

.footer-social {
    list-style: none;
}

.footer-social li {
    margin-bottom: 15px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

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

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

.footer-social a:hover i {
    background: var(--gold);
    color: #08291F;
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ================= النافذة المنبثقة ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 59, 45, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark);
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-inner {
    display: flex;
}

.modal-img-side {
    flex: 1;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-img-side img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.modal-text-side {
    flex: 1.2;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-icon {
    font-size: 3rem;
    color: var(--success, #27AE60);
    margin-bottom: 20px;
}

.modal-text-side h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.modal-text-side p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-file-info {
    display: flex;
    gap: 20px;
    background: var(--off-white);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.modal-file-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.btn-modal-download {
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    padding: 15px 0;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-modal-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ================= زر العودة للأعلى ================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--gold);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border: 2px solid rgba(197, 160, 89, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--gold);
}

/* ================= التجاوب (Responsive) ================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .btn-download-nav {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .sponsorship-card {
        text-align: right;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .book-wrapper {
        margin: 50px auto 0;
    }
    
    .modal-inner {
        flex-direction: column;
    }
    
    .modal-img-side {
        display: none;
    }
    
    .download-features-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-title {
        font-size: 0.95rem;
    }
    
    .brand-sub {
        font-size: 0.75rem;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .btn-primary-hero, .btn-outline-hero {
        padding: 12px 25px;
    }
}