@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

:root {
    --gold: #D4AF37;
    --silver: #A8A8A8;
    --bronze: #CD7F32;
}

.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; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gold-txt { color: var(--gold); }
.silver-txt { color: var(--silver); }
.bronze-txt { color: var(--bronze); }

.ut-top-row { width: 100%; margin-bottom: 30px; display: block; }
.ut-top-row .ut-slider-wrapper { width: 100%; }

.ut-columns-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }

.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; }
.bronze-year { background: var(--bronze); color: #fff; }

.ut-slider-wrapper {
    position: relative;
    padding: 10px 0; 
    width: 100%;
}

.ut-slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(5px, 2vw, 15px);
    width: 100%;
}

.ut-slider-nav-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.ut-nav-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
    color: #666;
    cursor: pointer;
}

.ut-nav-btn:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.ut-custom-block {
    min-width: 0; 
    transition: transform 0.3s ease;
    word-break: break-word;
}

.ut-custom-block:hover {
    transform: translateY(-5px);
}

.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; height: 540px; 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: 10%; 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: 900px) {
    .ut-columns-container { grid-template-columns: 1fr; }
}

@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; }
}

#ut-custom-lightbox { display: none; position: fixed; z-index: 99999999; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
#ut-custom-lightbox.show { display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 1; }
.ut-lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 80vh; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: scale(0.8); transition: transform 0.3s ease; }
#ut-custom-lightbox.show .ut-lightbox-content { transform: scale(1); }
.ut-close-lightbox { position: absolute; top: 20px; right: 30px; color: #f1f1f1; font-size: 45px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 4; }
.ut-close-lightbox:hover { color: var(--gold); }
.ut-lightbox-prev, .ut-lightbox-next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -30px; color: rgba(255, 255, 255, 0.7); font-weight: bold; font-size: 40px; transition: 0.3s ease; user-select: none; z-index: 3; }
.ut-lightbox-next { left: 5%; }
.ut-lightbox-prev { right: 5%; }
.ut-lightbox-prev:hover, .ut-lightbox-next:hover { color: var(--gold); transform: scale(1.1); }

@media (max-width: 600px) {
    .ut-lightbox-next { left: 2%; font-size: 30px; }
    .ut-lightbox-prev { right: 2%; font-size: 30px; }
}