
:root {
    --primary: #1F6FB5;
    --accent-red: #D62828;
    --accent-green: #2FBF71;
    --accent-yellow: #F2C94C;
    --accent-blue: #2D9CDB;
    --bg-light: #f7f9fc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-slate: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 30px;
}

.nav-links a {
    font-size: 17px !important;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 101;
    border: none;
    background: none;
    color: var(--primary);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 100;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.btn-zalo {
    background: var(--primary);
    color: white;
    padding: 15px 24px;
    border-radius: 9999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: none;
    /* Hidden on small mobile */
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px 0 rgba(31, 111, 181, 0.39);
    transition: 0.3s;
    font-size: 16px;
}

.btn-zalo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 50px 0 90px;
    overflow: hidden;
    position: relative;
    margin-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(31, 111, 181, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-slate);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary {
    font-size: 16px;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(31, 111, 181, 0.3);
    transition: 0.3s;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.hero-image-container {
    position: relative;
}

.hero-image-wrapper {
    /* background: #e2e8f0; */
    background: #012573;
    border-radius: 20px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 1px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pain Points */
.section-padding {
    padding: 70px 0;
}

.bg-white-section {
    background: white;
}

.text-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.text-red {
    color: var(--accent-red);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.pain-card {
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    background: var(--bg-light);
    transition: 0.3s;
}

.pain-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.pain-card .icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: block;
}

.pain-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.pain-card p {
    font-size: 0.875rem;
    color: var(--text-slate);
}

/* Pillar System Diagram */
.pillar-section {
    background: radial-gradient(circle at center, rgba(31, 111, 181, 0.1) 0%, transparent 70%);
}

.diagram-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 500px;
    display: none;
    /* Hidden on mobile */
}

.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 4px solid white;
    box-shadow: 0 20px 40px rgba(31, 111, 181, 0.4);
    z-index: 10;
}

.pillar-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    text-align: center;
}

.node-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    margin-bottom: 12px;
}

.pillar-node:hover .node-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.node-label h4 {
    font-size: 16px;
}

.node-label p {
    font-size: 14px;
    font-style: italic;
    color: var(--text-slate);
}

/* Position Nodes */
.node-1 {
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
}

.node-2 {
    top: 3%;
    right: 5%;
}

.node-3 {
    bottom: -10%;
    right: 5%;
}

.node-4 {
    bottom: -10%;
    left: 5%;
}

.node-5 {
    top: 5%;
    left: 0;
}

.mobile-pillars {
    display: grid;
    gap: 16px;
}

.mobile-hub {
    background: var(--primary);
    color: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
}

.mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mobile-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Roadmap */
.roadmap-container {
    position: relative;
    padding-top: 40px;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
    display: none;
}

.roadmap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
}

.step-content {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 4px solid var(--bg-light);
    z-index: 5;
    margin: 16px 0;
}

.step-1 .step-number {
    background: var(--accent-red);
}

.step-3 .step-number {
    background: var(--accent-green);
}

/* Case Study */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.case-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.case-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.case-img {
    height: 260px;
    background: #cbd5e1;
    position: relative;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.case-body {
    padding: 15px;
}

.case-info {
    display: flex;
    gap: 5px;
    margin-bottom: 16px;
}

.case-info span {
    font-size: 20px;
}

.case-info p {
    font-size: 14px;
    font-style: italic;
    color: #d62828;
    font-weight: 600;
}

/* .case-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
} */

.stat-item {
    padding: 5px 5px;
}

.stat-val {
    font-size: 24px;
    font-weight: 600;
}

.stat-label {
    display: flex;
    gap: 5px;
    font-size: 15px;
    color: #01b654;
    font-weight: 600;
}
.stat-label .material-symbols-outlined{
    font-size: 21px !important;
}
/* FAQ - New JS Smooth Accordion */
.faq-container {
    max-width: 768px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s;
}

.faq-item.active {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.faq-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    user-select: none;
    align-items: center;
}

.faq-header .icon-wrap {
    transition: 0.3s;
    display: flex;
}

.faq-item.active .icon-wrap {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
    padding: 0 24px 24px;
    font-size: 14px;
    color: var(--text-slate);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer-cta {
    text-align: center;
    margin-bottom: 45px;
}

.footer-cta h2 {
    font-size: 37px;
    margin-bottom: 24px;
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 19px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.btn-white:hover {
    transform: scale(1.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.footer-col ul li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.copyright {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 15px;
    color: white;
}
.pillar-growth {
    padding: 50px 20px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    line-height: 1.5;
}

.pg-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pg-header {
    text-align: center;
    margin-bottom: 60px;
}

.pg-title {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.pg-subtitle {
    color: var(--text-slate);
    font-size: 16px;
}

.pg-flow {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Question Box sử dụng accent-yellow từ root */
.pg-question-box {
    background: var(--bg-white);
    border: 2px solid var(--accent-red);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    margin-bottom: 40px;
}

.pg-question-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.pg-question-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.pg-grid-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .pg-grid-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .pg-grid-row::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 2px;
        background: var(--border-color);
        z-index: 0;
    }
}

.pg-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    z-index: 1;
}

/* Card Trụ chính sử dụng Primary của bạn */
.pg-card--main {
    background: var(--primary);
    color: var(--bg-white);
    border: 4px solid var(--bg-white);
    transform: scale(1.05);
    box-shadow: 0 20px 30px rgba(31, 111, 181, 0.2);
    z-index: 2;
}

.pg-card-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
}

.pg-card--main .pg-card-tag { color: rgba(255,255,255,0.9); }

.pg-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--primary);
}
.pg-card-icon img{
    width: 45px !important;
    height: 45px !important;
    object-fit: contain;
}
.pg-card--main .pg-card-icon { color: var(--bg-white); }

.pg-card-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.pg-card-desc { font-size: 12px; font-style: italic; color: var(--text-slate); font-weight: 600; }
.pg-card--main .pg-card-desc { color: rgba(255,255,255,0.8); }

.pg-connector-v {
    width: 2px;
    height: 40px;
    background: var(--border-color) !important;
    margin: 0 auto;
    position: relative;
}
/* CLASS RIÊNG BIỆT CHO ĐƯỜNG NỐI RẼ NHÁNH */
.pg-custom-branch-connector {
    position: relative;
    width: 66.66%; /* Nối từ tâm cột 1 sang tâm cột 3 */
    height: 40px;
    margin: -20px auto 20px; /* Căn giữa và bù trừ khoảng cách */
    z-index: 1;
    top: 18px;
}

/* Ẩn trên mobile để không làm lệch layout cũ của bạn */

    .pg-line-horz {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--border-color) !important; /* Màu đỏ yêu cầu */
    }

    /* Đường dọc đỏ bên trái gập xuống */
    .pg-line-vert-left {
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 100%;
        background: var(--border-color) !important;
    }

    /* Đường dọc đỏ bên phải gập xuống */
    .pg-line-vert-right {
        position: absolute;
        top: 0;
        right: 0;
        width: 2px;
        height: 100%;
        background: var(--border-color) !important;
    }

    /* Đường dọc xám ở giữa xuống Trụ 1 (Giữ màu của hệ thống cũ) */
    .pg-line-vert-center {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 100%;
        background: #e2e8f0;
    }

    /* Mũi tên nhọn cho 2 đường đỏ bên cạnh */
    .pg-line-vert-left::after, 
    .pg-line-vert-right::after {
        content: "expand_more";
    font-family: 'Material Symbols Outlined';
        position: absolute;
        bottom: -13px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--primary);
        font-size: 21px;
        font-weight: bold;
    }
.pg-connector-v--arrow::after {
    content: "expand_more";
    font-family: 'Material Symbols Outlined';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 23px;
}
.pg-connector-v--arrow.pha2::after{
    bottom: -52px;
    z-index: 10;
}
/* Summary Box 2 Columns */
.pg-summary {
    /* margin-top: 60px; */
    background: var(--bg-white);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.pg-summary-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .pg-summary-layout {
        grid-template-columns: 1.2fr 1fr;
    }
}

.pg-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pg-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg-feature-item span { color: var(--accent-green); font-size: 24px; }
.pg-feature-title { font-size: 15px; font-weight: 700; margin: 0; color: var(--text-dark); }
.pg-feature-text { font-size: 13px; color: var(--text-slate); margin: 0; }

.pg-strategy-box {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.pg-strategy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-dark);
}

.pg-strategy-item:last-child { border-bottom: none; }

.pg-strategy-result {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.pg-footer-badge {
    text-align: center;
    margin-top: 35px;
    padding: 15px;
    background: rgba(31, 111, 181, 0.08);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}
/* Responsive */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .btn-zalo {
        display: flex;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 30px !important;
    }

    .roadmap-line {
        display: block;
    }

    .roadmap-step {
        flex-direction: row;
    }

    .step-content {
        text-align: right;
        padding-right: 48px;
    }

    .step-number {
        margin: 0;
    }

    .step-empty {
        flex: 1;
    }

    .step-2 {
        flex-direction: row-reverse;
    }

    .step-2 .step-content {
        text-align: left;
        padding-left: 48px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
    }
}
.roadmap-container .pg-connector-v--arrow{display: none;}
@media (min-width: 1024px) {
    .diagram-container {
        display: block;
    }

    .mobile-pillars {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    .section-padding{
        padding: 50px 0px;
    }
    .hero{
        padding: 30px 0px 70px;
    }
    .section-title{
        font-size: 25px;
    }
    .pain-card{
        padding: 20px;
    }
    .mobile-card {
        padding: 10px;
    }
    .mobile-hub{
        padding: 15px;
    }
    .step-content{
        padding: 0;
    }
    .hero h1{
        font-size: 25px;
    }
    .btn-white{
        padding: 20px !important;
        gap: 5px !important;
        font-size: 17px !important;
    }
    .footer-col{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-col h4{
        margin-bottom: 5px;
    }
    .footer-grid{
        text-align: center;
        gap: 20px;
    }
    .footer-cta h2{
        font-size: 27px;
    }
    .faq-header{
        padding: 15px;
    }
    .text-center{
        margin-bottom: 30px;
    }
    .pg-question-text{
        font-size: 15px;
    }
    .material-symbols-outlined{
        font-size: 20px;
    }
    .pg-question-box{
        padding: 15px;
        gap: 5px;
    }
    .pg-card{
        padding: 8px;
    }
    .pg-card--main{
        box-shadow: unset;
    }
    .pg-summary{
        padding: 22px;
    }
    .pg-strategy-box{
        padding: 5px 14px;
    }
    .pg-feature-text{
        font-size: 12px;
    }
    .pg-feature-title, .pg-strategy-item{
        font-size: 14px;
    }
    .pg-footer-badge{
        padding: 10px;
        border-radius: 10px;
        font-size: 14px;
    }
    .pillar-growth{
        padding: 50px 20px;
    }
    .hero-btns{
        flex-wrap: no-wrap;
        gap: 5px;
    }
    .hero-btns .btn-primary, .hero-btns .btn-secondary{
        padding: 10px 15px;
        font-size: 15px;
    }
    .pg-card-title { font-size: 10px;}
    .pg-card-desc { font-size: 8px;}
    .pg-grid-row{
        gap: 5px;
        grid-template-columns: repeat(3, 1fr);
    }
    .pg-card-icon img{
        width: 25px !important;
        height: 25px !important;
    }
    .roadmap-container .pg-connector-v--arrow{
        display: block;
    }
    .roadmap-step{
        margin-bottom: 15px;
    }
}

.roadmap-container .pg-connector-v--arrow::after{
    bottom: -16px !important;
}