﻿/**
 * Teams Page Styles
 * Carousel giống awards.css — ảnh vuông, chạy từ phải qua trái
 */

/* ========================================
   Utility / Shared Classes
   ======================================== */

.sec_gap        { padding: 100px 0; }
.f_600          { font-weight: 600; }
.f_size_32      { font-size: 32px; }
.f_size_20      { font-size: 20px; }
.title_color    { color: #3363DD; }
.mt_7           { margin-top: 7px; }
.mb_55          { margin-bottom: 55px; }
.mb_30          { margin-bottom: 30px; }

/* ========================================
   Section Title
   ======================================== */

.section_title { text-align: left; }

.section_title h2 {
    font-size: 32px;
    font-weight: 600;
    color: #3363DD;
    margin-bottom: 12px;
    line-height: 1.3;
}

.section_title .title_br {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3363DD;
    margin-bottom: 20px;
}

.section_title .title_br.dark { background-color: #3363DD; }

.section_title p {
    font-size: 15px;
    line-height: 1.8;
    color: #666666;
    margin-top: 7px;
    margin-bottom: 0;
}

/* ========================================
   Teams Area
   ======================================== */

.teams_area {
    background: #f5f6f8;
    padding: 100px 0;
    overflow: hidden;
}

.teams_area .section_title { text-align: left; }

/* ========================================
   CAROUSEL — clone 100% từ awards.css
   ======================================== */

.teams_carousel_wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.teams_carousel_wrapper:active { cursor: grabbing; }

.teams_carousel_track {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 20px 0 30px;
    will-change: transform;
}

/* ========================================
   SLIDE — khung ảnh vuông + text bên dưới
   ======================================== */

.teams_slide {
    flex-shrink: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Khung ảnh vuông */
.teams_img_wrap {
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 50%;          /* tròn như avatar */
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.teams_slide:hover .teams_img_wrap {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    transform: translateY(-4px);
}

/* Ảnh thực tế */
.teams_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Placeholder khi chưa có ảnh */
.teams_img_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8ecf4 0%, #d0d8ea 100%);
    color: #8a9bbf;
    font-size: 60px;
}

/* Text bên dưới */
.teams_info {
    text-align: center;
    width: 100%;
}

.teams_name {
    font-size: 15px;
    font-weight: 600;
    color: #3363DD;
    margin: 0 0 4px;
    line-height: 1.4;
}

.teams_position {
    font-size: 13px;
    color: #A8B8D8;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   LIGHTBOX / MODAL
   ======================================== */

.teams_lightbox_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.teams_lightbox_overlay.active {
    opacity: 1;
    visibility: visible;
}

.teams_lightbox_box {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.teams_lightbox_close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.teams_lightbox_close:hover { color: #3363DD; }

.teams_lightbox_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.teams_lightbox_img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.teams_lightbox_info { text-align: center; }

.teams_lightbox_name {
    font-size: 20px;
    font-weight: 600;
    color: #3363DD;
    margin: 0 0 6px;
}

.teams_lightbox_position {
    font-size: 14px;
    color: #3363DD;
    margin: 0 0 12px;
    font-weight: 500;
}

.teams_lightbox_bio {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Question Area
   ======================================== */

.question_area {
    position: relative;
    background-color: #3363DD;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.question_area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 63, 191, 0.82);
    z-index: 0;
}

.question_area .container { position: relative; z-index: 1; }

.question_area .section_title h2 { color: #ffffff; }

.question_area .section_title .title_br.dark {
    background-color: rgba(255,255,255,0.5);
}

.question_form .form-group { margin-bottom: 20px; }

.question_form .form-control {
    display: block;
    width: 100%;
    height: 50px;
    padding: 10px 0;
    font-size: 14px;
    color: #ffffff;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    border-radius: 0;
    outline: none;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.question_form .form-control:focus {
    border-color: #ffffff;
    box-shadow: none;
    background-color: transparent;
}

.question_form .form-control::placeholder {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.question_form textarea.form-control {
    height: auto;
    min-height: 100px;
    resize: none;
    padding-top: 10px;
}

.question_form .submit_btn {
    display: inline-block;
    padding: 14px 40px;
    background-color: #ffffff;
    color: #3363DD;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.question_form .submit_btn:hover {
    background-color: transparent;
    color: #ffffff;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
    .teams_area { padding: 70px 0; }
    .teams_slide { width: 180px; }
    .teams_img_wrap { width: 180px; height: 180px; }
    .teams_carousel_track { gap: 24px; }
}

@media (max-width: 767px) {
    .teams_area { padding: 50px 0; }
    .teams_slide { width: 155px; }
    .teams_img_wrap { width: 155px; height: 155px; }
    .teams_carousel_track { gap: 20px; }
    .teams_name { font-size: 13px; }
}

@media (max-width: 575px) {
    .teams_slide { width: 130px; }
    .teams_img_wrap { width: 130px; height: 130px; }
    .teams_carousel_track { gap: 16px; }
}

/* ========================================
   Question Form — Thông báo kết quả
   ======================================== */

.question_form_msg {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    display: none;
}

.question_form_msg--success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.question_form_msg--error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ========================================
   Org Chart — Lightbox
   ======================================== */

/* Nền tối phủ toàn màn hình */
.org_lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: zoom-out;
}

.org_lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Ảnh trong lightbox — fit vừa màn hình */
.org_lightbox_img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    cursor: default;
    /* Hiệu ứng scale khi mở */
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.org_lightbox.active .org_lightbox_img {
    transform: scale(1);
}

/* Nút đóng × */
.org_lightbox_close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 100000;
}

.org_lightbox_close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
}
