/* ================= Variables based on Codinger Identity ================= */
:root {
    --primary-navy: #1a237e; /* The main dark text color */
    --accent-purple: #ab47bc; /* From the 'C' */
    --accent-teal: #26c6da; /* From the circle */
    --accent-green: #9ccc65; /* From the underline */
    --bg-light: #fff; /* Very light blue-ish white */
    --footer-bg: #0f154f; /* Deep navy for footer (Dorik style) */
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--primary-navy);
    background-color: #fff;
    overflow-x: hidden;
}
html {
    scroll-behavior: smooth; /* نعومة عند الضغط على الروابط */
    scrollbar-width: thin; /* لمتصفح فايرفوكس */
    scrollbar-color: var(--primary-navy) #e2e8f0;
}

/* 2. تخصيص الشريط (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 10px; /* عرض الشريط */
}

/* خلفية الشريط (Track) */
::-webkit-scrollbar-track {
    background: #f1f5f9; /* لون رمادي فاتح جداً يريح العين */
}

/* المقبض المتحرك (Thumb) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--accent-teal),
        var(--primary-navy)
    ); /* تدرج ألوان الهوية */
    border-radius: 20px; /* حواف دائرية */
    border: 2px solid #f1f5f9; /* مسافة بيضاء حول الشريط لشكله يبان "عائم" */
}

/* عند الوقوف على الشريط */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--accent-purple),
        var(--primary-navy)
    );
}

/* تحسين أداء السكرول ومنع التقطيع */
body {
    -webkit-font-smoothing: antialiased; /* تحسين نعومة الخطوط */
    text-rendering: optimizeLegibility;
}

/* تسريع المعالجة الرسومية للأقسام الثقيلة (Hardware Acceleration) */
.swiper-slide,
.project-card,
.video-card {
    will-change: transform; /* يخبر المتصفح أن يجهز كارت الشاشة لهذه العناصر */
    transform: translateZ(0); /* تفعيل GPU rendering */
    backface-visibility: hidden;
}
/* ================= Navbar ================= */
.navbar {
    transition:
        0.3s background-color,
        0.3s padding;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

/* Default links (on dark hero) */
.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
}
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: #fff !important;
    font-weight: bold;
}
.navbar-dark .login-btn {
    border-color: white;
}

/* Links when Scrolled (on white navbar) */
.navbar.scrolled .nav-link {
    color: var(--primary-navy) !important;
}
.navbar.scrolled .login-btn {
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}
.navbar.scrolled .navbar-brand img {
    filter: invert(0); /* Adjust if you use 2 logos */
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(
        135deg,
        var(--accent-teal),
        var(--accent-purple)
    );
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--primary-navy) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-purple) !important;
}

.btn-rounded {
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
}

/* Custom Gradient Button matching Logo */
.btn-gradient {
    background: linear-gradient(
        90deg,
        var(--accent-teal),
        var(--accent-purple)
    );
    border: none;
    transition: transform 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(171, 71, 188, 0.3);
}

.btn-outline-primary {
    color: var(--primary-navy);
    border-color: #ddd;
}

.btn-outline-primary:hover {
    background: #f1f1f1;
    color: var(--primary-navy);
    border-color: #ccc;
}

/* Badge styled like 'Future Skills' */
.badge-custom {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(38, 198, 218, 0.15); /* Light Teal */
    color: #00838f;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.text-purple {
    color: var(--accent-purple);
}
.text-orange {
    color: #ff7043;
}

.typewriter-effect {
    background: linear-gradient(
        90deg,
        var(--accent-purple),
        var(--accent-teal)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* ================= 1. Root Variables (الهوية) ================= */
:root {
    --primary-navy: #1a237e; /* كحلي أساسي */
    --primary-dark: #0f172a; /* كحلي غامق جداً للخلفيات */
    --accent-purple: #ab47bc; /* بنفسجي */
    --accent-teal: #26c6da; /* تركواز فاتح للإضاءة */
    --gradient-overlay: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(26, 35, 126, 0.75) 100%
    );
}

/* ================= 2. Navbar Styling (شفاف وذكي) ================= */
.navbar {
    transition: all 0.4s ease-in-out;
    padding: 1.2rem 0;
    z-index: 1000;
}

/* حالة السكرول (عند النزول للأسفل) */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

/* الروابط في الحالة العادية (على الخلفية الداكنة) */
.navbar-expand-lg .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
    transition: 0.3s;
}

/* تأثير الهوفر تحت الروابط */
.navbar-expand-lg .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-teal);
    transition: 0.3s;
}
.navbar-expand-lg .nav-link:hover::after {
    width: 100%;
}

.navbar-expand-lg .nav-link:hover {
    color: #fff !important;
}

/* الروابط عند السكرول (على خلفية بيضاء) */
.navbar.scrolled .nav-link {
    color: var(--primary-navy) !important;
}
.navbar.scrolled .navbar-brand img {
    filter: invert(0);
} /* تعديل لوجو حسب لونه */
.navbar.scrolled .btn-outline-primary {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

/* ================= 3. Hero Section (تعديل الأوفرلاي والخلفية) ================= */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* ملء الشاشة */
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 100px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

/* A. حاوية الخلفية */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* B. الصورة المتحركة */
.hero-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%; /* تركيز الصورة للأعلى قليلاً لتجنب قطع الرؤوس */
    background-repeat: no-repeat;
    animation: zoomEffect 20s infinite alternate ease-in-out;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* C. طبقة التغميق (The Dark Blue Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* هذا التدرج هو السر: يبدأ بكحلي غامق جداً وينتهي بأفتح قليلاً */
    background: var(--gradient-overlay);
    opacity: 1; /* تحكم في الشفافية من هنا لو احتجت تخفيفها */
}

/* ================= 4. Typography & Elements ================= */
.hero-content {
    position: relative;
    z-index: 3; /* لضمان ظهور النص فوق كل شيء */
}
/* البادج العلوي */
.hero-section .badge-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--accent-teal);
    display: inline-block;
    backdrop-filter: blur(5px);
    font-weight: 600;
}

/* العنوان الرئيسي */
.hero-section .display-5 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
    /* ظل أسود قوي خلف النص لضمان القراءة */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* تأثير الكتابة الملونة */
.hero-section .text-gradient-purple {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    /* إضافة فلتر ظل لزيادة الوضوح */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* الفقرة التعريفية */
.hero-section .lead.text-muted {
    color: rgba(255, 255, 255, 0.85) !important; /* تجاوز البوتستراب */
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* الأزرار */
.btn-lg {
    padding: 12px 35px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s;
}

.btn-primary.btn-gradient {
    background: linear-gradient(90deg, var(--accent-teal) 0%, #9e50b6 100%);
    border: none;
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.3);
}

.btn-primary.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(33, 150, 243, 0.4);
}

/* قسم احصائيات الطلاب (avatars) */
.trust-badge p {
    color: #fff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* ================= 5. Shapes & Waves ================= */
/* الجزيئات الطافية */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
    z-index: 0;
}
.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    top: 10%;
    right: -50px;
    animation: float 6s infinite ease-in-out;
}
.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-teal);
    bottom: 10%;
    left: -50px;
    animation: float 8s infinite ease-in-out reverse;
}

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

/* Wave Separator في الأسفل */
.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="1" d="M0,256L48,229.3C96,203,192,149,288,154.7C384,160,480,224,576,218.7C672,213,768,139,864,128C960,117,1056,171,1152,197.3C1248,224,1344,224,1392,224L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

/* تحسينات الموبايل */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .d-flex.gap-3 {
        justify-content: center;
    }
}
.avatars img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-right: -15px;
}

/* === Hero Visuals (The Tablet Mockup) === */
.hero-visual-wrapper {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Glass Card Container */
.main-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 25px; /* Highly rounded as requested */
    padding: 20px;
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.1);
    z-index: 2;
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.main-card:hover {
    transform: rotate(0deg) scale(1.02);
}

/* UI Details inside Mock */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.search-bar-mock {
    background: #f1f5f9;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #aaa;
    width: 60%;
}

.mock-banner {
    background: linear-gradient(135deg, var(--primary-navy), #3949ab);
}

.mock-item {
    transition: transform 0.3s;
    cursor: pointer;
}

.mock-item:hover {
    transform: translateY(-3px);
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: #fff;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 20px;
    right: 20px;
}
.badge-2 {
    bottom: 40px;
    left: 10px;
    animation-delay: 2s;
}

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

/* Background Blobs for Atmosphere */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
    opacity: 0.5;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    top: 0;
    right: -50px;
}
.blob-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-teal);
    bottom: 52px;
    left: 50px;
}

/* ================= Mobile Responsiveness ================= */
@media (max-width: 991px) {
    .hero-content {
        text-align: center;
        padding-top: 20px;
    }
    .hero-visual-wrapper {
        margin-top: 50px;
        transform: scale(0.9);
    }
    .d-flex.justify-content-start {
        /* Centering badges on mobile if needed */
        justify-content: center !important;
    }
    .trust-badge {
        justify-content: center;
    }
}
/* ================= Integrated About Section ================= */
.about-section {
    padding: 80px 0;
    background-color: #fff; /* or light grey #f9f9f9 */
}

/* Background Abstract Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}
.shape-1 {
    width: 300px;
    height: 300px;
    background: #e1bee7; /* Light Purple */
    top: 69px;
    left: 0;
}
.shape-2 {
    width: 300px;
    height: 300px;
    background: #b2dfdb; /* Light Teal */
    bottom: 90px;
    right: 0;
}

/* Typography & Colors */
.text-navy {
    color: var(--primary-navy);
    font-weight: bold;
}
.text-gradient {
    background: linear-gradient(
        90deg,
        var(--accent-purple),
        var(--accent-teal)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-purple-light {
    background: #f3e5f5;
}
.bg-green-light {
    background: #f1f8e9;
}
.bg-blue-light {
    background: #e3f2fd;
}

.text-purple {
    color: #8e24aa;
}
.text-green {
    color: #7cb342;
}
.text-blue {
    color: #1e88e5;
}

/* Highlights Icon Boxes */
.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* About Visual Image Wrapper */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.main-img {
    border-radius: 30px 30px; /* Modern shape */
    border: 5px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    object-fit: cover;
    max-height: 400px;
}

/* Floating Small Card inside image */
.floating-info-card {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: bounce 3s infinite ease-in-out;
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
/* ================= Partners Trust Bar (FIXED & BIGGER) ================= */
.partners-wrapper {
    position: relative;
    padding: 0 10px;
}

/* 1. تنسيق العنوان ليظهر بشكل احترافي مع خط وسطي */
.ls-2 {
    letter-spacing: 2px;
}
.z-1 {
    z-index: 1;
}
.z-2 {
    z-index: 2;
}

/* 2. صندوق الشركاء */
.partners-box {
    padding: 25px 0; /* مساحة مريحة حول اللوجوهات */
    overflow: hidden;
    position: relative;
    max-width: 1000px; /* لعدم جعل الشريط طويلاً جداً بشكل مبالغ فيه */
    margin: 0 auto; /* توسيط الصندوق */
}

.logos-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* الشريط المتحرك */
.logos-track {
    display: flex; /* هام جداً: هذا ما يجعل المجموعتين بجوار بعض وليس تحت بعض */
    width: max-content; /* عرض ديناميكي بناء على المحتوى */
    animation: smoothScroll 40s linear infinite;
}

/* 3. مجموعة الصور */
.slide-group {
    display: flex; /* اجبار الصور داخل المجموعة الواحدة ان تكون أفقية */
    align-items: center;
}

/* 4. تكبير حجم اللوجو */
.slide-group img {
    height: 65px; /* تكبير الارتفاع (كان 45 سابقاً) */
    width: auto; /* الحفاظ على النسبة والتناسب */
    margin: 0 50px; /* مسافة أكبر بين كل لوجو والآخر */
    filter: grayscale(100%);
    opacity: 0.7; /* جعلها أوضح قليلاً من السابق */
    transition: all 0.3s ease;
    object-fit: contain;
}

/* الحركة عند تمرير الماوس */
.partners-box:hover .slide-group img {
    filter: grayscale(100%); /* عند وقوف الماوس على الصندوق، يظل الباقي رمادي */
    opacity: 0.4;
}

.slide-group img:hover {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.15); /* تكبير أكثر وضوحاً */
}

/* 5. الجوانب المتلاشية (Fades) */
.slider-overlay-left,
.slider-overlay-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px; /* زيادة عرض التلاشي */
    z-index: 5;
    pointer-events: none;
}
.slider-overlay-left {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.slider-overlay-right {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* الانيميشن */
@keyframes smoothScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* تعديلات الموبايل */
@media (max-width: 768px) {
    .partners-box {
        padding: 15px 0;
    }
    .slide-group img {
        height: 50px; /* نصغر الحجم في الموبايل ليتناسب مع الشاشة */
        margin: 0 25px;
    }
}
/* ================= Light Courses Section ================= */
.courses-light-section {
    min-height: 100vh;
}

/* 1. Background Decoration (Blobs) */
.blob-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
}
.blob-left {
    background: #e1bee7; /* light purple */
    top: 90px;
    left: -50px;
}
.blob-right {
    background: #b2dfdb; /* light teal */
    bottom: 90px;
    right: -50px;
}

/* 2. Text Colors & Utilities */
.text-navy {
    color: var(--primary-navy);
} /* من كودك القديم */

.bg-soft-primary {
    background: rgba(38, 198, 218, 0.1);
}
.ls-1 {
    letter-spacing: 1px;
}

/* ================= 3. The Custom 3D Icons (Highlight Feature) ================= */
/* هذه الكلاسات تصنع الايقونات المربعة الجميلة */
.icon-box-3d {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

/* Gradient Variants */
.bg-gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.bg-gradient-purple {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}
.bg-gradient-teal {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.course-card-horiz:hover .icon-box-3d,
.course-card-sm:hover .icon-box-3d {
    transform: rotate(10deg) scale(1.1); /* تأثير حركة عند الهوفر */
}

/* ================= 4. Cards Styling ================= */
/* Common */
.course-card-lg,
.course-card-horiz,
.course-card-sm {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03); /* بوردر شفاف جداً */
}

/* Hover Effects Lift Up */
.course-card-lg:hover,
.course-card-horiz:hover,
.course-card-sm:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.1) !important; /* ظل ملون خفيف */
}

/* The Left Rotated Card Setup */
.rotate-card-container {
    position: relative;
    padding: 10px;
    height: 100%;
}
.card-backdrop {
    position: absolute;
    top: 20px;
    left: 0;
    right: 20px;
    bottom: 0;
    background: var(--accent-purple); /* Or gradient */
    border-radius: 25px;
    transform: rotate(-4deg);
    z-index: 0;
    opacity: 0.15;
    transition: transform 0.4s;
}
.rotate-card-container:hover .card-backdrop {
    transform: rotate(-2deg) scale(0.98); /* يقل الدوران عند الهوفر */
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #ff5252;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tags (Pills) */
.pill-tag {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

/* Faded Bg Icon */
.bg-icon-faded {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.05;
    color: var(--primary-navy);
    transform: rotate(-15deg);
    z-index: 1;
}

/* Hover Arrow Link */
.hover-arrow:hover .transition-icon {
    transform: translateX(5px);
}
.transition-icon {
    transition: transform 0.3s;
}
/* ============================================================
   START: PREMIUM 3D TESTIMONIALS SECTION
   ============================================================ */

/* 1. تنسيق القسم العام */
.testimonials-section {
    background-color: #fcfdfe; /* خلفية فاتحة جداً ونظيفة */
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden; /* يمنع ظهور أشرطة تمرير بسبب العناصر الجانبية */
}

/* ==================== 2. الزخارف والديكور (Decoration Assets) ==================== */

/* الحاوية التي تمسك العناصر الديكورية في أعلى اليمين */
.deco-wrapper {
    width: 300px;
    height: 300px;
    pointer-events: none; /* لمنع تغطية العناصر التفاعلية */
}

/* خلفية النقاط (Dots Grid) */
.dots-grid {
    position: absolute;
    top: 60px;
    right: 80px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(#26c6da 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    opacity: 0.5;
    z-index: 1;
}

/* مربع الاقتباس الزجاجي العائم */
.floating-quote-box {
    position: absolute;
    top: 80px;
    right: 50px;
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(38, 198, 218, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy); /* تأكد أن المتغير معرف أو استخدم #261f89 */
    font-size: 2.5rem;
    z-index: 2;
    transform: rotate(-10deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-quote-box:hover {
    transform: rotate(0deg) scale(1.1);
}

/* حركة المورفينج (Morphing Animation) */
@keyframes morph-blob {
    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0);
    }
    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: translate(10px, -10px);
    }
    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: translate(-10px, 10px);
    }
}

/* ==================== 3. هيكل السلايدر (Slider Logic) ==================== */

/* الحاوية المخصصة لتمديد السلايدر */
.swiper-container-custom {
    width: 120%; /* أوسع من العمود الطبيعي ليظهر الكروت الجانبية */
    margin-left: -10%; /* إزاحة لليسار للتوازن */
    padding: 40px 0; /* مساحة للظلال */
    overflow: hidden;
}

.swiper {
    overflow: visible !important; /* السماح للكروت بالخروج عن حدود السلايدر */
}

/* ==================== 4. تصميم الكارت (Video Card) ==================== */

/* الشريحة الواحدة (الإطار العام) */
.swiper-slide {
    width: 460px; /* العرض الثابت مثل الموبايل */
    height: 480px; /* الارتفاع */
    transition: all 0.5s ease;

    /* الحالة الافتراضية للكروت غير النشطة (الجانبية) */
    transform: scale(0.85); /* حجم أصغر */
    opacity: 0.6; /* نصف شفاف */
    filter: blur(2px) grayscale(0.3); /* تغبيش خفيف لجذب العين للمنتصف */
}

/* الحالة النشطة (الكارت اللي في المنتصف) */
.swiper-slide-active {
    transform: scale(1); /* حجم كامل */
    opacity: 1;
    filter: blur(0) grayscale(0);
    z-index: 10;
}

/* تصميم بوستر الفيديو */
.video-poster-card {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff; /* إطار أبيض أساسي */
    transition: all 0.3s ease;
}

/* تأثير التوهج للإطار عند النشاط */
.swiper-slide-active .video-poster-card {
    box-shadow: 0 25px 60px -10px rgba(38, 198, 218, 0.4); /* ظل قوي ومشع */
    border-color: #26c6da; /* تغيير لون الإطار للتركواز أو لون الهوية */
}

/* الفيديو/الصورة */
.vid-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* البادج الزجاجي للمعلومات (أسفل الكارت) */
.vid-info {
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 10px;
    border-radius: 30px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    opacity: 0;
    transition: 0.4s ease;
}

/* إظهار المعلومات فقط في الكارت النشط */
.swiper-slide-active .vid-info {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== 5. أزرار التنقل (Navigation) ==================== */
.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition:
        transform 0.2s,
        background-color 0.2s;
}

.nav-btn:hover {
    transform: translateY(-3px);
}
.nav-btn:active {
    transform: translateY(0);
}

/* ==================== 6. التجاوب (Responsive Mobile) ==================== */
@media (max-width: 991px) {
    /* إلغاء التوسيع المخصص للموبايل */
    .swiper-container-custom {
        width: 100%;
        margin-left: 0;
        padding: 20px 0;
    }

    /* إخفاء الديكورات المعقدة في الموبايل */
    .deco-wrapper {
        display: none;
    }

    /* تصغير حجم الكروت قليلاً */
    .swiper-slide {
        width: 250px;
        height: 400px;
    }
}
/* ================= Projects Section ================= */
.projects-section {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    overflow-x: hidden;
}

.text-purple {
    color: #ab47bc;
}
.bg-soft-purple {
    background: #f3e5f5;
}

/* Custom Nav Buttons */
.btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.btn-circle:hover {
    transform: scale(1.1);
}

.project-card {
    height: 400px;
    /* width: 300px; */
    background: #000;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* الفيديو كخلفية */
.card-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.4s;
}

.project-card:hover .card-video-bg {
    opacity: 0.4; /* تعتيم الفيديو لظهور النصوص والزر */
    transform: scale(1.05);
}

/* طبقة المعلومات (Overlay) */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 10%,
        transparent 60%
    );
    text-align: center;
    z-index: 2;
    opacity: 1; /* الظهور الدائم للشكل الجميل */
}

/* Play Button Animation */
.play-btn-pulse {
    width: 60px;
    height: 60px;
    background: var(--accent-purple, #ab47bc);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 0 0 rgba(171, 71, 188, 0.7);
    transition: transform 0.3s;
}

.project-card:hover .play-btn-pulse {
    animation: pulse-purple 1.5s infinite;
    transform: scale(1.1);
    background: #fff;
    color: var(--accent-purple);
}

@keyframes pulse-purple {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.w-fit {
    width: fit-content;
}
/* ==================== FAQ Section ==================== */
.bg-soft-purple {
    background: #f3e5f5;
}

/* Custom Accordion Styling */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.accordion-button {
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    box-shadow: none !important; /* ازالة الخط الأزرق عند الضغط */
}

/* لون الخلفية عند فتح السؤال */
.accordion-button:not(.collapsed) {
    background-color: #f8faff;
    color: var(--primary-navy);
}

/* تلوين الايقونة الصغيرة بجانب السؤال */
.icon-wrapper {
    width: 35px;
    height: 35px;
    background: #eff6ff;
    color: var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: 0.3s;
}

.accordion-button:not(.collapsed) .icon-wrapper {
    background: var(--accent-purple);
    color: white;
}

/* الأسهم الدوارة (Questions marks on background) */
.question-mark {
    position: absolute;
    color: var(--accent-teal);
    opacity: 0.1;
    z-index: 0;
    font-weight: 900;
}
.q-1 {
    font-size: 8rem;
    top: 10%;
    right: 14px;
    transform: rotate(15deg);
}
.q-2 {
    font-size: 5rem;
    bottom: 10%;
    left: 14px;
    transform: rotate(-25deg);
}
/* =========================================
   INTEGRATED NEWSLETTER & FOOTER (PREMIUM)
   ========================================= */

/* 1. الساندوتش (ربط القسمين ببعض) */
.pre-footer-section {
    position: relative;
    z-index: 10;
    margin-top: -80px; /* تداخل مع السكشن السابق */
    margin-bottom: -60px; /* تداخل مع الفوتر */
}

/* 2. كارت النشرة البريدية (Newsletter Card) */
.newsletter-card {
    background-color: #261f89;
    /* تدرج لوني خفيف جداً ليعطي عمقاً */
    background-image: linear-gradient(145deg, #261f89 0%, #162035 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* ظل قوي لفصل الكارت عن الخلفية */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* الأيقونة الخلفية الباهتة */
.newsletter-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 12rem;
    background: -webkit-linear-gradient(#26c6da, #ab47bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.05;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* 3. حقل الإدخال (Form Input) - ستايل زجاجي */
.newsletter-card input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-card input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

/* تأثير التوهج عند الكتابة */
.newsletter-card input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-teal); /* التركواز المميز */
    box-shadow: 0 0 15px rgba(38, 198, 218, 0.2);
    color: #fff;
}

/* =========================================
   PREMIUM FOOTER & NEWSLETTER STYLING
   ========================================= */

/* --- Layout Adjustment (The Sandwich) --- */
.footer-section {
    background-color: var(--footer-bg); /* #261f89 */
    padding-top: 0; /* Remove padding top, managed by spacing */
    margin-top: 0;
    position: relative;
    z-index: 5;
    /* Add a subtle top border gradient line */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-wrapper {
    transform: translateY(-50%); /* Pulls the newsletter exactly half-up */
    margin-bottom: -60px; /* Compensate spacing below */
    z-index: 10;
}

.footer-content-container {
    padding-top: 80px; /* Internal spacing for footer content */
}

/* --- Decorative Assets (Assets الجديدة) --- */
/* خلفية بنمط شبكة الكود (Code Pattern) */
.footer-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

/* توهج ملون في زاوية الفوتر */
.footer-glow-blob {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(38, 198, 218, 0.05) 0%,
        transparent 70%
    );
    z-index: -1;
    pointer-events: none;
}

/* --- Newsletter Card Premium Look --- */
.newsletter-card {
    /* تدرج عميق غني */
    background: linear-gradient(135deg, #261f89 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); /* Shadow 2XL */
}

/* الزخرفة الداخلية للنشرة */
.newsletter-bg-icon {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(-20deg);
    right: -20px;
    bottom: -40px;
    z-index: 1;
}

/* أيقونة الجرس */
.icon-circle-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--accent-teal),
        var(--accent-purple)
    );
    font-size: 0.9rem;
}

/* حقل الإدخال المحسن */
.bg-white-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}
.newsletter-input-group input:focus {
    box-shadow: none;
    color: #fff;
}
.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-gradient {
    background: linear-gradient(
        90deg,
        var(--accent-teal),
        var(--accent-purple)
    );
    border: none;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(171, 71, 188, 0.3);
    color: #fff;
}

/* --- Typography & Links --- */
.footer-text-muted {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* خط ديكور ملون تحت العناوين */
.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--accent-teal),
        var(--accent-purple)
    );
    border-radius: 2px;
}

.footer-link {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
}
.footer-link:hover {
    color: var(--accent-teal) !important;
    padding-left: 8px; /* حركة لليمين عند الهوفر */
    text-shadow: 0 0 15px rgba(38, 198, 218, 0.5);
}

/* تدرج لوني لأيقونات الاتصال */
.text-gradient-icon {
    background: linear-gradient(
        135deg,
        var(--accent-teal),
        var(--accent-purple)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

/* --- Social Buttons Hover Effect --- */
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px; /* Soft square modern look */
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-btn:hover {
    background: linear-gradient(
        135deg,
        var(--accent-teal),
        var(--accent-purple)
    );
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(171, 71, 188, 0.3);
    border-color: transparent;
    color: white;
}

/* Logo Shadow */
.bg-gradient-main {
    background: linear-gradient(
        135deg,
        var(--accent-teal),
        var(--accent-purple)
    );
}
.shadow-glow {
    box-shadow: 0 0 20px rgba(171, 71, 188, 0.3);
}

/* --- Mobile Fixes --- */
@media (max-width: 991px) {
    .newsletter-wrapper {
        transform: translateY(0); /* Reset overlap on mobile */
        margin-top: 30px;
        margin-bottom: 0;
    }
    .footer-content-container {
        padding-top: 40px;
    }
}
/* ================= GLOBAL UNIFIED COMPONENTS ================= */

/* 1. Unified Section Headings (عناوين السكاشن الموحدة) */
.section-title-wrapper {
    position: relative;
    margin-bottom: 40px; /* مسافة موحدة أسفل العنوان */
}

/* التاج العلوي (مثل Game Lab أو Student Projects) */
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(243, 229, 245, 0.6); /* بنفسجي فاتح جداً */
    color: var(--accent-purple);
    border: 1px solid rgba(171, 71, 188, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.section-badge i {
    margin-right: 8px;
}

/* العنوان الرئيسي */
.section-heading {
    font-size: 2.5rem; /* حجم موحد */
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 15px;
}

/* الكلمة الملونة داخل العنوان */
.text-highlight {
    background: linear-gradient(
        135deg,
        var(--accent-purple),
        var(--accent-teal)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* الوصف أسفل العنوان */
.section-desc {
    font-size: 1rem;
    color: #64748b; /* رمادي مريح للعين */
    line-height: 1.6;
    max-width: 600px;
}

/* 2. Unified Navigation Buttons (أزرار التنقل الموحدة) */
.nav-arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #eee;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-arrow-btn:hover {
    background: linear-gradient(
        135deg,
        var(--accent-purple),
        var(--accent-teal)
    );
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(171, 71, 188, 0.3);
}

/* ================= NEW: INTERMEDIATE CTA SECTION ================= */
.inter-cta-section {
    background: var(--bg-light); /* خلفية فاتحة للفصل */
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* الصندوق الداخلي */
.inter-cta-box {
    background: linear-gradient(
        135deg,
        #1a237e,
        #311b92
    ); /* التدرج الكحلي للهوية */
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.15);
}

/* زخارف خلفية */
.cta-pattern-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}
.cta-code-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 12rem;
    opacity: 0.05;
    transform: rotate(20deg);
}
/* ================= LEARNING PATH SECTION ================= */
.learning-path-section {
    background-color: #f8fafc;
    /* باترن خفيف للخلفية لجعلها مبهجة */
    background-image: radial-gradient(#e0e7ff 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Decoration */
.doodle-bg {
    position: absolute;
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}
.doodle-1 {
    top: 0;
    left: 0;
    background: radial-gradient(circle, var(--accent-teal), transparent 70%);
}
.doodle-2 {
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

/* === Roadmap Visual Steps === */
.step-circle {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.step-circle.active {
    border-color: var(--accent-teal);
    background: white;
    color: var(--accent-purple);
}
.step-circle i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.step-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-navy);
}
.step-age {
    position: absolute;
    bottom: -31px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.connector-line {
    flex-grow: 1;
    height: 4px;
    background: #e2e8f0;
    margin: 0 10px;
    position: relative;
    top: -10px;
    z-index: 1;
    border-radius: 4px;
    background-image: linear-gradient(
        90deg,
        var(--accent-teal) 50%,
        #e2e8f0 50%
    );
    background-size: 20px 100%;
}

/* === Packages Cards === */
.package-card {
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.package-card:hover {
    transform: translateY(-10px);
}

.scale-up {
    transform: scale(1.05);
    z-index: 2;
    border: 1px solid rgba(171, 71, 188, 0.2);
}
.scale-up:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Card Colors Headers */
.bg-soft-teal {
    background: rgba(38, 198, 218, 0.1);
}
.bg-soft-purple {
    background: rgba(171, 71, 188, 0.1);
}
.bg-soft-navy {
    background: rgba(26, 35, 126, 0.05);
}

.border-top-teal {
    border-top: 5px solid var(--accent-teal);
}
.border-top-purple {
    border-top: 5px solid var(--accent-purple);
}
.border-top-navy {
    border-top: 5px solid var(--primary-navy);
}

/* Icons */
.pkg-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-outline-teal {
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
    transition: 0.3s;
}
.btn-outline-teal:hover {
    background: var(--accent-teal);
    color: white;
}

.btn-outline-navy {
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    transition: 0.3s;
}
.btn-outline-navy:hover {
    background: var(--primary-navy);
    color: white;
}

.shadow-xl {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Badge for popular */
.popular-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    width: 120px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(45deg);
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Fixes */
@media (max-width: 991px) {
    .scale-up {
        transform: scale(1);
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .step-circle {
        width: 60px;
        height: 60px;
    }
    .step-circle i {
        font-size: 1.2rem;
    }
}
/* Vertical Tabs Styling */
.custom-vertical-pills .nav-link {
    color: #475569;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.custom-vertical-pills .nav-link:hover {
    background-color: #f1f5f9;
    color: var(--navy);
    transform: translateX(5px);
}
.custom-vertical-pills .nav-link.active {
    background: linear-gradient(90deg, var(--navy), #311b92);
    color: white;
    box-shadow: 0 4px 12px rgba(49, 27, 146, 0.25);
}
/* Show arrow only on active tab */
.custom-vertical-pills .nav-link.active .arrow-icon {
    opacity: 1;
}

/* Horizontal Timeline Style */
.timeline-track-line {
    position: absolute;
    top: 155px; /* Adjust based on card height */
    left: 20px;
    right: 20px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 4px;
    z-index: 0;
}

.timeline-img-card {
    transition: transform 0.3s;
    cursor: pointer;
    z-index: 2;
    position: relative;
}
.timeline-img-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--teal) !important;
}

.timeline-connector {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: white;
    border: 4px solid var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(38, 198, 218, 0.2);
    z-index: 2;
}

.text-xs {
    font-size: 0.75rem;
}
.shadow-md {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
#navLogo {
    display: none;
}
#navLogoLight {
    display: block;
}

/* عند السكرول: اعكس الوضع */
.navbar.scrolled #navLogo {
    display: block;
}
.navbar.scrolled #navLogoLight {
    display: none;
}

.navbar.scrolled .btn-outline-light {
    border-color: var(--primary-navy) !important;
    color: var(--primary-navy) !important;
}
.navbar.scrolled .btn-outline-light:hover {
    background-color: var(--primary-navy);
    color: white !important;
}
/* Contact Page Specifics */
.bg-navy-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* ظل ثقيل وفخم للكارد */
}

/* دائرة الايقونة الزجاجية */
.icon-circle-glass {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #26c6da;
    flex-shrink: 0;
}

/* Dots Decoration Pattern */
.bg-pattern-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px
    );
    background-size: 20px 20px;
    opacity: 0.5;
}

.text-white-50 {
    opacity: 0.7;
}
.uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Input Focus Styling */
.form-control:focus {
    box-shadow: 0 0 0 4px rgba(38, 198, 218, 0.1); /* Teal Glow */
    border: 1px solid #26c6da;
    background: #fff;
}
/* Gallery Specific Styling */

.text-transparent {
    color: transparent;
}
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}
.bg-gradient-main {
    background-image: linear-gradient(135deg, #1a237e 0%, #26c6da 100%);
}

/* Navigation Buttons */
.nav-btn-custom {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.nav-btn-custom:hover {
    background: #1a237e;
    border-color: #1a237e;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.2);
}

/* The Slider Area */
.gallery-swiper-wrapper {
    /* لا نستخدم العرض 120% هنا، نلتزم بالجريد لتجنب التداخل */
    overflow: hidden;
}

/* Slide Item */
.gallery-slide {
    width: 300px; /* عرض الكارت */
    height: 400px; /* طول الكارت - موحد ليكون الشكل منتظم */
    transform: scale(0.9); /* تصغير الكروت غير النشطة */
    transition: transform 0.4s ease;
    opacity: 0.8;
}

.swiper-slide-active.gallery-slide {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
}

/* Gallery Card Design */
.gallery-card {
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    position: relative;
    cursor: grab;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover .img-cover {
    transform: scale(1.05); /* تكبير ناعم للصورة */
}

/* Caption Overlay (Gradient Fade) */
.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
}

.gallery-card:hover .caption-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Video Play Button */
.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}
.gallery-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-btn-pulse {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}
/* ================= LEARNING PATH (Revamped) ================= */

/* Age Tabs (Pills) */
.custom-path-pills .nav-link {
    background-color: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    margin: 0 8px;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-path-pills .nav-link:hover {
    border-color: var(--accent-teal);
    color: var(--primary-navy);
    transform: translateY(-2px);
}

.custom-path-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #311b92 100%);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(49, 27, 146, 0.3);
    transform: scale(1.05);
}

/* Timeline Container */
.timeline-wrapper {
    position: relative;
    padding-top: 40px;
    padding-bottom: 20px;
}

/* الخط الأفقي الواصل */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%; /* لا يصل للحواف تماماً */
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    z-index: 0;
    transform: translateY(-5px); /* ضبط للمنتصف بدقة */
}
/* إضافة لون متدرج للخط */
.timeline-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--accent-purple),
        var(--accent-teal)
    );
    opacity: 0.3;
    border-radius: 4px;
}

/* Timeline Card (المربع اللي فيه الصورة) */
.timeline-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 180px;
    margin-bottom: 40px; /* مساحة للنقطة والخط */
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    border: 4px solid white;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 2; /* فوق الخط */
}

.timeline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* الصور داخل الكارد */
.timeline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.timeline-card:hover .timeline-img {
    transform: scale(1.1);
}

/* الـ Overlay عشان النص يبان فوق الصورة */
.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

/* النقطة المتوهجة (The Node) - بديل الراديو */
.timeline-node {
    width: 24px;
    height: 24px;
    background: white;
    border: 5px solid var(--accent-teal);
    border-radius: 50%;
    margin: 0 auto;
    position: absolute; /* ليخرج من الكارد وينزل عالخط */
    bottom: -52px; /* مسافة النزول */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(38, 198, 218, 0.2); /* تأثير الهالة */
    transition: 0.3s;
}

/* عند الهوفر */
.timeline-item:hover .timeline-node {
    background: var(--accent-teal);
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(38, 198, 218, 0.3);
}

/* ================= Pricing Plans (New Look) ================= */
.pricing-card-modern {
    background: white;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03); /* ظل ناعم جداً */
    overflow: hidden;
}

.pricing-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* الكارد المميز */
.pricing-card-modern.featured {
    border: 2px solid var(--primary-navy);
    background: #fff;
    transform: scale(1.05); /* تكبيره قليلاً */
    z-index: 2;
}

.best-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-navy);
    color: white;
    padding: 5px 20px;
    font-weight: bold;
    font-size: 0.8rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.3);
}

.price-box {
    background: #fcfcfc; /* لون رمادي فاتح جدا */
    padding: 30px 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.features-list ul li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #555;
    display: flex;
    align-items: flex-start;
    text-align: left;
}
.features-list ul li i {
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* الجزء السفلي (الأيقونات) */
.includes-area {
    background: #f8fafc; /* منطقة مميزة */
    margin-top: auto; /* دفع للأسفل */
    padding: 20px;
    border-top: 1px solid #f1f5f9;
}

.icon-item-box {
    text-align: center;
    width: 30%; /* 3 في الصف */
    margin-bottom: 10px;
}
.icon-wrap-small {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    margin: 0 auto 5px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.pagination .page-item.active .page-link {
    color: white;
}
/* User Dropdown */
.dropdown-menu {
    top: 100%;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}
.dropdown-item {
    padding: 8px 15px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
}
.dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--primary-navy);
    transform: translateX(3px);
}
.dropdown-item.text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ================== Chat View Polish (تحسينات الجماليات) ================== */

/* 1. Header Cleanup */
.chat-header.bg-navy-dark {
    padding: 1.5rem 2rem;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px; /* تثبيت الارتفاع ليكون مريحاً */
}

/* تنسيق عنوان التذكرة في الهيدر */
.chat-header h6 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2px !important;
}

.chat-header small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* زر العودة */
.btn-back {
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    border-radius: 12px;
    color: var(--text-main);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-back:hover {
    background-color: #e5e7eb;
}

/* 2. Date Separator (تاريخ اليوم في المنتصف) */
.chat-body .text-center .badge {
    background-color: #e5e7eb; /* رمادي فاتح بدل الأبيض */
    color: #4b5563 !important; /* نص غامق للقراءة */
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    box-shadow: none; /* إزالة الظل ليكون بسيطاً */
}

/* 3. Messages Bubbles Styling */
.message-bubble {
    padding: 15px 20px !important; /* مساحة أكبر للكلام */
    min-width: 150px; /* لعدم انكماش الرسائل القصيرة جداً */
    max-width: 100%;
    position: relative;
    border-radius: 18px; /* تدوير أكبر */
    font-size: 0.95rem;
}

/* رسالة الطالب (اليمين - اللون التركواز) */
.message-bubble.bg-teal {
    background-color: var(--accent); /* التركواز */
    color: #fff !important;
    border-bottom-right-radius: 2px; /* ذيل الرسالة */
    box-shadow: 0 4px 10px rgba(38, 198, 218, 0.3); /* ظل ملون خفيف */
}

/* التوقيت تحت الرسالة */
.message-row small {
    margin-top: 5px;
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* 4. Footer Input (منطقة الكتابة) */
.chat-footer {
    padding: 1.5rem;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.chat-footer form {
    background: #f9fafb; /* خلفية رمادية فاتحة للحاوية */
    padding: 5px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    /* ظل خفيف يجعلها تطفو */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.chat-footer input {
    border: none;
    background: transparent !important;
    padding-left: 15px;
    font-size: 0.95rem;
}

.chat-footer input:focus {
    box-shadow: none !important;
}

/* أزرار الإرسال والمرفقات */
.btn-icon {
    color: #9ca3af;
    padding: 0 15px;
}
.btn-icon:hover {
    color: var(--accent);
}

.btn-teal.rounded-circle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 5px; /* مسافة من الحافة */
}
/* ================= Cyber Promo Modal ================= */
@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600&family=Share+Tech+Mono&display=swap");

.bg-cyber-black {
    background-color: #050a10;
    border: 1px solid #00ff41;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.2);
    border-radius: 0; /* حواف حادة للهاكرز */
}

/* Typography */
.font-tech {
    font-family: "Chakra Petch", sans-serif;
    text-transform: uppercase;
}
.font-mono {
    font-family: "Share Tech Mono", monospace;
}
.text-cyber-green {
    color: #00ff41 !important;
}
.text-cyber-blue {
    color: #00f3ff;
}

/* Effects */
.text-shadow-glow {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}
.blink-text {
    animation: blink 1s infinite;
}
@keyframes blink {
    50% {
        opacity: 0;
    }
}

.bg-cyber-image {
    background-color: #020406;
    overflow: hidden;
    border-right: 1px solid rgba(0, 255, 65, 0.1);
}
.cyber-glow-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(0, 255, 65, 0.2) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

/* Close Button Custom */
.btn-close-cyber {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    transition: 0.3s;
    opacity: 0.5;
}
.btn-close-cyber:hover {
    color: #00ff41;
    opacity: 1;
    transform: rotate(90deg);
}

/* Buttons */
.skew-btn {
    transform: skew(-15deg);
    border-radius: 0;
}
.skew-btn span {
    display: block;
    transform: skew(15deg);
}

.btn-cyber-filled {
    background: #00ff41;
    color: black;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}
.btn-cyber-filled:hover {
    background: #ccffdc;
}

.btn-cyber-outline {
    border: 1px solid #00ff41;
    color: #00ff41;
}
.btn-cyber-outline:hover {
    background: rgba(0, 255, 65, 0.1);
    color: white;
}

/* Matrix Effect (Simple CSS pattern) */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(
            0deg,
            transparent 24%,
            rgba(0, 255, 65, 0.05) 25%,
            rgba(0, 255, 65, 0.05) 26%,
            transparent 27%,
            transparent 74%,
            rgba(0, 255, 65, 0.05) 75%,
            rgba(0, 255, 65, 0.05) 76%,
            transparent 77%,
            transparent
        ),
        linear-gradient(
            90deg,
            transparent 24%,
            rgba(0, 255, 65, 0.05) 25%,
            rgba(0, 255, 65, 0.05) 26%,
            transparent 27%,
            transparent 74%,
            rgba(0, 255, 65, 0.05) 75%,
            rgba(0, 255, 65, 0.05) 76%,
            transparent 77%,
            transparent
        );
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}
/* User Dropdown */
.avatar-nav { width: 40px; height: 40px; object-fit: cover; transition: 0.3s; }
.profile-trigger:hover .avatar-nav { transform: scale(1.1); box-shadow: 0 0 0 3px rgba(38,198,218,0.5); }
.user-menu-card { min-width: 200px; border: 1px solid #f1f5f9 !important; }
.dropdown-item { padding: 10px 15px; font-weight: 500; font-size: 0.9rem; transition:0.2s; }
.dropdown-item:hover { background-color: #f0fdff; color: var(--accent-teal); transform: translateX(5px); }
.hover-bg-red:hover { background-color: #fee2e2 !important; color: #dc2626 !important; }

/* Offcanvas Sidebar */
.offcanvas { border-radius: 0 20px 20px 0; }
.bg-light-hover:hover { background-color: #f8f9fa; color: var(--primary-navy) !important; padding-left: 20px; transition: 0.3s; }
.bg-light-hover i { width: 25px; text-align: center; }

/* ==================== Mobile Bottom Nav ==================== */
.mobile-bottom-nav { height: 70px; z-index: 9999; padding-bottom: env(safe-area-inset-bottom); }
.mobile-bottom-nav .nav-item {
    text-decoration: none; color: #94a3b8; font-size: 10px; font-weight: 500;
    flex-grow: 1; transition: 0.3s;
}
.mobile-bottom-nav .nav-item .icon-box { font-size: 1.6rem; margin-bottom: 2px; }
.mobile-bottom-nav .nav-item.active { color: var(--primary-navy); }
.mobile-bottom-nav .nav-item.active .icon-box { transform: translateY(-2px); }

/* The Middle Floating Button */
.middle-btn { position: relative; bottom: 25px; }
.circle-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    border: 4px solid white;
    padding: 0;
    margin: auto;
}
.shadow-glow-btn { box-shadow: 0 10px 25px rgba(38, 198, 218, 0.4); }

/* Animation */
.animate-fade { animation: fadeInDown 0.3s ease; }
@keyframes fadeInDown { from{opacity:0; transform:translateY(-10px);} to{opacity:1; transform:translateY(0);} }

/* Adjustments */
@media (max-width: 991px) {
    /* Hide Navbar Collapse on Mobile (use Offcanvas instead) */
    .navbar-collapse { display: none !important; }
    .navbar-toggler { display: block !important; border-color: rgba(255,255,255,0.5); }
    body { padding-bottom: 80px; } /* To avoid footer overlap */
}
@media (min-width: 992px) {
    .navbar-toggler { display: none !important; }
}