/* ==========================================================
   SECTION CÔNG NGHỆ ĐỘC QUYỀN STYLE
   ========================================================== */

.tech-section-outer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
    font-family: var(--font-family-base, 'Montserrat', sans-serif);
    color: var(--color-text-dark, #333333);
}

.tech-section-header {
    text-align: center;
    text-transform: uppercase;
    font-weight: var(--font-weight-bold, 700);
    margin-bottom: 35px;
    letter-spacing: 1.5px;
    font-size: var(--font-size-h2-s, 1.8rem);
}

/* Khung Slider giới hạn độ rộng */
.tech-slider-wrapper {
    position: relative;
    max-width: 1080px; 
    margin: 0 auto;
}

.tech-slides-container {
    width: 100%;
    position: relative;
}

/* Giao diện từng Slide */
.tech-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.tech-slide.active {
    display: block;
    opacity: 1;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: 4.5fr 7.5fr;
        align-items: stretch;
    }
}

/* Cột trái - Khung ảnh lớn dọc tự nhiên */
.tech-col-left {
    display: flex;
    flex-direction: column;
}

.tech-main-img-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.tech-main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
    border-radius: 4px;
}

/* Cột phải - Nội dung */
.tech-col-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Hộp chữ co giãn điền đầy khoảng trống */
.tech-info-box {
    border: 1px solid #a3a3a3;
    padding: 35px 25px 25px 25px;
    position: relative;
    border-radius: 4px;
    background-color: #fdfaf4;
    margin-bottom: 20px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tech-info-title {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fdfaf4;
    padding: 0 20px;
    margin: 0;
    font-size: var(--font-size-h5, 1.3rem);
    font-weight: var(--font-weight-bold, 700);
    white-space: nowrap;
    text-align: center;
}

.tech-info-content {
    max-height: 380px; 
    overflow-y: auto;  
    padding-right: 8px;
    margin-top: 5px;
    flex-grow: 1;
}

/* Tùy chỉnh thanh cuộn tinh tế */
.tech-info-content::-webkit-scrollbar {
    width: 5px;
}
.tech-info-content::-webkit-scrollbar-track {
    background: #f5ece1;
    border-radius: 4px;
}
.tech-info-content::-webkit-scrollbar-thumb {
    background: #c9c5bd;
    border-radius: 4px;
}
.tech-info-content::-webkit-scrollbar-thumb:hover {
    background: #a19d96;
}

.tech-subtitle {
    font-size: 1.05rem;
    font-weight: var(--font-weight-bold, 700);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tech-desc {
    font-size: var(--font-size-body-l, 1rem); 
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.tech-details-list {
    font-size: 0.95rem;
    line-height: 1.7;
}

.tech-details-list strong {
    display: block;
    margin-top: 15px;
    font-weight: var(--font-weight-semibold, 600);
}

.tech-details-list ul, 
.tech-details-list ol {
    margin: 8px 0 15px 20px;
    padding: 0;
}

/* Hàng 4 ảnh thực tế bên dưới */
.tech-gallery-wrapper {
    text-align: center;
}

.tech-gallery-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 12px; 
    width: 100%;
    margin-bottom: 4px; 
}

.tech-gal-item {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.tech-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-gallery-label {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-grey, #777777);
    display: block;
    margin: 0;
    line-height: 1.2;
}

/* Nút mũi tên SVG */
.tech-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: #c9c5bd; 
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    box-shadow: none !important;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-slider-btn:hover {
    color: #888888; 
}

.tech-btn-prev {
    left: -55px;
}

.tech-btn-next {
    right: -55px;
}

/* Responsive cho Máy tính bảng */
@media (max-width: 991px) {
    .tech-slider-wrapper {
        max-width: 90%; 
    }
    .tech-btn-prev { left: -35px; }
    .tech-btn-next { right: -35px; }
}

/* Tối ưu cho Mobile */
@media (max-width: 767px) {
    .tech-section-outer {
        padding: 30px 10px;
    }
    .tech-section-header {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    .tech-slider-wrapper {
        max-width: 100%;
        padding: 0 15px; 
    }
    .tech-btn-prev { left: -5px; }
    .tech-btn-next { right: -5px; }
    .tech-slider-btn { width: 30px; height: 30px; }
    
    .tech-grid {
        height: auto !important;
    }

    .tech-main-img-wrapper {
        min-height: 280px; 
    }

    .tech-info-box {
        padding: 20px 15px 15px 15px;
        margin-top: 15px;
    }
    .tech-info-title {
        position: static !important;
        transform: none !important;
        white-space: normal !important; 
        font-size: 1.2rem !important; 
        display: block !important;
        text-align: center !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 0 15px 0 !important;
        width: 100% !important;
    }
    .tech-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    .tech-desc, .tech-details-list {
        font-size: 0.9rem; 
    }

    .tech-gallery-list {
        gap: 6px; 
    }
}

/* Cấu hình dấu chấm điều hướng */
.tech-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.tech-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d2cfca; 
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
}

.tech-dot.active {
    width: 32px; 
    border-radius: 10px; 
    background-color: var(--color-accent-gold, #d6b087); 
}
