/*
=========================================
TADQIQOTLAR (RESEARCH) SAHIFASI - PREMIUM ELITE
=========================================
*/

/* 1. HERO MOSLASHTIRISH */
.research-hero {
    /* Akademik muhit (Kutubxona/Laboratoriya) foni */
    background: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?q=80&w=2128') no-repeat center center / cover !important;
}

.highlight-text-premium::before {
    content: 'FAOLIYATI' !important;
}

/* 2. TIMELINE (VAQT SHKALASI) - PREMIUM */
.timeline-container-elite {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 20px 0;
}

/* Markaziy chiziq */
.timeline-container-elite::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, #07006b, #FFC107, #07006b);
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0.2;
}

.timeline-row {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-content { flex: 1; padding: 0 40px; }
.timeline-empty { flex: 1; }

/* Ikonka nuqtasi */
.timeline-icon-box {
    width: 60px; height: 60px;
    background: #ffffff;
    border: 2px solid #FFC107;
    border-radius: 50%;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    color: #07006b;
    font-size: 24px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 1), 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.timeline-row:hover .timeline-icon-box {
    background: #07006b; color: #FFC107; transform: scale(1.1);
}

/* Timeline Karta */
.timeline-card {
    background: #fff;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(7,0,107,0.05);
    position: relative;
    transition: 0.3s;
}

.timeline-row:hover .timeline-card {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(7,0,107,0.1);
    border-color: #FFC107;
}

.timeline-title {
    font-family: 'Unbounded', sans-serif;
    color: #07006b;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-card p { font-size: 0.95rem; color: #555; margin: 0; line-height: 1.6; }

/* Tekislash */
.text-end-md { text-align: right; }
.text-start-md { text-align: left; }

/* 3. RESEARCHER CARD - PREMIUM ELITE DESIGN */
.researcher-card-elite {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(7, 0, 107, 0.08); /* Yumshoq, chuqur soya */
    border: 1px solid rgba(7, 0, 107, 0.05);
    position: relative;
    transition: all 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
}

.researcher-card-elite:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(7, 0, 107, 0.12);
}

/* --- HEADER FON --- */
.researcher-header-bg {
    height: 130px; /* Fon balandligi */
    position: relative;
}


/* --- ASOSIY TANASI --- */
.researcher-body {
    padding: 0 40px 40px 40px;
    position: relative;
}

/* Flex Container */
.researcher-profile-row {
    display: flex;
    align-items: flex-end; /* Pastdan tekislash */
    gap: 30px;
    margin-top: -65px; /* Rasmni tepaga chiqarish (Negative Margin) */
}

/* --- AVATAR (RASM) --- */
.researcher-avatar {
    position: relative;
    width: 170px; height: 170px;
    flex-shrink: 0;
}

.researcher-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 20px; /* Kvadratroq lekin yumshoq burchak */
    border: 5px solid #ffffff; /* Oq hoshiya */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Bayroq */
.flag-badge {
    position: absolute;
    bottom: -10px; right: -10px;
    width: 45px; height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    background: #fff;
}
.flag-badge img { width: 100%; height: 100%; border: none; border-radius: 0; }

/* --- INFO --- */
.researcher-main-info {
    padding-bottom: 5px;
    width: 100%;
}

.r-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #07006b;
    margin-bottom: 5px;
    line-height: 1.2;
}

.r-position {
    font-size: 0.95rem;
    color: #FFC107; /* Oltin rang */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.r-degrees {
    list-style: none; padding: 0; margin: 0;
}
.r-degrees li {
    font-size: 0.95rem; color: #555; margin-bottom: 8px;
    display: flex; align-items: flex-start; gap: 10px;
}
.r-degrees i { color: #07006b; margin-top: 4px; opacity: 0.7; }

/* --- CLEAN ACCORDION (YANGI USLUB) --- */
.custom-accordion-elite .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 10px;
}

.custom-accordion-elite .accordion-button {
    background: #f8faff; /* Juda och fon */
    border-radius: 12px !important;
    font-weight: 600;
    color: #07006b;
    border: 1px solid rgba(7,0,107,0.05);
    box-shadow: none;
    padding: 15px 25px;
    transition: all 0.3s ease;
}

.custom-accordion-elite .accordion-button:not(.collapsed) {
    background: #07006b; /* Ochilganda ko'k */
    color: #fff;
    box-shadow: 0 5px 15px rgba(7,0,107,0.2);
}

/* O'q belgisi (Chevron) */
.custom-accordion-elite .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2307006b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: 0.3s;
}

.custom-accordion-elite .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion-elite .accordion-body {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 25px;
    color: #444;
    line-height: 1.6;
}

/* Ichki ro'yxat */
.clean-list { list-style: none; padding: 0; margin: 0; }
.clean-list li {
    position: relative; padding-left: 20px; margin-bottom: 10px;
}
.clean-list li::before {
    content: '•'; color: #FFC107; font-weight: bold; position: absolute; left: 0;
}

/* Seperator */
.section-divider-styled {
    font-size: 20px;
    opacity: 0.5;
    letter-spacing: 15px;
}

/* MOBIL MOSLASHUV */
@media (max-width: 768px) {
    /* Timeline */
    .timeline-container-elite::before { left: 30px; }
    .timeline-row { flex-direction: row-reverse; justify-content: flex-end; }
    .timeline-empty { display: none; }
    .timeline-icon-box { width: 50px; height: 50px; font-size: 20px; position: absolute; left: 5px; }
    .timeline-content { padding-left: 70px; padding-right: 0; text-align: left !important; }

    /* Profil */
    .researcher-profile-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -80px; /* Mobilda ko'proq ko'tarish */
    }

    .researcher-avatar { margin-bottom: 15px; }

    .r-degrees li {
        justify-content: center; /* Markazga */
    }

    .researcher-body { padding: 0 20px 30px 20px; }
}