/*
Theme Name: ABHS
Description: قالب خاص بموقع مدراء البرامج - المجلس العربي للاختصاصات الصحية
Version: 1.0
*/

/* استيراد خط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* استيراد خط Almarai من Google Fonts للفلاتر */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

/* المتغيرات للألوان الأساسية */
:root {
    --primary-green: #156b68;
    --primary-gold: #caa453;
    --primary-color: #156b68;  /* اللون الأساسي للموقع */
    --light-green: #1a7a76;
    --dark-green: #0f5451;
    --light-gold: #d4b366;
    --dark-gold: #b8943f;
    --background-light: #f8fffe;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
}

/* إعدادات عامة */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Almarai', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الهيدر */
.site-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: white;
}

/* Hero Header للصفحة الرئيسية */
.hero-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 0;
}

.hero-content {
    text-align: center;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.hero-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-button .nav-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.nav-button .nav-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ألوان مختلفة للأزرار */
.nav-directors {
    background: rgba(255, 193, 7, 0.2);
}

.nav-programs {
    background: rgba(40, 167, 69, 0.2);
}

.nav-centers {
    background: rgba(220, 53, 69, 0.2);
}

.nav-sponsors {
    background: rgba(13, 110, 253, 0.2);
}

.nav-directors:hover {
    background: rgba(255, 193, 7, 0.3);
}

.nav-programs:hover {
    background: rgba(40, 167, 69, 0.3);
}

.nav-centers:hover {
    background: rgba(220, 53, 69, 0.3);
}

.nav-sponsors:hover {
    background: rgba(13, 110, 253, 0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-navigation {
        gap: 10px;
    }
    
    .nav-button {
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .nav-button .nav-icon {
        font-size: 1.5rem;
    }
    
    .nav-button .nav-text {
        font-size: 0.8rem;
    }
}

.site-header {
    padding: 1.5rem 0 0 0;
    box-shadow: 0 4px 12px rgba(21, 107, 104, 0.15);
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: visible;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo .logo-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo .logo-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo img {
    height: 70px;
    width: auto;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.logo .logo-link:hover img {
    filter: brightness(1.2);
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

/* 🍔 زر الهمبرجر المحسّن - التعريف الأساسي */
.mobile-menu-toggle {
    display: none;
}

/* تعريف بسيط وقوي للخطوط */
.hamburger-line {
    display: block !important;
    width: 30px !important;
    height: 4px !important;
    background: #ffffff !important;
    margin: 5px auto !important;
    transition: all 0.3s ease !important;
    transform-origin: center !important;
    border-radius: 2px !important;
}

/* تصحيح الزر */
.mobile-menu-toggle {
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* تأكد من ظهور الخطوط بشكل منفصل */
.mobile-menu-toggle .hamburger-line:first-child {
    margin-top: 0 !important;
}

.mobile-menu-toggle .hamburger-line:last-child {
    margin-bottom: 0 !important;
}

/* تجريبي - لون مؤقت للتأكد من الظهور */
.mobile-menu-toggle .hamburger-line {
    background: #ff0000 !important; /* أحمر مؤقت */
}

/* جميع تعريفات الزر موجودة داخل media query */

@media (max-width: 768px) {
    /* إظهار زر الهمبرجر في الشاشات المحمولة - تحديث جديد */
    .mobile-menu-toggle {
        display: flex !important;
        margin: 0 auto 15px auto;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        cursor: pointer !important;
        padding: 10px !important;
        border-radius: 6px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transition: all 0.3s ease !important;
        width: 50px !important;
        height: 45px !important;
        position: relative !important;
    }
    
    .mobile-menu-toggle .hamburger-line {
        width: 30px !important;
        height: 4px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        display: block !important;
        margin: 5px 0 !important;
        position: relative !important;
        transform-origin: center !important;
    }
    
    .mobile-menu-toggle .hamburger-line:first-child {
        margin-top: 0 !important;
    }
    
    .mobile-menu-toggle .hamburger-line:last-child {
        margin-bottom: 0 !important;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }
    
    .mobile-menu-toggle:hover span,
    .mobile-menu-toggle:hover .hamburger-line {
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .mobile-menu-toggle:active {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: scale(0.95) !important;
    }
    
    .mobile-menu-toggle.active {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 9px) !important;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0 !important;
        transform: scale(0) !important;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -9px) !important;
    }
    
    .nav-links {
        display: none !important;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        position: fixed;
        top: 65px;
        left: 50%;
        margin-left: -140px;
        width: 280px;
        z-index: 9999;
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.15),
            0 4px 20px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(21, 107, 104, 0.1);
        max-height: 80vh;
        overflow-y: auto;
        border: 1px solid rgba(21, 107, 104, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: none;
        padding: 8px 0;
        

    }
    

    
    .nav-links.mobile-open {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }
    

    
    /* إزالة السهم - لا نريده */
    
    .secondary-navigation {
        text-align: center;
        padding: 15px 0;
        position: relative;
    }
    
    .secondary-navigation {
        position: relative;
    }
    
    .secondary-navigation .container {
        position: relative;
        overflow: visible;
    }
}

@media (min-width: 769px) {
    /* إخفاء زر الهمبرجر في الشاشات الكبيرة */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        flex-direction: row !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .nav-links {
        top: 60px;
        margin-left: -45%;
        width: 90%;
        max-width: 260px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 10px 16px;
        margin: 2px 8px;
    }
    
    .mobile-menu-toggle {
        width: 38px;
        height: 34px;
        padding: 5px;
    }
    
    .mobile-menu-toggle span {
        width: 26px;
        height: 2px;
    }
}

/* تحسينات للشاشات الصغيرة للغاية */
@media (max-width: 360px) {
    .nav-links {
        top: 55px;
        margin-left: -47%;
        width: 94%;
        min-width: 220px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px 14px;
        margin: 1px 6px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 32px;
        padding: 4px;
    }
    
    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
    }
}

/* تحسينات شاشات التابلت */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-links {
        top: 70px;
        margin-left: -150px;
        width: 300px;
        max-width: 300px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 12px 24px;
        margin: 3px 10px;
    }
    
    .mobile-menu-toggle {
        width: 42px;
        height: 38px;
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
    }
}

/* تحسينات للشاشات الكبيرة جداً */
@media (min-width: 1200px) {
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .nav-icon {
        font-size: 1.3rem;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #156b68;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    margin: 2px 12px;
    border: 1px solid transparent;
    font-size: 15px;
}

.nav-link:last-child {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.nav-link:hover,
.nav-link.active {
    background: #156b68;
    color: white;
    border-color: #d4af37;
    transform: translateX(5px);
}

.nav-link:hover::after,
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px 2px 0 0;
}

.nav-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* القائمة الرئيسية */
.main-navigation {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(10px);
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-menu li a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.main-menu li a:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(202, 164, 83, 0.3);
}

.main-menu li a:active {
    transform: translateY(0);
}

/* القائمة الثانوية */
.secondary-navigation {
    background: rgba(21, 107, 104, 0.95);
    border-top: 2px solid var(--primary-gold);
    backdrop-filter: blur(10px);
    position: relative; /* لضمان ظهور الزر بشكل صحيح */
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.nav-link:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-gold);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link:hover::after,
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gold);
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-text {
    font-weight: 500;
    font-size: 1rem;
}

/* تنسيق بطاقات المؤسسات الراعية */
.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.institution-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(21, 107, 104, 0.1);
}

.institution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(21, 107, 104, 0.2);
}

.institution-logo {
    text-align: center;
    padding: 1.5rem 1.5rem 0;
}

.institution-logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.institution-info {
    padding: 1.5rem;
}

.institution-info h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.4;
}

.institution-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.institution-info h3 a:hover {
    color: var(--primary-gold);
}

.institution-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.institution-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.detail-icon {
    font-size: 1.1rem;
    min-width: 20px;
}

.detail-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 100px;
}

.detail-value {
    color: #666;
    flex: 1;
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-value a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

.institution-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-green) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(21, 107, 104, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--light-gold) 100%);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(202, 164, 83, 0.4);
}

.btn-secondary {
    background: rgba(21, 107, 104, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.no-institutions {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.no-content-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-institutions h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-institutions p {
    color: #666;
    font-size: 1.1rem;
}
.site-main {
    min-height: 600px;
    padding: 50px 0 15px 0;  /* تقليل المسافة السفلية من 50px إلى 15px */
}

.page-content {
    background: white;
    border-radius: 12px;
    margin: 20px 0 5px 0;  /* تقليل المسافة السفلية إلى 5px فقط */
}

.page-article {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(21, 107, 104, 0.08);
    margin-bottom: 30px;
    border-top: 4px solid var(--primary-gold);
}

.page-title {
    color: var(--primary-green);
    border-bottom: 3px solid var(--primary-gold);
    padding-bottom: 20px;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

/* بطاقات مدراء البرامج */
.program-directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.director-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(21, 107, 104, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-gold);
}

.director-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(21, 107, 104, 0.15);
}

.director-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

.director-info {
    padding: 25px;
}

/* تجاوز التنسيق القديم للـ director-info في البطاقات */
.directors-grid .director-card .director-info {
    padding: 0 !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.3 !important;
}

.director-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.director-specialty,
.director-center,
.director-institution,
.director-country {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.director-specialty {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 1rem;
}

/* التذييل */
.site-footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-info p {
    margin: 0;
    color: #a0f0ed;
    font-size: 0.95rem;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.footer-menu li a {
    color: #a0f0ed;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.footer-menu li a:hover {
    color: white;
    background: var(--primary-gold);
    transform: translateY(-2px);
}

/* رابط الموقع الرسمي في الفوتر */
.footer-website-link {
    color: #a0f0ed !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.footer-website-link:hover {
    color: var(--primary-gold) !important;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(202, 164, 83, 0.3);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    
    .main-menu li a {
        text-align: center;
        padding: 15px;
    }
    
    .secondary-navigation .nav-links {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 1rem;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .institutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .page-article {
        padding: 25px 20px;
    }
    
    .program-directors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* أنماط الفلاتر العامة */
.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    align-items: flex-end;
    font-family: 'Almarai', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* 🎪 تأثيرات القائمة العائمة المذهلة */
@keyframes menuSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px) scale(0.8) rotateX(-25deg);
        filter: blur(8px);
    }
    30% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(-20px) scale(0.9) rotateX(-15deg);
        filter: blur(4px);
    }
    60% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(-5px) scale(1.05) rotateX(-5deg);
        filter: blur(2px);
    }
    80% {
        opacity: 0.9;
        transform: translateX(-50%) translateY(2px) scale(1.02) rotateX(2deg);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1) rotateX(0deg);
        filter: blur(0px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✨ تأثير تدرج الظهور للروابط */
@keyframes linkFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-family: 'Almarai', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 2px solid rgba(21, 107, 104, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Almarai', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 107, 104, 0.1);
}

.filter-group .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Almarai', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filter-group .btn-primary {
    background: var(--primary-color);
    color: white;
}

.filter-group .btn-primary:hover {
    background: #0f5b57;
    transform: translateY(-2px);
}

.filter-group .btn-secondary {
    background: #6c757d;
    color: white;
}

.filter-group .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* إصلاح الفلاتر للموبايل في جميع الصفحات */
@media (max-width: 768px) {
    
    /* إخفاء القائمة افتراضياً في الموبايل */
    .nav-links {
        display: none !important;
        position: static;
        background: var(--primary-color);
        flex-direction: column;
        margin-top: 10px;
        border-radius: 8px;
        overflow: hidden;
        gap: 0;
    }
    
    /* إظهار القائمة عند التفعيل */
    .nav-links.mobile-open {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
    }
    
    /* إصلاح قائمة التنقل للموبايل */
    .secondary-navigation {
        display: block;
        position: relative;
    }
    
    .nav-link {
        padding: 16px 20px;
        border-right: none;
        border-bottom: none;
        justify-content: flex-start;
        text-align: right;
        margin: 6px 16px;
        border-radius: 14px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.1);
        animation: linkFadeIn 0.4s ease-out;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(212, 175, 55, 0.2), 
            transparent);
        transition: left 0.6s;
    }
    
    .nav-link:hover::before {
        left: 100%;
    }
    
    .nav-link:hover {
        background: rgba(212, 175, 55, 0.2);
        border-color: #d4af37;
        transform: translateX(4px);
    }
    
    .nav-link:last-child {
        margin-bottom: 16px;
    }
    
    .nav-link:first-child {
        margin-top: 16px;
    }
    
    .nav-icon {
        font-size: 1.4rem;
        margin-left: 12px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover .nav-icon {
        transform: scale(1.1);
    }
    
    .nav-text {
        font-size: 1.1rem;
        font-weight: 600;
        color: #ffffff !important;
        text-shadow: none;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover .nav-text {
        color: var(--primary-gold) !important;
    }
    
    /* 🎭 تأثيرات الظهور المتأخرة للروابط */
    .nav-links.mobile-open .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.mobile-open .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.mobile-open .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.mobile-open .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.mobile-open .nav-link:nth-child(5) { animation-delay: 0.5s; }
    
    /* إصلاح الفلاتر */
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
        font-size: 16px; /* منع التكبير في iOS */
    }
    
    .filter-group button {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* تحسينات إضافية للشاشات الصغيرة جداً */
    .nav-link {
        padding: 12px 15px;
    }
    
    .nav-icon {
        font-size: 1.3rem;
    }
    
    .nav-text {
        font-size: 1rem;
    }
    
    .page-article {
        padding: 20px 15px;
    }
    
    .director-card {
        padding: 20px;
        margin-bottom: 15px;
    }
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 107, 104, 0.3);
}

.back-to-top:hover {
    background: var(--primary-gold);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* تأثيرات الريبل للروابط */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

/* تحسين النماذج */
.filter-select,
.search-input {
    transition: all 0.3s ease;
}

.filter-select:focus,
.search-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(21, 107, 104, 0.1) !important;
    outline: none;
}

/* الأيقونة للروابط الخارجية */
.external-icon {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 3px;
}

/* تحسينات إضافية للمحتوى */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .director-info {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .site-main {
        padding: 30px 0;
    }
    
    .site-title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* تحسينات إضافية للتفاعل والاستجابة */
.modern-card {
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.modern-card:hover::before {
    left: 100%;
}

/* تأثيرات البحث */
.search-result-highlight {
    animation: searchHighlight 1s ease-in-out;
    position: relative;
}

@keyframes searchHighlight {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 8px 30px rgba(21, 107, 104, 0.15);
    }
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0) rotate(0deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    box-shadow: 0 6px 20px rgba(21, 107, 104, 0.3);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 8px 25px rgba(21, 107, 104, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* تحسينات التحميل */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 255, 254, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* تحسينات الفلاتر */
.filter-group {
    position: relative;
}

.filter-group input:focus,
.filter-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(21, 107, 104, 0.1);
}

.filter-group label {
    position: relative;
    transition: color 0.3s ease;
}

.filter-group input:focus + label,
.filter-group select:focus + label {
    color: var(--primary-green);
}

/* Lazy Loading للصور */
img.lazy {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

img.lazy.loaded {
    opacity: 1;
}

/* تحسينات البطاقات للمحتوى الفارغ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* تحسينات الطباعة */
@media print {
    .advanced-filters,
    .back-to-top {
        display: none !important;
    }
    
    .modern-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .archive-header {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd;
    }
    
    .stat-item {
        background: white !important;
        border: 1px solid #ddd;
    }
}

/* تحسينات إضافية للجوال */
@media (max-width: 768px) {
    .quick-filters {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .search-box {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link:last-child {
        border-left: none;
        border-bottom: none;
    }
    

    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-title .icon {
        font-size: 2.5rem;
    }
    
    .stat-item {
        padding: 1rem;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* تنسيق قسم الإحصائيات الموحد */
.stats-section {
    margin: 2rem 0 0.5rem 0;  /* تقليل المسافة السفلية إلى 0.5rem فقط */
    padding: 2rem 2rem 1rem 2rem;  /* تقليل الـ padding السفلي أكثر */
    background: linear-gradient(135deg, rgba(21, 107, 104, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(21, 107, 104, 0.1);
}

/* تقليل المسافة السفلية للصفحة الرئيسية */
.home .stats-section {
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
}

.home .page-content {
    margin-bottom: 0 !important;
    padding-bottom: 0.5rem !important;
}

/* قواعد إضافية لضمان تطبيق التغييرات */
body.home .stats-section {
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
}

body.home .page-content {
    margin: 10px 0 10px 0 !important; /* تقليل المسافة العلوية والسفلية */
    padding-bottom: 0.5rem !important;
}

/* تقليل مسافة الـ container في الصفحة الرئيسية */
body.home .container {
    padding-bottom: 0 !important;
}

body.home .site-main {
    padding: 20px 0 10px 0 !important; /* تقليل المسافة العلوية من 50px إلى 20px */
    min-height: auto !important; /* إزالة الحد الأدنى للارتفاع */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-gold);
    box-shadow: 0 6px 20px rgba(21, 107, 104, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    color: var(--primary-gold);  /* تغيير اللون للذهبي */
    font-weight: 600;  /* زيادة سمك الخط */
}

/* تنسيق قسم الفلاتر الموحد */
.filters-section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(21, 107, 104, 0.1);
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* تنسيق أزرار الفلاتر */
.filter-group .btn {
    margin-right: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.filter-group .btn-primary {
    background: var(--primary-color);
    color: white;
}

.filter-group .btn-primary:hover {
    background: var(--primary-gold);
    color: var(--primary-color);
}

.filter-group .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.filter-group .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* تنسيق التصفح (Pagination) مبسط وفعال */
.pagination-wrapper {
    margin: 2.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    width: 100%;
    text-align: center;
}

/* كونتينر الـ pagination - يعمل مع أي نوع من أنواع WordPress pagination */
.pagination-wrapper .page-numbers,
.pagination-wrapper ul.page-numbers,
.pagination-wrapper > *:not(.scroll-indicator) {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    direction: rtl;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    list-style: none;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    width: fit-content;
    max-width: 90%;
}

/* إزالة أي تنسيقات WordPress افتراضية قد تؤثر على التمركز */
.pagination-wrapper .page-numbers *,
.pagination-wrapper ul.page-numbers *,
.pagination-wrapper * {
    box-sizing: border-box !important;
}

/* إزالة أي تنسيقات افتراضية */
.pagination-wrapper ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* تنسيق جميع الروابط والعناصر داخل الـ pagination */
.pagination-wrapper a,
.pagination-wrapper span,
.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span,
.pagination-wrapper ul.page-numbers li a,
.pagination-wrapper ul.page-numbers li span,
.pagination-wrapper .pagination-prev,
.pagination-wrapper .pagination-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    margin: 0 !important;
    color: #64748b !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    line-height: 1 !important;
    vertical-align: middle;
    box-sizing: border-box !important;
    font-family: inherit;
}

/* تأثير الحوم */
.pagination-wrapper a:hover,
.pagination-wrapper .page-numbers a:hover,
.pagination-wrapper ul.page-numbers li a:hover,
.pagination-wrapper .pagination-prev:hover,
.pagination-wrapper .pagination-next:hover {
    background: var(--primary-green) !important;
    color: white !important;
    border-color: var(--primary-green) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 107, 104, 0.2);
}

/* الصفحة الحالية */
.pagination-wrapper .current,
.pagination-wrapper .page-numbers .current,
.pagination-wrapper ul.page-numbers li .current,
.pagination-wrapper span.current {
    background: #caa453 !important;
    color: white !important;
    font-weight: 600;
    border-color: #caa453 !important;
    box-shadow: 0 2px 8px rgba(202, 164, 83, 0.3);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* أزرار التنقل */
.pagination-wrapper .prev,
.pagination-wrapper .next,
.pagination-wrapper .pagination-prev,
.pagination-wrapper .pagination-next,
.pagination-wrapper .page-numbers .prev,
.pagination-wrapper .page-numbers .next,
.pagination-wrapper ul.page-numbers li .prev,
.pagination-wrapper ul.page-numbers li .next {
    background: var(--primary-green) !important;
    color: white !important;
    border-color: var(--primary-green) !important;
    font-weight: 600;
    min-width: 80px;
    font-size: 13px;
    text-align: center;
    padding: 0 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover,
.pagination-wrapper .pagination-prev:hover,
.pagination-wrapper .pagination-next:hover,
.pagination-wrapper .page-numbers .prev:hover,
.pagination-wrapper .page-numbers .next:hover,
.pagination-wrapper ul.page-numbers li .prev:hover,
.pagination-wrapper ul.page-numbers li .next:hover {
    background: var(--light-green) !important;
    color: white !important;
    border-color: var(--light-green) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(21, 107, 104, 0.25);
}

/* النقاط */
.pagination-wrapper .dots,
.pagination-wrapper .page-numbers .dots,
.pagination-wrapper ul.page-numbers li .dots {
    background: transparent !important;
    color: #94a3b8 !important;
    cursor: default;
    font-weight: 700;
    border: none !important;
    font-size: 16px;
    min-width: 30px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pagination-wrapper .dots:hover,
.pagination-wrapper .page-numbers .dots:hover,
.pagination-wrapper ul.page-numbers li .dots:hover {
    background: transparent !important;
    color: #94a3b8 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* تحسينات للهواتف المحمولة */
@media (max-width: 768px) {
    .pagination-wrapper {
        margin: 2rem auto;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .pagination-wrapper .page-numbers,
    .pagination-wrapper ul.page-numbers,
    .pagination-wrapper > *:not(.scroll-indicator) {
        gap: 0.3rem;
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 auto;
        width: fit-content;
        max-width: 95%;
    }
    
    .pagination-wrapper a,
    .pagination-wrapper span,
    .pagination-wrapper .page-numbers a,
    .pagination-wrapper .page-numbers span,
    .pagination-wrapper ul.page-numbers li a,
    .pagination-wrapper ul.page-numbers li span,
    .pagination-wrapper .pagination-prev,
    .pagination-wrapper .pagination-next {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0;
        text-align: center;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .pagination-wrapper .prev,
    .pagination-wrapper .next,
    .pagination-wrapper .pagination-prev,
    .pagination-wrapper .pagination-next {
        min-width: 65px;
        font-size: 12px;
        text-align: center;
        padding: 0 8px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* تأثير عند الضغط */
.pagination-wrapper a:active,
.pagination-wrapper .page-numbers a:active,
.pagination-wrapper ul.page-numbers li a:active {
    transform: translateY(0) scale(0.98);
}

/* تأثير التركيز للوصولية */
.pagination-wrapper a:focus,
.pagination-wrapper .page-numbers a:focus,
.pagination-wrapper ul.page-numbers li a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* تحسين خاص للأرقام فقط */
.pagination-wrapper a[href]:not(.prev):not(.next):not(.dots),
.pagination-wrapper span.current {
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: top !important;
    font-size: 14px !important;
}

/* معالجة خاصة للأعداد الكبيرة جداً (أكثر من 100 صفحة) */
.pagination-wrapper.large-pagination {
    position: relative;
}

.pagination-wrapper.large-pagination::before {
    content: 'يمكنك التمرير لرؤية المزيد من الصفحات ←';
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

/* تحسين التمرير الأفقي للأعداد الكبيرة */
.pagination-wrapper .page-numbers::-webkit-scrollbar,
.pagination-wrapper ul.page-numbers::-webkit-scrollbar {
    height: 6px;
}

.pagination-wrapper .page-numbers::-webkit-scrollbar-track,
.pagination-wrapper ul.page-numbers::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
    margin: 0 10px;
}

.pagination-wrapper .page-numbers::-webkit-scrollbar-thumb,
.pagination-wrapper ul.page-numbers::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 3px;
}

.pagination-wrapper .page-numbers::-webkit-scrollbar-thumb:hover,
.pagination-wrapper ul.page-numbers::-webkit-scrollbar-thumb:hover {
    background: var(--light-green);
}

/* مؤشر بصري للدلالة على وجود صفحات أكثر */
.pagination-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 80%;
    background: linear-gradient(to right, white 0%, transparent 100%);
    pointer-events: none;
    border-radius: 0 8px 8px 0;
    z-index: 2;
}

/* تحسينات للأعداد الكبيرة على الشاشات الكبيرة */
/* تحسينات الـ Pagination للأعداد الكبيرة */
.pagination-wrapper.has-scroll {
    position: relative;
}

.pagination-wrapper .scroll-indicator {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

/* تحسينات للأعداد الكبيرة على الشاشات الكبيرة */
@media (min-width: 1200px) {
    .pagination-wrapper {
        max-width: 95%;
    }
    
    /* عرض المزيد من الأرقام على الشاشات الكبيرة */
    .pagination-wrapper a:not(.prev):not(.next):not(.current):not(.dots):nth-child(n+12) {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    /* عرض 9 أرقام على الأجهزة اللوحية */
    .pagination-wrapper a:not(.prev):not(.next):not(.current):not(.dots):nth-child(n+10) {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section,
    .filters-section {
        margin: 1rem 0;
        padding: 1.5rem;
    }
}

/* تنسيق الصفحة الرئيسية - البطاقات الرئيسية */
.navigation-cards-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-gold) 100%);
    border-radius: 2px;
}

.navigation-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.navigation-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.navigation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-gold);
}

.navigation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-gold) 100%);
}

.card-icon {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.card-icon .icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.card-content {
    padding: 0 2rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(21, 107, 104, 0.1) 0%, rgba(202, 164, 83, 0.1) 100%);
    border-radius: 10px;
}

.card-count {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.card-count-label {
    color: var(--primary-gold);
    font-weight: 600;
}

.card-action {
    padding: 1.5rem 2rem 2rem;
    margin-top: auto;
}

.card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-green) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 107, 104, 0.3);
}

.card-link:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--light-gold) 100%);
    color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(202, 164, 83, 0.4);
}

.link-text {
    font-size: 1.1rem;
}

.link-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.card-link:hover .link-arrow {
    transform: translateX(-5px);
}

/* ألوان مخصصة لكل بطاقة */
.sponsors-card .card-icon .icon {
    color: #8B4513;
}

.centers-card .card-icon .icon {
    color: #2E8B57;
}

.programs-card .card-icon .icon {
    color: #4682B4;
}

.directors-card .card-icon .icon {
    color: #B8860B;
}

/* إحصائيات الصفحة الرئيسية */
.main-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.main-stat-card {
    background: linear-gradient(135deg, rgba(21, 107, 104, 0.1) 0%, rgba(202, 164, 83, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-stat-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.main-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.main-stat-card .stat-label {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 1.1rem;
}

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* تجاوب البطاقات للهواتف */
@media (max-width: 768px) {
    .navigation-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .navigation-card {
        min-height: 280px;
    }
    
    .card-icon .icon {
        font-size: 3rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .main-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .navigation-card {
        min-height: 250px;
    }
    
    .card-icon {
        padding: 1.5rem 1.5rem 0.5rem;
    }
    
    .card-content {
        padding: 0 1.5rem;
    }
    
    .card-action {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .main-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Grid layouts للصفحات الفرعية */
.centers-grid,
.programs-grid,
.directors-grid,
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    align-items: stretch;
}

/* بطاقات العناصر */
.center-card,
.program-card,
.director-card,
.sponsor-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(21, 107, 104, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.center-card:hover,
.program-card:hover,
.director-card:hover,
.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(21, 107, 104, 0.15);
    border-color: var(--primary-gold);
}

/* Headers للبطاقات */
.center-header,
.program-header,
.director-header,
.sponsor-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(21, 107, 104, 0.1);
}

/* تنسيق خاص لرأس بطاقة مدير البرنامج */
.director-header {
    margin-bottom: 1rem; /* تقليل المسافة السفلية */
    padding-bottom: 0.75rem; /* تقليل المسافة السفلية */
}

/* Titles للبطاقات */
.center-title,
.program-title,
.director-title,
.sponsor-title {
    margin: 0 0 0.5rem 0;
    color: var(--primary-green);
}

.center-title a,
.program-title a,
.director-title a,
.sponsor-title a {
    color: inherit;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.center-title a:hover,
.program-title a:hover,
.director-title a:hover,
.sponsor-title a:hover {
    color: var(--light-green);
}

/* Details sections */
.center-details,
.program-details,
.director-details,
.sponsor-details {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* تنسيق خاص لتفاصيل مدير البرنامج */
.director-details {
    margin-bottom: 1rem; /* تقليل المسافة السفلية */
    padding: 0.5rem; /* تقليل الـ padding */
}

.director-card .director-details {
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Info sections */
.center-info,
.program-info,
.director-info,
.sponsor-info {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* تجاوز التنسيق العام للـ director-info في صفحة أرشيف المدراء */
.directors-grid .director-info,
.director-card .director-details .director-info {
    margin-bottom: 0.2rem !important;
    line-height: 1.2 !important;
    font-size: 0.9rem;
}

/* تنسيق خاص لتقليل المسافات في بطاقة مدير البرنامج */
.director-card .director-info {
    margin-bottom: 0.2rem !important; /* تقليل المسافة بين الأسطر بشكل أكبر */
    line-height: 1.3 !important; /* تقليل المسافة بين الأسطر */
    padding: 0 !important; /* إزالة الـ padding الزائد */
}

/* تنسيق خاص للتفاصيل داخل بطاقة مدير البرنامج */
.director-card .director-details {
    padding: 0.5rem;
}

.director-card .director-details .director-info {
    margin-bottom: 0.2rem !important;
    line-height: 1.3 !important;
}

.center-info strong,
.program-info strong,
.director-info strong,
.sponsor-info strong {
    color: var(--primary-green);
}

/* تنسيق صورة مدير البرنامج - إطار دائري جميل */
.director-image {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.director-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(21, 107, 104, 0.2);
    transition: all 0.3s ease;
}

.director-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(21, 107, 104, 0.3);
}

/* تنسيق خاص لعرض الدولة في بطاقة مدير البرنامج */
.director-country {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* تنسيقات إضافية لضغط المسافات في بطاقة مدير البرنامج */
.director-card .director-info + .director-info {
    margin-top: 0 !important;
}

.director-card .director-header {
    margin-bottom: 0.8rem !important;
    padding-bottom: 0.5rem !important;
}

.director-card .director-title {
    margin-bottom: 0.3rem !important;
}

.director-card .director-country {
    margin-bottom: 0.3rem !important;
}

/* إضافة تنسيقات شاملة لضغط المسافات في بطاقات مدراء البرامج */
.archive.post-type-archive-program_director .director-info {
    margin-bottom: 0.15rem !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

.archive.post-type-archive-program_director .director-card {
    padding: 1.5rem !important;
}

.archive.post-type-archive-program_director .director-details {
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
}

/* تنسيق خاص للمؤسسة الراعية في بطاقة مدير البرنامج */
.director-card .director-info.sponsor-info {
    color: var(--primary-gold);
    font-weight: 500;
}

.director-card .director-info strong {
    color: var(--primary-green);
}

/* Actions sections */
.center-actions,
.program-actions,
.director-actions,
.sponsor-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

/* Stats sections */
.sponsor-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(21, 107, 104, 0.1);
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    background: rgba(21, 107, 104, 0.05);
    border-radius: 1rem;
}

.stat-item strong {
    color: var(--primary-green);
    font-size: 1rem;
}

/* Country tags and sponsor meta */
.sponsor-meta {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.sponsor-country,
.center-country {
    text-align: center;
    margin-bottom: 15px;
}

.sponsor-country.no-country,
.center-country.no-country {
    font-style: italic;
    color: #dc3545;
    font-size: 0.9em;
}

.meta-icon {
    font-size: 1.1rem;
}

.country-tag,
.country-badge {
    background: var(--primary-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    margin: 0.125rem;
    display: inline-block;
    font-weight: 500;
}

/* تحسينات لعرض المعلومات التشخيصية */
.diagnostic-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #495057;
}

.diagnostic-info h4 {
    color: #343a40;
    margin-bottom: 10px;
}

/* تحسينات لبطاقات الدول في صفحة المؤسسة المفردة */
.countries-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.countries-showcase .country-tag {
    position: relative;
}

.countries-showcase .country-tag.current {
    background: var(--primary-green);
    box-shadow: 0 2px 8px rgba(21, 107, 104, 0.3);
}

.countries-showcase .country-tag.current::after {
    content: "✓";
    margin-right: 5px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .centers-grid,
    .programs-grid,
    .directors-grid,
    .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Global Almarai Font Application */
* {
    font-family: 'Almarai', 'Cairo', Arial, sans-serif !important;
}

body, html {
    font-family: 'Almarai', 'Cairo', Arial, sans-serif !important;
}

/* Ensure all common elements use Almarai */
h1, h2, h3, h4, h5, h6, p, div, span, a, li, td, th, input, select, textarea, button, label {
    font-family: 'Almarai', 'Cairo', Arial, sans-serif !important;
}

/* Specific elements that might need reinforcement */
.page-title, .site-title, .hero-title, .section-title, .card-title,
.institution-card, .director-card, .stat-card, .modern-card,
.navigation, .menu, .filter-controls, .search-form,
.wp-block-group, .wp-block-heading, .entry-title, .widget-title {
    font-family: 'Almarai', 'Cairo', Arial, sans-serif !important;
}

/* ========== إصلاح نهائي لزر الهمبرجر ========== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 50px !important;
        height: 45px !important;
        padding: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        margin: 0 auto 15px auto !important;
    }
    
    .hamburger-line {
        width: 32px !important;
        height: 4px !important;
        background: #ffffff !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        transform-origin: center !important;
        display: block !important;
        margin: 0 !important;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 7.5px) !important;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7.5px) !important;
    }
}

/* تنسيقات بطاقات برامج الاختصاص - لتوحيد التصميم مع بطاقات المدراء */
.program-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(21, 107, 104, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-gold);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(21, 107, 104, 0.15);
}

.program-card a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.program-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
}

.program-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
    line-height: 1.3;
}

.program-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.program-icon {
    color: var(--primary-gold);
    font-size: 1rem;
}

.program-directors {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(21, 107, 104, 0.1);
}

.program-directors-label {
    color: var(--primary-green);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.program-directors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.program-director-tag {
    background: var(--background-light);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(21, 107, 104, 0.2);
}

/* تنسيقات responsive للبطاقات */
@media (max-width: 768px) {
    .specialty-programs-grid,
    .program-directors-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .program-card {
        margin-bottom: 20px;
    }
    
    .program-info {
        padding: 15px;
    }
    
    .program-name {
        font-size: 1.1rem;
    }
}
/* ===== ������� ���� ������ �������� ===== */
.program-detail-page {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.program-header-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-green);
}

.program-type-badge-large {
    display: inline-block;
    padding: 8px 25px;
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    color: white;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(202, 164, 83, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(21, 107, 104, 0.15);
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    color: var(--primary-green);
    font-weight: 600;
}

.info-value a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: var(--primary-gold);
}

.section-title {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-green);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100px;
    height: 2px;
    background: var(--primary-gold);
}

.training-centers-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.training-centers-box p {
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
    white-space: pre-line;
}

.director-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-top: 3px solid var(--primary-green);
}

.director-card h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.director-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.director-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.director-info-item strong {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.director-info-item span {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
}

.director-info-item a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.director-info-item a:hover {
    color: var(--primary-gold);
}

.deputy-director-card {
    border-top-color: var(--primary-gold);
}

.deputy-director-card h3 {
    color: var(--primary-gold);
}

.program-type-badge {
    margin-top: 10px;
}

.type-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(202, 164, 83, 0.25);
}

@media (max-width: 768px) {
    .program-detail-page {
        padding: 25px 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .director-info-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
