/* =====================================================
   REHUB DESKTOP LAYOUT
   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: 16px;
}
/* Submenu link mặc định */
.left-sidebar-menu 
.widget-submenu ul li a {
    color: #111827 !important;   /* đen */
    font-weight: 600;
}

/* Hover submenu link */
.left-sidebar-menu 
.widget-submenu ul li a:hover {
    color: red !important;   /* đỏ */
}
.widget-submenu .ntm-widget ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 15px;
  height: 1px;
  background: #e5e7eb;
  display: block;
}
/* =========================================
   HOVER MENU CHA
   Text + Icon: ĐỎ | Background: #ccc
========================================= */

/* Hover menu cha */
.left-sidebar-menu 
.sidebar-menu-list 
.menu-item:hover > .menu-link {
    background: #f2f4f796 !important;
    color: red !important;
}

/* Icon menu cha khi hover */
.left-sidebar-menu 
.sidebar-menu-list 
.menu-item:hover > .menu-link i {
    color: red !important;
}

/* Bo góc cho đẹp (nếu menu-link chưa có) */
.left-sidebar-menu 
.sidebar-menu-list 
.menu-item > .menu-link {
    border-radius: 5px;
}

/* ===============================
   GIỮ NGUYÊN ACTIVE – KHÔNG BỊ HOVER GHI ĐÈ
================================ */

/* Icon active */
.left-sidebar-menu 
.sidebar-menu-list 
.menu-item.is-open > .menu-link i,
.left-sidebar-menu 
.sidebar-menu-list 
.menu-item.current-menu-item > .menu-link i {
    color: red !important;
}

/* Đường dọc nối các item */
.widget-submenu .ntm-widget ul {
  position: relative;
}

.widget-submenu .ntm-widget ul:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}
/* ===== ROOT VARIABLES ===== */
:root {
  --ntm-hero-offset: 80px;
  --ntm-max-width: 1280px;
  --ntm-sidebar-width: 260px;
  --ntm-content-max-width: 960px;
  --ntm-gap: 24px;
  
  /* Colors */
  --ntm-primary: #d70018;
  --ntm-secondary: #0b2f73;
  --ntm-text-primary: #111827;
  --ntm-text-secondary: #374151;
  --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;
}

/* =====================================================
   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: calc(100% + (var(--ntm-hero-offset) * 2));
    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: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 30px 22px;
    box-shadow: var(--ntm-shadow-lg);
  }

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

/* =====================================================
   BREADCRUMB
===================================================== */
@media (min-width: 1024px) {
  
  .ntm-sforum-layout .custom-breadcrumb {
    width: calc(100% + (var(--ntm-hero-offset) * 2));
    margin-left: calc(var(--ntm-hero-offset) * -1);
    margin-right: calc(var(--ntm-hero-offset) * -1);
    margin-top: 14px;
    margin-bottom: 18px;
    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;
}

.ntm-verify-title a {
  color: var(--ntm-text-primary);
  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: var(--ntm-text-secondary);
  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 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: 6px;
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.25s ease;
  }

  /* Active State */
  .sidebar-menu-list .menu-item.is-open {
    background: #fff5f7;
  }

  /* Menu Link */
  .sidebar-menu-list .menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    font-weight: 500;
    color: var(--ntm-text-primary);
  }

  .sidebar-menu-list .menu-link i {
    width: 20px;
    font-size: 16px;
    text-align: center;
    color: var(--ntm-text-muted);
    transition: color 0.25s ease;
  }

  /* Active Icon Color */
  .menu-item.is-open .menu-link i {
    color: #e11d48;
  }

  .menu-text {
    flex: 1;
  }

  /* Arrow */
  .arrow {
    transition: transform 0.25s ease;
    color: #9ca3af;
  }

  .menu-item.is-open .arrow {
    transform: rotate(90deg);
    color: #fff5f7;
  }

  /* Submenu */
  .widget-submenu {
    display: none;
    padding: 8px 20px 14px 25px;
    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);
  }
.wp-caption p.wp-caption-text {
    margin: 12px 0 0 0;
    font-size: 90%;
    line-height: 20px;
    background: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
}
}
/* =====================================================
   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;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 10px;
  }
.ntm-post-meta-under-title {
    margin-bottom: 20px;
}
}
