/* ============================================================
   projects.details.css — Trang Chi tiết dự án MTECH
   Bố cục 2 cột: Trái (Slider trực quan) & Phải (Bảng 10 mục thông số)
   ============================================================ */

.project_details_area {
    padding: 60px 0 80px;
    background: #f8f9fa;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
}

/* ---- Top bar & Back button ---- */
.project-details-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-back-projects {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #3363DD;
    font-size: 14px;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back-projects:hover {
    background: #3363DD;
    border-color: #3363DD;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   IMAGE SLIDER / CAROUSEL (Cột Trái)
   ============================================================ */
.project-slider-wrapper {
    background: #ffffff;
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.project-main-slider-container {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    background: #111;
    border-radius: 3px;
}

.project-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d1a;
}

.project-slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.project-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Controls: Arrows */
.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.slider-arrow-btn:hover {
    background: #3363DD;
    opacity: 1;
    color: #ffffff;
}

.slider-arrow-btn.prev-btn {
    left: 12px;
}

.slider-arrow-btn.next-btn {
    right: 12px;
}

/* Slider Dots Indicator */
.slider-dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dot.active {
    background: #3363DD;
    border-color: #ffffff;
    transform: scale(1.2);
}

/* Thumbnails */
.project-slider-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.project-slider-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.project-slider-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.slider-thumb-item {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.slider-thumb-item:hover {
    opacity: 0.9;
}

.slider-thumb-item.active {
    border-color: #3363DD;
    opacity: 1;
}

.slider-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   10 SPECIFICATIONS CARD (Cột Phải)
   ============================================================ */
.project-specs-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 24px 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.specs-card-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.specs-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.specs-card-br {
    display: block;
    width: 44px;
    height: 3px;
    background: #3363DD;
    margin-top: 8px;
}

/* Table specs */
.project-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.project-specs-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.project-specs-table tbody tr:last-child {
    border-bottom: none;
}

.project-specs-table th.spec-label {
    width: 45%;
    padding: 11px 10px 11px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #333333;
    vertical-align: top;
    line-height: 1.45;
}

.spec-num {
    color: #3363DD;
    font-weight: 700;
}

.project-specs-table td.spec-value {
    width: 55%;
    padding: 11px 0 11px 10px;
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    vertical-align: top;
    line-height: 1.45;
}

/* Not found */
.project-not-found {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.project-not-found i {
    font-size: 48px;
    color: #bbb;
    margin-bottom: 16px;
}

.btn-back {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: #3363DD;
    color: #ffffff;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
}

.btn-back:hover {
    background: #1530A0;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
    .project-main-slider-container {
        height: 360px;
    }
    .project-specs-table th.spec-label {
        width: 50%;
    }
    .project-specs-table td.spec-value {
        width: 50%;
    }
}

@media (max-width: 575px) {
    .project-main-slider-container {
        height: 260px;
    }
    .project-specs-table th.spec-label,
    .project-specs-table td.spec-value {
        display: block;
        width: 100%;
        padding: 6px 0;
    }
    .project-specs-table tbody tr {
        padding: 8px 0;
        display: block;
    }
}
