/*
Theme Name: Daad Academy Master Design
Theme URI: https://daad-academy.com
Author: Daad Academy Team
Description: القالب النهائي المطابق لتصميم مؤسسة ضاد - متجاوب بالكامل 100%
Version: 1.0
Text Domain: daad-academy
*/

/* =========================================================
   1. المتغيرات اللونية (ألوانك الخاصة)
   ========================================================= */
:root {
    --purple-main: #4A00E0;
    --purple-gradient: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
    --blue-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --orange-btn: #FF7E5F;
    --orange-hover: #E66A4D;
    --text-dark: #2C3E50;
    --text-pink: #D81B60; /* مقارب للون العناوين في صورتك */
    --bg-white: #ffffff;
    --bg-light: #fdfdfd;
    --shadow-card: 0 5px 15px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 25px rgba(74, 0, 224, 0.15);
}

/* =========================================================
   2. الإعدادات العامة (Reset)
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   3. الهيدر (شريط التنقل العلوي المطابق للصورة)
   ========================================================= */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* الشعار */
.header-logo a {
    font-size: 28px;
    font-weight: 900;
    color: var(--purple-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* القائمة في المنتصف */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-nav ul li a {
    font-size: 15px;
    font-weight: 700;
    color: var(--purple-main);
}

.header-nav ul li a:hover {
    color: var(--orange-btn);
}

/* الأيقونات في اليسار */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons a {
    color: var(--purple-main);
    font-size: 18px;
    position: relative;
}

.header-icons a:hover {
    color: var(--orange-btn);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--purple-main);
    cursor: pointer;
    background: none;
    border: none;
}

/* =========================================================
   4. قسم الغلاف (Hero Section)
   ========================================================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: center; /* توسيط النص كما في صورتك */
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 900;
    color: var(--purple-main);
    margin-bottom: 5px;
}

.hero-text h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--blue-gradient);
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    line-height: 1.4;
}

.hero-text p {
    font-size: 20px;
    font-weight: 700;
    color: var(--purple-main);
    margin-bottom: 30px;
}

.hero-btn {
    background: var(--purple-gradient);
    color: white !important;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.3);
}

.hero-btn:hover {
    background: var(--orange-btn);
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* =========================================================
   5. أقسام البرامج (المربعات)
   ========================================================= */
.programs-section {
    padding: 40px 0 80px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-pink); /* اللون المقارب للصورة */
    margin-bottom: 40px;
    margin-top: 50px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.program-card {
    text-align: center;
}

.program-image {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    /* لجعل الصورة مربعة تماماً */
    aspect-ratio: 1 / 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--purple-main);
    transition: color 0.3s;
}

.program-card:hover h3 {
    color: var(--orange-btn);
}

/* =========================================================
   6. التجاوب مع الأجهزة (Responsive)
   ========================================================= */
@media (max-width: 992px) {
    /* الآيباد */
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
    }
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-nav {
        display: none; /* إخفاء القائمة الطويلة في الآيباد */
    }
    .mobile-menu-btn {
        display: block; /* إظهار زر الهمبرغر */
    }
}

@media (max-width: 768px) {
    /* الجوال */
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 { font-size: 26px; }
    .hero-text h2 { font-size: 22px; }
    .header-icons { gap: 15px; }
}
/* =========================================================
   7. الفوتر (Footer)
   ========================================================= */
.site-footer {
    background-color: #0b0c10;
    color: #c5c6c7;
    padding: 70px 0 20px;
    font-family: 'Cairo', sans-serif;
    border-top: 5px solid var(--purple-main);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h3 {
    color: var(--bg-white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--orange-btn);
}

.footer-widget p {
    font-size: 16px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: #c5c6c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 16px;
}

.footer-links li a:hover {
    color: var(--orange-btn);
    transform: translateX(-8px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.05);
    color: var(--bg-white);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 20px;
}

.footer-social a:hover {
    background-color: var(--orange-btn);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
}

.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 16px;
}

.footer-contact-info li i {
    color: var(--orange-btn);
    margin-top: 6px;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 15px;
    color: #a0a0a0;
}

/* تجاوب الفوتر مع الشاشات */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* =========================================================
   8. تخصيص المتجر وصفحة الدورات (WooCommerce Shop)
   ========================================================= */

/* تنسيق عنوان صفحة المتجر */
.woocommerce-products-header__title.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    color: var(--purple-main);
    margin-bottom: 40px;
}

/* تنسيق شريط الترتيب والنتائج */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 30px;
}

.woocommerce .woocommerce-ordering select {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    font-weight: bold;
    outline: none;
    background-color: var(--bg-light);
    cursor: pointer;
}

/* ---------------------------------------------------------
   تصميم شبكة الدورات (المنتجات) لتطابق الصفحة الرئيسية
--------------------------------------------------------- */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important; /* إلغاء خصائص ووكومرس القديمة */
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    text-align: center;
    padding: 20px;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

/* جعل صور الدورات مربعة وموحدة الحجم تماماً */
.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* عنوان الدورة */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--purple-main) !important;
    padding: 10px 0 !important;
    transition: color 0.3s;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--orange-btn) !important;
}

/* السعر */
.woocommerce ul.products li.product .price {
    color: var(--blue-gradient) !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    margin-bottom: 20px !important;
    display: block;
}

/* زر إضافة إلى السلة / قراءة المزيد */
.woocommerce ul.products li.product .button {
    margin-top: auto !important; /* إجبار الزر على البقاء في الأسفل */
    background: var(--orange-btn) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--orange-hover) !important;
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4) !important;
}

/* علامة التخفيض (Sale Badge) */
.woocommerce span.onsale {
    background: var(--purple-gradient) !important;
    color: white !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    padding: 5px 15px !important;
    font-size: 14px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
    top: 30px !important;
    right: 30px !important;
    z-index: 9;
    box-shadow: 0 4px 10px rgba(74, 0, 224, 0.3) !important;
}

/* التجاوب مع الجوال والآيباد لصفحة المتجر */
@media (max-width: 992px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .woocommerce ul.products { grid-template-columns: 1fr; }
    .woocommerce-products-header__title.page-title { font-size: 28px; }
}
/* =========================================================
   9. صفحة المقالات والمدونة (Blog & Articles Archive)
   ========================================================= */

.blog-page-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* 1. شريط التصنيفات العلوي (Categories Nav) */
.blog-categories-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 50px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.blog-categories-nav a {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 15px;
    transition: color 0.3s ease;
}

.blog-categories-nav a:hover {
    color: var(--text-pink); /* اللون المقارب للصورة */
}

/* تنسيق التصنيف النشط (مثل كلمة "الكل" في صورتك) */
.blog-categories-nav a.active {
    color: var(--text-pink);
}

.blog-categories-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* لتغطية الخط الرمادي السفلي */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-pink);
}

/* 2. شبكة المقالات (Articles Grid) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة مثل الصورة */
    gap: 40px;
}

.article-card {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* مقاس الصورة المستطيل قليلاً كما في تصميمك */
    overflow: hidden;
    margin-bottom: 20px;
    background-color: var(--bg-light);
    border-radius: 8px; /* حواف ناعمة جداً */
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.05); /* تكبير ناعم للصورة عند التمرير */
}

.article-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--purple-main);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--orange-btn);
}

.article-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 600;
}

/* 3. الترقيم أسفل الصفحة (Pagination) */
.custom-pagination {
    margin-top: 60px;
    text-align: center;
}

.custom-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.custom-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-pagination .page-numbers:hover {
    color: var(--text-pink);
}

.custom-pagination .page-numbers.current {
    color: var(--text-pink);
}

/* 4. التجاوب مع الجوال والآيباد */
@media (max-width: 992px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-categories-nav { gap: 20px; }
}

@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; }
    .article-image-wrapper { aspect-ratio: 16 / 9; }
}
/* =========================================================
   12. صفحة المنتج الواحد - تفاصيل الدورة (Single Product)
   ========================================================= */

/* 1. الحاوية الرئيسية للمنتج */
.woocommerce div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    gap: 50px !important;
    background: #ffffff !important;
    padding: 50px !important;
    border-radius: 25px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06) !important;
}

/* 2. قسم صورة الدورة */
.woocommerce div.product div.images {
    width: 45% !important;
    float: none !important;
    margin-bottom: 0 !important;
}

.woocommerce div.product div.images img {
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.woocommerce div.product div.images img:hover {
    transform: scale(1.02) !important;
}

/* 3. قسم تفاصيل الدورة (النصوص والأزرار) */
.woocommerce div.product div.summary {
    width: 50% !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* عنوان الدورة */
.woocommerce div.product .product_title {
    font-size: 38px !important;
    font-weight: 900 !important;
    color: var(--purple-main) !important;
    line-height: 1.4 !important;
    margin-bottom: 25px !important;
}

/* سعر الدورة */
.woocommerce div.product p.price {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: var(--orange-btn) !important;
    margin-bottom: 30px !important;
    background: #fff5f2 !important;
    padding: 15px 25px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    width: fit-content !important;
}

/* الوصف المختصر للدورة */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 18px !important;
    color: #64748b !important;
    line-height: 1.9 !important;
    margin-bottom: 40px !important;
    font-weight: 600 !important;
}

/* 4. نموذج الاشتراك وزر الإضافة للسلة */
.woocommerce div.product form.cart {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    margin-bottom: 35px !important;
    padding-top: 30px !important;
    border-top: 2px solid #f1f5f9 !important;
    flex-wrap: wrap !important;
}

.woocommerce div.product form.cart .button {
    background: var(--orange-btn) !important;
    color: #ffffff !important;
    padding: 18px 40px !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    flex: 1 !important;
    text-align: center !important;
    min-width: 250px !important;
}

.woocommerce div.product form.cart .button:hover {
    background: var(--orange-hover) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(255, 126, 95, 0.5) !important;
}

/* حقل تحديد الكمية (في حال تفعيله) */
.woocommerce div.product form.cart .quantity input.qty {
    width: 80px !important;
    height: 65px !important;
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: var(--text-dark) !important;
    background: #f8fafc !important;
}

/* التصنيفات والوسوم (البيانات الوصفية) */
.woocommerce div.product .product_meta {
    font-size: 16px !important;
    color: #94a3b8 !important;
    border-top: 2px solid #f1f5f9 !important;
    padding-top: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    font-weight: 600 !important;
}

.woocommerce div.product .product_meta a {
    color: var(--purple-main) !important;
    font-weight: 800 !important;
    transition: color 0.3s ease !important;
}

.woocommerce div.product .product_meta a:hover {
    color: var(--orange-btn) !important;
}

/* 5. التبويبات (الوصف الشامل والتقييمات) */
.woocommerce div.product .woocommerce-tabs {
    width: 100% !important;
    margin-top: 40px !important;
    padding-top: 40px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    border: none !important;
    overflow-x: auto !important; /* لتسهيل التمرير في الجوال */
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 35px !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important; /* إخفاء خطوط ووكومرس الافتراضية المزعجة */
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #64748b !important;
    transition: color 0.3s ease !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--purple-main) !important;
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.2) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #ffffff !important;
}

/* محتوى التبويبات */
.woocommerce div.product .woocommerce-Tabs-panel {
    font-size: 18px !important;
    color: #475569 !important;
    line-height: 2 !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03) !important;
    border: 1px solid #f1f5f9 !important;
}

.woocommerce div.product .woocommerce-Tabs-panel h2 {
    font-size: 28px !important;
    color: var(--purple-main) !important;
    margin-bottom: 25px !important;
    font-weight: 900 !important;
}

/* 6. قسم الدورات ذات الصلة (Related Products) */
.woocommerce .related.products {
    margin-top: 80px !important;
    width: 100% !important;
}

.woocommerce .related.products > h2 {
    font-size: 32px !important;
    font-weight: 900 !important;
    color: var(--pink-text) !important;
    text-align: center !important;
    margin-bottom: 50px !important;
}

/* 7. التجاوب مع الجوال والآيباد */
@media (max-width: 992px) {
    .woocommerce div.product {
        flex-direction: column !important;
        padding: 30px !important;
        gap: 30px !important;
    }
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100% !important;
    }
    .woocommerce div.product .product_title {
        font-size: 32px !important;
    }
    .woocommerce div.product form.cart .button {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .woocommerce div.product {
        padding: 20px !important;
    }
    .woocommerce div.product .product_title {
        font-size: 26px !important;
    }
    .woocommerce div.product .woocommerce-Tabs-panel {
        padding: 20px !important;
        font-size: 16px !important;
    }
}
/* =========================================================
   13. صفحة سلة المشتريات (WooCommerce Cart)
   ========================================================= */

/* إخفاء رسائل ووكومرس المزعجة الافتراضية وإعادة تصميمها */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: #ffffff !important;
    border-top: 4px solid var(--purple-main) !important;
    border-radius: 12px !important;
    padding: 20px 30px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 40px !important;
}

.woocommerce-message::before, .woocommerce-info::before {
    color: var(--purple-main) !important;
    position: static !important;
    font-size: 24px !important;
}

/* تنسيق جدول السلة الرئيسي */
.woocommerce-cart .cart-collaterals {
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce table.shop_table {
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
    margin-bottom: 40px !important;
}

/* ترويسة الجدول (عناوين الأعمدة) */
.woocommerce table.shop_table thead th {
    background: var(--purple-main) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    padding: 20px !important;
    border: none !important;
    text-align: right !important;
}

/* صفوف المنتجات داخل السلة */
.woocommerce table.shop_table tbody td {
    background: #ffffff !important;
    padding: 25px 20px !important;
    border-top: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    color: var(--text-dark) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* صورة الدورة المصغرة في السلة */
.woocommerce table.shop_table.cart .product-thumbnail img {
    width: 90px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* رابط اسم الدورة في السلة */
.woocommerce table.shop_table.cart .product-name a {
    color: var(--purple-main) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    transition: color 0.3s ease !important;
}

.woocommerce table.shop_table.cart .product-name a:hover {
    color: var(--orange-btn) !important;
}

/* زر إزالة الدورة من السلة (X) */
.woocommerce table.shop_table.cart .product-remove a.remove {
    color: #ef4444 !important;
    font-size: 28px !important;
    font-weight: bold !important;
    background: #fee2e2 !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.woocommerce table.shop_table.cart .product-remove a.remove:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* قسم مجاميع السلة (Cart Totals) */
.cart-collaterals .cart_totals {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06) !important;
    width: 100% !important;
    max-width: 500px !important;
    margin-right: auto !important; /* لدفعه لليسار في العربية */
    border: 2px solid #f8fafc !important;
}

.cart-collaterals .cart_totals h2 {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: var(--purple-main) !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 15px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: var(--orange-btn) !important;
    color: #ffffff !important;
    padding: 20px !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    border-radius: 12px !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.4) !important;
    transition: all 0.4s ease !important;
    margin-top: 25px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--orange-hover) !important;
    transform: translateY(-5px) !important;
}

/* =========================================================
   14. صفحة إتمام الطلب والدفع (WooCommerce Checkout)
   ========================================================= */

/* تقسيم الصفحة لعمودين (البيانات يميناً، والطلب يساراً) */
.woocommerce-checkout .checkout.woocommerce-checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 50px !important;
    margin-top: 40px !important;
}

.woocommerce-checkout #customer_details {
    flex: 1.5 !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    flex: 1 !important;
    min-width: 350px !important;
}

/* تثبيت قسم ملخص الطلب عند النزول للأسفل (Sticky) */
.woocommerce-checkout #order_review {
    background: #f8fafc !important;
    padding: 40px !important;
    border-radius: 20px !important;
    border: 2px solid #e2e8f0 !important;
    position: sticky !important;
    top: 100px !important;
}

/* عناوين أقسام صفحة الدفع */
.woocommerce-checkout h3 {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: var(--purple-main) !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 15px !important;
}

/* ---------------------------------------------------------
   تصميم حقول الإدخال الاحترافية (Inputs & Forms)
--------------------------------------------------------- */
.woocommerce form .form-row {
    margin-bottom: 25px !important;
}

.woocommerce form .form-row label {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea, 
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
    width: 100% !important;
    padding: 16px 20px !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    transition: all 0.3s ease !important;
    height: auto !important;
}

/* تأثير عند الضغط على الحقل (Focus) */
.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus, 
.woocommerce form .form-row select:focus {
    border-color: var(--purple-main) !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(74, 0, 224, 0.1) !important;
}

/* ---------------------------------------------------------
   صندوق طرق الدفع (Payment Methods Box)
--------------------------------------------------------- */
.woocommerce-checkout #payment {
    background: #ffffff !important;
    border-radius: 15px !important;
    padding: 30px !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 30px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    margin-bottom: 15px !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #f1f5f9 !important; /* لون المثلث الافتراضي في ووكومرس */
}

/* ---------------------------------------------------------
   زر تأكيد الطلب العملاق (Place Order Button)
--------------------------------------------------------- */
.woocommerce-checkout #payment #place_order {
    background: var(--orange-btn) !important;
    color: #ffffff !important;
    padding: 22px !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    border-radius: 12px !important;
    width: 100% !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(255, 126, 95, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    margin-top: 20px !important;
}

.woocommerce-checkout #payment #place_order:hover {
    background: var(--orange-hover) !important;
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(255, 126, 95, 0.5) !important;
}

/* =========================================================
   15. التجاوب لصفحات السلة والدفع (Responsive Cart & Checkout)
   ========================================================= */
@media (max-width: 992px) {
    .woocommerce-checkout .checkout.woocommerce-checkout {
        flex-direction: column !important;
    }
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        flex: none !important;
    }
    .woocommerce-checkout #order_review {
        position: static !important; /* إلغاء التثبيت في الشاشات الصغيرة */
    }
    .cart-collaterals .cart_totals {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* تحويل جدول السلة إلى عرض رأسي في الجوال */
    .woocommerce table.shop_table.cart tbody tr {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
        padding: 20px !important;
    }
    .woocommerce table.shop_table.cart tbody td {
        border: none !important;
        padding: 10px !important;
    }
    .woocommerce table.shop_table.cart .product-remove {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
    }
}
/* =========================================================
   16. صفحة حسابي / لوحة تحكم الطالب (My Account Dashboard)
   ========================================================= */

/* 1. الحاوية الرئيسية لصفحة حسابي */
.woocommerce-account .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    margin-top: 60px !important;
    margin-bottom: 80px !important;
    align-items: flex-start !important;
}

/* 2. القائمة الجانبية (Navigation Menu) */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 25% !important;
    min-width: 250px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 30px 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid #f1f5f9 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 15px 25px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

/* تأثير التمرير (Hover) على الروابط */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f1f5f9 !important;
    color: var(--orange-btn) !important;
    transform: translateX(-5px) !important; /* حركة خفيفة لليسار في العربية */
}

/* الرابط النشط (الصفحة الحالية) */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--purple-main) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.3) !important;
}

/* تلوين زر تسجيل الخروج باللون الأحمر */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* 3. منطقة عرض المحتوى (Dashboard Content) */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 70% !important;
    flex: 1 !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid #f1f5f9 !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #475569 !important;
}

/* رسالة الترحيب في لوحة التحكم */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--purple-main) !important;
    margin-bottom: 30px !important;
    background: #f8fafc !important;
    padding: 20px !important;
    border-radius: 12px !important;
    border-right: 5px solid var(--orange-btn) !important;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child a {
    color: var(--orange-btn) !important;
    font-weight: 900 !important;
}

/* عناوين المحتوى الداخلي */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: var(--purple-main) !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

/* 4. جداول الطلبات والتنزيلات (Orders & Downloads Tables) */
.woocommerce-account table.shop_table.my_account_orders,
.woocommerce-account table.shop_table.woocommerce-MyAccount-downloads {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 30px !important;
    border: none !important;
}

.woocommerce-account table.shop_table thead th {
    background: var(--purple-main) !important;
    color: #ffffff !important;
    padding: 18px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-align: right !important;
    border: none !important;
}

.woocommerce-account table.shop_table thead th:first-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.woocommerce-account table.shop_table thead th:last-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.woocommerce-account table.shop_table tbody td {
    padding: 20px 18px !important;
    background: #f8fafc !important;
    border-bottom: 4px solid #ffffff !important; /* لخلق فراغ بين الصفوف */
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    vertical-align: middle !important;
}

.woocommerce-account table.shop_table tbody td.woocommerce-orders-table__cell-order-actions a.button {
    background: var(--orange-btn) !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 10px rgba(255, 126, 95, 0.3) !important;
    margin-left: 5px !important;
}

.woocommerce-account table.shop_table tbody td.woocommerce-orders-table__cell-order-actions a.button:hover {
    background: var(--orange-hover) !important;
    transform: translateY(-2px) !important;
}

/* 5. نماذج تسجيل الدخول والتسجيل (Login & Register Forms) */
.woocommerce-account .u-columns.col2-set {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    justify-content: center !important;
}

.woocommerce-account .u-column1.col-1,
.woocommerce-account .u-column2.col-2 {
    width: 100% !important;
    max-width: 450px !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.woocommerce-account .u-columns h2 {
    text-align: center !important;
    font-size: 32px !important;
    color: var(--purple-main) !important;
    margin-bottom: 30px !important;
}

/* توحيد شكل حقول الإدخال في صفحة حسابي */
.woocommerce-account form .form-row {
    margin-bottom: 25px !important;
}

.woocommerce-account form .form-row label {
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.woocommerce-account form input.woocommerce-Input,
.woocommerce-account form textarea.input-text {
    width: 100% !important;
    padding: 16px 20px !important;
    border-radius: 10px !important;
    border: 2px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.woocommerce-account form input.woocommerce-Input:focus,
.woocommerce-account form textarea.input-text:focus {
    border-color: var(--purple-main) !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(74, 0, 224, 0.1) !important;
}

/* زر الدخول والتسجيل */
.woocommerce-account form button.woocommerce-Button {
    background: var(--purple-gradient) !important;
    color: #ffffff !important;
    width: 100% !important;
    padding: 18px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(74, 0, 224, 0.4) !important;
    margin-top: 15px !important;
    transition: all 0.4s ease !important;
}

.woocommerce-account form button.woocommerce-Button:hover {
    background: var(--orange-btn) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(255, 126, 95, 0.5) !important;
}

/* 6. التجاوب مع الجوال والآيباد */
@media (max-width: 992px) {
    .woocommerce-account .woocommerce {
        flex-direction: column !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        min-width: 100% !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        flex: 1 !important;
        min-width: 150px !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px !important;
    }
    .woocommerce-account table.shop_table.my_account_orders thead {
        display: none !important; /* إخفاء الترويسة في الجوال لتوفير المساحة */
    }
    .woocommerce-account table.shop_table.my_account_orders tbody tr {
        display: block !important;
        margin-bottom: 20px !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 10px !important;
    }
    .woocommerce-account table.shop_table.my_account_orders tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding: 15px 10px !important;
        text-align: left !important;
    }
    .woocommerce-account table.shop_table.my_account_orders tbody td::before {
        content: attr(data-title) !important;
        font-weight: 900 !important;
        color: var(--purple-main) !important;
    }
}
/* =========================================================
   17. صفحة اتصل بنا (Contact Us Page)
   ========================================================= */

.pro-contact-wrapper {
    margin-top: 60px;
    margin-bottom: 80px;
}

/* رأس الصفحة */
.pro-contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.pro-contact-header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
}

.pro-contact-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.8;
}

/* الشبكة (قسم المعلومات والنموذج) */
.pro-contact-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
}

/* معلومات الاتصال */
.pro-contact-info {
    flex: 1;
    background: #f8fafc;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.pro-contact-info h3, 
.pro-contact-form-container h3 {
    font-size: 28px;
    font-weight: 900;
    color: var(--purple-main);
    margin-bottom: 20px;
}

.pro-contact-info .info-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: var(--orange-btn);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.15);
}

.info-text strong {
    display: block;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 800;
}

.info-text span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

/* أيقونات التواصل الاجتماعي */
.pro-contact-social {
    display: flex;
    gap: 15px;
}

.pro-contact-social .social-icon {
    width: 45px;
    height: 45px;
    background: var(--purple-main);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.pro-contact-social .social-icon:hover {
    background: var(--orange-btn);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4);
}

/* نموذج المراسلة */
.pro-contact-form-container {
    flex: 1.5;
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.pro-contact-form .form-row-split {
    display: flex;
    gap: 20px;
}

.pro-contact-form .form-group {
    margin-bottom: 25px;
    flex: 1;
}

.pro-contact-form label {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pro-contact-form input,
.pro-contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    resize: none;
}

.pro-contact-form input:focus,
.pro-contact-form textarea:focus {
    border-color: var(--purple-main);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 0, 224, 0.1);
}

.pro-submit-btn {
    background: var(--purple-gradient);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(74, 0, 224, 0.3);
    margin-top: 10px;
}

.pro-submit-btn:hover {
    background: var(--orange-btn);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 126, 95, 0.4);
}

/* خريطة جوجل */
.pro-contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

/* التجاوب مع الجوال والآيباد */
@media (max-width: 992px) {
    .pro-contact-grid {
        flex-direction: column;
    }
    .pro-contact-info, 
    .pro-contact-form-container {
        width: 100%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .pro-contact-form .form-row-split {
        flex-direction: column;
        gap: 0;
    }
    .pro-contact-header h1 {
        font-size: 32px;
    }
}
/* =========================================================
   18. صفحة من نحن (About Us Page)
   ========================================================= */

.pro-about-wrapper {
    margin-bottom: 80px;
}

/* 1. القسم الترحيبي */
.about-hero {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 30px;
    margin-top: 40px;
    margin-bottom: 80px;
    border: 1px solid #f1f5f9;
}

.about-hero h1 {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 700;
}

/* 2. قسم الرؤية والرسالة */
.about-vision-mission {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.vision-content {
    flex: 1;
}

.vision-content h2 {
    font-size: 38px;
    font-weight: 900;
    color: var(--purple-main);
    margin-bottom: 25px;
}

.vision-content p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 30px;
    font-weight: 600;
}

.vision-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vision-list li {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.vision-list li i {
    color: var(--orange-btn);
    font-size: 24px;
}

.vision-image {
    flex: 1;
}

.vision-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    object-fit: cover;
}

/* 3. قسم المميزات */
.about-features {
    margin-bottom: 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 0, 224, 0.08);
    border-color: #d1d5db;
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: #f8fafc;
    color: var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 30px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--purple-grad);
    color: #ffffff;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 600;
}

/* 4. قسم الدعوة لاتخاذ إجراء (CTA) */
.about-cta {
    background: var(--purple-grad);
    padding: 80px 20px;
    color: #ffffff;
    border-radius: 30px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(74, 0, 224, 0.2);
}

.about-cta .text-center {
    text-align: center;
}

.about-cta h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-cta p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 700;
}

.about-cta .cta-btn {
    background: #ffffff !important;
    color: var(--purple-main) !important;
    font-size: 20px !important;
    padding: 16px 50px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.about-cta .cta-btn:hover {
    background: var(--orange-btn) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(255, 126, 95, 0.4) !important;
}

/* 5. التجاوب مع الجوال والآيباد */
@media (max-width: 992px) {
    .about-vision-mission {
        flex-direction: column;
        text-align: center;
    }
    .vision-list li {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .about-hero h1, 
    .vision-content h2, 
    .about-cta h2 {
        font-size: 32px;
    }
    .about-cta {
        border-radius: 20px;
        margin: 0 15px;
        padding: 50px 20px;
    }
}
/* =========================================================
   19. قائمة الجوال التفاعلية (Mobile Menu Overlay)
   ========================================================= */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* مخفية خارج الشاشة افتراضياً */
    width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 100000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* الكلاس الذي سنضيفه بالجافا سكريبت لفتح القائمة */
.mobile-menu-overlay.active {
    right: 0;
}

/* زر إغلاق القائمة (X) */
.mobile-menu-close {
    align-self: flex-end;
    font-size: 30px;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--orange-btn);
}

/* روابط قائمة الجوال */
.mobile-menu-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-overlay ul li a {
    font-size: 20px;
    font-weight: 800;
    color: var(--purple-main);
    text-decoration: none;
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.mobile-menu-overlay ul li a:hover {
    color: var(--orange-btn);
    padding-right: 10px; /* حركة خفيفة عند اللمس */
}

/* خلفية مظلمة وراء القائمة (Overlay Backdrop) */
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}
/* =========================================================
   20. صندوق البحث المنبثق (Search Overlay)
   ========================================================= */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 40px;
    left: 40px; /* لليسار لأن الموقع عربي */
    background: none;
    border: none;
    font-size: 40px;
    color: var(--purple-main);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.search-close-btn:hover {
    color: var(--orange-btn);
    transform: rotate(90deg);
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(50px);
    transition: transform 0.4s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--purple-main);
    padding-bottom: 15px;
}

.search-form input.search-field {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    padding: 10px 20px;
    outline: none;
}

.search-form input.search-field::placeholder {
    color: #cbd5e1;
    font-weight: 600;
}

.search-form button.search-submit {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--purple-main);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.search-form button.search-submit:hover {
    color: var(--orange-btn);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .search-form input.search-field {
        font-size: 22px;
    }
    .search-close-btn {
        top: 20px;
        left: 20px;
        font-size: 30px;
    }
}
/* =========================================================
   22. قسم آراء الطلاب (Testimonials Section)
   ========================================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.testimonial-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 0, 224, 0.08);
}

.quote-icon {
    font-size: 40px;
    color: var(--purple-main);
    opacity: 0.15;
    margin-bottom: 20px;
}

.test-text {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 600;
    margin-bottom: 30px;
    font-style: italic;
}

.test-author {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.test-author .stars {
    color: #fbbf24; /* لون ذهبي للنجوم */
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.test-author h4 {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
}

/* التجاوب مع الجوال والآيباد */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   21. زر الواتساب العائم (Floating WhatsApp)
   ========================================================= */

.floating-whatsapp {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #25d366 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 38px !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
    z-index: 999999 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    animation: pulse-whatsapp 2s infinite !important;
}

.floating-whatsapp:hover {
    background-color: #128c7e !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px !important;
        height: 55px !important;
        font-size: 32px !important;
        bottom: 20px !important;
        left: 20px !important;
    }
}
/* =========================================================
   تنسيقات التصميم المطلوبة (توازن حر وذكي للغلاف، الوجوه، الحركات، الفوتر) - الكود النهائي
   ========================================================= */

/* حركات الدخول */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.animate-up { opacity: 0; animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.animate-zoom { opacity: 0; animation: zoomIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }

/* 1. التوازن الذكي للغلاف في اللابتوب (تنسيق حر لا يعتمد على 50/50) */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
    min-height: 65vh; /* لضمان أخذ مساحة مريحة من الشاشة عند الفتح */
}

.hero-content {
    flex: 1.2; /* إعطاء النص مساحة أكبر قليلاً ليتنفس */
    text-align: right; /* محاذاة النص لليمين بشكل أنيق للغة العربية */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* محاذاة زر اللابتوب لليمين تحت النص */
}

.hero-custom-title {
    font-size: 34px !important; 
    line-height: 1.6 !important;
    font-weight: 900 !important;
}

.hero-image {
    flex: 0.8; /* مساحة ملمومة للصورة */
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive-hero-img {
    width: 100% !important;
    max-width: 450px !important; /* حجم عرض مثالي للابتوب */
    max-height: 500px !important; /* السر هنا: منع الصورة الطولية من تخريب الشاشة */
    object-fit: contain !important; /* الحفاظ على دقة الصورة دون قص أو تمطيط */
    border-radius: 20px !important;
    transition: transform 0.4s ease !important;
}
.responsive-hero-img:hover { transform: scale(1.03) !important; }

/* أزرار التواصل الذكية */
.btn-desktop {
    margin-top: 25px;
    display: inline-block;
}
.mobile-btn-container {
    display: none; /* مخفي في اللابتوب */
    width: 100%;
    text-align: center;
    margin-top: 20px;
}
.btn-mobile {
    display: inline-block;
}

/* 2. لون الفوتر المتناسق في كل الصفحات */
.site-footer {
    background: linear-gradient(135deg, #2D008B 0%, #170047 100%) !important;
    border-top: 5px solid #FF7E5F !important;
    color: #ffffff !important;
}
.site-footer p, .site-footer span, .site-footer a, .site-footer h3, .site-footer i { color: #ffffff !important; }
.site-footer a:hover { color: #FF7E5F !important; }

/* 3. تنسيق صور الطلاب (توسيط الوجه بدقة في الدائرة) */
.testimonial-card {
    margin-top: 55px !important; 
    padding-top: 60px !important;
    position: relative !important;
}
.test-img-wrapper {
    position: absolute !important;
    top: -50px !important;
    left: 0 !important;
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.test-img-wrapper img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: top center !important; /* يضمن إظهار الوجه دائماً */
    border: 5px solid #ffffff !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}
.test-text { font-size: 16px !important; text-align: justify; }

/* 4. التجاوب مع الجوال والتابلت */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column !important;
        text-align: center !important;
    }
    .hero-content {
        align-items: center !important; /* توسيط كل شيء في الجوال */
        text-align: center !important;
        margin-bottom: 25px !important;
    }
    .hero-custom-title {
        font-size: 26px !important; /* تصغير العنوان ليتناسب مع الجوال */
    }
    .hero-image {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
    .responsive-hero-img {
        max-width: 85% !important; /* تصغير مريح في الجوال */
        max-height: 400px !important;
        margin: 0 auto !important;
    }
    .btn-desktop {
        display: none !important; /* إخفاء زر اللابتوب في الجوال */
    }
    .mobile-btn-container {
        display: block !important; /* إظهار زر الجوال تحت الصورة */
    }
}