/* ============================================================
   AWARDS PAGE STYLES
   assets/css/awards.css
   Carousel giống client_logos — không có grayscale/color effect
   ============================================================ */

/* ---- Section wrapper ---- */
.awards_area {
    background: #f5f6f8;
    padding: 100px 0;
    overflow: hidden;
}

/* ---- Section title (dùng lại utility classes từ layout) ---- */
.awards_area .section_title {
    text-align: left;
}

.awards_area .section_title p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* ============================================================
   CAROUSEL — clone 100% từ client.logos.css
   ============================================================ */

/* Wrapper: full width, overflow hidden, cursor grab */
.awards_carousel_wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.awards_carousel_wrapper:active {
    cursor: grabbing;
}

/* Track: flex ngang, gap đều, chạy bằng rAF (không dùng CSS animation) */
.awards_carousel_track {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 20px 0 30px;
    will-change: transform;
}

/* ============================================================
   SLIDE — khung ảnh dọc + text bên dưới
   ============================================================ */
.awards_slide {
    flex-shrink: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Khung ảnh hình chữ nhật dọc */
.awards_img_wrap {
    width: 220px;
    height: 300px;
    overflow: hidden;
    border-radius: 6px;
    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;
}

.awards_slide:hover .awards_img_wrap {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    transform: translateY(-4px);
}

/* Ảnh thực tế */
.awards_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder khi chưa có ảnh */
.awards_img_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8ecf4 0%, #d0d8ea 100%);
    color: #8a9bbf;
}

.awards_img_placeholder svg {
    stroke: #8a9bbf;
    opacity: 0.7;
}

.awards_img_placeholder span {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8a9bbf;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---- Text bên dưới ảnh ---- */
.awards_info {
    width: 100%;
    text-align: center;
    padding: 0 4px;
}

.awards_name {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #3363DD;
    line-height: 1.4;
    margin: 0 0 5px;
}

.awards_cert {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #8a9bbf;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .awards_area {
        padding: 70px 0;
    }

    .awards_slide {
        width: 180px;
    }

    .awards_img_wrap {
        width: 180px;
        height: 245px;
    }

    .awards_carousel_track {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .awards_area {
        padding: 50px 0;
    }

    .awards_slide {
        width: 155px;
    }

    .awards_img_wrap {
        width: 155px;
        height: 210px;
    }

    .awards_carousel_track {
        gap: 20px;
    }

    .awards_name {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .awards_slide {
        width: 140px;
    }

    .awards_img_wrap {
        width: 140px;
        height: 190px;
    }

    .awards_carousel_track {
        gap: 16px;
    }
}


/* ============================================================
   LIGHTBOX / MODAL — Tham khảo search overlay từ header.css
   ============================================================ */

/* Overlay nền */
.awards_lightbox_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.awards_lightbox_overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Box chứa ảnh và info */
.awards_lightbox_box {
    background: #122050;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    border-radius: 2px;
    border-top: 2px solid #3363DD;
    transform: scale(0.85) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.awards_lightbox_overlay.active .awards_lightbox_box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Nút đóng */
.awards_lightbox_close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.25s ease, transform 0.25s ease;
    outline: none;
}

.awards_lightbox_close:hover {
    color: #3363DD;
    transform: rotate(90deg);
}

.awards_lightbox_close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Content wrapper */
.awards_lightbox_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Ảnh phóng to */
.awards_lightbox_img {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* Info bên dưới ảnh */
.awards_lightbox_info {
    text-align: center;
    width: 100%;
}

.awards_lightbox_name {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 8px;
    line-height: 1.4;
}

.awards_lightbox_cert {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Clickable cursor */
.awards_clickable {
    cursor: pointer;
}

.awards_clickable:hover {
    cursor: zoom-in;
}

/* ============================================================
   RESPONSIVE LIGHTBOX
   ============================================================ */
@media (max-width: 768px) {
    .awards_lightbox_box {
        max-width: 90vw;
        padding: 30px 24px;
    }

    .awards_lightbox_img {
        max-width: 100%;
        max-height: 60vh;
    }

    .awards_lightbox_name {
        font-size: 18px;
    }

    .awards_lightbox_cert {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .awards_lightbox_box {
        max-width: 95vw;
        padding: 24px 16px;
        gap: 16px;
    }

    .awards_lightbox_close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
    }

    .awards_lightbox_close svg {
        width: 20px;
        height: 20px;
    }

    .awards_lightbox_img {
        max-height: 50vh;
    }

    .awards_lightbox_name {
        font-size: 16px;
    }

    .awards_lightbox_cert {
        font-size: 12px;
    }
}


/* ============================================================
   CAPACITY TABLE — Bảng chứng chỉ năng lực hoạt động xây dựng
   ============================================================ */

.capacity_table_area {
    background: #fff;
    padding: 60px 0;
}

.capacity_table_area .section_title {
    text-align: left;
}

.capacity_table_area .section_title p {
    text-align: left;
    margin-left: 0;
}

.capacity_table_wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.capacity_table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Noto Sans', sans-serif;
    font-size: 15px;
    color: #1a2a6c;
    min-width: 500px;
}

/* Header */
.capacity_table thead tr {
    background: #dce6f7;
}

.capacity_table thead th {
    padding: 12px 16px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #b0c4e8;
    color: #1a2a6c;
}

.capacity_table thead th.col_name {
    text-align: center;
}

/* Column widths */
.capacity_table .col_tt   { width: 60px;  text-align: center; }
.capacity_table .col_name { width: auto; }
.capacity_table .col_rank { width: 130px; text-align: center; }

/* All cells */
.capacity_table td {
    padding: 10px 16px;
    border: 1px solid #c8d8f0;
    vertical-align: middle;
    line-height: 1.5;
}

/* Hàng cha — nền xanh nhạt, chữ đậm */
.capacity_row_parent td {
    background: #eef3fc;
    font-weight: 700;
    color: #1a2a6c;
}

.capacity_row_parent .col_tt {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

/* Hàng con — nền trắng */
.capacity_row_child td {
    background: #fff;
    color: #1a2a6c;
}

.capacity_row_child .col_tt {
    text-align: center;
    color: #8899cc;
}

/* Dấu "–" trước tên mục con */
.capacity_dash {
    display: inline-block;
    margin-right: 10px;
    color: #1a2a6c;
    font-weight: 400;
}

/* Cột hạng — in nghiêng, màu xanh */
.capacity_row_child .col_rank {
    text-align: center;
    font-style: italic;
    font-weight: 500;
    color: #1a2a6c;
}

/* Hover */
.capacity_row_child:hover td {
    background: #f0f5ff;
}

/* Responsive */
@media (max-width: 767px) {
    .capacity_table_area {
        padding: 40px 0;
    }

    .capacity_table {
        font-size: 13px;
    }

    .capacity_table td,
    .capacity_table th {
        padding: 8px 10px;
    }

    .capacity_table .col_rank {
        width: 90px;
    }
}
