/*
Theme Name: WebViệt Agency Theme
Theme URI: http://webvietvn.local/
Author: Antigravity AI
Author URI: https://webviet.vn/
Description: Custom premium WordPress theme for web design services, styled after BKNS, optimized for SEO, speed, and mobile responsiveness.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webviet-agency
*/

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0b2240;
    /* Navy đậm */
    --primary-light: #16365f;
    --secondary: #0066ff;
    /* Xanh công nghệ */
    --secondary-dark: #0052cc;
    --accent: #ff6f00;
    /* Cam nổi bật */
    --accent-hover: #e66400;
    --text-dark: #1e293b;
    /* Xám đen */
    --text-light: #64748b;
    /* Xám nhẹ */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success: #10b981;
    /* Font chữ Open Sans tinh tế, hiện đại và tối ưu khả năng đọc */
    --font-sans: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --container-width: 1200px;
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

input,
textarea,
button,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-white);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* Highlight text */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons (Đảm bảo chiều cao tối thiểu 44px trên mobile để dễ bấm) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    min-height: 46px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hiệu ứng tia sáng quét qua button cực sang trọng */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-30deg);
    transition: none;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.btn:hover::after {
    left: 150%;
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon trong button - dạng outline thanh mảnh */
.btn-icon {
    margin-right: 8px;
    flex-shrink: 0;
    stroke-width: 2px;
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

/* --- General Vector SVG Icon Styling --- */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2px;
    fill: none;
    transition: var(--transition);
}

/* Header Topbar Icons */
.topbar-info-item .icon {
    margin-right: 6px;
    color: var(--accent);
    width: 14px;
    height: 14px;
}

/* Floating Badges Icons */
.floating-badge .badge-icon .icon {
    width: 20px;
    height: 20px;
    color: inherit;
}

/* Service Feature Cards Icons */
.feature-icon .icon {
    width: 32px;
    height: 32px;
    color: inherit;
}

/* Contact Block Detail Icons */
.detail-icon .icon {
    width: 22px;
    height: 22px;
    color: #ffffff !important;
}

/* Footer Contact List Icons */
.footer-contact-item .icon {
    margin-right: 8px;
    color: var(--accent);
    width: 16px;
    height: 16px;
}

/* Blog Meta List & Sidebar Post Icons */
.post-card-meta .icon,
.sidebar-post-item .icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    color: var(--secondary);
}

.page-header-banner .icon {
    width: 15px;
    height: 15px;
    color: inherit;
}



.btn-primary {
    background: linear-gradient(135deg, #008cff 0%, #004ecc 100%);
    color: var(--bg-white);
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0099ff 0%, #0056e0 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.35);
}

.btn-accent {
    background: linear-gradient(135deg, #ff8c00 0%, #e65c00 100%);
    color: var(--bg-white);
    border-color: transparent;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ffa033 0%, #ff6600 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 111, 0, 0.35);
}

.btn-outline {
    background-color: transparent;
    border-color: #008cff;
    color: #008cff;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #008cff 0%, #004ecc 100%);
    color: var(--bg-white);
    border-color: transparent;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.35);
}

/* --- Header Layout --- */
.site-header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* Topbar */
.header-topbar {
    background-color: #ffffff;
    color: var(--text-dark);
    font-size: 0.85rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 10;
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 35px;
    /* Dễ click trên di động */
}

.topbar-info-item a {
    padding: 5px 0;
}

.topbar-info-item a:hover {
    color: var(--accent);
}

/* Main Nav */
.header-main {
    padding: 10px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Upload & Text Styling */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

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

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

/* Dropdown Menu CSS-Only */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
  
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 15px 5px;
    /* Tăng padding để tăng vùng click */
    display: inline-block;
}

/* Caret icon (mũi tên dropdown) cho các mục có menu con */
.nav-menu .menu-item-has-children>a {
    padding-right: 20px;
    /* Tạo khoảng trống rộng hơn một chút cho mũi tên lớn */
}

.nav-menu .menu-item-has-children>a::before {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    /* Làm nét vẽ mảnh hơn (1px thay vì 1.5px) */
    border-bottom: 1px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    /* Điều chỉnh lại căn giữa */
    transition: var(--transition);
}

/* Xoay mũi tên khi di chuột vào hoặc focus */
.nav-menu .menu-item-has-children:hover>a::before,
.nav-menu .menu-item-has-children:focus-within>a::before {
    transform: translateY(-20%) rotate(-135deg);
    color: var(--secondary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item>a,
.nav-menu .current-page-ancestor>a {
    color: var(--secondary);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item>a::after,
.nav-menu .current-page-ancestor>a::after {
    width: 100%;
}

/* CSS-Only Mega Menu */
.nav-wrapper {
    position: relative;
}

.menu-item-has-mega {
    position: static !important;
}

.nav-menu .menu-item-has-mega>a {
    padding-right: 25px;
    /* Make room for the caret */
    position: relative;
}

.nav-menu .menu-item-has-mega>a::before {
    content: '';
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-menu .menu-item-has-mega:hover>a::before,
.nav-menu .menu-item-has-mega:focus-within>a::before {
    transform: translateY(-50%) rotate(180deg);
}

.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.menu-item-has-mega:hover .mega-menu-wrapper,
.menu-item-has-mega:focus-within .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-col {
    border-right: 1px solid var(--border-color);
    padding-right: 25px;
    text-align: left;
}

.mega-col:last-child {
    border-right: none;
    padding-right: 0;
}

.mega-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.mega-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mega-links li {
    width: 100% !important;
}

.mega-links a {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 10px 12px !important;
    border-radius: 8px;
    transition: var(--transition);
    background-color: transparent;
    border-bottom: none !important;
    width: 100%;
}

.mega-links a:hover {
    background-color: var(--bg-light);
    transform: translateX(4px);
}

.mega-icon {
    width: 22px;
    height: 22px;
    color: var(--secondary);
    flex-shrink: 0;
    stroke-width: 2px;
    transition: var(--transition);
    margin-right: 5px;
}

.mega-links a:hover .mega-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.mega-links strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.mega-links span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.3;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Menu Toggle (Tối thiểu 44x44px) */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 144, 255, 0.92) 0%, rgba(0, 75, 180, 0.92) 100%), url('images/tech-hero-bg.png') no-repeat center center / cover;
    color: var(--bg-white);
    padding: 60px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--bg-white);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 25px;
}

.hero-title span {
    color: var(--accent);
    font-weight: 800;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

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

.hero-image-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper svg {
    border-radius: calc(var(--border-radius) - 4px);
    width: 100%;
}

.floating-badge {
    position: absolute;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
}

.floating-badge.b-1 {
    bottom: 20px;
    left: -30px;
}

.floating-badge.b-2 {
    top: 30px;
    right: -20px;
    animation-delay: 2s;
}

.floating-badge .badge-icon {
    background: linear-gradient(135deg, #008cff 0%, #004ecc 100%);
    color: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
}

.floating-badge:hover .badge-icon {
    transform: scale(1.1) rotate(15deg);
    background: linear-gradient(135deg, #ff8c00 0%, #e65c00 100%);
}

.floating-badge .badge-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.floating-badge .badge-text p {
    font-size: 0.75rem;
    color: var(--text-light);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #008cff 0%, #004ecc 100%);
    color: var(--bg-white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #ff8c00 0%, #e65c00 100%);
    color: var(--bg-white);
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Feature Card Clickable & Background Icon */
.feature-card * {
    position: relative;
    z-index: 1;
}

.feature-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 150px;
    height: 150px;
    opacity: 0.03;
    transition: var(--transition);
    pointer-events: none;
    z-index: 0;
}

.feature-bg-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary);
}

.feature-card:hover .feature-bg-icon {
    transform: scale(1.1);
    opacity: 0.06;
}

.feature-card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* --- Pricing Section --- */
.pricing-section {
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 45px 35px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    background-color: transparent;
    border: none;
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
    overflow: hidden;
    z-index: 1;
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--secondary) 90deg,
            transparent 180deg,
            var(--accent) 270deg,
            transparent 360deg);
    animation: spin-gradient 4s linear infinite;
    z-index: -2;
}

.pricing-card.popular::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-white);
    border-radius: calc(var(--border-radius) - 3px);
    z-index: -1;
}

@keyframes spin-gradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.pricing-card.popular:hover {
    transform: translateY(-5px) scale(1.03);
}

.pricing-header {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-areas:
        "icon name"
        "icon desc"
        "price price";
    column-gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.pricing-icon {
    grid-area: icon;
    width: 60px;
    height: 60px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    color: var(--primary);
    transition: var(--transition);
}

.pricing-card:hover .pricing-icon {
    transform: scale(1.1) rotate(5deg);
}

.pricing-icon .icon {
    width: 28px;
    height: 28px;
}

.pricing-card.popular .pricing-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c00 100%);
    color: var(--bg-white);
    box-shadow: 0 10px 20px rgba(255, 111, 0, 0.3);
}

/* Custom Pricing Icon Colors */
.pricing-card-landing .pricing-icon {
    color: #ff5f56;
}

.pricing-card-ecommerce .pricing-icon {
    color: #0066ff;
}

.pricing-name {
    grid-area: name;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 5px;
    align-self: end;
}

.pricing-desc {
    grid-area: desc;
    color: var(--text-light);
    font-size: 0.9rem;
    align-self: start;
}

.pricing-price {
    grid-area: price;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-period {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 0.5;
    text-align: left;
}

.price-period strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-features {
    margin-bottom: 35px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    /* Check icon SVG outline: stroke-width=3.5, color=var(--success) #10b981 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pricing-features li.na {
    color: var(--text-light);
    opacity: 0.5;
}

.pricing-features li.na::before {
    /* Cross icon SVG outline: stroke-width=3.5, color=var(--text-light) #64748b */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    opacity: 0.7;
}

.pricing-card .btn {
    width: 100%;
}

/* --- Why Choose Us Section --- */
.why-section {
    overflow: hidden;
}

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

.why-image-wrapper {
    position: relative;
}

.why-image-wrapper svg {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.why-badge-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary);
    color: var(--bg-white);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.why-badge-experience h3 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.why-badge-experience p {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.why-list {
    margin-top: 30px;
}

.why-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.why-item-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 102, 255, 0.08);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.why-item-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.why-item-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- CTA Banner --- */
.cta-banner-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-banner-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Contact & Callback Section --- */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info-card {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info-card p {
    opacity: 0.8;
    margin-bottom: 35px;
}

.contact-details-list {
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #008cff 0%, #004ecc 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    transition: var(--transition);
}

.contact-detail-item:hover .detail-icon {
    transform: scale(1.1) rotate(-10deg);
    background: linear-gradient(135deg, #ff8c00 0%, #e65c00 100%);
}

.detail-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.7;
}

.detail-text p,
.detail-text a {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 5px 0;
    display: inline-block;
}

.detail-text a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Form Container */
.contact-form-container {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-form-container p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    min-height: 44px;
    /* Tối ưu click */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-response-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-response-msg.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-response-msg.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* --- Articles Grid Section --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.post-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-img img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-title a {
    display: block;
    padding: 5px 0;
}

.post-card-title a:hover {
    color: var(--secondary);
}

.post-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-card-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    /* Tăng tap target */
}

.post-card-more:hover {
    color: var(--accent);
}

/* --- Global Breadcrumbs --- */
.global-breadcrumb-bar {
    background-color: #ffffff;
    padding: 0;
    border-bottom: none;
    display: flex;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    font-size: 0.9rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    padding: 8px 15px 8px 30px;
    background: #f8fafc;
    /* Very light slate */
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    margin-left: -5px;
    /* Overlap the chevrons */
    z-index: 1;
    transition: z-index 0.3s;
}

.breadcrumb-list li:hover {
    z-index: 2;
}

/* Inner cut for the thin border effect */
.breadcrumb-list li::before {
    content: '';
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 1px;
    right: 1px;
    background: #e2e8f0;
    /* Border color */
    clip-path: polygon(0 0, calc(100% - 14.5px) 0, 100% 50%, calc(100% - 14.5px) 100%, 0 100%, 14.5px 50%);
    z-index: -1;
    transition: background 0.3s ease;
}

.breadcrumb-list li:hover::before {
    background: #cbd5e1;
}

.breadcrumb-list li:first-child {
    padding-left: 20px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    margin-left: 0;
}

.breadcrumb-list li:first-child::before {
    left: 1px;
    clip-path: polygon(0 0, calc(100% - 14.5px) 0, 100% 50%, calc(100% - 14.5px) 100%, 0 100%);
}

.breadcrumb-list li:last-child {
    padding-right: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
    z-index: 0;
    background: #f0fdf4;
    /* Light green tint for current page */
}

.breadcrumb-list li:last-child::before {
    right: 1px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14.5px 50%);
    background: #bbf7d0;
    /* Greener border */
}

.breadcrumb-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list .current-item {
    color: var(--success);
    /* Green for current item */
    font-weight: 700;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-list {
    width: 100%;
}

.breadcrumb-list li:last-child {
    flex-grow: 1;
    background: linear-gradient(to right, #f0fdf4 0%, rgba(240, 253, 244, 0) 100%);
}

.breadcrumb-list li:last-child::before {
    background: linear-gradient(to right, #bbf7d0 0%, rgba(187, 247, 208, 0) 100%);
}

@media (max-width: 768px) {
    .global-breadcrumb-bar .container {
        padding-left: 0;
        padding-right: 0;
    }

    .breadcrumb-list li:first-child {
        border-radius: 0;
    }

    .breadcrumb-list li:last-child {
        padding-right: 25px;
        /* Extra padding to ensure text doesn't hit screen edge */
    }
}

/* --- Internal Pages (page.php, single.php) --- */
.page-header-banner {
    background: linear-gradient(135deg, #008cff 0%, #004ecc 100%);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

.page-breadcrumbs {
    font-size: 0.9rem;
    opacity: 0.8;
}

.page-breadcrumbs a {
    padding: 5px;
    display: inline-block;
}

.page-breadcrumbs a:hover {
    color: var(--accent);
}

.page-content-wrapper {
    padding: 60px 0;
}

.page-grid {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr;
    gap: 40px;
}

.page-grid.full-width {
    grid-template-columns: 1fr;
}

.article-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--primary);
    margin: 30px 0 15px 0;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 8px;
}

/* Sidebar */
.sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary);
    padding-left: 12px;
    line-height: 1.2;
}

/* --- Sidebar Services Widget --- */
.sidebar-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-service-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    gap: 15px;
}

.sidebar-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.sidebar-service-card.active {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(22, 54, 95, 0.2);
    border-color: var(--primary);
}

.sidebar-service-card .service-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar-service-card.active .service-icon {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--bg-white) !important;
}

.sidebar-service-card .service-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-service-card .service-text {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.widget-contact-box {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--bg-white);
    text-align: center;
}

.widget-contact-box .widget-title {
    color: var(--bg-white);
    border-left: none;
    padding-left: 0;
}

.widget-contact-btn {
    background-color: var(--accent);
    color: var(--bg-white);
    width: 100%;
    margin-top: 15px;
}

.widget-contact-btn:hover {
    background-color: var(--accent-hover);
}

.sidebar-post-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-text {
    flex: 1;
}

.sidebar-post-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    order: 2;
    /* Đưa hình ảnh hiển thị ở phía bên phải */
}

.sidebar-post-thumb img,
.sidebar-post-thumb svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.sidebar-post-title a {
    display: block;
    padding: 2px 0;
}

.sidebar-post-title a:hover {
    color: var(--secondary);
}

/* --- Footer Layout --- */
.site-footer {
    background-color: #0b1528;
    color: #94a3b8;
    padding: 70px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bg-white);
    margin-bottom: 25px;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-info-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-info-logo span {
    color: var(--accent);
}

.footer-info-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    line-height: 1.4;
    /* Click target */
}

.footer-links a::before {
    content: '›';
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 1px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact-item a {
    padding: 3px 0;
    display: inline-block;
}

.footer-contact-item span {
    color: var(--accent);
    font-weight: bold;
}

.footer-map-container {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.footer-copyright-bar {
    background-color: #060d1b;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
}

.copyright-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-wrapper a {
    padding: 5px;
    display: inline-block;
}

.footer-policy-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    color: var(--text-light);
}

.footer-policy-links a {
    color: var(--text-light);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-policy-links a:hover {
    color: var(--accent);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
        /* Thu hẹp padding section để layout chặt chẽ */
    }

    .section-subtitle {
        margin-bottom: 25px;
        /* Giảm khoảng cách thừa */
    }

    .topbar-wrapper {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .topbar-right {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: static;
    }

    .site-header {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        display: none;
        border-top: 1px solid var(--border-color);
        padding: 5px 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu>li>a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        font-weight: 600;
        position: relative;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Mobile Mega Menu Accordion */
    .nav-menu .mega-menu-wrapper {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        display: none;
        /* Hidden until toggled */
        background-color: var(--bg-light);
        transition: none;
    }

    .nav-menu .menu-item-has-mega.active-mobile .mega-menu-wrapper {
        display: block;
    }

    .nav-menu .mega-menu-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-menu .mega-col {
        border-right: none;
        border-bottom: 1px dashed var(--border-color);
        padding-right: 0;
        padding-bottom: 15px;
    }

    .nav-menu .mega-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .nav-menu .mega-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-menu .mega-links a {
        padding: 12px 15px !important;
        background-color: var(--bg-white);
        border: 1px solid var(--border-color) !important;
        margin-bottom: 10px;
    }

    .nav-menu .mega-links a:hover {
        background-color: var(--bg-white);
        border-color: var(--accent) !important;
        transform: translateY(-2px);
    }

    .nav-menu .mega-links span {
        display: block;
        /* Show description nicely */
    }

    .nav-menu .menu-item-has-mega>a::before {
        content: '';
        display: inline-block;
        position: absolute;
        right: 20px;
        top: 50%;
        width: 24px;
        height: 24px;
        border: none;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        background-color: currentColor;
        -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
        mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    .nav-menu .menu-item-has-mega.active-mobile>a::before {
        transform: translateY(-50%) rotate(180deg);
    }

    .nav-menu .menu-item-has-mega>a::after {
        display: none !important;
    }

    .header-action {
        display: none;
    }

    /* Hero mobile tight fit */
    .hero-section {
        padding: 50px 0 40px 0;
        /* Thu nhỏ khoảng cách banner */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        /* Thu hẹp khoảng cách text và hình ảnh mockup */
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 15px;
    }

    .hero-description {
        margin-bottom: 25px;
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 10px;
        margin-bottom: 30px;
    }

    .hero-stats {
        justify-content: space-around;
        gap: 15px;
        padding-top: 20px;
    }

    .stat-num {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Ẩn các badge lơ lửng trên mobile để tránh đè chữ và tràn màn hình */
    .floating-badge {
        display: none !important;
    }

    /* Grids gap reduction */
    .pricing-grid,
    .features-grid,
    .blog-grid {
        gap: 20px;
    }

    /* Pricing card tight fit */
    .pricing-card {
        padding: 30px 20px;
        /* Giảm padding thẻ bảng giá */
    }

    .pricing-card.popular {
        transform: none !important;
        /* Tránh scale đè các card khác khi xếp hàng dọc */
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px) !important;
    }

    /* Why Choose Us mobile tight fit */
    .why-badge-experience {
        position: static;
        /* Chuyển sang static để không bị tràn layout bên phải */
        margin: 20px auto 0 auto;
        max-width: 280px;
        padding: 15px 20px;
    }

    .why-list {
        margin-top: 15px;
    }

    .why-item {
        margin-bottom: 15px;
    }

    /* Contact Section mobile tight fit */
    .contact-grid {
        gap: 25px;
    }

    .contact-info-card {
        padding: 30px 20px;
    }

    .contact-details-list {
        margin-bottom: 20px;
    }

    .contact-detail-item {
        margin-bottom: 15px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    /* Subpage mobile tight fit */
    .page-content-wrapper {
        padding: 30px 0;
    }

    .page-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .article-content {
        padding: 20px;
        /* Thu hẹp để chừa chỗ cho nội dung text trên mobile */
    }

    .widget {
        padding: 20px;
    }

    /* Footer mobile tight fit */
    .site-footer {
        padding: 40px 0 0 0;
    }

    .footer-grid {
        gap: 25px;
        margin-bottom: 30px;
    }
}

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

    .hero-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .stat-item {
        flex: 1;
    }

    .stat-num {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .copyright-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ==========================================
   ADVANCED PROJECT SHORTCODE SYSTEM
   ========================================== */

.webviet-projects-container {
    margin: 40px 0;
}

/* Toolbar: Tabs & Search */
.projects-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.projects-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tab {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-tab:hover,
.project-tab.active {
    background: linear-gradient(135deg, #008cff 0%, #004ecc 100%);
    color: var(--bg-white);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.projects-search {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.projects-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#project-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

#project-search-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Grid System */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Loader */
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Projects */
/* Let auto-fit handle the columns gracefully */

@media (max-width: 768px) {
    .projects-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-search {
        width: 100%;
    }

    .projects-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .project-tab {
        flex-shrink: 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Page Redesign --- */
.contact-page-wrapper {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form-container {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.webviet-form .form-group {
    margin-bottom: 20px;
}

.webviet-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.webviet-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.webviet-form .form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

.form-response-msg {
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-response-msg.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-response-msg.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-wrapper,
    .contact-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Mobile Hero Heartbeat --- */
@media (max-width: 768px) {
    .hero-buttons .btn-accent {
        animation: heroHeartbeat 1.5s infinite ease-in-out;
    }
}

@keyframes heroHeartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.05);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* --- 15. Meta Tags & Badges --- */
.meta-updated {
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 4px;
}

.author-badge {
    margin-left: 4px;
    vertical-align: text-bottom;
}

.post-card-meta.style-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #ffffff;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.post-card-meta.style-banner .meta-item {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.post-card-meta.style-banner .meta-item svg,
.post-card-meta.style-banner .meta-item .icon {
    color: #ffffff;
    opacity: 0.9;
}

.post-card-meta.style-banner .meta-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    /* Pill shape */
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
    /* Prevents text from breaking */
    transition: all 0.3s ease;
}

.meta-item:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.meta-item:hover svg,
.meta-item:hover .icon {
    color: #ffffff;
}

.meta-item svg,
.meta-item .icon {
    width: 14px;
    height: 14px;
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Mobile responsive for meta tags */
@media (max-width: 768px) {
    .post-card-meta {
        justify-content: center;
        gap: 4px;
        flex-wrap: nowrap;
    }

    .post-card-meta.style-banner {
        gap: 4px;
        flex-wrap: nowrap;
    }

    .meta-item {
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .meta-item svg,
    .meta-item .icon {
        width: 12px;
        height: 12px;
    }
}

/* --- 16. SVG Shapes & Background Waves --- */
.banner-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    color: #ffffff;
}

.shape-wave-bottom {
    bottom: -2px;
    /* Fix for subpixel rendering gap */
    left: 0;
    width: 100%;
    height: 60px;
    opacity: 1;
}

.shape-circle {
    top: -20px;
    right: 5%;
    width: 200px;
    height: 200px;
    animation: floatShape 6s ease-in-out infinite;
}

.shape-triangle {
    bottom: 30px;
    left: 10%;
    width: 120px;
    height: 120px;
    animation: floatShape 8s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* --- 17. Bảng Giá Page Template --- */
.feature-card-color {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-color:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.process-step {
    display: flex;
    gap: 30px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff, #00d2ff);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 5px #0f2b5c;
}

.step-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    flex: 1;
}

.step-content h3 {
    color: #00d2ff;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 700;
    color: #0f2b5c;
    font-size: 1.1rem;
    cursor: pointer;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

.faq-answer {
    padding: 20px;
    color: #4a5568;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }

    .process-step {
        gap: 20px;
    }
}

/* --- Back to Top Progress Ring --- */
.webviet-btt {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webviet-btt.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.webviet-btt:hover {
    box-shadow: 0 6px 20px rgba(0, 140, 255, 0.3);
    transform: translateY(-5px);
}

.btt-progress {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 54px;
    height: 54px;
    transform: rotate(-90deg);
    /* Start from top */
}

.btt-progress circle {
    fill: none;
    stroke-width: 4;
}

.btt-progress-track {
    stroke: rgba(0, 0, 0, 0.05);
}

.btt-progress-fill {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 290;
    stroke-dashoffset: 290;
}

.btt-icon {
    position: relative;
    z-index: 2;
    color: var(--primary);
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.webviet-btt:hover .btt-icon {
    transform: translateY(-3px);
    color: var(--accent);
}

@media (max-width: 768px) {
    .webviet-btt {
        right: 15px;
        bottom: 15px;
        width: 44px;
        height: 44px;
    }

    .btt-progress {
        width: 48px;
        height: 48px;
    }
}