@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

:root {
    --gold: #D4AF37;
    --silver: #A8A8A8;
}

body, .ut-front-wrapper { font-family: 'Cairo', sans-serif; direction: rtl; }

.ut-type-title { text-align: center; font-size: 1.3rem; font-weight: 700; margin: 15px 0; }
.gold-txt { color: var(--gold); }
.silver-txt { color: var(--silver); }

.ut-columns-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ut-year-card { padding: 15px; border-radius: 12px; text-align: center; cursor: pointer; margin-bottom: 10px; font-weight: 700; transition: 0.3s; }
.gold-year { background: var(--gold); color: #fff; }
.silver-year { background: var(--silver); color: #fff; }

/* المودال - تم تصغير الحجم 10% وتحسين التجاوب */
.ut-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 99999; justify-content: center; align-items: center; padding: 10px; }
.ut-modal-content { 
    background: #fff; 
    width: 450px; /* تم التصغير من 500 */
    height: 540px; /* تم التصغير من 600 */
    max-width: 95%; 
    max-height: 90vh;
    border-radius: 20px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.ut-modal-header { height: 40%; display: flex; padding: 15px; background: #fafafa; border-bottom: 1px solid #eee; }
.ut-header-right { flex: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid #f0f0f0; }
.ut-header-left { flex: 0.8; display: flex; align-items: center; justify-content: center; }

.ut-avatar-frame img { 
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover; 
    border: 1px solid #ddd; padding: 3px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
#ut-modal-name { font-size: 1.1rem; margin: 8px 0 0; font-weight: 900; color: #222; }
#ut-modal-job { font-size: 0.85rem; color: #666; margin: 0; }
.ut-meta-box { text-align: center; }
.ut-meta-box span { display: block; font-size: 1rem; font-weight: 700; color: #444; margin: 3px 0; }

.ut-modal-body { height: 50%; padding: 15px; overflow: hidden; }
.ut-bio-scroll { height: 100%; overflow-y: auto; line-height: 1.7; text-align: justify; padding-left: 10px; font-size: 0.95rem; color: #333; }
.ut-bio-scroll::-webkit-scrollbar { width: 4px; }
.ut-bio-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

.ut-modal-footer { height: 10%; background: #fff; display: flex; justify-content: center; align-items: center; border-top: 1px solid #eee; }
.ut-social-links { display: flex; gap: 20px; }
.ut-social-links a { color: #333; font-size: 1.3rem; transition: 0.3s; }

.ut-close-btn { position: absolute; top: 10px; left: 15px; font-size: 28px; cursor: pointer; z-index: 100; color: #999; transition: 0.3s; line-height: 1; }
.ut-close-btn:hover { color: #333; }

/* البحث */
.ut-search-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid #eee; background: #fff; cursor: pointer; transition: 0.2s; }
.ut-search-item:hover { background: #f9f9f9; }
.ut-search-item img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }

@media (max-width: 480px) {
    .ut-modal-header { flex-direction: column; height: auto; padding: 10px; }
    .ut-header-right { border-left: none; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    .ut-header-left { padding-top: 10px; }
    .ut-modal-content { height: auto; min-height: 500px; }
    .ut-modal-body { height: 250px; }
}