/**
 * Phan Mem Web – Main CSS
 *
 * File này chứa các custom CSS override và utility classes bổ sung
 * không được Tailwind CDN generate tự động.
 *
 * Được enqueue bởi inc/enqueue.php qua wp_enqueue_style().
 *
 * Cấu trúc:
 *   1. Base overrides
 *   2. Pagination (dùng chung toàn theme)
 *   3. Post content typography (.pmw-content)
 *   4. Comments
 *   5. Sidebar widgets
 *   6. Animations & utilities
 *
 * @package PhanMemWeb
 */

/* ═══════════════════════════════════════════════
   1. BASE OVERRIDES
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: #374151;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none !important;
}
a:focus,
a:active {
    text-decoration: none !important;
}

/* ── KHỐNG CHẾ KÍCH THƯỚC TIÊU ĐỀ H1, H2, H3 GỌN GÀNG, KHÔNG BỊ QUÁ TO ── */
h1 {
    font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
    line-height: 1.25 !important;
}

h2:not(.text-xs):not(.text-sm):not(.text-base):not(.text-lg):not(.text-xl) {
    font-size: clamp(1.05rem, 1.5vw, 1.28rem) !important;
    line-height: 1.35 !important;
}

h3:not(.text-2xs):not(.text-xs):not(.text-sm):not(.text-base):not(.text-lg) {
    font-size: clamp(0.925rem, 1.15vw, 1.08rem) !important;
    line-height: 1.35 !important;
}

.text-2xs {
    font-size: 0.6875rem !important;
    line-height: 1rem !important;
}

.text-3xs {
    font-size: 0.625rem !important;
    line-height: 0.875rem !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   QUY TẮC CỐ ĐỊNH TOÀN HỆ THỐNG: TUYỆT ĐỐI KHÔNG ĐỔI MÀU CHỮ KHI HOVER
   - Mọi button, liên kết nút và khối giao diện khi hover KHÔNG được phép đổi màu chữ.
   - Khắc phục triệt để lỗi thẻ cha .group:hover ép màu chữ các nút bấm con.
   ═══════════════════════════════════════════════════════════════════════ */

/* 1. Nút bấm nền trắng (Hotline, White CTA buttons...): Luôn giữ màu chữ tối đậm slate-900 */
.btn-white-solid,
.btn-white-solid:hover,
.btn-white-solid:focus,
.btn-white-solid:active,
.btn-white-solid span,
.btn-white-solid:hover span,
.group:hover .btn-white-solid,
.group:hover .btn-white-solid span,
a.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]),
button.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]),
a.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]):hover,
button.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]):hover,
a.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]) span,
button.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]) span,
a.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]):hover span,
button.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]):hover span,
.group:hover a.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]),
.group:hover a.bg-white:not([class*="text-primary-"]):not([class*="text-emerald-"]):not([class*="text-blue-"]) span {
    color: #0f172a !important;
}

/* 2. Nút vàng / gradient Amber (Zalo, Nút nổi bật...): Luôn giữ màu chữ đen 950 */
.btn-amber-solid,
.btn-amber-solid:hover,
.btn-amber-solid:focus,
.btn-amber-solid:active,
.btn-amber-solid span,
.btn-amber-solid:hover span,
.group:hover .btn-amber-solid,
.group:hover .btn-amber-solid span,
a[class*="from-amber"],
button[class*="from-amber"],
a[class*="from-amber"] span,
button[class*="from-amber"] span,
a[class*="from-amber"]:hover,
button[class*="from-amber"]:hover,
a[class*="from-amber"]:hover span,
button[class*="from-amber"]:hover span,
.group:hover a[class*="from-amber"],
.group:hover a[class*="from-amber"] span,
.text-slate-950,
.\!text-slate-950,
.text-slate-950:hover,
.\!text-slate-950:hover,
a.text-slate-950:hover,
a.\!text-slate-950:hover,
button.text-slate-950:hover,
button.\!text-slate-950:hover,
.text-slate-950:hover span,
.\!text-slate-950:hover span,
button.text-slate-950:hover span,
button.\!text-slate-950:hover span,
a.text-slate-950:hover span,
a.\!text-slate-950:hover span,
.group:hover .text-slate-950,
.group:hover .\!text-slate-950,
.group:hover a.text-slate-950,
.group:hover a.\!text-slate-950,
.group:hover a.text-slate-950 span,
.group:hover a.\!text-slate-950 span {
    color: #020617 !important;
}

/* 3. Giữ nguyên màu chữ slate-900 / gray-900 khi hover hoặc khi nằm trong container hover */
.text-slate-900,
.\!text-slate-900,
.text-slate-900:hover,
.\!text-slate-900:hover,
a.text-slate-900:hover,
a.\!text-slate-900:hover,
button.text-slate-900:hover,
button.\!text-slate-900:hover,
.text-slate-900:hover span,
.\!text-slate-900:hover span,
button.text-slate-900:hover span,
button.\!text-slate-900:hover span,
a.text-slate-900:hover span,
a.\!text-slate-900:hover span,
.group:hover .text-slate-900,
.group:hover .\!text-slate-900,
.group:hover a.text-slate-900,
.group:hover a.\!text-slate-900,
.group:hover a.text-slate-900 span,
.group:hover a.\!text-slate-900 span,
.text-gray-900,
.\!text-gray-900,
.text-gray-900:hover,
.\!text-gray-900:hover,
a.text-gray-900:hover,
a.\!text-gray-900:hover,
button.text-gray-900:hover,
button.\!text-gray-900:hover,
.text-gray-900:hover span,
.\!text-gray-900:hover span,
button.text-gray-900:hover span,
button.\!text-gray-900:hover span,
a.text-gray-900:hover span,
a.\!text-gray-900:hover span,
.group:hover .text-gray-900,
.group:hover .\!text-gray-900 {
    color: #0f172a !important;
}

/* 4. Nút bấm & phần tử chữ trắng giữ cố định màu trắng khi hover */
button.text-white,
button.\!text-white,
a.text-white,
a.\!text-white,
button.text-white:hover,
button.\!text-white:hover,
a.text-white:hover,
a.\!text-white:hover,
button.text-white:hover > span,
button.\!text-white:hover > span,
a.text-white:hover > span,
a.\!text-white:hover > span,
.bg-primary-700:hover,
.bg-primary-800:hover,
.bg-primary-900:hover,
.bg-royal-blue:hover,
.btn-cta-gradient:hover,
.mobile-fab-btn:hover {
    color: #ffffff !important;
}

/* 5. Nút nền trắng (bg-white / btn-white-solid): Tuyệt đối KHÔNG đổi màu chữ khi hover/focus */
.bg-white,
.bg-white:hover,
.bg-white:focus,
.bg-white:active,
.btn-white-solid,
.btn-white-solid:hover,
.btn-white-solid:focus,
.btn-white-solid:active,
a.bg-white:hover,
button.bg-white:hover {
    /* Giữ nguyên màu chữ kế thừa hoặc class đã khai báo */
}

/* Nút Zalo / Nút nền trắng text-primary-900: Cố định màu chữ #1e3a8a khi hover */
a.bg-white.text-primary-900,
a.bg-white.text-primary-900:hover,
a.bg-white.text-primary-900:focus,
a.bg-white.text-primary-900:active,
a.bg-white.text-primary-900 span,
a.bg-white.text-primary-900:hover span,
a.bg-white.text-primary-900:focus span,
a.bg-white.text-primary-900:active span,
.group:hover a.bg-white.text-primary-900,
.group:hover a.bg-white.text-primary-900 span {
    color: #1e3a8a !important; /* primary-900 */
}

/* Biểu tượng trong nút nền trắng text-primary-900 giữ nguyên màu */
a.bg-white.text-primary-900 svg,
a.bg-white.text-primary-900:hover svg,
.group:hover a.bg-white.text-primary-900 svg {
    color: #1d4ed8 !important; /* primary-700 */
}

/* Tắt gạch chân khi hover trên toàn bộ typography */
.prose a, .prose a:hover,
.pmw-content a, .pmw-content a:hover {
    text-decoration: none !important;
}

/* ═══════════════════════════════════════════════
   2. PAGINATION (dùng chung toàn theme)
═══════════════════════════════════════════════ */
.navigation.pagination {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a,
.nav-links span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.nav-links span.current {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
}

.nav-links span.dots {
    border-color: transparent;
    background: transparent;
}

/* paginate_links() list style */
.page-numbers {
    display: inline-flex;
}
.page-numbers li { list-style: none; }
.page-numbers li a,
.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 3px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}
.page-numbers li a:hover  { border-color: #2563eb; background: #eff6ff; }
.page-numbers li span.current { background: #1d4ed8; border-color: #1d4ed8; color: #fff; font-weight: 700; }
.page-numbers li span.dots { border-color: transparent; background: transparent; cursor: default; }

/* ═══════════════════════════════════════════════
   3. POST CONTENT TYPOGRAPHY (.pmw-content)
   Áp dụng cho page.php, single.php, comments.php
═══════════════════════════════════════════════ */
.pmw-content { color: #374151; line-height: 1.85; }

.pmw-content h1, .prose h1 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 1.75rem;
    margin-bottom: 0.625rem;
}

.pmw-content h2, .prose h2 {
    font-size: 1.22rem !important;
    line-height: 1.35 !important;
    font-weight: 700;
    color: #1e3a8a;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-top: 1.75rem;
    margin-bottom: 0.625rem;
    scroll-margin-top: 80px;
}

.pmw-content h3, .prose h3 {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
    scroll-margin-top: 80px;
}

.pmw-content h4, .prose h4 {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    font-weight: 700;
    color: #374151;
    margin-top: 1.15rem;
    margin-bottom: 0.375rem;
    scroll-margin-top: 80px;
}

.pmw-content h5, .prose h5 {
    font-size: 0.875rem !important;
    font-weight: 700;
    color: #4b5563;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.pmw-content h6, .prose h6 {
    font-size: 0.8125rem !important;
    font-weight: 700;
    color: #4b5563;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.pmw-content p  { margin-bottom: 1.25rem; }
.pmw-content > p:first-child { font-size: 1.075rem; color: #4b5563; }

.pmw-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}
.pmw-content a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.pmw-content ul,
.pmw-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; color: #374151; }
.pmw-content ul  { list-style-type: disc; }
.pmw-content ol  { list-style-type: decimal; }
.pmw-content li  { margin-bottom: .5rem; line-height: 1.75; }
.pmw-content li ul,
.pmw-content li ol { margin-top: .5rem; margin-bottom: 0; }

.pmw-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 1.125rem 1.5rem;
    margin: 2rem 0;
    background: #eff6ff;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e40af;
    font-size: 1.05rem;
}
.pmw-content blockquote cite {
    display: block;
    margin-top: .75rem;
    font-size: .85rem;
    font-style: normal;
    color: #6b7280;
}

.pmw-content pre,
.pmw-content code {
    background: #f1f5f9;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: .875rem;
}
.pmw-content code  { padding: .15rem .4rem; color: #be185d; }
.pmw-content pre   { padding: 1.25rem; overflow-x: auto; margin-bottom: 1.25rem; border: 1px solid #e2e8f0; }
.pmw-content pre code { background: none; padding: 0; color: inherit; }

.pmw-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: .9rem;
    overflow-x: auto;
    display: block;
}
.pmw-content th { background: #1e40af; color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; white-space: nowrap; }
.pmw-content td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.pmw-content tr:nth-child(even) td { background: #f8faff; }
.pmw-content tr:hover td { background: #eff6ff; }

.pmw-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.75rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
}
.pmw-content figure { margin: 1.75rem 0; }
.pmw-content figcaption { text-align: center; color: #9ca3af; font-size: .8rem; margin-top: .5rem; }
.pmw-content hr { border: none; border-top: 2px solid #e5e7eb; margin: 2.5rem 0; }

/* ═══════════════════════════════════════════════
   4. COMMENTS
═══════════════════════════════════════════════ */
#commentform .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(29,78,216,0.25);
}
#commentform .submit:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29,78,216,0.35);
}

.comment-list .comment,
.comment-list .pingback {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f3f4f6;
    list-style: none;
}
.comment-list .comment:last-child { border-bottom: none; }
.comment-list .children {
    padding-left: 3.5rem;
    list-style: none;
    border-left: 2px solid #e0e7ff;
    margin-top: .75rem;
}
.comment-reply-link { font-size: .75rem; font-weight: 600; color: #2563eb; text-decoration: none; transition: color .2s; }
.comment-reply-link:hover { color: #1d4ed8; }
.comment-awaiting-moderation {
    display: inline-block; font-size: .7rem; background: #fef3c7;
    color: #92400e; border-radius: 4px; padding: 1px 6px; margin-left: 6px; font-weight: 600;
}

/* ═══════════════════════════════════════════════
   5. SIDEBAR WIDGETS
═══════════════════════════════════════════════ */
.sidebar-area .widget a { color: #374151; text-decoration: none; transition: opacity .2s; }
.sidebar-area .widget a:hover { opacity: 0.85; }
.sidebar-area .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-area .widget ul li { padding: 7px 0; border-bottom: none; font-size: .875rem; color: #4b5563; }
.sidebar-area .widget ul li:last-child { border-bottom: none; }
.sidebar-area .widget_tag_cloud a {
    display: inline-block; margin: 3px; padding: 3px 10px;
    border-radius: 9999px; background: #f3f4f6; font-size: .75rem !important;
    color: #4b5563; transition: all .2s;
}
.sidebar-area .widget_tag_cloud a:hover { background: #dbeafe; }

/* ═══════════════════════════════════════════════
   6. UTILITIES & ANIMATIONS
═══════════════════════════════════════════════ */
/* Line-clamp helper */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Stretched card link */
.pmw-card,
.pmw-cat-card,
.pmw-tag-card,
.pmw-search-card { position: relative; }

/* Fade-in scroll animation */
@keyframes pmwFadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pmw-fade-in { animation: pmwFadeInUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

/* Section fade-in on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero illustration placeholder */
.hero-illus {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #e0e7ff 100%);
}

/* Pricing card hover lift */
.pricing-card {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(37,99,235,0.14);
}

/* Feature card hover lift */
.feature-card {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1),
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                background-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(37,99,235,0.10);
}

/* Gradient CTA button */
.btn-cta-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-cta-gradient::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6, #1d4ed8);
    background-size: 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: ring-spin 2.5s linear infinite;
    z-index: -1;
}
.btn-cta-gradient:hover::before { opacity: 1; }
.btn-cta-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}
@keyframes ring-spin {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Generic button hover */
.btn-hover {
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.btn-hover:hover {
    transform: translateY(-2px);
}
.btn-hover:active {
    transform: translateY(0);
}

/* Nav link: Không gạch chân khi hover */
.nav-link {
    position: relative;
    text-decoration: none !important;
}
.nav-link::after {
    display: none !important;
}

/* Screen-reader only */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ═══════════════════════════════════════════════
   7. ACCORDION FAQ & INTERACTIVE COMPONENTS
   ═══════════════════════════════════════════════ */
.faq-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active {
    border-color: #60a5fa !important;
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.08), 0 8px 10px -6px rgba(29, 78, 216, 0.04) !important;
}
.faq-item.active .faq-toggle span.font-bold {
    color: #1d4ed8;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}
.faq-item.active .faq-icon-box {
    transform: scale(1.08);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
    opacity: 0;
}
.faq-item.active .faq-answer {
    max-height: 800px;
    transition: max-height 0.45s cubic-bezier(1, 0, 1, 0), opacity 0.35s ease;
    opacity: 1;
}

/* Partner logo hover filter */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px) scale(1.04);
}

/* Floating badge animation */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: floatSlow 4s ease-in-out infinite;
}
.animate-float-delayed {
    animation: floatSlow 4s ease-in-out 2s infinite;
}

/* ═══════════════════════════════════════════════
   8. BREADCRUMBS (YOAST SEO & RANK MATH)
   ═══════════════════════════════════════════════ */
.pmw-breadcrumb {
    color: #93c5fd;
    font-size: 0.75rem;
    line-height: 1.5;
}
.pmw-breadcrumb a {
    color: #bfdbfe;
    text-decoration: none !important;
}
.pmw-breadcrumb a:hover {
    color: #bfdbfe;
    text-decoration: none !important;
}
/* Yoast & Rank Math inner elements */
.pmw-breadcrumb span,
.pmw-breadcrumb .breadcrumb_last {
    color: #ffffff;
    font-weight: 500;
}
.pmw-breadcrumb .separator {
    margin: 0 0.35rem;
    color: #60a5fa;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════
   9. SMOOTH MICRO-INTERACTIONS & HOVER LIFTS
   ═══════════════════════════════════════════════ */
.card-hover-lift {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease;
    will-change: transform, box-shadow;
}
.card-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.15),
                0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

/* Icon Box Hover Transition */
.icon-box {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}
.group:hover .icon-box {
    transform: scale(1.08) rotate(2deg);
}

/* Soft colored glow */
.glow-primary {
    box-shadow: 0 0 40px -10px rgba(37, 99, 235, 0.25);
}
.glow-emerald {
    box-shadow: 0 0 40px -10px rgba(16, 185, 129, 0.25);
}

/* Smooth Pulse for Live status badges */
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}
.pulse-glow {
    animation: pulseGlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ═══════════════════════════════════════════════
   10. INFINITE RUNNING MARQUEE (CHẠY NGANG LIÊN TỤC)
   ═══════════════════════════════════════════════ */
.marquee-wrapper {
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: 2.5rem;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    padding: 0.75rem 0;
}
.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2.5rem;
    min-width: 100%;
    animation: marqueeContinuous 26s linear infinite;
}
.marquee-track-reverse {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2.5rem;
    min-width: 100%;
    animation: marqueeContinuousReverse 28s linear infinite;
}
.testimonials-marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
    gap: 1.75rem;
    min-width: 100%;
    animation: marqueeContinuous 48s linear infinite;
}
.marquee-wrapper:hover .marquee-track,
.marquee-wrapper:hover .marquee-track-reverse,
.marquee-wrapper:hover .testimonials-marquee-track {
    animation-play-state: paused;
}
@keyframes marqueeContinuous {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 2.5rem)); }
}
@keyframes marqueeContinuousReverse {
    from { transform: translateX(calc(-100% - 2.5rem)); }
    to { transform: translateX(0); }
}

/* Thẻ đánh giá khách hàng trong dải trượt (Gọn gàng, thanh thoát, không quá cao) */
.testimonial-card-slide {
    width: 350px;
    max-width: 86vw;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
@media (min-width: 640px) {
    .testimonial-card-slide {
        width: 390px;
    }
}
.testimonial-card-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 25px -8px rgba(29, 78, 216, 0.10), 0 6px 10px -4px rgba(0, 0, 0, 0.03);
}

/* Thẻ Đối tác công nghệ sinh động */
.tech-partner-badge {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tech-partner-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════
   11. FLOATING MICRO-BADGES & SHIMMER SWEEP
   ═══════════════════════════════════════════════ */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(0.6deg); }
}
@keyframes floatMedium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(6px) rotate(-0.6deg); }
}
.float-slow {
    animation: floatSlow 5.5s ease-in-out infinite;
}
.float-medium {
    animation: floatMedium 4.5s ease-in-out infinite;
}

/* Shimmer Light Glare on CTA Buttons */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: shimmerGlance 4.8s infinite;
    pointer-events: none;
}
@keyframes shimmerGlance {
    0%, 65% {
        left: -60%;
        opacity: 0;
    }
    66% {
        opacity: 1;
    }
    82% {
        left: 140%;
        opacity: 1;
    }
    83%, 100% {
        left: 140%;
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════
   12. BRAND SIGNATURE #1d4ed8 (ROYAL BLUE) ACCENTS
   ═══════════════════════════════════════════════ */
.bg-royal-blue { background-color: #1d4ed8 !important; }
.text-royal-blue { color: #1d4ed8 !important; }
.border-royal-blue { border-color: #1d4ed8 !important; }
.shadow-royal-blue { box-shadow: 0 12px 30px -6px rgba(29, 78, 216, 0.35) !important; }

/* Subtle gradient background for SEO and featured blocks */
.bg-gradient-royal {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 60%, #1e3a8a 100%);
}
.bg-subtle-royal {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.7) 0%, rgba(255, 255, 255, 1) 100%);
}

/* ═══════════════════════════════════════════════
   13. CUSTOM LOGO SIZING (Header & Footer)
   ═══════════════════════════════════════════════ */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}
.custom-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.custom-logo-link:hover .custom-logo {
    transform: scale(1.02);
}
footer .custom-logo {
    max-height: 42px;
    width: auto;
}

/* ═══════════════════════════════════════════════
   14. QUICK CONSULTATION MODAL POPUP
   ═══════════════════════════════════════════════ */
.pmw-modal {
    animation: modalFadeIn 0.25s ease-out forwards;
}

.pmw-modal .modal-dialog {
    animation: modalPopUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
}

.pmw-modal .modal-dialog > div:last-child {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPopUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ═══════════════════════════════════════════════
   15. MULTI-INDUSTRY TICKER & SHOWCASE CARDS
   ═══════════════════════════════════════════════ */
.industry-ticker-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: industryTicker 38s linear infinite;
}

.industry-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes industryTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.industry-badge {
    transition: all 0.25s ease;
}

.industry-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(29, 78, 216, 0.2);
}

/* ── Chống vỡ layout toàn diện (No horizontal overflow) ── */
body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ═══════════════════════════════════════════════
   16. MOBILE APP BOTTOM NAVIGATION & APP LAYOUT
   ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Đảm bảo nội dung không bao giờ bị che khuất bởi Bottom Bar */
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
        -webkit-tap-highlight-color: transparent;
    }

    /* Thanh điều hướng dạng ứng dụng di động (Mobile App Bottom Bar) */
    .mobile-app-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9980;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.07);
        padding-bottom: max(env(safe-area-inset-bottom, 0px), 4px);
    }

    /* Nút chính giữa dạng Floating Action Button (FAB Báo Giá) */
    .mobile-fab-btn {
        position: relative;
        top: -16px;
        background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
        box-shadow: 0 8px 24px -4px rgba(29, 78, 216, 0.45);
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    }

    .mobile-fab-btn:active {
        transform: scale(0.92);
        box-shadow: 0 4px 12px -2px rgba(29, 78, 216, 0.35);
    }

    /* Tab item */
    .mobile-tab-item {
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        text-decoration: none !important;
    }

    .mobile-tab-item.is-active {
        color: #1d4ed8 !important;
        font-weight: 700;
    }

    .mobile-tab-item.is-active .tab-icon svg {
        transform: scale(1.1);
        color: #1d4ed8 !important;
    }

    /* Nút Back to Top trên mobile được căn nổi trên bottom bar */
    #back-to-top-mobile {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        transition: opacity 0.3s ease, transform 0.2s ease;
    }

    /* Tối ưu kích thước cảm ứng ngón tay (Tap target) */
    input, select, textarea, button, a.btn-hover {
        min-height: 44px;
    }

    /* Animation trượt êm cho mobile drawer */
    #mobile-menu:not(.hidden) {
        animation: mobileDrawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes mobileDrawerSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ═══════════════════════════════════════════════
   17. MODERN PREMIUM FORM CONTROLS (INPUT, TEXTAREA & SELECT)
   ═══════════════════════════════════════════════ */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem; /* 14px */
    padding: 0.65rem 1rem;
    line-height: 1.5;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
    border-color: #93c5fd;
    background-color: #ffffff;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* ── TÙY BIẾN CAO CẤP CHO THẺ SELECT (CUSTOM SVG DROPDOWN CHEVRON) ── */
select {
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 2.75rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d4ed8' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
}

select:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231d4ed8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 15l7-7 7 7'/%3E%3C/svg%3E") !important;
}

/* Style cho các mục option bên trong select */
select option {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    background-color: #ffffff;
    padding: 10px 14px;
}

select option:checked,
select option:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 600;
}

/* ── XỬ LÝ KHỚP KHỐI TÌM KIẾM (SEARCH BAR BORDER-RADIUS & PADDING) ── */
.pmw-search-form input[type="search"] {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0.75rem !important;
    border-bottom-left-radius: 0.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    height: 2.75rem !important;
}
.pmw-search-form button[type="submit"] {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
    height: 2.75rem !important;
}

/* ═══════════════════════════════════════════════
   7. SUBPAGE HERO BANNER & DECORATIVE BACKGROUNDS
   ═══════════════════════════════════════════════ */
.subpage-hero-banner {
    position: relative;
    background-color: #0b1528;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.80) 50%, rgba(15, 23, 42, 0.92) 100%), url('../images/backgrounds/bg-page-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark tech glassmorphism */
.tech-glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.tech-glass-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(56, 189, 248, 0.45);
}

/* ═══════════════════════════════════════════════
   8. FORM INPUTS RESET & MODERN SELECT DROPDOWNS
   ═══════════════════════════════════════════════ */

/* Bỏ toàn bộ hiệu ứng ring, glow, shadow, zoom, outline khi focus vào các input / textarea / select */
input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.quick-consult-form input:focus,
.quick-consult-form textarea:focus,
.quick-consult-form select:focus,
#pmw-consult-modal input:focus,
#pmw-consult-modal textarea:focus,
#pmw-consult-modal select:focus,
#pmw-contact-form input:focus,
#pmw-contact-form textarea:focus,
#pmw-contact-form select:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-width: 0px !important;
    --tw-ring-color: transparent !important;
    border-color: #94a3b8 !important; /* Viền xám trung tính nhẹ nhàng, tinh tế, không hiệu ứng nhảy */
    transform: none !important;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
}

/* Tinh chỉnh chuyển động nhẹ nhàng cho input & textarea */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea {
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

/* Custom dropdown Select hiện đại, sang trọng cho các form báo giá */
select,
select.pmw-modern-select,
.quick-consult-form select,
#pmw-consult-modal select,
#pmw-contact-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
    padding-right: 36px !important;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    line-height: 1.5;
}

select:hover,
select.pmw-modern-select:hover,
.quick-consult-form select:hover,
#pmw-consult-modal select:hover,
#pmw-contact-form select:hover {
    border-color: #cbd5e1 !important;
    background-color: #f8fafc;
}

select:focus,
select.pmw-modern-select:focus,
.quick-consult-form select:focus,
#pmw-consult-modal select:focus,
#pmw-contact-form select:focus {
    border-color: #94a3b8 !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Tùy chỉnh danh sách option và optgroup bên trong select */
select option {
    padding: 10px 14px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
}

select option:hover,
select option:focus,
select option:checked {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    font-weight: 600;
}

select optgroup {
    font-weight: 700;
    color: #64748b;
    background-color: #f8fafc;
    font-size: 0.75rem;
    padding: 6px 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   BẢNG GIÁ DỊCH VỤ (PRICING TABLE COMPACT & BALANCED)
   ═══════════════════════════════════════════════ */
.pricing-card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}
@media (min-width: 640px) {
    .pricing-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .pricing-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.pricing-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-sizing: border-box !important;
    position: relative;
    border-radius: 1rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-header {
    min-height: 44px;
}

.pricing-price-box {
    min-height: 58px;
}

.pricing-features {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.pricing-btn {
    margin-top: auto !important;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

