/*
Theme Name: EduMogamma Theme
Template: astra
Description: Custom Premium Minimalist Theme
Author: Abdallah Hussein
Version: 1.0.0
*/

/* --- EduMogamma Header Styles --- */
:root {
    --bg-primary: #F8FAFC;
    --bg-surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #334155;
    --border-color: #E2E8F0;
}

.dark-theme {
    --bg-primary: #0F172A; 
    --bg-surface: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
}

/* --- EduMogamma Header Styles --- */
.edu-header {
    background-color: #F8FAFC; 
    background-color: var(--bg-surface, #F8FAFC);
    border-bottom: 1px solid #E2E8F0;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.edu-container {
    width: 92%; 
    max-width: 1600px; 
    margin: 0 auto;
    padding: 0;
}
.edu-header .edu-container, .edu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Logo Image */
.header-logo-img {
    max-width: 200px;
    display: block;
}


.edu-menu-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.edu-menu-list > li {
    position: relative;
    padding: 15px 0;
}

.edu-menu-list li a {
    text-decoration: none;
    color: var(--text-muted, #334155);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.edu-menu-list li a:hover {
    color: #2563EB;
}

.edu-menu-list li.current-menu-item > a {
    color: #2563EB;
    position: relative;
}
.edu-menu-list li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: #2563EB;
    border-radius: 50%;
}

.edu-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(15px); 
    background: var(--bg-surface, #FFFFFF);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    list-style: none;
    z-index: 100;
}

.edu-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.edu-menu-list .sub-menu li {
    padding: 0;
}

.edu-menu-list .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.edu-menu-list .sub-menu a:hover {
    background-color: var(--bg-primary, #F1F5F9);
    color: #2563EB;
}


.edu-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    color: var(--text-muted, #334155);
    transition: color 0.3s ease;
}
.icon-btn:hover { color: #2563EB; }
/* --- (Dynamic Logo) --- */
.logo-dark { display: none; }
body.dark-theme .logo-light { display: none; }
body.dark-theme .logo-dark { display: block; }


/* --- Theme Switch Pill --- */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--border-color, #E2E8F0);
    padding: 6px 14px;
    border-radius: 30px;
}

.sun-icon, .moon-icon {
    color: var(--text-muted, #94A3B8);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    margin: 0;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: transparent;
    border: 2px solid #3b82f6; 
    border-radius: 34px;
    transition: .4s;
    box-sizing: border-box;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #3b82f6;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    border-color: #94A3B8;
}
input:checked + .slider:before {
    transform: translateX(16px);
    background-color: #94A3B8;
}

body:not(.dark-theme) .sun-icon { color: #3b82f6; }
body.dark-theme .moon-icon { color: #F8FAFC; }


/* Responsive */
@media (max-width: 768px) {
    .edu-nav { display: none; } 
}

.edu-menu-list li.current-menu-item > a {
    color: #2563EB;
    position: relative;
}
.edu-menu-list li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: #2563EB;
    border-radius: 50%;
}


.edu-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%) translateY(15px);
    background: var(--bg-surface, #FFFFFF);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    list-style: none;
    z-index: 100;
}


.edu-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.edu-menu-list .sub-menu li {
    padding: 0;
}

.edu-menu-list .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.edu-menu-list .sub-menu a:hover {
    background-color: var(--bg-primary, #F1F5F9);
    color: #2563EB;
}


.edu-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    color: var(--text-muted, #334155);
    transition: color 0.3s ease;
}
.icon-btn:hover { color: #2563EB; }


.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-primary, #F1F5F9);
    border: 1px solid var(--border-color, #E2E8F0);
    transition: .4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    color: var(--text-muted, #94A3B8);
}
.slider.round {
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px; 
    bottom: 3px;
    background-color: #2563EB;
    border-radius: 50%;
    transition: .4s;
    z-index: 2;
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #334155;
}

.sun-icon, .moon-icon {
    z-index: 3;
    position: relative;
}
input:checked + .slider .moon-icon { color: #fff; }
input:not(:checked) + .slider .sun-icon { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .edu-nav { display: none; }
}
.edu-header {
    background-color: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.edu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.edu-logo a {
    text-decoration: none;
    font-weight: 900;
    font-size: 24px;
    color: #0F172A;
}
.logo-icon-mobile { display: none; } 

/* Navigation */
.edu-menu-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.edu-menu-list li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s ease;
}
.edu-menu-list li a:hover { color: #2563EB; }

/* Search Bar */
.edu-search .search-field {
    background-color: #F1F5F9;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    width: 250px;
    font-family: inherit;
    transition: background-color 0.3s ease;
}
.edu-search .search-field:focus {
    outline: none;
    background-color: #E2E8F0;
}

/* Icons */
.edu-icons {
    display: flex;
    gap: 15px;
}
.icon-btn {
    background: none;
    border: none;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}
.icon-btn:hover { color: #2563EB; }


.edu-logo a, .icon-btn {
    color: var(--text-main);

}

.edu-search .search-field {
    background-color: var(--bg-primary);
    color: var(--text-main);
}
/* Responsive / Mobile */
@media (max-width: 768px) {
    .logo-text-desktop { display: none; }
    .logo-icon-mobile { display: block; color: #2563EB; font-size: 28px; }
    .edu-nav { display: none; }
    .edu-search { display: none; }
}

/* --- Footer Styles --- */
.edu-footer {
    background-color: var(--bg-surface, #FFFFFF);
    border-top: 1px solid var(--border-color, #E2E8F0);
    padding: 60px 0 20px;
    margin-top: 80px;
}
.footer-container {
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 50px;
}
.footer-brand {
    max-width: 450px;
}
.footer-logo-img {
    height: 45px;
    margin-bottom: 15px;
}
.footer-desc {
    color: var(--text-muted, #64748B);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary, #F8FAFC);
    color: var(--text-muted, #334155);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background-color: #2563EB;
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-bottom: 40px;
}
.footer-links a {
    color: var(--text-muted, #334155);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #2563EB;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid var(--border-color, #E2E8F0);
    padding-top: 25px;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted, #94A3B8);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}
/* ==========================================================================
   2. قسم الأخبار (News Hero Section) - التصحيح الجذري للاتجاهات (RTL)
   ========================================================================== */
.news-hero-section {
    padding: 40px 0;
    direction: rtl; /* إجبار القسم بالكامل على الاتجاه العربي */
}

/* ---------------- تنسيق العناوين العلوية ---------------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    width: 100%; /* إجبار الهيدر ياخد العرض بالكامل */
}
.section-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main, #0F172A);
    white-space: nowrap; /* منع كسر الكلمة لسطرين أبداً */
}
.view-all-link {
    font-size: 15px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.view-all-link:hover { opacity: 0.8; }

/* ---------------- شبكة الأخبار ---------------- */
.news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* اليمين للخبر الرئيسي، اليسار للقائمة */
    gap: 30px;
    width: 100%;
}

/* ---------------- الخبر الرئيسي (الصورة الكبيرة) ---------------- */
.featured-article { height: 100%; }
.featured-wrapper {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
}
.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: transform 0.5s ease;
}
.featured-wrapper:hover .featured-img { transform: scale(1.05); }

.featured-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 1;
}

.badge-featured {
    position: absolute;
    top: 20px; right: 20px;
    background-color: #3b82f6;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2;
}

.featured-content {
    position: absolute;
    bottom: 25px; right: 25px; left: 25px;
    z-index: 2;
    text-align: right; /* إجبار النص داخل الصورة لليمين */
}
.featured-title {
    font-size: 22px;
    color: #fff;
    margin: 0 0 12px 0;
    font-weight: 800;
    line-height: 1.5;
    unicode-bidi: isolate; /* يحمي النص الإنجليزي من اللخبطة */
}
.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #e2e8f0;
}

/* ---------------- القائمة الجانبية (البطاقات المنفصلة) ---------------- */
.recent-news-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}
.list-article {
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.list-article:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-color: #3b82f6;
}
.list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
}
.list-right {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-grow: 1;
}

.blue-dot {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.list-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right; /* إجبار نصوص القائمة لليمين */
}
.list-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #0F172A);
    margin: 0;
    line-height: 1.5;
    unicode-bidi: isolate; /* السحر اللي هيمنع النص الإنجليزي من التداخل مع العربي */
}
.time-ago {
    font-size: 12px;
    color: var(--text-muted, #94A3B8);
}

.list-left {
    color: var(--text-muted, #cbd5e1);
    display: flex;
    align-items: center;
    padding-right: 15px;
}

/* ريسبونسيف للموبايل */
@media (max-width: 992px) {
    .news-grid { grid-template-columns: 1fr; }
    .featured-wrapper { min-height: 320px; }
}

/* ==========================================================================
   3. قسم الكورسات (Courses Section)
   ========================================================================== */
.courses-section {
    padding: 60px 0;
    direction: rtl;
}

/* شبكة الكورسات: 4 أعمدة للشاشات الكبيرة */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

/* ---------------- تصميم كارت الكورس ---------------- */
.course-card {
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

/* الصورة والبادج */
.course-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* أبعاد سينمائية عريضة شوية زي الصورة */
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img {
    transform: scale(1.08);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px; /* يمين عشان الـ RTL */
    background-color: var(--bg-surface, #FFFFFF);
    color: #3b82f6; /* أزرق */
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

/* محتوى الكارت النصي */
.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main, #0F172A);
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-align: center; /* متسنتر زي الصورة */
}

.course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.course-title a:hover {
    color: #3b82f6;
}

.course-instructor {
    font-size: 14px;
    color: var(--text-muted, #94A3B8);
    margin: 0 0 20px 0;
    text-align: center; /* متسنتر زي الصورة */
}

/* الفوتر بتاع الكارت (التقييم والمستوى) */
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* بيزق التقييم لآخر الكارت دايماً */
    padding-top: 15px;
    border-top: 1px dashed var(--border-color, #E2E8F0);
}

.course-level {
    font-size: 13px;
    color: var(--text-muted, #64748B);
    font-weight: 500;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr; /* نخليها LTR عشان الرقم والنجمة والأقواس يترتبوا صح */
}

.rating-score {
    font-weight: 800;
    font-size: 14px;
    color: var(--text-main, #0F172A);
}

.star-icon {
    margin-bottom: 2px;
}

.reviews-count {
    font-size: 13px;
    color: var(--text-muted, #94A3B8);
    margin-left: 4px;
}

/* ---------------- ريسبونسيف (تجاوب الشاشات) ---------------- */
@media (max-width: 1200px) {
    .courses-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .courses-grid { grid-template-columns: 1fr; }
}
/* ==========================================================================
   4. قسم المقالات (التصميم الأفقي الحديث - RTL)
   ========================================================================== */
.articles-section {
    padding: 80px 0;
    /* بيسحب لون الخلفية من المتغيرات عشان يتغير للدارك مود براحته */
    background-color: var(--bg-primary, #F8FAFC);
    direction: rtl;
}

/* القائمة الحاضنة للكروت */
.articles-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* ---------------- الكارت نفسه ---------------- */
.v-card-wrapper {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 16px;
    position: relative; /* ضروري عشان الـ Stretched Link */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.v-card-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    border-color: #3b82f6; /* تحديد أزرق خفيف عند الهوفر */
}

/* ---------------- الصورة والتاج ---------------- */
.v-card-image {
    flex: 0 0 260px; /* عرض ثابت للصورة */
    height: 160px; /* ارتفاع ثابت يحافظ على نسبة العرض للارتفاع */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.v-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.v-card-wrapper:hover .v-img-cover {
    transform: scale(1.05);
}

.v-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ---------------- المحتوى النصي والأكشن ---------------- */
.v-card-body {
    flex: 1;
    display: flex;
    justify-content: space-between; /* يفصل النص عن زر القراءة */
    align-items: center; /* يسنتر الأزرار مع النص عمودياً */
    padding-right: 30px; /* مسافة بين النص والصورة */
    padding-left: 10px;
}

.v-card-text {
    display: flex;
    flex-direction: column;
    max-width: 75%; /* يمنع النص من التمدد لآخر الكارت */
}

.v-card-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.v-card-title a {
    color: var(--text-main, #0F172A);
    text-decoration: none;
}

/* السحر اللي بيخلي الكارت كله Clickable */
.stretched-link::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 10;
}

.v-card-excerpt {
    font-size: 15px;
    color: var(--text-muted, #64748B);
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* ---------------- التاريخ ووقت القراءة ---------------- */
.v-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted, #94A3B8);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-dot {
    font-size: 16px;
    color: #cbd5e1;
}

/* ---------------- زر "اقرأ المقال" ---------------- */
.v-card-action {
    flex-shrink: 0; /* يمنع الزرار من الانضغاط */
}

.read-action-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    font-weight: 700;
    font-size: 15px;
    transition: gap 0.3s ease;
}

/* حركة السهم لليسار عند مرور الماوس على الكارت */
.v-card-wrapper:hover .read-action-text {
    gap: 12px; 
}

/* ==========================================================================
   ريسبونسيف (للموبايل والتابلت)
   ========================================================================== */
@media (max-width: 992px) {
    .v-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .v-card-text {
        max-width: 100%;
    }
    .v-card-action {
        width: 100%;
        display: flex;
        justify-content: flex-end; /* وضع زر القراءة على اليسار تحت النص */
    }
}

@media (max-width: 768px) {
    .v-card-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    .v-card-image {
        flex: auto;
        width: 100%;
        height: 200px;
    }
    .v-card-body {
        padding-right: 10px;
        padding-top: 20px;
    }
}

/* ==========================================================================
   5. قسم الوظائف (Jobs Section) - RTL & Premium Minimalism
   ========================================================================== */
.jobs-section {
    background-color: var(--bg-surface, #FFFFFF); /* تناوب الألوان: هذا القسم أبيض/داكن */
    padding: 80px 0;
    direction: rtl;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px; /* مسافة قريبة بين الكروت زي الصورة */
    width: 100%;
}

/* الكارت الأساسي */
.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateX(-5px); /* حركة لليسار عند الهوفر */
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* 1. القسم الأيمن (اللوجو والمسمى) */
.job-primary {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 35%; /* يثبت العرض عشان العناوين متزقش الكارت */
}

.job-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}

.job-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main, #0F172A);
    margin: 0;
    line-height: 1.3;
}

.job-company {
    font-size: 13px;
    color: var(--text-muted, #94A3B8);
}

/* 2. القسم الأوسط (موقع العمل ونوع الدوام) */
.job-details {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1; /* ياخد المساحة الباقية في النص */
    color: var(--text-muted, #64748B);
    font-size: 13px;
}

.job-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 3. القسم الأيسر (التاج، الوقت، السهم) */
.job-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* لزق المحتوى في أقصى اليسار */
    gap: 20px;
    flex: 0 0 25%;
}

.job-badge-new {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.job-time {
    font-size: 13px;
    color: var(--text-muted, #94A3B8);
    white-space: nowrap;
}

.job-arrow {
    color: var(--text-muted, #cbd5e1);
    transition: transform 0.3s ease, color 0.3s ease;
}

.job-card:hover .job-arrow {
    color: #3b82f6;
    transform: translateX(-4px); /* السهم ينبض لليسار */
}

/* ==========================================================================
   ريسبونسيف للموبايل والتابلت (مهم جداً هنا عشان الكارت مايبوظش)
   ========================================================================== */
@media (max-width: 992px) {
    .job-card {
        flex-wrap: wrap; /* يسمح للعناصر تنزل سطر جديد */
        gap: 15px;
    }
    .job-primary {
        flex: 1 1 100%; /* اللوجو والعنوان ياخدوا السطر كله */
    }
    .job-details {
        flex: 1;
        padding-top: 10px;
        border-top: 1px dashed var(--border-color, #E2E8F0);
    }
    .job-actions {
        flex: auto;
    }
}

@media (max-width: 576px) {
    .job-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .job-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
}
/* فرض السيطرة على حاوية قسم الأخبار لمنع تداخل الأقسام */
.news-hero-section .edu-container, .courses-section .edu-container,
.articles-section .edu-container, .jobs-section .edu-container{
    display: block !important;
    width: 100% !important;
}

/* التأكيد على أن رأس القسم (العنوان واللينك) يأخذ العرض كاملاً ويفصل نفسه عما تحته */
.section-header {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
}

.news-hero-section {
    background-color: var(--bg-primary, #F8FAFC);
}

.courses-section {
    background-color: var(--bg-surface, #FFFFFF);
}

.articles-section {
    background-color: var(--bg-primary, #F8FAFC);
}
.jobs-section {
    background-color: var(--bg-surface, #FFFFFF);
}

/* ⚠️ إضافة الـ Padding الموحد لكل السكاشن عشان المسافات تكون مسطرة */
.news-hero-section, .courses-section, .articles-section {
    padding: 80px 0;
}