/*
Theme Name: Kế Toán Lộc Phát - Redesign & Optimize
Theme URI: https://web3s.com.vn/
Description: Theme WordPress tối ưu SEO, tốc độ tải trang cao (PageSpeed 95+), thân thiện mobile-first, và hỗ trợ Landing Page Google Ads chuyển đổi cao.
Version: 1.0.0
Author: Trần Vương
Author URI: https://web3s.com.vn/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ketoanlocphat
Tags: custom-menu, translation-ready, accessibility-ready, grid-layout, flexible-header, custom-colors
*/

/* ==========================================================================
   RESET CSS & VARIABLES
   ========================================================================== */
:root {
    --primary-color: #0056b3;     /* Xanh dương chủ đạo */
    --secondary-color: #f1c40f;   /* Vàng Accent */
    --text-color: #2c3e50;        /* Chữ tối chính */
    --light-bg: #f8f9fa;          /* Nền xám nhạt */
    --white: #ffffff;
    --dark-grey: #7f8c8d;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}
.site-logo img{
	max-width: 80% !important;
    height: auto;
    display: block;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-navigation {
    display: flex;
    align-items: center;
}
.mobile-nav-tabs {
    display: none;
}
#mobile-top-menu {
    display: none;
}
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 14px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Submenu dropdown styles for desktop */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    border-radius: 4px;
    padding: 10px 0;
    display: none; /* Hide by default */
    flex-direction: column;
    gap: 0;
    z-index: 999;
    list-style: none;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f1f2f6;
    color: var(--text-color);
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Show submenu on hover on desktop */
@media (min-width: 769px) {
    .main-navigation li:hover > .sub-menu {
        display: flex;
    }
}

/* Hamburger mobile menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Footer */
.site-footer {
    background-color: #1a252f;
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 8px;
    font-weight: bold;
}

.footer-widget .widget-title-toggle {
    cursor: default;
}

.footer-widget .toggle-icon {
    display: none; /* Hide on PC */
}

.footer-widget .widget-content {
    display: block !important; /* Always visible on PC */
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #bdc3c7;
}

.footer-widget a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #2c3e50;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--dark-grey);
}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #004085;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--secondary-color);
    color: #2c3e50;
}

.btn-accent:hover {
    background-color: #d4ac0d;
    color: #2c3e50;
}

/* ==========================================================================
   BLOG GRID
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

/* ==========================================================================
   LANDING PAGE LAYOUT
   ========================================================================== */
.landing-hero {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.85); /* Overlay */
}

.landing-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Landing Form Box */
.hero-form-box {
    background: var(--white);
    color: var(--text-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero-form-box h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdde1;
    border-radius: 4px;
    outline: none;
}

/* Landing Trust Bar */
.trust-bar {
    background-color: var(--light-bg);
    padding: 30px 0;
    text-align: center;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item h4 {
    font-size: 28px;
    color: var(--primary-color);
}

/* Pricing Table Grid */
.pricing-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.pricing-card {
    background: var(--white);
    border: 1px solid #e1e8ed;
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 86, 179, 0.15);
    transform: scale(1.05);
}

.pricing-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.pricing-features {
    list-style: none;
    margin: 20px 0 30px;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Floating Contact Actions */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 24px;
    font-weight: bold;
}

.float-zalo {
    background-color: #0068ff;
}

.float-phone {
    background-color: #2ecc71;
    animation: phone-shake 1.5s infinite;
}

/* Paging Number Style */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    color: var(--text-color);
}

.pagination .current, .pagination a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .landing-hero .container {
        grid-template-columns: 1fr;
    }
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none; /* Mobile JS handles menu display toggle */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 999;
    }
    .mobile-nav-tabs {
        display: flex;
        gap: 15px;
        border-bottom: 2px solid #f1f2f6;
        margin-bottom: 15px;
        width: 100%;
    }
    .mobile-tab-btn {
        flex: 1;
        padding: 10px;
        border: none;
        background: transparent;
        font-weight: 700;
        font-size: 14px;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        color: #7f8c8d;
        outline: none;
        transition: all 0.2s;
        text-align: center;
    }
    .mobile-tab-btn.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
    .mobile-tab-content {
        display: none;
    }
    .mobile-tab-content.active, #mobile-top-menu.active {
        display: block;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    .main-navigation li {
        width: 100%;
    }
    .main-navigation a {
        padding: 8px 0;
        border-bottom: 1px solid #f1f2f6;
    }
    .main-navigation li:last-child a {
        border-bottom: none;
    }
    
    /* Hide submenu by default on mobile, toggled via click */
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        background-color: transparent;
        border-radius: 0;
    }
    .main-navigation .sub-menu a {
        border-bottom: none;
        padding: 6px 0;
        font-size: 14px;
        color: var(--dark-grey);
    }
    
    .menu-toggle {
        display: flex;
    }
    .hero-text h1 {
        font-size: 30px;
    }
    
    /* Footer Mobile Accordions */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .footer-widget .widget-title-toggle {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #2c3e50;
        padding-bottom: 10px;
        margin-bottom: 0;
    }
    .footer-widget .toggle-icon {
        display: inline-block;
        font-size: 12px;
        transition: transform 0.3s;
    }
    .footer-widget .widget-content {
        display: none !important; /* Hide content by default on mobile */
        padding-top: 15px;
    }
    .footer-widget .widget-content.open {
        display: block !important;
    }

    /* Prevent image overflow on mobile */
    img {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }
    .container {
        padding: 0 15px;
        width: 100%;
        overflow-x: hidden;
    }
}

@keyframes phone-shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

/* Advanced Top Navigation & Socials */
.top-navigation ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}
.top-navigation a {
    color: #bdc3c7;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.top-navigation a:hover {
    color: var(--secondary-color);
}
.top-social-icons a {
    transition: var(--transition);
}
.top-social-icons a:hover {
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Mobile Submenu Dropdown Arrow */
.mobile-dropdown-toggle {
    display: none;
}
@media (max-width: 768px) {
    .mobile-dropdown-toggle {
        display: inline-block;
        font-size: 10px;
        line-height: 1;
        margin-top: 14px;
        transition: transform 0.3s ease;
    }
    .main-navigation .sub-menu {
        transition: max-height 0.3s ease-out;
    }
}

/* Branch Tab Footer Links */
.branch-tab-btn:hover {
    color: var(--secondary-color) !important;
}
.branch-tab-btn.active {
    color: var(--secondary-color) !important;
    border-bottom: 1px solid var(--secondary-color);
}

/* FAQ Accordion Styling */
.faq-section {
    padding: 60px 0;
    background-color: var(--white);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.08);
}
.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    color: var(--text-color);
}
.faq-question:hover {
    color: var(--primary-color);
}
.faq-icon {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}
.faq-answer {
    padding: 0 20px 16px;
    display: none;
    color: #57606f;
    line-height: 1.6;
    font-size: 14.5px;
    border-top: 1px solid #f1f2f6;
    padding-top: 12px;
}

/* CRO Landing Page Elements */
.social-proof-popup {
    border-left-width: 4px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sticky-mobile-reg-bar {
    transition: all 0.3s ease;
}
.sticky-mobile-reg-bar .btn-accent:hover {
    background-color: var(--secondary-color);
    transform: none;
}

/* ==========================================================================
   12. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}
.reveal.slide-up {
    transform: translateY(40px);
}
.reveal.fade-in {
    /* Pure fade */
}
.reveal.zoom-in {
    transform: scale(0.9) translateY(20px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   13. AI VIDEO SUMMARY PLAYER
   ========================================================================== */
.ai-video-summary-widget {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    aspect-ratio: 16 / 9;
}
.ai-video-player-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.ai-video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.ai-video-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.ai-video-bg-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: absolute;
    top: 0;
    left: 0;
}
.ai-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    transition: background 0.3s;
}
.ai-video-thumbnail:hover .ai-video-overlay {
    background: rgba(0,0,0,0.4);
}
.ai-video-play-btn-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.ai-video-play-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 86, 179, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ai-video-thumbnail:hover .ai-video-play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 35px var(--primary-color);
}
.ai-video-play-label {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.ai-video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
}

/* Screen Mode when playing */
.ai-video-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a252f, #111821);
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
}
.ai-video-slides-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.ai-video-slide {
    display: none;
    max-width: 85%;
    animation: fadeIn 0.5s ease;
}
.ai-video-slide.active {
    display: block;
}
.ai-video-slide-inner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.ai-video-slide-title {
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 12px;
}
.ai-video-slide-text {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 600;
    color: #fff;
    min-height: 66px;
}
.ai-video-controls {
    margin-top: 20px;
}
.ai-video-progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}
.ai-video-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.1s linear;
}
.ai-video-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #bdc3c7;
    font-size: 13px;
}
.ai-video-sound-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    transition: background 0.3s;
}
.ai-video-sound-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .ai-video-slide-text {
        font-size: 16px;
        min-height: 50px;
    }
    .ai-video-slide-inner {
        padding: 20px;
    }
    .ai-video-play-label {
        font-size: 13px;
    }
}

/* ==========================================================================
   14. MOBILE BOTTOM NAV & MOBILE OVERLAYS & LAYOUT OVERRIDES
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .floating-actions {
        display: none !important;
    }

    .top-bar-nav {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #1a252f;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 100000;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -3px 15px rgba(0,0,0,0.3);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #bdc3c7;
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        gap: 3px;
        flex: 1;
        height: 100%;
        transition: all 0.2s;
    }
    
    .mobile-nav-item:hover, .mobile-nav-item:active {
        color: var(--secondary-color);
        background: rgba(255,255,255,0.03);
    }
    
    .mobile-nav-icon {
        font-size: 18px;
    }
    
    .mobile-nav-label {
        font-size: 9.5px;
        white-space: nowrap;
    }
    
    /* Footer columns: make each block full width (100%) on mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    /* Content Columns Grid (like single page layout): full width on mobile */
    .site-main .container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Ensure other two-column flex or grid contents in pages wrap full-width */
    .two-columns-grid, .post-grid, .services-grid, .grid-2-cols {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Latest Post Fullscreen Overlay */
.mobile-latest-post-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* Bottom bar remains visible */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.overlay-close-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.latest-post-overlay-card {
    position: relative;
    background: #1a252f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 2;
    text-align: center;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.overlay-title {
    color: var(--secondary-color);
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.latest-post-overlay-thumb {
    margin-bottom: 15px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latest-post-overlay-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-post-overlay-thumb-fallback {
    font-size: 32px;
}

.overlay-post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #fff;
}

.overlay-post-date {
    font-size: 12.5px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.overlay-read-btn {
    width: 100%;
    padding: 12px;
    font-weight: bold;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    transition: all 0.3s;
}

.overlay-read-btn:hover {
    background: var(--secondary-color);
}

/* ==========================================================================
   15. COMMENTS SECTION & SOCIAL SHARE STYLE
   ========================================================================== */
.comments-area-wrapper {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 0;
    margin-top: 40px;
}
.comments-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    text-transform: uppercase;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.comment-list .comment {
    list-style: none;
    border-bottom: 1px solid #f1f2f6;
    padding: 20px 0;
}
.comment-list .children {
    list-style: none;
    padding-left: 50px;
    margin-top: 15px;
    border-left: 2px solid #e1e8ed;
}
.comment-body {
    display: flex;
    gap: 15px;
}
.comment-meta {
    flex-shrink: 0;
    text-align: center;
}
.comment-meta img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.comment-content {
    flex: 1;
}
.comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: var(--text-color);
    font-size: 14.5px;
}
.comment-metadata {
    font-size: 11.5px;
    color: var(--dark-grey);
    margin-top: 2px;
}
.comment-metadata a {
    color: #95a5a6;
    text-decoration: none;
}
.comment-content p {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4f5f6f;
}
.comment-reply-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    background: #f1f2f6;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}
.comment-reply-link:hover {
    background: var(--primary-color);
    color: #fff;
}
.comment-respond {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.comment-reply-title {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    border: 1px solid #dcdde1;
    border-radius: 8px;
    font-size: 14.5px;
    outline: none;
    box-sizing: border-box;
    background: #f8f9fa;
    transition: all 0.3s;
    font-family: inherit;
    resize: vertical;
}
.comment-form textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.08);
}
.comment-form .form-submit {
    margin: 0;
}
.comment-form .submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,86,179,0.15);
    transition: all 0.3s;
    font-size: 14.5px;
}
.comment-form .submit:hover {
    background: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(241, 196, 15, 0.25);
    transform: translateY(-1px);
}

/* Comment Modal for Info Popup */
.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.comment-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.comment-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.comment-modal.open .comment-modal-content {
    transform: scale(1);
}
.comment-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.comment-modal-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
}
.comment-modal-close {
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.comment-modal-close:hover {
    color: #2c3e50;
}
.comment-modal-body {
    padding: 20px;
}
.modal-form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #34495e;
}
.modal-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background: #f8f9fa;
    transition: all 0.3s;
}
.modal-form-group input:focus {
    border-color: var(--primary-color);
    background: #fff;
}
.comment-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f2f6;
    display: flex;
    justify-content: flex-end;
}
.comment-modal-footer .btn {
    width: auto;
    padding: 10px 24px;
    margin: 0;
}


.post-share-box a {
    transition: transform 0.2s;
}
.post-share-box a:hover {
    transform: scale(1.15);
}

/* CRO Sales Popup Alert (Bottom Left Corner) */
.cro-sales-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999;
    max-width: 340px;
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    pointer-events: auto;
}
.cro-sales-popup.active {
    transform: translateX(0);
    opacity: 1;
}
.cro-sales-popup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
    flex-shrink: 0;
}
.cro-sales-popup-content {
    flex: 1;
}
.cro-sales-popup-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}
.cro-sales-popup-text {
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
}
.cro-sales-popup-text strong {
    color: var(--primary-color);
    font-weight: 600;
}
.cro-sales-popup-time {
    font-size: 10px;
    color: #95a5a6;
    margin-top: 4px;
}
.cro-sales-popup-close {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    align-self: flex-start;
    transition: color 0.2s;
}
.cro-sales-popup-close:hover {
    color: #2c3e50;
}

@media (max-width: 768px) {
    .cro-sales-popup {
        bottom: 85px; /* Stay clear of mobile bottom bar */
        left: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
    }
}

/* Responsive Table with class .bang-gia */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}
table.bang-gia {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    background: #fff;
    min-width: 600px;
}
table.bang-gia th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    padding: 14px 18px;
    border: 1px solid rgba(0,0,0,0.05);
}
table.bang-gia td {
    padding: 12px 18px;
    border-bottom: 1px solid #e1e8ed;
    color: #2c3e50;
    transition: background-color 0.2s;
}
table.bang-gia tr:last-child td {
    border-bottom: none;
}
table.bang-gia tr:nth-child(even) {
    background-color: #f8f9fa;
}
table.bang-gia tr:hover td {
    background-color: rgba(241, 196, 15, 0.08); /* Glow with secondary color */
}

/* Tab selector for digital token pricing */
.pricing-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 10px;
    flex-wrap: wrap;
}
.pricing-tab-btn {
    padding: 8px 18px;
    border: 1px solid #dcdde1;
    background: #f8f9fa;
    color: #34495e;
    cursor: pointer;
    font-weight: bold;
    border-radius: 20px;
    transition: all 0.3s;
    outline: none;
    font-size: 13px;
}
.pricing-tab-btn:hover, .pricing-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.pricing-tab-pane {
    display: none;
}
.pricing-tab-pane.active {
    display: block;
}

/* Event Announcement Popup Modal */
.locphat-announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.locphat-announcement-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.locphat-announcement-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    margin: 15px;
}
.locphat-announcement-overlay.open .locphat-announcement-modal {
    transform: scale(1);
}
.locphat-announcement-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color), #1b4f72);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.locphat-announcement-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.locphat-announcement-close {
    font-size: 24px;
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.locphat-announcement-close:hover {
    color: #fff;
}
.locphat-announcement-body {
    padding: 24px;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.6;
    max-height: 350px;
    overflow-y: auto;
}
.locphat-announcement-body h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
}
.locphat-announcement-body ul {
    padding-left: 20px;
    margin: 15px 0;
}
.locphat-announcement-body li {
    margin-bottom: 8px;
}
.locphat-announcement-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: flex-end;
    background: rgba(0,0,0,0.02);
}

/* ==========================================================================
   20. HERO CAROUSEL / SLIDER LAYOUT & RESPONSIVE CONFIG
   ========================================================================== */
.landing-hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 580px;
    background-color: #2c3e50;
}
.landing-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding: 80px 0 100px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    z-index: 1;
}
.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.landing-hero-slider-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 32, 67, 0.85) 0%, rgba(15, 32, 67, 0.4) 100%);
    z-index: 1;
}
.hero-text {
    flex: 0 0 58%;
    max-width: 58%;
    color: #fff;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}
.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.25);
    letter-spacing: -0.5px;
}
.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero-form-box-fixed-wrap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.hero-form-box-fixed-wrap .container {
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    height: auto;
}
.hero-form-box-fixed-wrap .hero-form-box {
    flex: 0 0 36%;
    max-width: 36%;
    width: 100%;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
    margin-top: 0;
    transform: none !important;
}
.hero-slide-buttons .btn-slide {
    font-size: 15px;
    padding: 13px 28px !important;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.hero-slide-buttons .btn-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Slider Controls */
.slider-nav-arrows {
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
    width: 55%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 15;
}
.slider-arrow {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    pointer-events: auto;
    user-select: none;
    border: 1px solid rgba(255,255,255,0.1);
}
.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}
.slider-dots-container {
    position: absolute;
    bottom: 25px;
    left: 3%;
    display: flex;
    gap: 8px;
    z-index: 15;
}
.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .landing-hero-slider-wrapper {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    .landing-hero-slider {
        position: relative;
        height: auto;
    }
    .hero-slide {
        position: relative;
        opacity: 0;
        visibility: hidden;
        display: none;
        height: auto;
        padding: 50px 0 30px;
    }
    .hero-slide.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    .landing-hero-slider-wrapper .container {
        flex-direction: column;
        justify-content: center;
    }
    .hero-text {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 25px;
    }
    .hero-text h1 {
        font-size: 26px;
    }
    .hero-slide-buttons {
        justify-content: center;
    }
    .hero-form-box-fixed-wrap {
        position: relative;
        pointer-events: auto;
        width: 100%;
        padding: 0 15px 40px;
        display: block;
    }
    .hero-form-box-fixed-wrap .container {
        justify-content: center;
        padding: 0;
    }
    .hero-form-box-fixed-wrap .hero-form-box {
        flex: 0 0 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    .slider-nav-arrows {
        display: none;
    }
    .slider-dots-container {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
    }
}





