﻿/* Small styles for solution filter */
.solution-filter { margin-bottom: 18px; }
.solution-filter .btn { min-width: 120px; }
.solution-filter .btn.active { background-color: #0d6efd; color: #fff; border-color: #0d6efd; }

/* Lists styling */
.benefit-list, .feature-list, .package-features {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.benefit-list li, .feature-list li, .package-features li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.45rem;
    line-height: 1.35;
    color: #212529;
    white-space: normal;
}

.benefit-list li::before, .feature-list li::before, .package-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.08);
}

/* Suggestion card styling */
.solution-suggestion .row { justify-content: center; }
.solution-suggestion .suggestion-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #dbeeff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 8px 26px rgba(3,82,162,0.12);
    max-width: 540px;
    margin: 0.5rem auto;
    width: 100%;
    color: #08203a;
}

.solution-suggestion .card-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #bfe0ff;
    color: #034a9e;
    border-radius: 50%;
    font-size: 1.25rem;
}

.solution-suggestion .card-content h4 { margin: 0 0 0.25rem 0; font-size: 1.05rem; }
.solution-suggestion .card-content p { margin: 0; color: #495057; }

/* Color Palette */
.color-palette {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.color-card {
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
    padding: 0;
    margin: 0;
}

.color-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.color-sample {
    position: relative;
    border-radius: 0.375rem;
    overflow: hidden;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-sample:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.color-sample > div {
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0,0,0,0.75);
    padding: 4px !important;
    font-size: 0.65rem;
}

.color-sample:hover > div {
    opacity: 1;
}

.color-sample span {
    font-size: 0.7rem;
    font-weight: 600;
}

.color-sample small {
    font-size: 0.6rem;
}

.color-palette .row {
    gap: 8px;
    row-gap: 8px;
}

.color-palette .col-6,
.color-palette .col-md-4,
.color-palette .col-lg-3 {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
}

/* Color Tabs */
#colorTabs {
    border-bottom: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#colorTabs .nav-item {
    margin-bottom: 0.5rem;
}

#colorTabs .nav-link {
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    color: #495057;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

#colorTabs .nav-link:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13,110,253,0.2);
}

#colorTabs .nav-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,110,253,0.4);
    transform: translateY(-2px);
}

/* Color Space Carousel */
#colorSpaceCarousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

#colorSpaceCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#colorSpaceCarousel .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

#colorSpaceCarousel .carousel-control-prev,
#colorSpaceCarousel .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#colorSpaceCarousel:hover .carousel-control-prev,
#colorSpaceCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

/* Color titles styling */
.color-title {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.color-title-red { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); }
.color-title-purple { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.color-title-orange { background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%); }
.color-title-yellow { background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%); }
.color-title-warm { background: linear-gradient(135deg, #d4a574 0%, #c89968 100%); }
.color-title-green { background: linear-gradient(135deg, #28a745 0%, #218838 100%); }
.color-title-blue { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.color-title-cool { background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%); }

/* Responsive styles */
@media (max-width: 992px) {
    .solution-suggestion .suggestion-card {
        flex-direction: column;
        text-align: center;
    }
    .solution-suggestion .card-icon {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    #colorTabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .color-palette {
        padding: 1rem;
    }
    
    .color-sample {
        height: 70px;
        width: 70px;
    }

    #colorSpaceCarousel .carousel-item img {
        height: 300px;
    }

    .color-title {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        display: block;
    }
}

@media (max-width: 576px) {
    .benefit-list li,
    .feature-list li,
    .package-features li {
        padding-left: 1.4rem;
        font-size: 0.95rem;
    }

    .benefit-list li::before,
    .feature-list li::before,
    .package-features li::before {
        top: 0.6rem;
        width: 7px;
        height: 7px;
    }

    .solution-filter .btn-group {
        gap: 0.2rem;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .solution-filter .btn {
        min-width: 0;
        max-width: 120px;
        font-size: 0.75rem;
        padding: 0.18rem 0.32rem;
        border-radius: 4px;
        line-height: 1.05;
        white-space: normal;
        word-break: keep-all;
        text-align: center;
    }

    .solution-filter .btn.active {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }
}
.solution-filter { margin-bottom: 18px; }
.solution-filter .btn { min-width: 120px; }
.solution-filter .btn.active { background-color: #0d6efd; color: #fff; border-color: #0d6efd; }

/* Compact blue-styled lists for benefits, features and package lists ("bluelist") */
.benefit-list, .feature-list, .package-features {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.benefit-list li, .feature-list li, .package-features li {
    position: relative;
    padding-left: 1.6rem; /* space for the blue dot */
    margin-bottom: 0.45rem; /* tighten vertical spacing */
    line-height: 1.35;
    color: #212529;
    white-space: normal; /* allow wrapping but avoid forced line-breaks */
}
.benefit-list li::before, .feature-list li::before, .package-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d6efd; /* blue dot */
    box-shadow: 0 0 0 3px rgba(13,110,253,0.08);
}

@media (max-width: 576px) {
    .benefit-list li, .feature-list li, .package-features li { padding-left: 1.4rem; font-size: 0.95rem; }
    .benefit-list li::before, .feature-list li::before, .package-features li::before { top: 0.6rem; width: 7px; height: 7px; }
}

/* Thẻ gợi ý: nền và căn giữa */
.solution-suggestion .row { justify-content: center; }
.solution-suggestion .suggestion-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #dbeeff; /* nền xanh đậm để tương phản tốt hơn */
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 8px 26px rgba(3,82,162,0.12); /* bóng đổ mạnh hơn một chút */
    max-width: 540px; /* keep cards reasonably narrow and centered */
    margin: 0.5rem auto; /* center horizontally within the column */
    width: 100%;
    color: #08203a; /* darker text color for contrast */
}
.solution-suggestion .card-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #bfe0ff; /* darker icon background */
    color: #034a9e; /* deeper blue icon color */
    border-radius: 50%;
    font-size: 1.25rem;
}
.solution-suggestion .card-content h4 { margin: 0 0 0.25rem 0; font-size: 1.05rem; }
.solution-suggestion .card-content p { margin: 0; color: #495057; }

@media (max-width: 992px) {
    .solution-suggestion .suggestion-card { flex-direction: column; text-align: center; }
    .solution-suggestion .card-icon { margin-bottom: 0.5rem; }
}

/* Màn hình máy tính: tăng kích thước biểu tượng lên 1.5 lần */
@media (min-width: 992px) {
    /* biểu tượng thẻ gợi ý tăng từ 56px lên 84px (56 * 1.5) */
    .solution-suggestion .card-icon {
        width: 84px;
        height: 84px;
        flex: 0 0 84px;
    }

    /* làm cho biểu tượng bên trong lớn hơn (tương đối với khung chứa) */
    .solution-suggestion .card-icon i {
        font-size: 1.875rem; /* ~1.5 * 1.25rem */
        line-height: 1;
    }

    /* other prominent icons on the page (header/service/commitment) */
    .solution-header .solution-title i,
    .service-icon i,
    .commitment-icon i {
        font-size: 1.5em;
        display: inline-block; /* keep transform/layout stable */
        line-height: 1;
    }
}

/* Định dạng trình chiếu cho điện thoại: hàng có thể vuốt ngang */
.suggestion-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    direction: ltr;
}
/* Color Palette Styles */
.color-palette {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.color-card {
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

.color-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.color-sample {
    position: relative;
    border-radius: 0.375rem;
    overflow: hidden;
}

.color-sample .p-3 {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.color-sample small {
    font-size: 0.75rem;
}

/* Color Tabs */
#colorTabs {
    border-bottom: 2px solid #dee2e6;
    flex-wrap: wrap;
}

#colorTabs .nav-link {
    border: none;
    color: #495057;
    padding: 0.75rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: -2px;
    border-radius: 0.25rem 0.25rem 0 0;
    transition: color 0.2s, border-color 0.2s;
}

#colorTabs .nav-link:hover {
    color: #0d6efd;
}

#colorTabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background-color: transparent;
}

/* Color Space Carousel */
#colorSpaceCarousel {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

#colorSpaceCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#colorSpaceCarousel .carousel-control-prev,
#colorSpaceCarousel .carousel-control-next {
    width: 15%;
    opacity: 0;
    transition: opacity 0.2s;
}

#colorSpaceCarousel:hover .carousel-control-prev,
#colorSpaceCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

/* Responsive adjustments for color tabs */
@media (max-width: 768px) {
    #colorTabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .color-palette {
        padding: 1rem;
    }
    
    .color-sample {
        height: 100px;
    }
}
 
.suggestion-carousel::-webkit-scrollbar { display: none; }
.suggestion-carousel .suggestion-card {
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0; /* avoid extra side gaps that affect scroll calculation */
    scroll-snap-align: center;
    direction: ltr; /* keep content LTR */
}

@media (max-width: 576px) {
    .solution-suggestion .suggestion-card { max-width: none; min-width: 100%; margin: 0; }
    .solution-suggestion .suggestion-card .card-content h4 { font-size: 1rem; }
}

/* Tighter styling for the overview description under TỔNG QUAN */
.solutions-overview .lead {
    font-size: 0.98rem; /* slightly smaller than default "lead" */
    line-height: 1.45;
    margin-bottom: 1rem !important; /* reduce spacing under the paragraph */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #495057;
    font-weight: 400;
}
@media (min-width: 1200px) {
    .solutions-overview .lead { font-size: 1.05rem; }
}
@media (max-width: 576px) {
    .solutions-overview .lead { font-size: 0.95rem; padding: 0 0.5rem; }
}

/* Bảng so sánh các giải pháp */
.comparison-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}
.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #dee2e6;
}
.comparison-table thead {
    background-color: #0d6efd;
    color: #fff;
}
.comparison-table thead th {
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 700;
    font-size: 1rem;
    opacity: 1;
}
.comparison-table td {
    color: #212529; /* standard body text color for readability */
    font-size: 0.95rem;
}
.comparison-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Color title styling with background colors */
.color-title-red {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.color-title-purple {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(155, 89, 182, 0.3);
}

.color-title-orange {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(253, 126, 20, 0.3);
}

.color-title-yellow {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.color-title-warm {
    background: linear-gradient(135deg, #d4a574 0%, #c89968 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(212, 165, 116, 0.3);
}

.color-title-green {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.color-title-blue {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.color-title-cool {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Color tabs styling - improved */
#colorTabs {
    border-bottom: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#colorTabs .nav-item {
    margin-bottom: 0.5rem;
}

#colorTabs .nav-link {
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    color: #495057;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

#colorTabs .nav-link:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13,110,253,0.2);
}

#colorTabs .nav-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13,110,253,0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    #colorTabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .color-title-red,
    .color-title-purple,
    .color-title-orange,
    .color-title-yellow,
    .color-title-warm,
    .color-title-green,
    .color-title-blue,
    .color-title-cool {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        display: block;
    }
}

/* Color samples styling */
.color-card {
    padding: 0;
    margin: 0;
}

.color-sample {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-sample:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.color-sample > div {
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(0,0,0,0.75);
    padding: 4px !important;
    font-size: 0.65rem;
}

.color-sample:hover > div {
    opacity: 1;
}

.color-sample .text-white {
    color: #fff !important;
}

.color-sample [style*="color: #333"] {
    color: #fff !important;
}

.color-sample span {
    font-size: 0.7rem;
    font-weight: 600;
}

.color-sample small {
    font-size: 0.6rem;
}

.color-palette .row {
    gap: 8px;
    row-gap: 8px;
}

.color-palette .col-6,
.color-palette .col-md-4,
.color-palette .col-lg-3 {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
}

/* Override: use pure black for headings and table headers for maximum contrast */
.section-title, .solution-title {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Headings and table header in warm yellow for emphasis */
.section-title, .solution-title {
    color: #ffd740; /* warm yellow */
    text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

/* Gợi ý chọn giải pháp */
.solution-suggestion {
    padding: 3rem 0;
}
.solution-suggestion .card-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}
.solution-suggestion .card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.solution-suggestion .card-content p {
    font-size: 0.9rem;
}

/* Các gói dịch vụ hỗ trợ */
.additional-services {
    padding: 3rem 0;
}
.service-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

/* Cam kết dịch vụ */
.service-commitment {
    padding: 3rem 0;
}
.commitment-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}
.commitment-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}
.commitment-highlight {
    font-weight: 500;
    font-size: 1.1rem;
    color: #333;
}

/* Improve typography + contrast for clarity */
.section-title, .solution-title {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #216eb6; /* updated blue color */
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Style for subsection headings */
.solution-category h4 {
    color: #ffffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Style for solution titles */
.solution-title {
    color: #216eb6 !important;
}

/* Override any previous color settings for solution titles */
.solution-header .solution-title {
    color: #216eb6 !important;
}

/* Ensure links or faint text inside table cells are visible */
.comparison-table a { color: #0d6efd; font-weight: 600; }

/* Hide horizontal solution-models (tabs) by default; show for Website and App sections */
.solution-models { display: none !important; }
.solution-category[data-solution="website"] .solution-models, .solution-category[data-solution="app"] .solution-models { display: block !important; }

/* Custom styles for the color space carousel */
#colorSpaceCarousel {
    border-radius: 8px;
    overflow: hidden;
}

#colorSpaceCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#colorSpaceCarousel .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

#colorSpaceCarousel .carousel-control-prev,
#colorSpaceCarousel .carousel-control-next {
    width: 10%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#colorSpaceCarousel:hover .carousel-control-prev,
#colorSpaceCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

@media (max-width: 768px) {
    #colorSpaceCarousel .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .solution-filter .btn-group {
        gap: 0.2rem;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .solution-filter .btn {
        min-width: 0; /* allow shrink */
        max-width: 120px; /* prevent over-long single button */
        font-size: 0.75rem;
        padding: 0.18rem 0.32rem;
        border-radius: 4px;
        line-height: 1.05;
        white-space: normal; /* allow wrapping */
        word-break: keep-all; /* avoid breaking Vietnamese words awkwardly */
        text-align: center;
    }
    .solution-filter .btn.active { padding-top: 0.2rem; padding-bottom: 0.2rem; }
}

/* Định dạng trình chiếu dịch vụ cho điện thoại */
.service-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    direction: ltr; /* sử dụng LTR để hành vi cuộn dễ đoán */
}
.service-carousel::-webkit-scrollbar { display: none; }
.service-carousel .service-card {
    /* make each card occupy full viewport width so only one shows */
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin: 0; /* avoid extra side gaps that affect scroll calculation */
    scroll-snap-align: center;
    direction: ltr; /* keep content LTR */
}

@media (max-width: 576px) {
    /* When carousel active we'll move cards out of columns, ensure row doesn't force grid spacing */
    .additional-services .row { display: block; }
    .additional-services .col-md-6, .additional-services .col-lg-3 { width: auto; padding: 0; margin-bottom: 0.6rem; }
}
/* Định dạng phần mẫu website */
                .website-templates {
                    background: #f8f9fa;
                    padding: 3rem 0;
                    border-radius: 12px;
                }

                .template-card {
                    background: #fff;
                    border-radius: 8px;
                    padding: 1rem;
                    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
                    transition: transform 0.3s ease;
                    cursor: pointer;
                }

                .template-card a {
                    text-decoration: none;
                    color: inherit;
                    display: block;
                }

                .template-card:hover {
                    transform: translateY(-5px);
                    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
                }

                .template-card h5 {
                    font-size: 1.1rem;
                    margin: 0;
                    color: #333;
                    text-align: center;
                }

                .template-card img {
                    width: 100%;
                    height: 200px;
                    object-fit: cover;
                    border: 1px solid #eee;
                    transition: opacity 0.3s ease;
                }

                .template-card:hover img {
                    opacity: 0.9;
                }

                .template-card .link-overlay {
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    z-index: 1;
                }

                .template-note {
                    background: #fff;
                    border-radius: 8px;
                    padding: 1rem;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
                }

                .template-note p {
                    margin: 0;
                }

                /* Định dạng tab tùy chỉnh */
                #templateTabs {
                    border-bottom: 2px solid #dee2e6;
                }

                #templateTabs .nav-link {
                    border: none;
                    color: #495057;
                    font-weight: 500;
                    padding: 1rem 1.5rem;
                    margin-bottom: -2px;
                }

                #templateTabs .nav-link.active {
                    color: #0d6efd;
                    border-bottom: 2px solid #0d6efd;
                }

                @media (max-width: 768px) {
                    #templateTabs .nav-link {
                        padding: 0.75rem 1rem;
                        font-size: 0.9rem;
                    }
                    
                    .template-card img {
                        height: 150px;
                    }
                }

