:root {
            --navy: #255a9a;
            --gold: #d4af37;
            --light-bg: #f8fbff;
            --white: #ffffff;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background-color: var(--white);
            color: #333;
            overflow-x: hidden;
            position: relative;
        }

        .owl-carousel .owl-stage-outer{direction: ltr;}

        /* الشكل الجمالي في الخلفية */
        .bg-shape {
            position: fixed;
            top: 20%;
            left: -100px;
            width: 400px;
            height: 400px;
            background: var(--navy);
            opacity: 0.03;
            border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%;
            filter: blur(50px);
            z-index: -1;
            pointer-events: none;
            animation: morphing 15s infinite alternate ease-in-out;
        }

        @keyframes morphing {
            0% { transform: translateY(0) rotate(0deg); border-radius: 45% 55% 70% 30%; }
            100% { transform: translateY(100px) rotate(20deg); border-radius: 30% 60% 40% 70%; }
        }

        /* Top Bar */
        .top-bar { background-color: #FFF; padding: 8px 0; font-size: 0.85rem; position:relative; z-index:9999; }
        .top-bar a { color: #255a9a; text-decoration: none; margin-left: 15px; }
        .top-bar span{color: #255b9b;}
        .top-bar #superfish-account span{color: #fff;}
        .top-bar #superfish-account ul.sf-menu a, .top-bar #superfish-account ul.sf-menu span.nolink{padding: 0.3em 1.2em !important;}
        .top-bar .social-media-links--platforms .fa-2x {font-size: 1.5em !important;}
        /* Navbar & Search */
        .navbar { background: #255b9b !important; box-shadow: 0 2px 15px rgba(0,0,0,0.05); padding: 15px 0; }
        #block-rooayanew-mainnavigation-2 .sfHover ul li, #block-rooayanew-mainnavigation-2 ul.sf-menu ul li{width: 48%; !important;} 
        #block-rooayanew-mainnavigation-2 .sfHover ul {
    background-color: #255b9b;
    min-width: 500px !important;
    display: flow-root !important;
}

#block-rooayanew-mainnavigation-2 .sfHover ul li a {
    padding: 15px 5px !important;
    border-bottom: solid 1px #6590c8;
    margin-left: 3px;
}
        #block-rooayanew-mainnavigation-2 .nolink, #block-rooayanew-mainnavigation-2 li a {color: #FFF !important; text-decoration: none; padding: 1em 0.6em; font-size:1.2em; }
        .search-block-form { position: relative; width: 250px; }
        .search-block-form input { border-radius: 50px; background: #f1f4f8; border: none; padding-right: 35px; }
        .search-block-form .form-submit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--navy); }

        #block-rooaya-useraccountmenu .join {
  color: #255a9a !important;
  text-shadow: 1px 1px 0 #ffff, -1px 1px 0 #ffff, 1px -1px 0 #ffff,
    -1px -1px 0 #ffff, 0 1px 0 #ffff, 1px 0 0 #ffff, 0 -1px 0 #ffff,
    -1px 0 0 #ffff;
}   
#block-rooaya-useraccountmenu .sf-sub-indicator{color: #255a9a !important;}
#block-rooaya-useraccountmenu ul.sf-menu.rtl, #block-rooaya-useraccountmenu ul.sf-menu.rtl li{float: left;}

#block-rooaya-useraccountmenu .join .sf-sub-indicator {
  left: 0px !important;
}
#block-rooaya-socialmedialinks .social-media-links--platforms {
  margin: auto 0px;
}
#block-rooaya-useraccountmenu ul.sf-multicolumn {
  padding: 10px 20px;
  text-align: center;
  right: auto;
  margin: 0px auto !important;
  margin-top: 0px !important;
  border-radius: 5px;
  left: 0px !important;
  background-color: #255b9b !important;
  -webkit-box-shadow: 0 0 10px 1px rgba(0,0,0,0.3);
box-shadow: 0 0 10px 1px rgba(0,0,0,0.3);
}
#block-rooaya-useraccountmenu ul.sf-multicolumn .sub-sub-link {
  font-weight: bold;
}
#block-rooaya-useraccountmenu .assine-tech,
.about_end .about_end_content .table td h6 {
  margin: 0px auto;
  border: 1px solid white;
  border-radius: 5px;
  text-align: center;
  width: 60%;
  background-color: black;
  color: black;
  text-shadow: 1px 1px 0 #ffff, -1px 1px 0 #ffff, 1px -1px 0 #ffff,
    -1px -1px 0 #ffff, 0 1px 0 #ffff, 1px 0 0 #ffff, 0 -1px 0 #ffff,
    -1px 0 0 #ffff;
}

#block-rooaya-useraccountmenu .assine-tech, .about_end .about_end_content .table td h6 {
    margin: 0px auto;
    border: 1px solid white;
    border-radius: 5px;
    text-align: center;
    width: 60%;
    background-color: black;
    color: black;
    text-shadow: 1px 1px 0 #ffff, -1px 1px 0 #ffff, 1px -1px 0 #ffff, -1px -1px 0 #ffff, 0 1px 0 #ffff, 1px 0 0 #ffff, 0 -1px 0 #ffff, -1px 0 0 #ffff;
}

.iphone-link {
  text-indent: -9999em;
  content: " ";
  height: 55px;
  display: block;
  background-image: url(../images/App_Store_Badge.png);
  background-size: contain;
  margin-bottom: 10px !important;
  background-repeat: no-repeat;
  background-position: center;
}
.android-link {
  text-indent: -9999em;
  content: " ";
  display: block;
  height: 55px;
  background-image: url(../images/Google_Play_Store_badge.png);
  background-size: contain;
  margin-bottom: 10px !important;
  background-repeat: no-repeat;
  background-position: center;
}

        /* Hero Slider */
        .hero-slider .item {overflow: hidden; height: 80vh; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
        .hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(37, 90, 154, 0.3); }
        .hero-content { z-index: 5; color: #fff; position: absolute; max-width:250px; botterm:0; left:0;}
        .hero-content h1 { font-size: 3.5rem; font-weight: 900; }
        .btn-gold { background: var(--gold); color: #fff; border-radius: 50px; padding: 12px 35px; font-weight: 700; border: none; transition: 0.3s; }
        .btn-gold:hover { background: #bc992d; transform: translateY(-3px); color: #fff; }

        /* Course Card Update */
        .section-padding { padding: 80px 0; }
        .section-title { text-align: center; margin-bottom: 50px; }
        .section-title h2 { color: var(--navy); font-weight: 800; position: relative; padding-bottom: 15px; }
        .section-title h2::after { content: ''; width: 60px; height: 3px; background: var(--gold); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

        .course-card p {
    min-height: 72px;
}
        .section-title h1 { color: var(--navy); font-weight: 800; position: relative; padding-bottom: 15px; }
        .section-title h1::after { content: ''; width: 60px; height: 3px; background: var(--gold); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

        .course-card .course-title{min-height: 45px;}
        .course-card { background: #fff; border-radius: 15px; margin: 15px; border: 1px solid #f0f3f7; box-shadow: 0 10px 30px rgba(0,0,0,0.02); transition: 0.4s; overflow: visible; }
        .course-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
        .course-header { position: relative; }
        .course-card video {
            width: 100%;
            height: auto;
            border-radius: 15px 15px 0 0;
        }
        .course-card a{text-decoration: none;}
        .course-card img{border-radius: 15px 15px 0 0}
        
        .course-card-inner{overflow: hidden;}

        /* أيقونة المحاضر بدلاً من الصورة */
        .instructor-icon-badge{position: relative; top: 30px;}
        .instructor-icon-badge img {
            position: absolute; bottom: 20px; left: 20px;
            width: 100px !important; height: 100px !important;
            background-color: var(--navy);
            border-radius: 50%; border: 3px solid #fff;
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 1.2rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .instructor-icon-badge h4 a {
            font-size: 12px;
            color: #000;
            text-align: center !important;
            display: block;
            width: 130px;
            text-decoration: none;
        }

        .course-body { padding: 30px 20px 20px; text-align: right; }
        .course-cat { color: var(--gold); font-weight: 700; font-size: 0.8rem; }
        .course-title { font-weight: 800; color: var(--navy); margin: 8px 0; font-size: 1.1rem; text-decoration:none; min-height:45px; }
        .meta-info { display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 15px; margin-top: 15px; font-size: 0.85rem; color: #666; }
        .meta-info i { color: var(--gold); }
        .taxonomy-term--type-course-level{display: flex;}
            .myicon img {
        width: 27px !important;
        height: auto;
        }
        h4.myname{font-size:0.85rem;}

        /* المحاضرون - أيقونات */
        .inst-item-box { text-align: center; padding: 20px; }
        .inst-icon-large {
            width: 200px; height: 200px; background: var(--navy);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            margin: 0 auto 15px; color: #fff; font-size: 3rem;
            transition: 0.3s; border: 5px solid var(--light-bg);
            overflow: hidden;
        }
        .inst-item-box img{max-width: 200px !important; max-height: 200px !important}
        .inst-item-box:hover .inst-icon-large { background: var(--gold); transform: scale(1.05); }
        .inst-name h4 a{text-decoration: none !important;}

        /* Footer */
        footer { background: var(--navy); color: #d1d1d1; padding: 80px 0 20px; }
        .footer-h { color: #fff; font-weight: 700; margin-bottom: 25px; }
        .footer-links a { color: #d1d1d1; text-decoration: none; display: block; margin-bottom: 12px; transition: 0.3s; }
        .footer-links a:hover { color: var(--gold); padding-right: 10px; }
        footer .field__item{color:#fff !important;}

        /* Import a modern Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* Form Container Styling */
.webform-submission-form {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

/* Form Item Spacing */
.form-item {
    margin-bottom: 24px;
}

/* Label Styling */
.form-item label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 8px;
}

/* Input, Select, and Textarea Styling */
.form-control, 
.form-select, 
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Focus States */
.form-control:focus, 
.form-select:focus, 
.form-textarea:focus {
    background-color: #fff;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* File Upload Widget Styling */
.form-managed-file {
    background: #f1f5f9;
    padding: 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
}

.form-managed-file .form-file {
    background: transparent;
    border: none;
    padding: 0;
}

/* Descriptions (Help Text) */
.webform-element-description {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.6;
}

/* Submit Button Styling */
.form-actions {
    margin-top: 32px;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
}

.webform-button--submit {
    width: 100%;
    background-color: #2563eb !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.webform-button--submit:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Styling for Ajax/secondary buttons (like 'Upload') */
.btn-secondary {
    background-color: #e2e8f0;
    color: #475569;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Nationality & Country Select specific */
select.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    padding-left: 40px;
}

/* Required star */
.form-required:after {
    content: " *";
    color: #ef4444;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .webform-submission-form {
        margin: 10px;
        padding: 20px;
    }
}

footer #block-rooayanew-thmylalttbyq img {
    width: 100%;
    height: auto;
}

footer a {text-decoration: none; color: #FFF;}

.social-media-links--platforms{display: flex !important; margin:0 !important; padding: 0 !important;}
.social-media-links--platforms li{display: flex !important;}

/*Course Page */

/* تنسيق الحاوية الرئيسية */
.node--type-course {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 20px;
    direction: rtl; /* للتأكد من الاتجاه العربي */
}

/* تنسيق البيانات العلوية (المستوى، النوع، المدة) */
.course_level_page, .course_type_page, .course_time_page {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.course_level_page:hover, .course_type_page:hover, .course_time_page:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.field__label {
    font-weight: 700 !important;
    color: #2c3e50;
    margin-left: 10px;
    min-width: 100px;
    font-size: 0.95rem;
}

.field__item {
    color: #555;
    font-size: 0.95rem;
}

/* تمييز مستوى الكورس بـ Badge */
.course_level_page .field__item {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 4px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* تنسيق قسم المحاضر */
.course_teacher {
    background: linear-gradient(135deg, #ffffff 0%, #f1f4f8 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    border-right: 5px solid #007bff; /* خط جمالي جانبي */
}

.teacher-imga img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%; /* جعل الصورة دائرية */
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-left: 20px;
}

.field--name-taxonomy-term-title h4 {
    margin: 0;
}

.teacher-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 800;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.teacher-link:hover {
    color: #007bff;
}

/* تنسيق وصف الكورس */
.course_body {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

.course_body p {
    margin-bottom: 15px;
}

/* تنسيق الفيديو */
.fitvids {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #000;
    border: 5px solid white;
}

.video-js {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

/* تحسين زر التشغيل الكبير */
.vjs-big-play-button {
    background-color: rgba(0, 123, 255, 0.8) !important;
    border-radius: 50% !important;
    width: 80px !important;
    height: 80px !important;
    line-height: 80px !important;
    margin-top: -40px !important;
    margin-left: -40px !important;
    border: none !important;
}

/* إخفاء عناصر التعديل للمستخدم العادي لجعل التصميم أنظف */
.contextual {
    display: none; 
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
    .node--type-course {
        padding: 15px;
    }
    .group-right {
        margin-top: 30px;
    }
    .course_teacher {
        flex-direction: column;
        text-align: center;
    }
    .teacher-imga img {
        margin-left: 0;
        margin-bottom: 10px;
    }
}   



/* About Us page  */

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

:root {
    --primary-color: #2c3e50; /* لون كحلي وقور */
    --accent-color: #3498db;  /* لون أزرق تعليمي */
    --gold-color: #f39c12;    /* لون للتمييز */
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    direction: rtl;
}

/* --- عنوان الصفحة --- */
#block-rooayanew-page-title h1 {
    text-align: center;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

#block-rooayanew-page-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* --- تصميم العدادات (Counter Boxes) --- */
.page_counter {
    gap: 20px;
    padding: 20px 0 !important;
}

.page_counter .field__item {
    flex: 1;
    min-width: 309px;
    max-width: 309px;
}

.block-content--type-counter {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block-content--type-counter:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15);
    border-color: var(--accent-color);
}

/* أيقونات الصور داخل العداد */
.field--name-field-count-img img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

/* الأرقام */
.count_no .counter {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin: 10px 0;
}

/* عناوين العدادات */
.field--name-block-title h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #7f8c8d;
    margin: 0;
}

/* --- قسم النص والصورة (About Us Section) --- */
.layout__region--content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.about_body {
    flex: 1;
    min-width: 300px;
    padding: 0 20px !important;
}

.about_body p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.about_img {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 20px !important;
}

.about_img img {
    border-radius: 30px;
    box-shadow: 20px 20px 0px rgba(52, 152, 219, 0.1); /* تأثير ظل خلفي جمالي */
    transition: var(--transition);
    max-width: 100%;
}

.about_img img:hover {
    transform: scale(1.02);
}

/* --- تحسينات للموبايل --- */
@media (max-width: 768px) {
    .page_counter {
        justify-content: center !important;
    }
    
    .layout__region--content {
        flex-direction: column-reverse; /* الصورة تظهر فوق أو تحت حسب الرغبة */
    }
    
    .about_body {
        text-align: center;
        padding: 30px 10px !important;
    }

    .about_body p {
        text-align: center;
    }
    
    .count_no .counter {
        font-size: 1.8rem;
    }
}

/* تأثير بسيط عند ظهور الأرقام (اختياري) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.field__item {
    animation: fadeInUp 0.6s ease forwards;
}

.page_counter .field--type-image, .page_counter .field--type-integer, .page_counter .field--name-block-title {
    width: auto !important;
    min-width: auto;
    max-width: unset;
}

/* تنسيق الحاوية الرئيسية */
.instructor-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out;
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
    direction: rtl; /* لضمان التنسيق العربي */
}

/* تأثير عند تمرير الماوس على الكارت */
.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

/* تنسيق غلاف الصورة */
.instructor-img-wrapper {
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

/* تنسيق الصورة نفسها */
.instructor-img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    object-fit: cover;
}

/* تكبير الصورة عند الهوفر */
.instructor-card:hover .instructor-img {
    transform: scale(1.1);
}

/* تنسيق الاسم */
.instructor-name {
    margin-top: 20px;
    font-weight: 800;
    color: #333;
}

.instructor-name a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s;
    font-size: 1.8rem;
}

.instructor-name a:hover {
    color: #d4a373; /* لون ذهبي خفيف يناسب الشوكولاتة */
}

/* تنسيق الوصف */
.instructor-info {
    padding: 10px 20px;
}

.description p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* أنيميشن الدخول (Fade In) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instructor-card {
    animation: fadeInUp 0.8s ease-out;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 991px) {
    .instructor-card {
        text-align: center;
    }
    .instructor-img-wrapper {
        margin-bottom: 20px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

.fixed-side ul {
    margin: 0;
    padding: 0;
}
.fixed-side li {
    list-style: none;
}
.fixed-side img {
    max-width: 50px;
    height: auto;
}
.fixed-side {
    position: fixed;
    top: 20%;
    right: 0;
    width: 75px;
    margin: 0;
    padding: 3px;
}