html,
body {
    font-family: "Inter", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
}

.section-space {
    padding: 84px 0;
}

.fos-navbar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.fos-navbar .nav-link {
    font-weight: 600;
    color: var(--color-text);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.fos-navbar .nav-link:hover,
.fos-navbar .nav-link:focus,
.fos-navbar .nav-link.active {
    color: var(--color-primary);
}

.fos-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--color-primary);
    padding: 6px;
}

.fos-btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
}

.fos-btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.fos-btn-outline {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.65rem 1.35rem;
}

.fos-btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
}

.hero-section {
    background: var(--gradient-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    transform: rotate(-32deg);
    opacity: 0.2;
}

.hero-section::before {
    width: 360px;
    height: 130px;
    top: 10%;
    right: -80px;
    background: var(--gradient-orange-accent);
}

.hero-section::after {
    width: 460px;
    height: 160px;
    bottom: 8%;
    left: -130px;
    background: var(--color-secondary-purple);
}

.hero-wrap {
    position: relative;
    z-index: 2;
}

#heroSlides {
    position: relative;
    padding-bottom: 2.2rem;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 0.6rem 0 1rem;
}

.hero-text {
    font-size: 1.05rem;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-card {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    border-radius: 22px;
    padding: 1.5rem;
}

.hero-metric {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
}

.hero-metric-label {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.hero-carousel-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2rem;
    justify-content: center;
    margin: 0;
}

.hero-carousel-indicators [data-bs-target] {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 0;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.hero-carousel-indicators .active {
    background: #fff;
    transform: scale(1.15);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.why-section {
    background: var(--color-surface);
}

.reason-card,
.product-card {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #fff;
    height: 100%;
    padding: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reason-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 34px rgba(26, 73, 145, 0.08);
}

.reason-icon,
.product-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.95rem;
    background: var(--gradient-accent);
}

.reason-card h3,
.product-card h3 {
    font-size: 1.04rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.product-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.95rem;
    background: linear-gradient(160deg, #fbfdff 0%, #eef5ff 100%);
}

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

.product-thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(22, 144, 232, 0.08) 0%, rgba(95, 50, 144, 0.08) 100%);
}

.product-thumb .product-icon {
    margin-bottom: 0;
}

.reason-card p,
.product-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.products-section {
    background: #fff;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.logo-item {
    border: 1px dashed var(--color-border);
    border-radius: 14px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-surface-alt);
    overflow: hidden;
}

.logo-item img {
    width: 100%;
    height: auto;
    max-height: 88px;
    object-fit: contain;
    border-radius: 10px;
}

.logo-item-media {
    display: block;
    width: min(100%, 120px);
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 16px rgba(19, 52, 95, 0.08);
}

.logo-item-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

.logo-item-title {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
}

.cta-section {
    color: #fff;
    background: var(--gradient-accent);
}

.cta-box {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.08);
}

.site-footer {
    background: #f3f7ff;
    border-top: 1px solid var(--color-border);
}

.footer-title {
    font-weight: 650;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.9rem;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.theme-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
}

.theme-content h2,
.theme-content h3,
.theme-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.theme-content p:last-child {
    margin-bottom: 0;
}

.vn-article-hero {
    padding: 40px 0;
}

.vn-article-hero-box {
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-soft) 70%, #ffffff 100%);
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.vn-article-kicker {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary-dark);
    background: rgba(22, 144, 232, 0.12);
    border: 1px solid rgba(22, 144, 232, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.vn-article-hero--product .vn-article-hero-box {
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 62%, #f8fcff 100%);
    border-color: rgba(22, 144, 232, 0.22);
}

.vn-article-hero--product .vn-article-kicker {
    background: rgba(22, 144, 232, 0.14);
    border-color: rgba(22, 144, 232, 0.28);
}

.vn-article-hero--solution .vn-article-hero-box {
    background: linear-gradient(
        120deg,
        var(--color-primary-dark) 0%,
        var(--color-primary) 52%,
        var(--color-secondary-purple) 100%
    );
    border-color: rgba(22, 144, 232, 0.28);
}

.vn-article-hero--solution .section-title,
.vn-article-hero--solution .section-subtitle {
    color: #f4f8ff;
}

.vn-article-hero--solution .vn-article-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.vn-article-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 40px rgba(16, 50, 96, 0.08);
}

.vn-article-image-wrap img {
    display: block;
    object-fit: cover;
}

.theme-content {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.theme-content ul,
.theme-content ol {
    padding-left: 1.25rem;
}

.theme-content img,
.theme-content iframe,
.theme-content table {
    max-width: 100%;
}

.vn-article-files {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.vn-file-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    background: rgba(95, 50, 144, 0.08);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.vn-file-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
}

.vn-file-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 26px rgba(22, 144, 232, 0.12);
}

.vn-file-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: var(--gradient-accent);
}

.vn-file-meta {
    display: grid;
    gap: 0.1rem;
}

.vn-file-meta strong {
    color: var(--color-text);
    font-size: 0.95rem;
}

.vn-file-meta small {
    color: var(--color-text-muted);
}

.vn-entry-card {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vn-entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 34px rgba(26, 73, 145, 0.08);
}

.vn-list-page--product .vn-entry-card {
    border: 1px solid rgba(22, 144, 232, 0.14);
    box-shadow: 0 10px 24px rgba(19, 52, 95, 0.06);
}

.vn-list-page--product .vn-entry-thumb {
    background: linear-gradient(160deg, #fbfdff 0%, #eef5ff 100%);
}

.vn-list-page--product .vn-entry-card a {
    color: var(--color-primary-dark);
}

.vn-list-page--solution {
    position: relative;
}

.vn-list-page--solution::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--color-primary-soft) 0%,
        rgba(95, 50, 144, 0.09) 58%,
        rgba(245, 130, 32, 0.08) 100%
    );
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    pointer-events: none;
}

.vn-list-page--solution .container {
    position: relative;
    z-index: 1;
}

.vn-list-page--solution .vn-entry-card {
    border-color: rgba(22, 144, 232, 0.24);
    background: linear-gradient(160deg, #ffffff 0%, rgba(95, 50, 144, 0.06) 100%);
    box-shadow: 0 14px 30px rgba(22, 144, 232, 0.1);
}

.vn-list-page--solution .vn-entry-card:hover {
    box-shadow: 0 18px 34px rgba(95, 50, 144, 0.2);
}

.vn-list-page--solution .vn-entry-thumb {
    aspect-ratio: 21 / 9;
    background: linear-gradient(
        135deg,
        rgba(22, 144, 232, 0.14) 0%,
        rgba(95, 50, 144, 0.14) 75%,
        rgba(245, 130, 32, 0.12) 100%
    );
}

.vn-list-page--solution .vn-entry-card h3 {
    color: var(--color-text);
}

.vn-list-page--solution .vn-entry-card a {
    color: #5f3290;
}

.vn-entry-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.vn-entry-thumb img {
    height: 100%;
    object-fit: cover;
}

.vn-partner-list > .vn-partner-split {
    width: 100%;
}

.vn-partner-split {
    border: 1px solid #e5e9f1;
    background: #f5f6f8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(20, 35, 70, 0.06);
}

.vn-partner-content {
    height: 100%;
    padding: clamp(1rem, 2.4vw, 1.7rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vn-partner-title {
    font-size: clamp(1.12rem, 2.2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 0.7rem;
    color: #2f3338;
}

.vn-partner-divider {
    width: 96px;
    height: 3px;
    background: var(--gradient-orange-accent);
    border-radius: 999px;
    display: block;
    margin-bottom: 0.9rem;
}

.vn-partner-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #505761;
}

.vn-partner-logo-wrap {
    display: block;
    height: clamp(180px, 20vw, 270px);
    min-height: unset;
    margin: 0;
    box-shadow: none;
    padding: 0.5rem;
    overflow: hidden;
    border-radius: 12px;
}

.vn-partner-logo {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.vn-partner-no-logo {
    font-weight: 700;
    color: var(--color-primary-dark);
    text-align: center;
}

.vn-pagination .page-link {
    border-color: var(--color-border);
    color: var(--color-text);
    min-width: 42px;
    text-align: center;
}

.vn-pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.vn-pagination .page-link:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
}

@media (max-width: 991.98px) {
    .section-space {
        padding: 68px 0;
    }

    .hero-wrap {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    #heroSlides .row {
        --bs-gutter-x: 1rem;
    }

    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-wrap {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    #heroSlides .row {
        --bs-gutter-x: 0.8rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-card {
        padding: 1.1rem;
    }

    .vn-partner-logo-wrap {
        border-left: 0;
        border-top: 1px solid #e5e9f1;
        height: 210px;
    }

    .vn-partner-text {
        font-size: 0.95rem;
    }
}

/* Page-specific styling */
.page-gioi-thieu {
    background:
        radial-gradient(950px 360px at 100% -10%, rgba(95, 50, 144, 0.1), transparent 60%),
        radial-gradient(800px 260px at 0% 0%, rgba(22, 144, 232, 0.1), transparent 58%),
        var(--color-bg);
}

.page-gioi-thieu .vn-article-hero--intro .vn-article-hero-box {
    background: linear-gradient(125deg, #fff 0%, var(--color-primary-soft) 62%, rgba(245, 130, 32, 0.12) 100%);
    border-color: rgba(245, 130, 32, 0.35);
}

.page-gioi-thieu .vn-content-page--intro .theme-content {
    position: relative;
    border-left: 0;
    background: linear-gradient(180deg, #fff 0%, rgba(22, 144, 232, 0.03) 100%);
}

.page-gioi-thieu .vn-content-page--intro .theme-content::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 1rem;
    bottom: 1rem;
    width: 4px;
    border-radius: 999px;
    background: var(--gradient-orange-accent);
}

.page-san-pham {
    background:
        radial-gradient(700px 220px at 100% 0%, rgba(22, 144, 232, 0.08), transparent 62%),
        var(--color-bg);
}

.page-san-pham .vn-list-page--product .vn-entry-card {
    border: 1px solid rgba(22, 144, 232, 0.16);
    background: #fff;
}

.page-san-pham .vn-list-page--product .vn-entry-card:hover {
    box-shadow: 0 16px 32px rgba(19, 52, 95, 0.1);
}

.page-giai-phap {
    background:
        radial-gradient(760px 320px at 0% 0%, rgba(95, 50, 144, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(22, 144, 232, 0.03) 0%, rgba(245, 130, 32, 0.03) 100%);
}

.page-giai-phap .vn-article-hero--solution .vn-article-hero-box {
    position: relative;
    overflow: hidden;
}

.page-giai-phap .vn-article-hero--solution .vn-article-hero-box::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 4px;
    right: 1.6rem;
    bottom: 1.2rem;
    border-radius: 999px;
    background: var(--gradient-orange-accent);
}

.page-giai-phap .vn-list-page--solution .vn-entry-card {
    border-bottom: 3px solid rgba(95, 50, 144, 0.25);
}

.page-doi-tac {
    background:
        radial-gradient(700px 240px at 100% 0%, rgba(95, 50, 144, 0.07), transparent 62%),
        var(--color-bg);
}

.page-doi-tac .vn-article-hero--partner .vn-article-hero-box {
    background: linear-gradient(140deg, #fff 0%, var(--color-primary-soft) 70%, rgba(95, 50, 144, 0.08) 100%);
    border-color: rgba(22, 144, 232, 0.28);
}

.page-doi-tac .vn-partner-split {
    border-color: rgba(22, 144, 232, 0.2);
    background: linear-gradient(160deg, #fff 0%, rgba(22, 144, 232, 0.05) 100%);
}

.page-article-detail {
    background:
        radial-gradient(840px 300px at 100% 0%, rgba(95, 50, 144, 0.11), transparent 58%),
        var(--color-bg);
}

.page-article-detail .vn-article-hero--detail .vn-article-hero-box {
    background: linear-gradient(120deg, rgba(22, 144, 232, 0.98) 0%, rgba(95, 50, 144, 0.96) 100%);
    border-color: rgba(22, 144, 232, 0.4);
}

.page-article-detail .vn-article-hero--detail .section-title,
.page-article-detail .vn-article-hero--detail .section-subtitle,
.page-article-detail .vn-article-hero--detail .vn-article-kicker {
    color: #fff;
}

.page-article-detail .vn-article-hero--detail .vn-article-kicker {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
}

.page-article-detail .vn-content-page--detail .theme-content {
    position: relative;
    border-top: 0;
}

.page-article-detail .vn-content-page--detail .theme-content::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 0.75rem;
    height: 4px;
    border-radius: 999px;
    background: var(--gradient-orange-accent);
}

/* Distinct page layouts */
.vn-entry-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary-purple) 100%);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
}

.vn-entry-card--feature {
    border: 0;
    box-shadow: 0 22px 40px rgba(22, 144, 232, 0.2);
}

.vn-entry-thumb--feature {
    aspect-ratio: 21 / 9;
}

.vn-product-mosaic .col-lg-4 .vn-entry-thumb {
    aspect-ratio: 4 / 3;
}

.vn-solution-flow {
    position: relative;
}

.vn-solution-item {
    border: 1px solid rgba(22, 144, 232, 0.2);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 28px rgba(22, 144, 232, 0.1);
}

.vn-solution-item.is-right {
    border-color: rgba(95, 50, 144, 0.26);
    box-shadow: 0 14px 30px rgba(95, 50, 144, 0.12);
}

.vn-solution-media {
    display: block;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(140deg, rgba(22, 144, 232, 0.16) 0%, rgba(95, 50, 144, 0.16) 100%);
}

.vn-solution-media img {
    object-fit: cover;
}

.vn-solution-no-image {
    display: grid;
    place-items: center;
    height: 100%;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.vn-solution-body {
    padding: clamp(1.1rem, 2.5vw, 1.8rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vn-solution-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--color-secondary-purple) 0%, var(--color-primary) 100%);
    margin-bottom: 0.9rem;
}

.vn-solution-item p {
    color: var(--color-text-muted);
}

.vn-intro-content {
    min-height: 100%;
    border-top: 4px solid var(--color-primary);
}

.vn-intro-panel {
    position: sticky;
    top: 96px;
}

.vn-intro-note {
    border: 1px solid rgba(95, 50, 144, 0.2);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(22, 144, 232, 0.08) 0%, rgba(95, 50, 144, 0.08) 100%);
    padding: 1rem 1.1rem;
    color: var(--color-text);
}

@media (max-width: 991.98px) {
    .vn-solution-media {
        min-height: 200px;
    }

    .vn-intro-panel {
        position: static;
    }
}
