/* =====================================================
   Optimized & Standardized Version
===================================================== */
/* Đường ngang nối từ line dọc đến các item */
.widget-submenu .ntm-widget ul li {
    position: relative;
    padding-left: 20px !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    border-top: none !important;
}

.post-content-area.ntm-content {
    padding: 20px;
}

.header-cart-icon img[width="1"][height="1"] {
    width: 22px !important;
}

.widget-submenu .ntm-widget ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    /* Center vertically relative to LI height */
    transform: translateY(-50%);
    /* Accurate centering */
    width: 15px;
    height: 1px;
    background: #94a3b8;
    /* Darker gray for visibility */
    display: block;
}

/* Submenu container padding - REDUCED to bring closer */
.widget-submenu {
    padding: 8px 10px 14px 22px !important;
    /* Left 22px to align under text */
}

/* Đường dọc nối các item */
.widget-submenu .ntm-widget ul {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.widget-submenu .ntm-widget ul:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 14px;
    /* Dừng ở item cuối */
    width: 1px;
    background: #cbd5e1;
    /* Xám đậm hơn chút */
}

/* ===== ROOT VARIABLES ===== */
:root {
    --ntm-hero-offset: 80px;
    --ntm-max-width: 1280px;
    --ntm-sidebar-width: 260px;
    --ntm-content-max-width: 996px;
    --ntm-gap: 24px;

    /* Colors */
    --ntm-primary: #d70018;
    --ntm-secondary: #0b2f73;
    --ntm-text-primary: #111827;
    --ntm-text-secondary: #0bdada;
    --ntm-text-muted: #6b7280;
    --ntm-bg-light: #f3f4f6;
    --ntm-bg-lighter: #f8fafc;
    --ntm-border: #e0e0e0;

    /* Shadows */
    --ntm-shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.08);
    --ntm-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
    --ntm-shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.18);

    /* Transitions */
    --ntm-transition: all 0.2s ease;
    --ntm-transition-fast: all 0.15s ease;
}

/* Force Content Text to Black */
.ntm-card,
.ntm-content,
.ntm-verify-box {
    color: #000 !important;
}

.ntm-content p,
.ntm-content li,
.ntm-content h1,
.ntm-content h2,
.ntm-content h3,
.ntm-content h4,
.ntm-content h5,
.ntm-content h6 {
    color: #000 !important;
}

/* Force verify content text to black, overriding .dark mode styles */
.dark .ntm-verify-box,
.dark .ntm-verify-box p,
.dark .ntm-verify-box div,
.dark .ntm-verify-box span,
.dark .ntm-verify-box a,
.dark .ntm-verify-title,
.dark .ntm-verify-desc {
    color: #000 !important;
}

/* =====================================================
   MAIN LAYOUT - DESKTOP
===================================================== */
@media (min-width: 1024px) {

    /* Container */
    .ntm-sforum-layout {
        max-width: var(--ntm-max-width);
        margin: 0 auto;
    }

    /* Flex Wrapper */
    .ntm-sforum-layout .rh-content-wrap-sidebar-menu {
        display: flex;
        align-items: flex-start;
        gap: var(--ntm-gap);
    }

    /* Sidebar */
    .ntm-sforum-layout .left-sidebar-menu {
        width: var(--ntm-sidebar-width);
        flex: 0 0 var(--ntm-sidebar-width);
    }

    /* Main Content Area */
    .ntm-sforum-layout .main-content-with-sidebar {
        flex: 1;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    /* Content Inner Container */
    .ntm-sforum-layout .main-side {
        width: 100%;
        max-width: var(--ntm-content-max-width);
    }


}

/* =====================================================
   HERO SECTION
===================================================== */
@media (min-width: 1074px) {

    .ntm-hero {
        width: 100%;
        /* margin-left: calc(var(--ntm-hero-offset) * -1); */
        /* margin-right: calc(var(--ntm-hero-offset) * -1); */
        aspect-ratio: 12 / 5;
        border-radius: 20px;
        overflow: hidden;
    }

    /* Hero Card Overlay */
    .ntm-card-wrap {
        position: relative;
        z-index: 5;
        transform: translateY(-110px);
        margin-bottom: -110px;
        display: flex;
        justify-content: center;
    }

    .ntm-card {
        width: 92%;
        /* Narrower than Hero (100%) to create overlay effect */
        max-width: 100%;
        background: #fff;
        border-radius: 20px;
        padding: 30px 22px;
        box-shadow: var(--ntm-shadow-lg);
        margin: 0 auto;
        /* Center alignment */
    }

    /* Content Body Constrain - Removed as Card is now narrower */
    .ntm-content {
        max-width: 100%;
    }

    /* Badge */
    .ntm-badge {
        display: inline-block;
        background: var(--ntm-primary);
        color: #fff !important;
        padding: 3px 12px;
        border-radius: 12px;
        font-weight: 700;
        margin-bottom: 10px;
    }
}

/* =====================================================
   BREADCRUMB
===================================================== */
@media (min-width: 1024px) {

    .ntm-sforum-layout .custom-breadcrumb {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 20px;
        text-align: left;
    }

    /* Wrapper */
    .ntm-sforum-layout .rank-math-breadcrumb,
    .ntm-sforum-layout .rank-math-breadcrumb p {
        max-width: 100%;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* Line */
    .ntm-sforum-layout .rank-math-breadcrumb p {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: 14px;
        line-height: 1.2;
    }

    /* All Links - Default Gray */
    .ntm-sforum-layout .rank-math-breadcrumb a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 999px;
        background: #fff;
        color: var(--ntm-text-secondary);
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: var(--ntm-transition);
    }

    /* Hover State - Red */
    .ntm-sforum-layout .rank-math-breadcrumb a:hover {
        background: #ffe4e6;
        color: var(--ntm-primary);
        font-weight: 700;
    }

    /* Last Item (Current Page) */
    .ntm-sforum-layout .rank-math-breadcrumb .last {
        padding: 0;
        background: none;
        color: var(--ntm-text-secondary);
        font-weight: 500;
        white-space: normal;
    }

    /* Separator */
    .ntm-sforum-layout .rank-math-breadcrumb .separator {
        color: #9ca3af;
        font-size: 14px;
    }

    /* Home Icon */
    .ntm-sforum-layout .rank-math-breadcrumb p a:first-child {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .ntm-sforum-layout .rank-math-breadcrumb p a:first-child::before {
        content: "";
        width: 14px;
        height: 14px;
        display: inline-block;
        background-color: var(--ntm-primary);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.8-.2 5.5-.5 8.2V472c0 22.1-17.9 40-40 40H392c-22.1 0-40-17.9-40-40V376c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24v96c0 22.1-17.9 40-40 40H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9.1-2.8l.7-69.7V287H32c-18 0-32-14-32-32 0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7l266.4 223c7 7 10 15 10 25z'/%3E%3C/svg%3E") center/contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.8-.2 5.5-.5 8.2V472c0 22.1-17.9 40-40 40H392c-22.1 0-40-17.9-40-40V376c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24v96c0 22.1-17.9 40-40 40H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9.1-2.8l.7-69.7V287H32c-18 0-32-14-32-32 0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7l266.4 223c7 7 10 15 10 25z'/%3E%3C/svg%3E") center/contain no-repeat;
    }
}

/* =====================================================
   COMMENTS & SOCIAL
===================================================== */
#comments {
    margin-bottom: 50px;
}

.social_icon.row_social_inpost {
    margin-top: 50px;
}

/* =====================================================
   AUDIT CARD
===================================================== */
@media (min-width: 1024px) {

    .ntm-sforum-layout .ntm-audit-card {
        display: flex;
        gap: 18px;
        align-items: center;
        background: var(--ntm-bg-light);
        border-radius: 14px;
        padding: 18px;
        margin: 18px 0 6px;
    }

    /* Avatar */
    .ntm-sforum-layout .ntm-audit-avatar {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--ntm-shadow-md);
    }

    .ntm-sforum-layout .ntm-audit-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Info */
    .ntm-sforum-layout .ntm-audit-info {
        flex: 1;
        min-width: 0;
    }

    .ntm-sforum-layout .ntm-audit-badge {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: var(--ntm-secondary);
        color: #fff;
        font-weight: 800;
        border-radius: 8px;
        padding: 6px 10px;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .ntm-sforum-layout .ntm-audit-title {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }

    .ntm-sforum-layout .ntm-audit-link {
        color: var(--ntm-primary);
        text-decoration: none;
        font-weight: 700;
        word-break: break-word;
    }

    .ntm-sforum-layout .ntm-audit-desc {
        color: var(--ntm-text-primary);
        line-height: 1.6;
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* Meta */
    .ntm-sforum-layout .ntm-audit-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        color: var(--ntm-text-muted);
        font-size: 13px;
    }

    .ntm-sforum-layout .ntm-audit-meta b {
        color: var(--ntm-text-primary);
    }

    .ntm-sforum-layout .ntm-dot {
        opacity: 0.6;
    }

    /* Actions */
    .ntm-sforum-layout .ntm-audit-actions {
        flex: 0 0 220px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .ntm-sforum-layout .ntm-audit-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 999px;
        font-weight: 800;
        text-decoration: none !important;
        white-space: nowrap;
        transition: var(--ntm-transition);
    }

    .ntm-sforum-layout .ntm-audit-btn-primary {
        background: var(--ntm-secondary);
        color: #fff !important;
    }

    .ntm-sforum-layout .ntm-audit-btn-primary:hover {
        filter: brightness(0.95);
    }

    .ntm-sforum-layout .ntm-audit-btn-outline {
        background: #fff;
        color: var(--ntm-secondary) !important;
        border: 2px solid var(--ntm-secondary);
    }

    .ntm-sforum-layout .ntm-audit-btn-outline:hover {
        background: var(--ntm-secondary);
        color: #fff !important;
    }
}

/* =====================================================
   VERIFY BOX
===================================================== */
.ntm-verify-box {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: var(--ntm-bg-lighter);
    border-radius: 16px;
    border: 1px solid #eef1f4;
    margin-bottom: 20px;
}

/* Avatar */
.ntm-verify-avatar {
    flex: 0 0 64px;
}

.ntm-verify-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: var(--ntm-shadow-sm);
}

/* Content */
.ntm-verify-content {
    flex: 1;
    min-width: 0;
}

/* Tag Pill */
.ntm-verify-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9px;
    background: #e7f5ff;
    color: #0969da;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ntm-verify-tag i {
    font-size: 14px;
}

/* Title */
.ntm-verify-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #000;
    /* Ensure title is black */
}

.ntm-verify-title a {
    color: #000;
    /* Force link to be black */
    text-decoration: none;
    transition: var(--ntm-transition-fast);
}

.ntm-verify-title a:hover {
    color: var(--ntm-primary);
}

/* Description */
.ntm-verify-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #000 !important;
    margin-bottom: 10px;
}

/* Meta */
.ntm-verify-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--ntm-text-muted);
}

.ntm-verify-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ntm-verify-meta i {
    color: #9ca3af;
}

/* Actions */
.ntm-verify-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 8px;
}

/* Buttons */
.ntm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    padding: 1px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--ntm-transition);
}

.ntm-btn-primary {
    background: #ff0000;
    color: #fff;
}

.ntm-btn-primary:hover {
    background: #ff0000;
    color: #000;
}

.ntm-btn-ghost {
    background: #fff;
    border: 1px solid #d1d5db;
    color: var(--ntm-text-primary);
}

.ntm-btn-ghost:hover {
    background: var(--ntm-bg-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ntm-verify-box {
        flex-direction: column;
        align-items: stretch;
    }

    .ntm-verify-avatar {
        margin-bottom: 6px;
    }

    .ntm-verify-actions {
        flex-direction: row;
        justify-content: flex-start;
        margin-left: 0;
    }

    .ntm-btn {
        min-width: auto;
        flex: 1;
    }
}

/* =====================================================
   SIDEBAR MENU - ADVANCED
===================================================== */

/* Hide Mobile Elements on Desktop */
@media (min-width: 1024px) {

    .ntm-mobile-toggle,
    .ntm-sidebar-overlay,
    .mobile-sidebar-close {
        display: none !important;
    }
}

/* Hide on Mobile */
@media (max-width: 1023px) {
    .left-sidebar-menu {
        display: none !important;
    }
}

/* Desktop Sidebar */
@media (min-width: 1024px) {

    .left-sidebar-menu {
        width: var(--ntm-sidebar-width);
        position: sticky;
        top: 110px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        padding: 12px 10px;
    }

    /* Custom Scrollbar */
    .left-sidebar-menu::-webkit-scrollbar {
        width: 4px;
    }

    .left-sidebar-menu::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    /* Menu List */
    .sidebar-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Menu Item */
    .sidebar-menu-list .menu-item {
        margin-bottom: 16px;
        /* Increased spacing further */
        border-radius: 8px;
        overflow: hidden;
        transition: background 0.25s ease;
    }

    /* Active State (Handled above) */
    .sidebar-menu-list .menu-item.is-open {
        /* background: #fff5f7; Removed old pink */
    }

    /* Menu Link */
    .sidebar-menu-list .menu-link {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 8px 5px;
        cursor: pointer;
        font-weight: 500;
        color: #fff;
        /* Inactive: White */
        text-shadow: none;
        transition: all 0.2s ease;
    }

    .sidebar-menu-list .menu-link i {
        width: 20px;
        font-size: 16px;
        text-align: center;
        color: #fff;
        /* Inactive: White */
        text-shadow: none;
        transition: color 0.25s ease, text-shadow 0.25s ease;
    }

    /* Hover - White Text & Icon, Neon BG */
    .sidebar-menu-list .menu-item:hover>.menu-link {
        background: #0bdada;
        color: #fff !important;
        text-shadow: none;
        box-shadow: 0 0 10px #0bdada;
    }

    .sidebar-menu-list .menu-item:hover>.menu-link i {
        color: #fff !important;
        text-shadow: none;
    }

    /* Active Icon & Text Color (White on Neon) */
    .menu-item.is-open>.menu-link {
        color: #fff !important;
        font-weight: 700;
        background: #0bdada;
        text-shadow: none;
        box-shadow: 0 0 10px #0bdada;
    }

    .menu-item.is-open>.menu-link i {
        color: #fff !important;
        text-shadow: none;
    }

    .menu-text {
        flex: 1;
    }

    /* Arrow */
    .arrow {
        transition: transform 0.25s ease;
        color: #0bdada;
        /* Arrow matches text */
    }

    .menu-item.is-open .arrow {
        transform: rotate(90deg);
        color: #fff;
        /* Active arrow white */
    }

    /* Submenu - Padding handled at top of file */
    .widget-submenu {
        display: none;
        /* padding rule moved to top */
        animation: ntmFadeIn 0.25s ease;
    }

    .menu-item.is-open .widget-submenu {
        display: block;
    }

    /* Fade Animation */
    @keyframes ntmFadeIn {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Widget Styling */
    .widget-submenu .widget {
        margin-bottom: 14px;
    }

    .widget-submenu .widget:last-child {
        margin-bottom: 0;
    }

    .widget-submenu .widget-title {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
        color: var(--ntm-text-secondary);
    }

    /* Submenu Link Styling */
    .widget-submenu .ntm-widget ul li a {
        display: block;
        padding: 4px 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
        text-decoration: none;
        color: #fff;
        /* Submenu Inactive: White */
    }

    .widget-submenu .ntm-widget ul li a:hover {
        background: #0bdada;
        color: #fff !important;
        box-shadow: 0 0 8px #0bdada;
    }

    .wp-caption p.wp-caption-text {
        margin: 12px 0 0 0;
        font-size: 90%;
        line-height: 20px;
        background: #f7f7f7;
        padding: 10px;
        border-radius: 5px;
    }
}

/* =====================================================
   TITLE & META (Restored & Fixed)
===================================================== */
.ntm-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #111 !important;
}

.ntm-post-meta-under-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #777;
    font-size: 13px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

@media (min-width: 768px) {
    .ntm-post-meta-under-title {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

.ntm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ntm-meta-item strong {
    color: #333;
    display: inline-flex;
    align-items: center;
}

.ntm-meta-sep {
    margin: 0 15px;
    color: #ddd;
}

/* Force View Count to be inline */
.ntm-meta-item strong div,
.ntm-meta-item strong span,
.ntm-meta-item .pvc-stats-icon {
    display: inline !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =====================================================
   POST MOBILE – MATCH FORUM STYLE (IMAGE 1)
===================================================== */
@media (max-width: 768px) {

    /* ===== HERO ===== */
    .ntm-hero {
        margin: 0;
        border-radius: 14px;
        aspect-ratio: 16 / 9;
    }

    .ntm-verify-box.mt30 {
        display: none;
    }

    .ntm-badge {
        display: inline-block;
        background: var(--ntm-primary);
        color: #fff !important;
        padding: 3px 12px;
        border-radius: 12px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .ntm-post-meta-under-title {
        margin-bottom: 20px;
    }
}

/* =====================================================
   NGUYENTHAIMMO RELATED & NEW POSTS
===================================================== */
/* New Posts Section */
.nguyenthaimmo-new-posts .tieu-de-xem-them {
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    font-size: 19px;
    color: black;
}

.nguyenthaimmo-new-posts ul li {
    margin-bottom: 3px;
}

.nguyenthaimmo-new-posts ul li a {
    font-weight: 400;
    font-size: 16px;
    color: #0bdada;
}

.nguyenthaimmo-new-posts ul li a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px #0bdada;
}

/* Related Posts Section */
.nguyenthaimmo-related-posts {
    margin-top: 30px;
    margin-bottom: 30px;
}

.nguyenthaimmo-related-posts h3 {
    font-size: 19px;
    color: black;
}

.nguyenthaimmo-related-posts ul.nguyenthaimmo-related-list {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    /* Use flex wrap instead of float */
    width: 100%;
    list-style: none;
    padding: 0;
    margin-left: -5px;
    margin-right: -5px;
}

.nguyenthaimmo-related-posts ul.nguyenthaimmo-related-list li {
    list-style: none;
    width: 25%;
    padding: 0 5px;
    margin-bottom: 20px;
}

.nguyenthaimmo-related-posts .nguyenthaimmo-box-image img {
    height: 120px;
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
    border: #0bdada solid 2px;
    box-shadow: 0 0 5px #0bdada;
    /* Neon glow for image */
    transition: box-shadow 0.3s ease;
}

.nguyenthaimmo-related-posts .nguyenthaimmo-box-image img:hover {
    box-shadow: 0 0 10px #0bdada, 0 0 20px #0bdada;
    /* Stronger glow on hover */
}

.nguyenthaimmo-related-posts h4.nguyenthaimmo-post-title {
    line-height: 1.3;
    padding-top: 7px;
    height: 65px;
    /* Fixed height for title alignment */
    overflow: hidden;
    font-weight: 600;
    /* 550 might not work on all fonts */
    font-size: 15px;
    color: #0bdada;
    margin-top: 5px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Section Title & Labels */
span.nguyenthaimmo-section-label {
    background: #0bdada;
    padding: 6px 10px;
    color: white;
    /* Keep text white for contrast, or black if preferred. White usually looks good on neon cyan. */
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 10px #0bdada;
    /* Neon glow for label */
}

.nguyenthaimmo-section-title {
    position: relative;
    border-bottom: 3px solid #0bdada;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px -2px rgba(11, 218, 218, 0.5);
    /* Subtle glow under the line */
}

/* New Posts List Box */
.nguyenthaimmo-new-list-wrap {
    background: rgba(11, 218, 218, 0.1);
    /* Very faint version of the neon color */
    padding: 15px 15px 15px 30px;
    /* Left padding for bullets if needed, or adjust */
    border: 1px dashed #0bdada;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(11, 218, 218, 0.2);
}

/* Custom GIF Bullets for New Posts List */
.nguyenthaimmo-new-list-wrap ul {
    list-style: none;
    padding-left: 0;
}

.nguyenthaimmo-new-list-wrap ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.nguyenthaimmo-new-list-wrap ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    background-image: url('http://nguyenthaimmo.local/wp-content/uploads/2026/01/demo-nguyenthaimmo-com-i3uiXM68ui.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nguyenthaimmo-related-posts ul.nguyenthaimmo-related-list li {
        width: 50% !important;
    }

    .nguyenthaimmo-related-posts .nguyenthaimmo-box-image img {
        height: 100px !important;
    }
}

/* Star Ratings Title */
.ntm-star-ratings-wrap h3 {
    color: #000 !important;
    font-size: 19px;
    /* Match other section titles */
    font-weight: 700;
}

/* =====================================================
   CATEGORY PAGE LAYOUT
===================================================== */

/* Heading Stylings */
.ntm-cat-heading {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #0bdada;
    display: inline-block;
    color: #000;
}

/* Featured Section */
.ntm-cat-featured-section {
    position: relative;
    margin-bottom: 40px;
}

.ntm-feat-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ntm-feat-img {
    flex: 0 0 50%;
    overflow: hidden;
    border-radius: 12px;
}

.ntm-feat-img img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    display: block;
}

.ntm-feat-img:hover img {
    transform: scale(1.05);
}

.ntm-feat-content {
    flex: 1;
}

.ntm-feat-content h2.post-title a {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.ntm-feat-content h2.post-title a:hover {
    color: #0bdada;
}

.ntm-feat-content .post-meta-cat {
    color: #999;
    font-size: 13px;
    margin-top: 10px;
}

.ntm-feat-content .post-meta-cat a {
    color: #0bdada;
    font-weight: 600;
}

/* Latest News List */
.ntm-latest-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.ntm-latest-img img {
    border-radius: 8px;
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.ntm-latest-title a {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
    display: block;
}

.ntm-latest-title a:hover {
    color: #0bdada;
}

.ntm-latest-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.ntm-latest-meta {
    font-size: 12px;
    color: #aaa;
}

.ntm-latest-meta i {
    margin-right: 4px;
}

/* Sidebar Most Viewed */
.ntm-cat-sidebar-list .ntm-sidebar-item {
    margin-bottom: 15px;
}

.ntm-cat-sidebar-list .ntm-sidebar-img img {
    border-radius: 6px;
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.ntm-cat-sidebar-list .ntm-sidebar-title a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.ntm-cat-sidebar-list .ntm-sidebar-title a:hover {
    color: #0bdada;
}

/* Responsive */
@media (max-width: 768px) {
    .ntm-feat-card {
        flex-direction: column;
        gap: 10px;
    }

    .ntm-feat-img {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* =====================================================
   CATEGORY GRID LAYOUT (NEW)
===================================================== */
/* =====================================================
   CATEGORY GRID LAYOUT (NEW)
===================================================== */
.ntm-grid-card {
    background: #0bdada;
    /* Neon Background */
    border: 1px solid #0bdada;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ntm-grid-card:hover {
    box-shadow: 0 10px 20px rgba(11, 218, 218, 0.4);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Image */
.ntm-grid-img {
    position: relative;
    padding-top: 60%;
    /* Aspect Ratio */
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ntm-grid-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Body */
.ntm-grid-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ntm-grid-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.ntm-grid-title a {
    color: #fff !important;
    /* Title White */
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ntm-grid-title a:hover {
    opacity: 0.8;
}

/* Meta */
.ntm-grid-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #000 !important;
    /* Meta Black */
}

.ntm-grid-meta .cat-label {
    text-transform: uppercase;
    font-weight: 700;
    color: #000 !important;
}

.ntm-grid-meta .time-label {
    font-style: italic;
    color: #000 !important;
}

/* Footer Stats */
.ntm-grid-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    /* Keep neon bg */
}

.ntm-stat {
    font-size: 13px;
    color: #000 !important;
    /* Stats Black */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ntm-stat i {
    font-size: 14px;
    color: #000 !important;
}

.ntm-stat:first-child i {
    color: #000 !important;
    /* Green Thumb to Black as well? Or keep green? Request said 'rest black' so maybe black */
}

/* Responsive */
@media (max-width: 768px) {
    .ntm-grid-card {
        margin-bottom: 15px;
    }
}

/* =====================================================
   MOBILE OPTIMIZATIONS (SIDEBAR & UI)
===================================================== */
@media (max-width: 1023px) {

    /* 1. Show Sidebar on Mobile (Slide-out) */
    .left-sidebar-menu {
        display: block !important;
        /* Override previous none */
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: #102222;
        /* User requested dark BG */
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 5px;
        /* User requested 5px padding */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .left-sidebar-menu.active {
        transform: translateX(0);
    }

    /* Reset internal padding */
    .left-sidebar-menu::-webkit-scrollbar {
        width: 0;
        /* Hide scrollbar for cleaner look */
    }

    /* Mobile Menu Item Fixes */
    .left-sidebar-menu .sidebar-menu-list .menu-link {
        padding: 8px 10px 8px 10px !important;
        /* 10px left padding */
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        /* Better spacing between icon and text */
    }

    .left-sidebar-menu .sidebar-menu-list .menu-link i,
    .left-sidebar-menu .sidebar-menu-list .menu-link .menu-icon {
        flex-shrink: 0;
        /* Prevent icon from shrinking */
    }

    .left-sidebar-menu .sidebar-menu-list .menu-text {
        flex: 1;
        display: flex;
        align-items: center;
    }

    /* Close Button inside Sidebar */
    .mobile-sidebar-close {
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
        font-weight: 700;
        color: #fff;
        /* White text on dark BG */
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-sidebar-close i {
        color: #d70018;
        /* Keep Red Icon */
    }

    /* Overlay */
    .ntm-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
    }

    .ntm-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Toggle Button (Sticky Right) */
    .ntm-mobile-toggle {
        position: fixed;
        top: 115px;
        right: 0;
        z-index: 9990;
        background: #d70018;
        color: #fff;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    /* 2. Content Padding Fixes */
    .ntm-card-wrap {
        background: #fff;
        /* Ensure white bg */
        padding: 12px !important;
    }

    .post-content-box.ntm-card {
        padding: 20px 15px !important;
        /* Slightly more inside card */
    }

    .custom-breadcrumb {
        padding: 12px !important;
        /* Unified padding */
        background: transparent;
    }

    /* 3. Reaction UI Optimization (Grid Wrap) */
    .ntm-reaction-list {
        display: flex;
        flex-wrap: wrap !important;
        justify-content: space-between;
        gap: 6px;
        padding-bottom: 0;
        overflow-x: visible;
    }

    .ntm-reaction-list::-webkit-scrollbar {
        display: none
    }

    .ntm-rating-btn {
        flex: 1 1 calc(33.33% - 6px) !important;
        min-width: 80px !important;
        width: auto !important;
        padding: 8px 4px !important;
        margin: 0 !important;
    }

    /* Display labels on mobile but smaller */
    .ntm-rating-btn .label {
        font-size: 14px !important;
        display: block !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .ntm-rating-btn .emoji {
        font-size: 35px !important;
        margin-bottom: 2px;
    }

    .ntm-rating-btn .count {
        font-size: 16px !important;
    }

    .nguyenthaimmo-post-title {
        max-height: 6.5em !important;
    }

    .nguyenthaimmo-related-posts h4.nguyenthaimmo-post-title {
        height: 65px !important;
    }
}

/* RESPONSIVE YOUTUBE EMBEDS */
.ntm-content iframe[src*="youtube.com"],
.ntm-content iframe[src*="youtu.be"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-width: 100% !important;
    display: block;
    margin: 20px auto;
}

/* MOBILE CODE BLOCK FIX (Max 768px) */
@media (max-width: 768px) {
    .ntm-content pre {
        max-width: 100%;
        overflow-x: auto !important;
        white-space: pre;
        word-wrap: normal;
        padding-top: 40px !important;
        position: relative;
        border-radius: 8px;
    }

    .ytmCuedOverlayPlayButton {
        width: 42px !important;
        height: 42px !important;
    }

    .ntm-title {
        font-size: 20px;
    }

    .ntm-copy-btn {
        top: 5px !important;
        right: 5px !important;
    }
}