/* ===========================================
   المتغيرات الأساسية وألوان المنصة
   =========================================== */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #0f2461;
    --primary-light: #3b5db8;
    --secondary-color: #c9a14a;
    --secondary-dark: #a8842f;
    --secondary-light: #e6c47a;
    --accent-color: #0ea5e9;
    --dark-color: #0a1628;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b5db8 100%);
    --gradient-secondary: linear-gradient(135deg, #c9a14a 0%, #e6c47a 100%);
    --gradient-dark: linear-gradient(135deg, #0a1628 0%, #1e3a8a 100%);
}

/* ===========================================
   إعادة الضبط الأساسية
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===========================================
   الحاوية والأزرار
   =========================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===========================================
   الهيدر
   =========================================== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border-bottom-color: var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0.3;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text .logo-subtitle {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-gray);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(30, 58, 138, 0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    padding: 8px;
}

/* ===========================================
   قسم الهيرو
   =========================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -200px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -150px;
    right: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.hero-badge i {
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 750px;
    margin-right: auto;
    margin-left: auto;
}

.hero-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

/* ===========================================
   عناوين الأقسام المشتركة
   =========================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-title.light {
    color: white;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.6;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.85);
}

/* ===========================================
   قسم عن المنصة
   =========================================== */
.about {
    padding: 100px 0;
    background: white;
}

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

.about-heading {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 16px;
}

.about-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.feature-text h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 700;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.about-image {
    position: relative;
}

.image-frame {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0.15;
}

.image-content {
    position: relative;
    z-index: 2;
    color: white;
}

.image-content i {
    font-size: 80px;
    color: var(--secondary-light);
    margin-bottom: 24px;
}

.image-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 800;
}

.image-content p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
    z-index: 3;
}

.floating-card i {
    color: var(--secondary-color);
    font-size: 18px;
}

.card-1 {
    top: 30px;
    left: -20px;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    bottom: 40px;
    right: -20px;
    animation: float 3s ease-in-out infinite reverse;
}

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

/* ===========================================
   قسم الخدمات
   =========================================== */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
}

.service-card:hover .service-icon {
    transform: rotate(-5deg) scale(1.05);
    background: var(--gradient-secondary);
}

.service-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 800;
}

.service-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* ===========================================
   قسم الدكتور (الراعي)
   =========================================== */
.trainer {
    position: relative;
    padding: 100px 0;
    background: var(--gradient-dark);
    overflow: hidden;
}

.trainer-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(201, 161, 74, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 93, 184, 0.2) 0%, transparent 50%);
}

.trainer-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.trainer-image {
    position: relative;
}

.trainer-photo {
    position: relative;
    background: var(--gradient-secondary);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.trainer-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.2;
}

.trainer-avatar {
    position: relative;
    z-index: 2;
}

.trainer-avatar i {
    font-size: 150px;
    color: white;
}

.trainer-decorations .decoration {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.2;
}

.decoration-1 {
    width: 100px;
    height: 100px;
    top: 20px;
    right: 20px;
}

.decoration-2 {
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background: white;
}

.decoration-3 {
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.trainer-badges {
    position: absolute;
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 10px;
}

.badge-item {
    background: white;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-item i {
    color: var(--secondary-color);
}

.trainer-content {
    color: white;
}

.trainer-content .section-badge {
    margin-bottom: 20px;
}

.trainer-name {
    font-size: 42px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    line-height: 1.2;
}

.trainer-title {
    font-size: 20px;
    color: var(--secondary-light);
    margin-bottom: 24px;
    font-weight: 600;
}

.trainer-bio {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.trainer-credentials {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 20px;
    flex-shrink: 0;
}

.credential-info h4 {
    font-size: 15px;
    margin-bottom: 2px;
    color: white;
}

.credential-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.trainer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* ===========================================
   قسم المؤسسة
   =========================================== */
.foundation {
    padding: 100px 0;
    background: white;
}

.foundation-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.foundation-card {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: var(--radius-xl);
    padding: 50px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.foundation-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.foundation-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.foundation-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.foundation-header h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 800;
}

.foundation-header p {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.foundation-text {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.foundation-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    position: relative;
    z-index: 2;
}

.pillar {
    background: white;
    padding: 28px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pillar i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.pillar h4 {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.pillar p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===========================================
   قسم البرامج التدريبية
   =========================================== */
.courses {
    padding: 100px 0;
    background: var(--bg-light);
}

.courses-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    color: var(--text-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.course-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0.2;
}

.course-placeholder {
    position: relative;
    z-index: 2;
}

.course-placeholder i {
    font-size: 64px;
    color: white;
    opacity: 0.9;
}

.course-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
}

.course-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-meta i {
    color: var(--secondary-color);
}

.course-rating i {
    color: var(--secondary-color);
}

.course-title {
    font-size: 19px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.course-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.course-price {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.course-btn {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-btn:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* ===========================================
   قسم آراء العملاء
   =========================================== */
.testimonials {
    position: relative;
    padding: 100px 0;
    background: var(--gradient-primary);
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(201, 161, 74, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

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

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: var(--secondary-color);
    font-size: 16px;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.author-info h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 2px;
    font-weight: 700;
}

.author-info span {
    color: var(--text-light);
    font-size: 13px;
}

/* ===========================================
   قسم الدعوة للعمل
   =========================================== */
.cta {
    padding: 80px 0;
    background: white;
}

.cta-wrapper {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(28px, 4vw, 36px);
    color: white;
    margin-bottom: 12px;
    font-weight: 900;
    line-height: 1.3;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ===========================================
   قسم التواصل
   =========================================== */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 800;
}

.contact-info-text {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-details a, .contact-details p {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
    word-break: break-word;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social .social-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-social .social-link:hover {
    background: var(--secondary-color);
}

/* نموذج التواصل */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-color);
    background: var(--bg-light);
    transition: var(--transition);
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

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

/* ===========================================
   الفوتر
   =========================================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

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

.footer-col .logo-text h1 {
    color: white;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    line-height: 1.8;
    font-size: 15px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 16px;
    width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social .social-link {
    background: rgba(255, 255, 255, 0.1);
}

.footer-social .social-link:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.credit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.credit strong {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ===========================================
   زر العودة للأعلى
   =========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

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

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

/* ===========================================
   النافذة المنبثقة (Modal)
   =========================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 420px;
    width: 100%;
    animation: slideUp 0.3s;
}

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

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 800;
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ===========================================
   تأثيرات الظهور
   =========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

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