/**
 * NSO Layout — bám chuẩn nsorin.vn/home (CSS + cấu trúc)
 */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --primary: 249, 115, 22;
  --primary-rgb: #f87171;
  --primary-hover: #ef4444;
  --primary-subtle: rgba(249, 115, 22, 0.08);
  --bg-base: #f9fafb;
  --bg-elevated: #ffffff;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;
  --border-default: #e5e7eb;
  --container-max: 1280px;
  --container-padding: 24px;
  --nso-rin-font: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --ninja-accent: #ff6b00;
  --ninja-primary: #f87171;
  --ninja-text-bold: #1f2937;
  --ninja-text-muted: #6b7280;
  --ninja-bg: #f8f9fa;
}

/* Tailwind-like helpers used by hero markup */
.nso-pony .relative { position: relative; }
.nso-pony .absolute { position: absolute; }
.nso-pony .inset-0 { inset: 0; }
.nso-pony .z-10 { z-index: 10; }
.nso-pony .z-20 { z-index: 20; }
.nso-pony .z-30 { z-index: 30; }
.nso-pony .w-full { width: 100%; }
.nso-pony .h-full { height: 100%; }
.nso-pony .object-cover { object-fit: cover; }
.nso-pony .overflow-hidden { overflow: hidden; }
.nso-pony .pointer-events-none { pointer-events: none; }
.nso-pony .pointer-events-auto { pointer-events: auto; }
.nso-pony .flex { display: flex; }
.nso-pony .items-center { align-items: center; }
.nso-pony .justify-center { justify-content: center; }
.nso-pony .flex-wrap { flex-wrap: wrap; }
.nso-pony .rounded-full { border-radius: 9999px; }
.nso-pony .transition { transition: all 0.15s ease; }
.nso-pony .transition-all { transition: all 0.2s ease; }
.nso-pony .top-1\/2 { top: 50%; }
.nso-pony .left-4 { left: 1rem; }
.nso-pony .right-4 { right: 1rem; }
.nso-pony .-translate-y-1\/2 { transform: translateY(-50%); }
.nso-pony .bottom-5 { bottom: 1.25rem; }
.nso-pony .left-0 { left: 0; }
.nso-pony .right-0 { right: 0; }
.nso-pony .gap-2 { gap: 0.5rem; }
.nso-pony .w-10 { width: 2.5rem; }
.nso-pony .h-10 { height: 2.5rem; }
.nso-pony .text-white { color: #fff; }
.nso-pony .block { display: block; }
.nso-pony .mb-6 { margin-bottom: 1.5rem; }
.nso-pony .mb-8 { margin-bottom: 2rem; }
.nso-pony .space-y-3 > * + * { margin-top: 0.75rem; }
.nso-pony .bg-white { background: #fff; }
.nso-pony .bg-white\/40 { background: rgba(255, 255, 255, 0.4); }

body.nso-pony {
  background: var(--bg-base) !important;
  font-family: var(--nso-rin-font) !important;
  color: var(--text-primary) !important;
  padding-top: 58px !important;
}

.nso-pony.page-home .header,
.nso-pony.page-home .header .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.nso-pony .nso-stage,
.nso-pony .nso-feed,
.nso-pony .nso-social-strip,
.nso-pony .nso-hero-banner--v2 {
  display: none !important;
}

.nso-pony .nso-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* —— Topbar trắng, fixed sát mép trên —— */
body.nso-pony > .nso-topbar,
.nso-pony .nso-topbar,
.nso-pony .nso-topbar.nso-topbar--glass,
.nso-pony.page-home .nso-topbar.nso-topbar--home,
.nso-pony.page-home .nso-topbar.nso-topbar--home.is-solid {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  z-index: 1100 !important;
  background: #fff !important;
  border-bottom: 1px solid var(--border-default) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: none !important;
}

.nso-pony .nso-topbar-inner {
  min-height: 56px;
}

@media (min-width: 992px) {
  body.nso-pony {
    padding-top: 80px !important;
  }
}

.nso-pony .nso-topbar .nso-brand-name { color: var(--text-primary) !important; }
.nso-pony .nso-topbar .nso-brand-subtext { color: var(--text-tertiary) !important; }
.nso-pony .nso-topbar-nav a,
.nso-pony .nso-topbar-nav .dropdown > a {
  color: var(--text-secondary) !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
}
.nso-pony .nso-topbar-nav a:hover,
.nso-pony .nso-topbar-nav a.active,
.nso-pony .nso-topbar-nav .dropdown > a:hover {
  color: #fff !important;
  background: var(--ninja-primary) !important;
}
.nso-pony .nso-btn-login {
  background: #fff !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-default) !important;
  box-shadow: none !important;
}
.nso-pony .nso-btn-register {
  background: var(--ninja-primary) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3) !important;
}
.nso-pony .nso-hamburger {
  border-color: var(--border-default) !important;
  background: #f3f4f6 !important;
}
.nso-pony .nso-hamburger span { background: #374151 !important; }

/* —— Drawer: phải nằm trên topbar (1100) + bottom-nav (1200) —— */
.nso-pony .offcanvas-backdrop {
  z-index: 1280 !important;
  background: rgba(15, 23, 42, 0.55) !important;
}

.nso-pony .nso-drawer.offcanvas {
  z-index: 1300 !important;
  width: min(86vw, 320px) !important;
  max-width: 320px !important;
  border-right: 1px solid #e5e7eb !important;
  background: #fff !important;
  visibility: hidden;
}

.nso-pony .nso-drawer.offcanvas.show,
.nso-pony .nso-drawer.offcanvas.showing {
  visibility: visible;
}

.nso-pony .nso-drawer .offcanvas-header {
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 0.9rem 1rem !important;
  gap: 0.75rem;
  align-items: center !important;
}

.nso-pony .nso-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.nso-pony .nso-drawer-brand img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  object-fit: cover;
  flex-shrink: 0;
}

.nso-pony .nso-drawer .offcanvas-title {
  color: #111827 !important;
  font-weight: 800 !important;
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.2;
}

.nso-pony .nso-drawer-sub {
  margin: 2px 0 0 !important;
  color: #9ca3af !important;
  font-size: 0.72rem !important;
  line-height: 1.2;
}

.nso-pony .nso-drawer .btn-close {
  margin: 0 !important;
  padding: 0.5rem !important;
  filter: none !important;
  opacity: 0.65;
  background-color: #f3f4f6;
  border-radius: 10px;
  box-sizing: content-box;
  width: 0.75em;
  height: 0.75em;
}

.nso-pony .nso-drawer .btn-close:hover {
  opacity: 1;
}

.nso-pony .nso-drawer .offcanvas-body {
  background: #f9fafb !important;
  padding: 0.85rem !important;
}

.nso-pony .nso-drawer .nso-drawer-nav {
  display: grid !important;
  gap: 8px !important;
}

.nso-pony .nso-drawer .nso-drawer-nav > a {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  color: #374151 !important;
  font-weight: 650 !important;
  font-size: 0.95rem !important;
  border-radius: 12px !important;
  padding: 0.85rem 0.95rem !important;
  text-decoration: none !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nso-pony .nso-drawer .nso-drawer-nav > a .bi {
  color: #f87171 !important;
  font-size: 1.2rem !important;
  width: 1.25rem;
  text-align: center;
}

.nso-pony .nso-drawer .nso-drawer-nav > a.active,
.nso-pony .nso-drawer .nso-drawer-nav > a:hover {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #e11d48 !important;
}

.nso-pony .nso-drawer .nso-drawer-nav > a.active .bi,
.nso-pony .nso-drawer .nso-drawer-nav > a:hover .bi {
  color: #e11d48 !important;
}

.nso-pony .nso-drawer-auth {
  display: grid !important;
  gap: 8px !important;
  margin-top: 4px !important;
  padding-top: 12px !important;
  border-top: 1px solid #e5e7eb !important;
}

.nso-pony .nso-drawer-auth .nso-btn-login,
.nso-pony .nso-drawer-auth .nso-btn-register {
  width: 100% !important;
  justify-content: center !important;
  padding: 0.8rem 1rem !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.nso-pony .nso-drawer-auth .nso-btn-login {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
}

.nso-pony .nso-drawer-auth .nso-btn-register {
  background: #f87171 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(248, 113, 113, 0.28) !important;
}

.nso-pony .nso-drawer-logout {
  color: #dc2626 !important;
}

body.nso-pony.drawer-open .nso-topbar,
body.nso-pony.drawer-open .nso-bottom-nav {
  pointer-events: none;
}

/* —— Hero exact —— */
.nso-pony .nso-hero,
.nso-pony .nso-hero-slide {
  height: 540px;
  min-height: 540px;
}

.nso-pony .nso-hero {
  background: #04070d;
}

.nso-pony .nso-hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.nso-pony .nso-hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.015);
}

.nso-pony .nso-hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.48) 44%, rgba(0, 0, 0, 0.36)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent 38%);
}

.nso-pony .nso-hero-glow {
  background:
    radial-gradient(circle at 19% 35%, rgba(249, 115, 22, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 25%);
}

.nso-pony .nso-hero-content {
  padding: 0 0 80px;
}

.nso-pony .nso-hero-content-inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.nso-pony .nso-hero-copy {
  width: min(620px, 50%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.nso-pony .nso-hero-logo {
  width: auto;
  max-width: min(320px, 82%);
  max-height: 190px;
  margin-bottom: 22px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
  display: block;
}

.nso-pony .nso-hero-title {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
}

.nso-pony .nso-hero-description {
  max-width: 610px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.nso-pony .nso-hero-actions {
  gap: 12px;
}

.nso-pony .nso-hero-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 750;
  font-family: var(--nso-rin-font);
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nso-pony .nso-hero-btn:hover {
  transform: translateY(-2px);
}

.nso-pony .nso-hero-btn-primary {
  background: #ff7417;
  box-shadow: 0 10px 24px rgba(255, 116, 23, 0.25);
}

.nso-pony .nso-hero-btn-primary:hover {
  background: #ff812f;
  box-shadow: 0 13px 28px rgba(255, 116, 23, 0.35);
}

.nso-pony .nso-hero-btn-secondary {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.nso-pony .nso-hero-btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nso-pony .nso-hero-play-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.nso-pony .nso-hero-btn-primary:hover .nso-hero-download-icon {
  animation: nso-hero-bounce 0.7s ease;
}

@keyframes nso-hero-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  70% { transform: translateY(1px); }
}

.nso-pony .nso-hero-arrow {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 7, 13, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
}

.nso-pony .nso-hero-arrow:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.nso-pony .nso-hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nso-pony .nso-hero-dot.is-active {
  width: 26px;
  background: #fff !important;
}

.nso-pony .nso-hero-socials {
  right: 8px;
  bottom: 8px;
  gap: 12px;
}

.nso-pony .nso-hero-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(24, 119, 242, 0.45);
  border-radius: 14px;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(5, 9, 16, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nso-pony .nso-hero-social:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(5, 9, 16, 0.62);
}

.nso-pony .nso-hero-social-icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}

.nso-pony .nso-hero-social-icon svg {
  width: 32px;
  height: 32px;
}

.nso-pony .nso-hero-social-facebook .nso-hero-social-icon {
  background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.nso-pony .nso-hero-social-zalo .nso-hero-social-icon {
  background: linear-gradient(135deg, #087fff, #0052cc);
}

.nso-pony .nso-hero-zalo-mark {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.nso-pony .nso-hero-social-label {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nso-pony .nso-hero-social-divider {
  display: none;
}

@media (max-width: 767px) {
  .nso-pony .nso-hero,
  .nso-pony .nso-hero-slide {
    height: 560px;
    min-height: 560px;
  }

  .nso-pony .nso-hero-overlay {
    background:
      linear-gradient(0deg, rgba(4, 7, 13, 0.94), rgba(4, 7, 13, 0.56) 58%, rgba(4, 7, 13, 0.25)),
      linear-gradient(90deg, rgba(4, 7, 13, 0.36), transparent);
  }

  .nso-pony .nso-hero-content {
    padding: 22px 0 112px;
  }

  .nso-pony .nso-hero-content-inner {
    align-items: flex-end;
  }

  .nso-pony .nso-hero-copy {
    width: 100%;
    padding: 22px;
    border-radius: 18px;
    background: rgba(5, 9, 16, 0.52);
  }

  .nso-pony .nso-hero-logo {
    max-width: 220px;
    max-height: 72px;
    margin-bottom: 8px;
  }

  .nso-pony .nso-hero-title {
    margin-bottom: 8px;
    font-size: clamp(28px, 9vw, 40px);
  }

  .nso-pony .nso-hero-description {
    display: -webkit-box;
    margin-bottom: 18px;
    overflow: hidden;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .nso-pony .nso-hero-btn {
    min-height: 46px;
    padding: 0 17px;
    font-size: 13px;
  }

  .nso-pony .nso-hero-arrow {
    top: 29%;
    width: 36px;
    height: 36px;
  }

  .nso-pony .nso-hero-arrow-left { left: 10px; }
  .nso-pony .nso-hero-arrow-right { right: 10px; }

  .nso-pony .nso-hero-dots {
    bottom: 88px;
  }

  .nso-pony .nso-hero-socials {
    right: 14px;
    bottom: 17px;
    left: 14px;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nso-pony .nso-hero-socials::-webkit-scrollbar { display: none; }

  .nso-pony .nso-hero-social {
    padding: 5px;
    border-radius: 13px;
  }

  .nso-pony .nso-hero-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .nso-pony .nso-hero-social-icon svg {
    width: 23px;
    height: 23px;
  }

  .nso-pony .nso-hero-social-divider,
  .nso-pony .nso-hero-social-label {
    display: none;
  }
}

@media (max-width: 420px) {
  .nso-pony .nso-hero-copy { padding: 18px; }
  .nso-pony .nso-hero-actions { gap: 9px; }
  .nso-pony .nso-hero-btn { flex: 1; padding: 0 12px; }
}

@media (max-width: 640px) {
  :root { --container-padding: 16px; }
}

/* —— News section —— */
.nso-pony .nso-rin-section {
  font-family: var(--nso-rin-font);
  color: var(--text-primary);
}

.nso-pony .nso-rin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Đã bỏ cụm chữ tĩnh "Cập nhật mới / Tin tức & Sự kiện",
   chỉ còn link "Xem tất cả" nên đẩy sang phải. */
.nso-pony .nso-rin-head--link-only {
  justify-content: flex-end;
  padding-top: 20px;
  margin-bottom: 0.85rem;
}

.nso-pony .nso-rin-h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

@media (min-width: 1024px) {
  .nso-pony .nso-rin-h2 { font-size: 1.5rem; }
}

.nso-pony .nso-rin-sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.nso-pony .nso-rin-all {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #f87171 !important;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.15);
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.nso-pony .nso-rin-all:hover {
  background: rgba(248, 113, 113, 0.12);
}

@media (min-width: 640px) {
  .nso-pony .nso-rin-all { display: inline-flex; }
}

.nso-pony .nso-rin-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nso-pony .nso-rin-star {
  font-size: 1.5rem;
  color: var(--ninja-accent);
  width: 1.5rem;
  height: 1.5rem;
}

.nso-pony .nso-rin-label h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ninja-text-bold);
}

.nso-pony .ninja-card {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  color: inherit !important;
}

.nso-pony .ninja-card:hover {
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
  transform: translateY(-0.25rem);
  border-color: rgba(248, 113, 113, 0.55);
}

.nso-pony .nso-rin-announce-card {
  padding: 1rem;
  border-left: 4px solid #ef4444;
  border-radius: 0.5rem;
}

.nso-pony .nso-rin-announce-card:hover {
  border-left-color: #dc2626;
}

.nso-pony .nso-rin-announce-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.nso-pony .nso-rin-announce-main { flex: 1; min-width: 0; }

.nso-pony .nso-rin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.nso-pony .nso-rin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.nso-pony .nso-rin-badge--red {
  background: #dc2626;
  color: #fff;
}

.nso-pony .nso-rin-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem 0.375rem;
  font-size: 10px;
  font-weight: 500;
  border-radius: 0.25rem;
  background: rgba(107, 114, 128, 0.1);
  color: var(--ninja-text-muted);
}

.nso-pony .nso-rin-announce-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #dc2626;
  transition: color 0.15s ease;
}

.nso-pony .nso-rin-announce-card:hover .nso-rin-announce-title {
  color: var(--ninja-primary);
}

.nso-pony .nso-rin-announce-desc {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ninja-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nso-pony .nso-rin-announce-arrow {
  color: #ef4444;
  margin-top: 0.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.15s ease;
}

.nso-pony .nso-rin-announce-card:hover .nso-rin-announce-arrow {
  color: var(--ninja-primary);
  transform: translateX(4px);
}

/* GIM banner */
.nso-pony .nso-rin-gim { text-decoration: none !important; }
.nso-pony .nso-rin-gim-frame {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.nso-pony .nso-rin-gim-media {
  position: relative;
  aspect-ratio: 2.5 / 1;
}
.nso-pony .nso-rin-gim-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.nso-pony .nso-rin-gim:hover .nso-rin-gim-img {
  transform: scale(1.03);
}
.nso-pony .nso-rin-gim-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}
.nso-pony .nso-rin-gim-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  max-width: 32rem;
  color: #fff;
}
@media (min-width: 1024px) {
  .nso-pony .nso-rin-gim-copy { padding: 2rem; }
}
.nso-pony .nso-rin-gim-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}
.nso-pony .nso-rin-gim-copy h3 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .nso-pony .nso-rin-gim-copy h3 { font-size: 1.125rem; }
}
.nso-pony .nso-rin-gim-copy p {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nso-pony .nso-rin-gim-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.nso-pony .nso-rin-gim-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Featured 2-col */
.nso-pony .nso-rin-feature {
  border-radius: 0.75rem;
  border: 2px solid var(--ninja-accent);
  overflow: hidden;
  padding: 0;
}
.nso-pony .nso-rin-feature:hover {
  border-color: var(--ninja-primary);
}
.nso-pony .nso-rin-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .nso-pony .nso-rin-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.nso-pony .nso-rin-feature-media {
  position: relative;
  height: 14rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .nso-pony .nso-rin-feature-media {
    height: auto;
    min-height: 100%;
  }
}
.nso-pony .nso-rin-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.nso-pony .nso-rin-feature:hover .nso-rin-feature-media img {
  transform: scale(1.1);
}
.nso-pony .nso-rin-feature-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.375rem;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.nso-pony .nso-rin-feature-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to bottom right, #fff, rgba(248, 249, 250, 0.3));
}
@media (min-width: 768px) {
  .nso-pony .nso-rin-feature-body { padding: 2rem; }
}
.nso-pony .nso-rin-feature-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ninja-text-bold);
  transition: color 0.15s ease;
}
@media (min-width: 768px) {
  .nso-pony .nso-rin-feature-title { font-size: 1.875rem; }
}
.nso-pony .nso-rin-feature:hover .nso-rin-feature-title {
  color: var(--ninja-primary);
}
.nso-pony .nso-rin-feature-desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .nso-pony .nso-rin-feature-desc { font-size: 1rem; }
}
.nso-pony .nso-rin-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.625rem 1.25rem;
  background: var(--ninja-primary);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Grid cards */
.nso-pony .nso-rin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .nso-pony .nso-rin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.nso-pony .nso-rin-grid-card {
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 0;
}
.nso-pony .nso-rin-grid-card:hover {
  transform: scale(1.05);
}
.nso-pony .nso-rin-grid-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ninja-bg);
}
.nso-pony .nso-rin-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.nso-pony .nso-rin-grid-card:hover .nso-rin-grid-thumb img {
  transform: scale(1.06);
}
.nso-pony .nso-rin-grid-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-flex;
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  border-radius: 0.375rem;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.nso-pony .nso-rin-grid-body {
  padding: 0.5rem;
  background: #fff;
}
.nso-pony .nso-rin-grid-body h3 {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ninja-text-bold);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nso-pony .nso-rin-grid-card:hover .nso-rin-grid-body h3 {
  color: var(--ninja-primary);
}
.nso-pony .nso-rin-grid-body p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--ninja-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nso-pony .nso-rin-grid-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.nso-pony .nso-rin-grid-more {
  color: var(--ninja-primary);
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
}

.nso-pony .nso-rin-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
  padding-bottom: 50px;
}
.nso-pony .nso-rin-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: var(--ninja-primary) !important;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.nso-pony .nso-rin-more-btn:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: var(--ninja-primary);
}

.nso-pony .nso-rin-empty {
  text-align: center;
  padding: 2rem;
  color: var(--ninja-text-muted);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

/* Bottom nav */
.nso-pony .nso-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid var(--border-default) !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06) !important;
}
.nso-pony .nso-bottom-nav a {
  color: var(--text-tertiary) !important;
  font-family: var(--nso-rin-font) !important;
}
.nso-pony .nso-bottom-nav a.active,
.nso-pony .nso-bottom-nav a.active .bi {
  color: var(--ninja-primary) !important;
  background: rgba(248, 113, 113, 0.1) !important;
}


/* ===== Bài ghim (news_posts.status = 1) — trang chủ ===== */

/* Icon ghim: to hơn chữ, nhấp nháy đổi màu + phóng nhẹ cho nổi bật */
@keyframes nso-pin-blink {
  0%, 100% { color: #fff;    transform: rotate(-8deg) scale(1); }
  50%      { color: #fde047; transform: rotate(-8deg) scale(1.28); }
}
@keyframes nso-pin-badge-glow {
  0%, 100% { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); }
  50%      { background: #ef4444; box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

.nso-pony .nso-pin-icon {
  font-size: 1.45em;
  line-height: 1;
  vertical-align: -0.14em;
  display: inline-block;
  animation: nso-pin-blink 1.1s ease-in-out infinite;
}

.nso-pony .nso-rin-badge--pin {
  background: #f59e0b;
  color: #fff;
  animation: nso-pin-badge-glow 1.1s ease-in-out infinite;
}

/* Nhãn tiêu đề khối "Bài ghim" */
.nso-pony .nso-rin-block--pinned .nso-rin-label .nso-pin-icon {
  font-size: 1.3em;
  color: #f59e0b;
  animation: nso-pin-blink-solo 1.1s ease-in-out infinite;
}
@keyframes nso-pin-blink-solo {
  0%, 100% { color: #f59e0b; transform: rotate(-8deg) scale(1); }
  50%      { color: #ef4444; transform: rotate(-8deg) scale(1.28); }
}

/* Lưới bài ghim: 1 cột điện thoại → 2 cột tablet → tối đa 3 cột desktop */
.nso-pony .nso-rin-grid--pinned {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 0;
}
@media (min-width: 576px) {
  .nso-pony .nso-rin-grid--pinned {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .nso-pony .nso-rin-grid--pinned {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Thẻ bài ghim: viền cam để tách khỏi danh sách thường */
.nso-pony .nso-rin-grid-card--pinned {
  border: 1px solid rgba(245, 158, 11, .5);
  box-shadow: 0 2px 10px rgba(245, 158, 11, .16);
}
.nso-pony .nso-rin-grid-card--pinned .nso-rin-grid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .nso-pony .nso-pin-icon,
  .nso-pony .nso-rin-badge--pin,
  .nso-pony .nso-rin-block--pinned .nso-rin-label .nso-pin-icon {
    animation: none;
  }
}

/* ===== Footer ===== */

/* Dòng cam kết: luôn ở giữa. Màn hình hẹp thì icon xuống dòng riêng,
   vẫn giữa — trước đây icon bị dính sát mép trái. */
.nso-pony .app-footer .nso-footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-left: 0;
}
.nso-pony .app-footer .nso-footer-note > span {
  text-align: center;
}

/* Hàng dưới: Copyright bên trái, Make By bên phải */
.nso-pony .app-footer .nso-footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.nso-pony .app-footer .nso-footer-bottom > div {
  white-space: nowrap;
}

@media (max-width: 360px) {
  .nso-pony .app-footer .nso-footer-bottom {
    font-size: 0.82rem;
  }
}
