/* Styles for giai-phap-san-pham-cong-nghe.php (moved from inline <style>) */

/* Solutions subnav small rule */
.section-title { text-align: center; }

/* 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; }

/* 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; }
}

/* Suggestion cards: background + centered */
.solution-suggestion .row { justify-content: center; }
.solution-suggestion .suggestion-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #dbeeff; /* darker blue background for better contrast */
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 8px 26px rgba(3,82,162,0.12); /* slightly stronger shadow */
    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; }
}

/* Desktop: increase icon sizes by ~1.5x */
@media (min-width: 992px) {
    /* suggestion card icon grows from 56px -> 84px (56 * 1.5) */
    .solution-suggestion .card-icon {
        width: 84px;
        height: 84px;
        flex: 0 0 84px;
    }

    /* make the icon inside larger (relative to its container) */
    .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;
    }
}

/* Carousel styles for mobile: horizontal swipeable row */
.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; /* use LTR for predictable scrollLeft behavior */
}
.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: #05772f !important;
    text-shadow: none !important;
    font-weight: 700;
    font-size: 1rem;
    opacity: 1;
}
.comparison-table td {
    color: #05772f; /* standard body text color for readability */
    font-size: 0.95rem;
}
.comparison-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Override: use pure black for headings and table headers for maximum contrast */
.section-title, .solution-title {
    color: #06623c !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: #08304b; /* clear dark blue */
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* 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; }

@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; }
}

/* Service carousel styles for mobile */
.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; /* use LTR for predictable scrollLeft behavior */
}
.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; }
}

/* Force headings uppercase and preserve punctuation */
.giai-phap-san-pham-cong-nghe h1,
.giai-phap-san-pham-cong-nghe h2,
.giai-phap-san-pham-cong-nghe h3,
.giai-phap-san-pham-cong-nghe h4,
.giai-phap-san-pham-cong-nghe h5,
.giai-phap-san-pham-cong-nghe h6,
.giai-phap-san-pham-cong-nghe .section-title{
  text-transform: uppercase !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hyphens: none;
  letter-spacing: 0.02em;
}

/* SECTION TITLES: uppercase with dark green underline (preserve Vietnamese accents) */
.giai-phap-san-pham-cong-nghe .section-title{
  text-transform: uppercase !important;
  color: #166534 !important;
}
.giai-phap-san-pham-cong-nghe .section-title::after{background:#166534 !important}

/* SUBSECTION HEADINGS: keep normal case, dark green */
.giai-phap-san-pham-cong-nghe .feature h4,
.giai-phap-san-pham-cong-nghe .industry h4,
.giai-phap-san-pham-cong-nghe .service-content h4{
  text-transform: none !important;
  color: #166534 !important;
}
