/* ============================================
   AQ SHIP Custom Theme v2 — Clean Build
   Primary: #b85d10 | Dark: #212121 | Font: Inter
   All colors pass WCAG AA contrast
   ============================================ */

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

:root {
    --primary: #b85d10;
    --primary-dark: #a35210;
    --primary-light: #fff3eb;
    --dark: #212121;
    --dark-600: #424242;
    --dark-400: #616161;
    --gray: #757575;
    --gray-light: #e0e0e0;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #1a1a2e;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 32px rgba(184,93,16,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --content-width: 880px;
    --header-height: 72px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.7; color: var(--dark); background: var(--bg); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--dark); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

/* --- Badge --- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: all var(--transition); line-height: 1.5; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--gray-light); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--bg-alt); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }

/* --- Header --- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.06); height: var(--header-height); transition: all var(--transition); }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 40px; width: auto; }
.site-logo span { font-size: 20px; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }
.site-logo .logo-dot { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 4px; padding: 8px 16px; color: var(--dark-600); font-weight: 500; font-size: 15px; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a { color: var(--primary); background: var(--primary-light); }
.nav-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition); list-style: none; }
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a { display: block; padding: 10px 16px; color: var(--dark-600); font-size: 14px; border-radius: var(--radius-sm); }
.nav-menu .sub-menu a:hover { background: var(--primary-light); color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; align-items: center; gap: 6px; color: var(--dark); font-weight: 600; font-size: 14px; }
.header-phone svg { width: 16px; height: 16px; color: var(--primary); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; position: relative; z-index: 10002; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 6px 0; transition: all var(--transition); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -6px); }

/* --- Hero (Homepage) — Immersive with image overlay --- */
.hero { padding: 0; min-height: 640px; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--bg-dark); }
.hero-bg-image { position: absolute; inset: 0; z-index: 0; }
.hero-bg-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--bg-dark) 0%, rgba(26,26,46,0.88) 40%, rgba(26,26,46,0.4) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1;
    background-image: radial-gradient(ellipse 500px 250px at 75% 55%, rgba(184,93,16,0.06) 0%, transparent 70%),
    linear-gradient(90deg, transparent 49.5%, rgba(184,93,16,0.03) 49.5%, rgba(184,93,16,0.03) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(184,93,16,0.03) 49.5%, rgba(184,93,16,0.03) 50.5%, transparent 50.5%);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 80px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-content .badge { background: rgba(184,93,16,0.2); color: #e8a86b; border: 1px solid rgba(184,93,16,0.3); backdrop-filter: blur(4px); }
.hero-title { margin: 16px 0 24px; color: #fff; }
.hero-title .highlight { background: linear-gradient(135deg, var(--primary) 0%, #e8a050 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.2); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.35); }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-number { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat-number span { color: var(--primary); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.hero-image::after { content: ''; position: absolute; bottom: -16px; right: -16px; width: 100px; height: 100px; border: 2px solid rgba(184,93,16,0.2); border-radius: var(--radius-lg); z-index: -1; }
/* Floating decorations */
.hero::after { content: ''; position: absolute; top: 15%; right: 12%; width: 80px; height: 80px; border-radius: 50%; border: 1px solid rgba(184,93,16,0.15); z-index: 1; animation: float 6s ease-in-out infinite; pointer-events: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* --- Trust Bar (Homepage) --- */
.trust-bar { background: var(--bg-alt); border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.trust-icon svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: 15px; color: var(--dark); margin-bottom: 2px; }
.trust-item span { font-size: 14px; color: var(--dark-400); line-height: 1.6; }

/* --- Section Header --- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header p { color: var(--dark-400); font-size: 17px; margin-top: 12px; }

/* --- Service Cards --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius-lg); padding: 36px 28px; border: 1px solid rgba(0,0,0,0.06); transition: all var(--transition); position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform: scaleX(0); transition: transform var(--transition); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--primary); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 18px; margin-bottom: 12px; }
.service-card p { color: var(--dark-400); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; }
.service-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-link:hover svg { transform: translateX(4px); }

/* --- Features / Why Choose --- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-item { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(0,0,0,0.06); transition: all var(--transition); }
.feature-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.feature-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-item h4 { font-size: 16px; margin-bottom: 6px; }
.feature-item p { font-size: 14px; color: var(--dark-400); }

/* --- Blog Cards --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(0,0,0,0.06); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.blog-card-meta .cat { color: var(--primary); font-weight: 600; }
.blog-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.5; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 14px; color: var(--dark-400); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- CTA Section --- */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 80px 0; text-align: center; color: #fff; }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 600px; margin: 0 auto 32px; }

/* --- Page Header (legacy — kept for backward compat) --- */
.page-header { padding: 100px 0 48px; background: linear-gradient(135deg, var(--bg-alt) 0%, #fff 100%); text-align: center; }
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--dark-400); font-size: 17px; max-width: 640px; margin: 0 auto; }
.page-header .badge { margin-bottom: 12px; }
.page-header-meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--gray); margin-top: 12px; }

/* --- Page Content (WP pages — the decoded content goes here) --- */
.page-content {
    max-width: var(--content-width);
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

/* Basic typography for pages WITHOUT their own scoped CSS */
.page-content h2 { margin: 40px 0 16px; font-size: 24px; }
.page-content h3 { margin: 32px 0 12px; font-size: 20px; }
.page-content h4 { margin: 24px 0 8px; font-size: 17px; }
.page-content p { margin-bottom: 20px; }
.page-content ul, .page-content ol { margin: 16px 0; padding-left: 24px; }
.page-content li { margin-bottom: 8px; }
.page-content img { border-radius: var(--radius); margin: 24px 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.page-content th, .page-content td { padding: 12px 16px; border: 1px solid var(--gray-light); text-align: left; font-size: 15px; }
.page-content th { background: var(--bg-alt); font-weight: 600; color: var(--dark); }
.page-content blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; margin: 24px 0; background: var(--primary-light); border-radius: 0 var(--radius) var(--radius) 0; }
.page-content .note { background: var(--bg-alt); padding: 20px 24px; border-radius: var(--radius); margin: 24px 0; border-left: 4px solid var(--primary); }
.page-content a { color: var(--primary); }
.page-content a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Single Post */
.single-post-content { max-width: var(--content-width); margin: 0 auto; font-size: 17px; line-height: 1.8; }
.single-post-hero { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.single-post-tags { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--gray-light); font-size: 14px; color: var(--gray); }

/* --- FAQ --- */
.faq-list { max-width: var(--content-width); margin: 0 auto; }
.faq-item { border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: all var(--transition); }
.faq-item:hover { border-color: var(--primary); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--dark); background: #fff; font-size: 15px; }
.faq-question::after { content: '+'; font-size: 24px; color: var(--primary); font-weight: 300; transition: transform var(--transition); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--dark-400); font-size: 15px; line-height: 1.8; display: none; }
.faq-item.active .faq-answer { display: block; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 36px; }
.contact-form-title { margin-bottom: 24px; }
.contact-info-title { margin-bottom: 24px; }
.contact-office { margin-bottom: 24px; }
.contact-office-label { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); margin-bottom: 12px; }
.contact-text-dark { color: var(--dark); }
.contact-details { border-top: 1px solid var(--gray-light); padding-top: 20px; }
.contact-detail-label { font-weight: 600; color: var(--dark); }
.contact-detail-value { color: var(--primary); font-size: 18px; font-weight: 700; }
.contact-detail-link { color: var(--primary); }
.contact-social-buttons { margin-top: 24px; display: flex; gap: 12px; }
.contact-social-btn { flex: 1; justify-content: center; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 14px 18px; border: 1px solid var(--gray-light); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; transition: all var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(253,140,64,0.1); }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--dark); }
.contact-form .form-group { margin-bottom: 20px; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 48px 0; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; border: 1px solid var(--gray-light); color: var(--dark-400); transition: all var(--transition); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Footer --- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 14px; line-height: 1.8; margin: 16px 0; }
.footer-brand .site-logo span { color: #fff; }
.footer-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all var(--transition); }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social a svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.55); }

/* --- Floating Buttons --- */
.floating-buttons { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lg); transition: all var(--transition); border: none; cursor: pointer; }
.float-btn:hover { transform: scale(1.1); }
.float-btn-zalo { background: #0068ff; }
.float-btn-phone { background: var(--primary); }
.float-btn svg { width: 24px; height: 24px; }

/* --- Stats Section (Homepage) --- */
.stats-section { background: var(--bg-dark); color: #fff; position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(ellipse 400px 200px at 50% 50%, rgba(184,93,16,0.06) 0%, transparent 70%),
    linear-gradient(90deg, transparent 49.5%, rgba(184,93,16,0.03) 49.5%, rgba(184,93,16,0.03) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(184,93,16,0.03) 49.5%, rgba(184,93,16,0.03) 50.5%, transparent 50.5%);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    pointer-events: none;
}
.stats-section .section-header h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; position: relative; }
.stat-item { text-align: center; padding: 28px 16px; }
.stat-item .stat-number { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-item .stat-label { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 8px; }

/* ===== PAGE HERO SYSTEM — Unique hero per page ===== */
.page-hero {
    position: relative; overflow: hidden; padding: 120px 0 56px;
    text-align: center;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero-accent {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; margin-bottom: 16px;
}
.page-hero-accent svg { width: 16px; height: 16px; }
.page-hero-desc { font-size: 17px; max-width: 600px; margin: 8px auto 0; line-height: 1.7; }
.page-hero-meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; margin-top: 12px; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ── Variant: Navy (Dịch vụ, Bảng giá) ── */
.hero-navy { background: var(--bg-dark); color: #fff; border-bottom: 4px solid var(--primary); }
.hero-navy .page-hero-decor {
    background-image:
        radial-gradient(ellipse 500px 250px at 80% 50%, rgba(184,93,16,0.06) 0%, transparent 70%),
        linear-gradient(90deg, transparent 49.5%, rgba(184,93,16,0.03) 49.5%, rgba(184,93,16,0.03) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(184,93,16,0.03) 49.5%, rgba(184,93,16,0.03) 50.5%, transparent 50.5%);
    background-size: 100% 100%, 60px 60px, 60px 60px;
}
.hero-navy::before {
    content: ''; position: absolute; top: 12%; right: 8%; width: 80px; height: 80px;
    border-radius: 50%; border: 1px solid rgba(184,93,16,0.15);
    z-index: 1; animation: float 6s ease-in-out infinite; pointer-events: none;
}
.hero-navy::after {
    content: ''; position: absolute; bottom: 16%; right: 25%; width: 40px; height: 40px;
    border-radius: 8px; background: rgba(184,93,16,0.08); transform: rotate(45deg);
    z-index: 1; animation: float 6s ease-in-out 3s infinite; pointer-events: none;
}
.hero-navy h1 { color: #fff; }
.hero-navy .page-hero-accent { background: rgba(184,93,16,0.2); color: #e8a86b; border: 1px solid rgba(184,93,16,0.3); }
.hero-navy .page-hero-desc { color: rgba(255,255,255,0.6); }

/* ── Variant: Gradient (Liên hệ) ── */
.hero-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, var(--bg-dark) 100%); color: #fff; }
.hero-gradient::before {
    content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
    border-radius: 50%; background: rgba(255,255,255,0.05); filter: blur(40px);
    z-index: 1; pointer-events: none;
}
.hero-gradient::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    z-index: 1; pointer-events: none;
}
.hero-gradient h1 { color: #fff; }
.hero-gradient .page-hero-accent { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px); }
.hero-gradient .page-hero-desc { color: rgba(255,255,255,0.8); }
.hero-gradient .page-hero-meta { color: rgba(255,255,255,0.6); }

/* ── Variant: Warm (Giới thiệu) ── */
.hero-warm { background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 50%, rgba(184,93,16,0.04) 100%); border-bottom: 1px solid var(--gray-light); }
.hero-warm .page-hero-decor {
    background-image: radial-gradient(circle, var(--gray-light) 1px, transparent 1px);
    background-size: 24px 24px; opacity: 0.4;
}
.hero-warm::before {
    content: ''; position: absolute; bottom: -30px; right: -30px; width: 120px; height: 120px;
    border-radius: 50%; background: rgba(184,93,16,0.06); filter: blur(30px);
    z-index: 1; pointer-events: none;
}
.hero-warm::after {
    content: ''; position: absolute; top: 20px; right: 10%; width: 48px; height: 48px;
    border-radius: 12px; border: 2px solid rgba(184,93,16,0.12); transform: rotate(12deg);
    z-index: 1; pointer-events: none;
}
.hero-warm .page-hero-accent { background: var(--primary-light); color: var(--primary-dark); }
.hero-warm .page-hero-desc { color: var(--dark-400); }

/* ── Variant: Dark (Tin tức / Blog) ── */
.hero-dark { background: var(--bg-dark); color: #fff; position: relative; }
.hero-dark .page-hero-decor {
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(184,93,16,0.03) 8px, rgba(184,93,16,0.03) 9px);
}
.hero-dark::before {
    content: ''; position: absolute; top: 0; right: 0; width: 33%; height: 100%;
    background: linear-gradient(to left, rgba(184,93,16,0.06), transparent);
    z-index: 1; pointer-events: none;
}
.hero-dark h1 { color: #fff; }
.hero-dark .page-hero-accent { background: rgba(184,93,16,0.2); color: #e8a86b; border: 1px solid rgba(184,93,16,0.3); }
.hero-dark .page-hero-desc { color: rgba(255,255,255,0.6); }

/* ── Variant: Article (Single post with image) ── */
.hero-article { padding: 140px 0 48px; background: var(--bg-dark); color: #fff; }
.hero-article .page-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(26,26,46,0.7) 50%, rgba(26,26,46,0.5) 100%);
}
.hero-article:not(.has-image) { background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%); color: var(--dark); }
.hero-article:not(.has-image) h1 { color: var(--dark); }
.hero-article:not(.has-image) .page-hero-accent { background: var(--primary-light); color: var(--primary-dark); }
.hero-article:not(.has-image) .page-hero-meta { color: var(--gray); }
.hero-article.has-image h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-article .page-hero-accent { background: rgba(184,93,16,0.25); color: #e8a86b; border: 1px solid rgba(184,93,16,0.3); }
.hero-article .page-hero-meta { color: rgba(255,255,255,0.5); }
.hero-article.has-image .page-hero-meta { color: rgba(255,255,255,0.6); }

/* ── Variant: Minimal (Policy pages, fallback) ── */
.hero-minimal { background: var(--bg-alt); border-bottom: 1px solid var(--gray-light); }
.hero-minimal .page-hero-accent { background: var(--primary-light); color: var(--primary-dark); }
.hero-minimal .page-hero-desc { color: var(--dark-400); }

/* --- Scroll Animations --- */
.animate-slide-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-slide-up.animate-visible { opacity: 1; transform: translateY(0); }
.animate-fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-fade-up.animate-visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-slide-up, .animate-fade-up { opacity: 1; transform: none; transition: none; }
    .hero::after { animation: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-image { display: none; }
    .hero-bg-image::after { background: linear-gradient(to bottom, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.7) 100%); }
    .hero-desc { max-width: 100%; }
    .hero-stats { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero::after { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .section { padding: 56px 0; }

    .nav-menu, .header-cta { display: none; }
    .nav-menu.active { display: flex; flex-direction: column; position: fixed; top: var(--header-height); left: 0; right: 0; height: calc(100dvh - var(--header-height)); background: #fff; padding: 24px; z-index: 10001; overflow-y: auto; gap: 0; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
    .nav-menu.active > li { border-bottom: 1px solid var(--gray-light); list-style: none; }
    .nav-menu.active > li > a { display: block; padding: 16px 0; font-size: 17px; font-weight: 600; color: var(--dark); border-radius: 0; background: transparent; }
    .nav-menu.active > li > a:hover,
    .nav-menu.active > li.current-menu-item > a { color: var(--primary); background: transparent; }
    .nav-menu.active .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 12px 16px; min-width: auto; }
    .nav-menu.active .sub-menu a { padding: 8px 0; font-size: 15px; color: var(--dark-400); border-radius: 0; }
    .nav-menu.active .sub-menu a:hover { color: var(--primary); background: transparent; }
    .menu-toggle { display: block; z-index: 10000; }

    .services-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .hero { min-height: 520px; }
    .hero .container { padding-top: 100px; padding-bottom: 60px; }
    .page-hero { padding: 100px 0 40px; }
    .page-hero::before, .page-hero::after { display: none; }
    .hero-article { padding: 110px 0 36px; }
    .blog-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item .stat-number { font-size: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .floating-buttons { bottom: 16px; right: 16px; }
    .float-btn { width: 46px; height: 46px; }
}

/* ===== PAGE-SPECIFIC: Rich Content Layouts ===== */

/* --- About / Giới thiệu --- */
.about-hero-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.about-hero-text h2 { font-size: 28px; margin-bottom: 16px; color: var(--dark); }
.about-hero-text p { font-size: 17px; color: var(--dark-400); line-height: 1.8; }
.about-hero-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0; }
.stat-card { text-align: center; padding: 28px 16px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); }
.stat-number { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--dark-400); margin-top: 6px; }

.value-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0 48px; }
.value-card { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); transition: all var(--transition); }
.value-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.value-icon { flex-shrink: 0; width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.value-card h4 { font-size: 16px; margin-bottom: 6px; color: var(--dark); }
.value-card p { font-size: 14px; color: var(--dark-400); line-height: 1.6; margin: 0; }

.cert-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 48px 0; padding: 48px; background: var(--bg-alt); border-radius: var(--radius-lg); }
.cert-section img { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 400px; }
.cert-section h3 { font-size: 22px; margin-bottom: 16px; }

.membership-badges { display: flex; gap: 24px; margin: 32px 0; }
.membership-badge { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: #fff; border: 2px solid var(--primary-light); border-radius: var(--radius); flex: 1; }
.membership-badge strong { font-size: 16px; color: var(--primary-dark); }
.membership-badge span { font-size: 13px; color: var(--dark-400); display: block; }

.testimonial-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 32px 0; }
.testimonial-card { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); position: relative; }
.testimonial-card::before { content: '\201C'; position: absolute; top: 12px; left: 20px; font-size: 48px; color: var(--primary-light); font-family: Georgia, serif; line-height: 1; }
.testimonial-card p { font-size: 15px; color: var(--dark-400); line-height: 1.8; font-style: italic; margin-bottom: 16px; padding-top: 20px; }
.testimonial-author { font-weight: 700; color: var(--dark); font-size: 14px; font-style: normal; }

/* --- Scholarship / Học bổng --- */
.scholarship-hero { text-align: center; padding: 32px 0 48px; }
.scholarship-hero h2 { font-size: 32px; color: var(--dark); margin-bottom: 16px; }
.scholarship-hero p { font-size: 18px; color: var(--dark-400); max-width: 700px; margin: 0 auto; line-height: 1.8; }

.scholarship-highlight { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin: 48px 0; }
.highlight-card { text-align: center; padding: 32px 24px; background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%); border-radius: var(--radius-lg); border: 1px solid rgba(184,93,16,0.1); }
.highlight-icon { font-size: 40px; margin-bottom: 12px; }
.highlight-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--dark); }
.highlight-card p { font-size: 14px; color: var(--dark-400); line-height: 1.6; margin: 0; }

.scholarship-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 48px; }
.scholarship-type { padding: 28px 24px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius); text-align: center; transition: all var(--transition); }
.scholarship-type:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.scholarship-type .type-icon { font-size: 32px; margin-bottom: 12px; }
.scholarship-type h4 { font-size: 15px; margin-bottom: 8px; color: var(--dark); }
.scholarship-type p { font-size: 13px; color: var(--dark-400); line-height: 1.6; margin: 0; }

.funding-section { padding: 48px; background: var(--bg-alt); border-radius: var(--radius-lg); margin: 48px 0; }
.funding-section h3 { text-align: center; margin-bottom: 32px; }
.funding-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.funding-item { display: flex; gap: 14px; align-items: flex-start; }
.funding-number { flex-shrink: 0; width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.funding-item h4 { font-size: 15px; margin-bottom: 4px; color: var(--dark); }
.funding-item p { font-size: 13px; color: var(--dark-400); margin: 0; line-height: 1.5; }

.scholarship-impact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 48px 0; }
.impact-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

/* --- TMDT / Thương mại điện tử --- */
.tmdt-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.tmdt-hero-text h2 { font-size: 28px; margin-bottom: 16px; }
.tmdt-hero-text .tmdt-tagline { font-size: 18px; color: var(--primary-dark); font-weight: 600; margin-bottom: 12px; }

.tmdt-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0; }
.tmdt-service-card { padding: 36px 28px; background: #fff; border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius-lg); text-align: center; transition: all var(--transition); position: relative; overflow: hidden; }
.tmdt-service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary); transform: scaleX(0); transition: transform var(--transition); }
.tmdt-service-card:hover::before { transform: scaleX(1); }
.tmdt-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tmdt-service-card .card-icon { font-size: 40px; margin-bottom: 16px; }
.tmdt-service-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--dark); }
.tmdt-service-card p { font-size: 14px; color: var(--dark-400); line-height: 1.7; margin: 0; }

.tmdt-platforms { padding: 48px; background: var(--bg-dark); border-radius: var(--radius-lg); margin: 48px 0; text-align: center; color: #fff; }
.tmdt-platforms h3 { color: #fff; margin-bottom: 12px; font-size: 22px; }
.tmdt-platforms > p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.platform-logos { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.platform-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 28px; background: rgba(255,255,255,0.08); border-radius: var(--radius); transition: all var(--transition); min-width: 120px; }
.platform-logo:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.platform-logo .logo-text { font-size: 20px; font-weight: 800; color: #fff; }
.platform-logo span { font-size: 12px; color: rgba(255,255,255,0.6); }

.tmdt-process { margin: 48px 0; }
.tmdt-process h3 { text-align: center; margin-bottom: 36px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { text-align: center; position: relative; }
.process-step::after { content: ''; position: absolute; top: 28px; right: -10px; width: 20px; height: 2px; background: var(--primary); }
.process-step:last-child::after { display: none; }
.step-number { width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 16px; }
.process-step h4 { font-size: 15px; margin-bottom: 6px; color: var(--dark); }
.process-step p { font-size: 13px; color: var(--dark-400); line-height: 1.5; }

.tmdt-advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 48px 0; }
.advantage-list { list-style: none; padding: 0; }
.advantage-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.advantage-list li:last-child { border-bottom: none; }
.advantage-check { flex-shrink: 0; width: 28px; height: 28px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 14px; }

/* --- Shared: Page CTA block --- */
.page-cta { text-align: center; padding: 56px 40px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius-lg); margin: 48px 0; color: #fff; }
.page-cta h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.page-cta p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 24px; }
.page-cta .btn-white { display: inline-flex; }

/* --- Responsive for rich pages --- */
@media (max-width: 1024px) {
    .about-hero-section, .cert-section, .tmdt-hero, .scholarship-impact, .tmdt-advantages { grid-template-columns: 1fr; }
    .about-hero-img { order: -1; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .scholarship-types, .tmdt-services { grid-template-columns: repeat(2, 1fr); }
    .funding-items { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .stats-bar, .value-cards, .testimonial-cards, .scholarship-highlight { grid-template-columns: 1fr; }
    .membership-badges { flex-direction: column; }
    .scholarship-types, .tmdt-services { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .process-step::after { display: none; }
    .platform-logos { gap: 16px; }
    .platform-logo { min-width: 100px; padding: 16px 20px; }
    .cert-section, .funding-section, .tmdt-platforms, .page-cta { padding: 32px 24px; }
}
