@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

/* الإعدادات العامة */
body, .ut-modal-overlay-container {
    font-family: 'Cairo', sans-serif !important;
    direction: rtl;
}

/* إصلاح مشكلة ظهور نافذة الميديا خلف نافذة الإدخال في الإدارة */
#ut-admin-form-overlay {
    z-index: 99998 !important; /* أقل من الميديا */
}

.media-modal, .media-frame {
    z-index: 100000 !important; /* أعلى من كل شيء */
}

/* تقسيم الصفحة لعمودين */
.ut-vertical-layout-columns {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 25px;
    padding: 20px;
}

.ut-column-section {
    flex: 1;
    min-height: 750px;
    padding: 25px;
    border-radius: 25px;
    background: #ffffff;
    border: 1px solid #eeeeee;
}

.ut-column-golden-style { border-top: 10px solid #D4AF37; box-shadow: 0 5px 15px rgba(212, 175, 55, 0.05); }
.ut-column-silver-style { border-top: 10px solid #e91e63; box-shadow: 0 5px 15px rgba(233, 30, 99, 0.05); }

.ut-column-header-title { text-align: center; margin-bottom: 35px; font-weight: 900; }
.gold-color { color: #D4AF37; }
.silver-color { color: #e91e63; }

/* شبكات العرض */
.ut-years-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.ut-members-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

/* نافذة العرض المنبثقة (Modal) */
.ut-modal-overlay-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.ut-modal-content-box {
    background: #ffffff;
    width: 95%;
    max-width: 1150px;
    height: 90vh; /* ارتفاع كامل للتحكم في الأقسام */
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.ut-close-icon-x {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 45px;
    cursor: pointer;
    color: #333;
    z-index: 100;
}

/* تقسيمات الهيدر/جسم/فوتر 30-50-20 */
.ut-modal-header-30p {
    height: 30%;
    display: flex;
    align-items: center;
    padding: 0 50px;
    background: #fcfcfc;
    border-bottom: 2px solid #f3f3f3;
}

.ut-modal-bio-50p {
    height: 50%;
    padding: 40px 60px;
    overflow-y: auto;
    font-size: 1.3rem;
    line-height: 2.2;
    color: #444;
}

.ut-modal-footer-20p {
    height: 20%;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

/* تفاصيل الهيدر */
.ut-modal-profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 25px;
    object-fit: cover;
    border: 6px solid #D4AF37;
    margin-left: 30px;
}

.ut-modal-main-info { flex: 1; }
.ut-modal-main-info h2 { font-size: 2.4rem; font-weight: 900; margin: 0; color: #111; }
.ut-modal-job-title { font-size: 1.4rem; color: #666; margin: 5px 0 10px; }

.ut-modal-side-meta {
    text-align: left;
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
}

#ut-modal-country-info { color: #D4AF37; margin-bottom: 8px; }

/* أيقونات التواصل الاجتماعي وهوفر الألوان */
.ut-social-icons-row { display: flex; gap: 40px; }
.ut-social-icons-row a { font-size: 36px; color: #333; transition: 0.3s; }

/* هوفر مخصص للتكريم الذهبي */
.ut-modal-active-golden .ut-social-icons-row a:hover { color: #D4AF37; transform: scale(1.15); }
/* هوفر مخصص للتكريم الفضي */
.ut-modal-active-silver .ut-social-icons-row a:hover { color: #e91e63; transform: scale(1.15); }

/* البحث والتصفح */
.ut-public-search-container { text-align: center; padding: 40px 20px; }
.ut-global-search-input {
    width: 100%;
    max-width: 650px;
    padding: 20px 35px;
    border-radius: 50px;
    border: 3px solid #D4AF37;
    font-size: 19px;
    outline: none;
    text-align: center;
}

/* كروت العرض */
.ut-year-card-design {
    padding: 35px 15px;
    text-align: center;
    border-radius: 22px;
    cursor: pointer;
    transition: 0.3s;
}

.ut-year-card-golden { background: linear-gradient(135deg, #D4AF37, #f1c40f); color: #fff; }
.ut-year-card-silver { border: 3px solid #e91e63; color: #e91e63; }

.ut-year-title-text { display: block; font-size: 14px; margin-top: 10px; font-weight: normal; opacity: 0.9; }

.ut-person-card-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.ut-person-card-item:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.ut-person-card-item img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }

@media (max-width: 1024px) {
    .ut-vertical-layout-columns { flex-direction: column; }
    .ut-modal-header-30p { flex-direction: column; height: auto; padding: 30px; text-align: center; }
    .ut-modal-profile-pic { margin: 0 0 20px 0; width: 130px; height: 130px; }
    .ut-modal-side-meta { text-align: center; margin-top: 15px; }
    .ut-modal-bio-50p { height: auto; flex: 1; }
}