/*--------------------------------------------------------------
# Structure Sections
--------------------------------------------------------------*/

/* Info Grid Styling */
.info-grid {
    padding: 0;
}

.info-item {
    transition: all 0.3s ease;
}

.icon-box {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.icon-box i {
    color: white;
    font-size: 20px;
}

.info-item span {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
}

/* Nav Tabs Styling */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 24px;
    margin-right: 5px;
    background-color: transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: transparent;
    border-color: transparent;
    border-bottom: 3px solid #0d6efd;
}

/* Tab Content Styling */
.tab-content {
    min-height: 200px;
}

.tab-pane {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane .bg-white {
    border: 1px solid #e0e0e0;
}

/*--------------------------------------------------------------
# Media Queries - Responsive Design
--------------------------------------------------------------*/

/* Tablet va kichik ekranlar (768px - 991px) */
@media (max-width: 991px) {
    .icon-box {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-right: 12px;
    }

    .icon-box i {
        font-size: 18px;
    }

    .info-item span {
        font-size: 14px;
    }

    .nav-tabs .nav-link {
        padding: 10px 18px;
        font-size: 14px;
    }

    .tab-content {
        min-height: 150px;
    }

    .tab-pane .bg-white {
        padding: 15px !important;
    }
}

/* Mobil qurilmalar (576px - 767px) */
@media (max-width: 767px) {
    .icon-box {
        width: 38px;
        height: 38px;
        min-width: 38px;
        margin-right: 10px;
        border-radius: 8px;
    }

    .icon-box i {
        font-size: 16px;
    }

    .info-item span {
        font-size: 13px;
        line-height: 1.5;
    }

    .info-item {
        margin-bottom: 10px;
    }

    .nav-tabs .nav-link {
        padding: 8px 15px;
        font-size: 13px;
        margin-right: 3px;
    }

    .tab-content {
        min-height: 120px;
    }

    .tab-pane .bg-white {
        padding: 12px !important;
        font-size: 14px;
    }

    /* Grid o'zgarishi - mobilda ustma-ust */
    .info-grid .col-md-6 {
        width: 100%;
    }
}

/* Juda kichik mobil qurilmalar (< 576px) */
@media (max-width: 575px) {
    .icon-box {
        width: 35px;
        height: 35px;
        min-width: 35px;
        margin-right: 8px;
        border-radius: 7px;
    }

    .icon-box i {
        font-size: 14px;
    }

    .info-item span {
        font-size: 16px;
        line-height: 1.4;
    }

    .nav-tabs .nav-link {
        padding: 6px 12px;
        font-size: 16px;
        margin-right: 2px;
    }


    /* Section title */
    .section-title h2 {
        font-size: 20px !important;
    }

    /* Manage card title */
    h2.fw-bold {
        font-size: 20px !important;
    }

    /* Degree text */
    .text-primary.fs-5 {
        font-size: 16px !important;
    }
}

/* Katta ekranlar (> 1200px) */
@media (min-width: 1200px) {
    .info-item span {
        font-size: 16px;
    }

    .nav-tabs .nav-link {
        padding: 12px 26px;
    }
}

/* Ultra katta ekranlar (> 1400px) */
@media (min-width: 1400px) {
    .icon-box {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .icon-box i {
        font-size: 22px;
    }

    .info-item span {
        font-size: 17px;
    }
}

/* Manage Card Box Styling */
.manage-card-wrapper {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.manage-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.manage-card {
    padding: 0 !important;
}

/* Image Wrapper - Rasmni to'g'ri ko'rsatish uchun */
.manage-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 450px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.manage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.manage-card-wrapper:hover .manage-image {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .manage-card-wrapper {
        padding: 20px;
    }

    .manage-image-wrapper {
        min-height: 300px;
        max-height: 400px;
    }
}

@media (max-width: 767px) {
    .manage-card-wrapper {
        padding: 15px;
    }

    .manage-image-wrapper {
        min-height: 250px;
        max-height: 350px;
    }
}

@media (max-width: 575px) {
    .manage-image-wrapper {
        min-height: 200px;
        max-height: 300px;
    }
}


/* Department Member Card Styling */
.department-member-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e8e8e8;
}

.department-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.department-member-card:hover .member-image {
    transform: scale(1.1);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.member-degree {
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #667eea;
}

.member-profession {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.member-profession i {
    font-size: 18px;
    color: #764ba2;
}

.member-email {
    font-size: 15px;
    color: #888;
    margin-bottom: 0;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.member-email i {
    font-size: 18px;
    color: #667eea;
}

/* Responsive */
@media (max-width: 991px) {
    .member-image-wrapper {
        height: 220px;
    }

    .member-name {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .member-image-wrapper {
        height: 200px;
    }

    .member-info {
        padding: 15px;
    }

    .member-name {
        font-size: 14px;
    }

    .member-degree,
    .member-profession,
    .member-email {
        font-size: 12px;
    }
}
