/* 
   chuongtrinhdinhcu.vn — Brand Styling (Vanilla CSS)
   Fonts used: Fraunces (serif), Inter (sans-serif), IBM Plex Mono (mono)
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --red: #EC1847;
  --red-tint: #FDE4E9;
  --navy: #1D184F;
  --violet: #47467C;
  --paper: #F5F4FA;
  --mist: #8A899E;
  --white: #FFFFFF;
  --ink: #17152E;
  --border: #DEDCEC;

  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ---------- Typography Utilities ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}

/* ---------- Utility Bar ---------- */
.util-bar {
  background-color: #171242;
  color: #B9B8D6;
  font-family: var(--mono);
  font-size: 11px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.util-bar a {
  color: #B9B8D6;
}

.util-bar a:hover {
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  background-color: var(--navy);
  color: var(--white);
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 42px;
  display: block;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: #C7C6E2;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link.active {
  border-bottom-color: var(--red);
}

.dropdown-parent {
  position: relative;
}

/* Mega Menu on Desktop */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(29, 24, 79, 0.1);
  width: 780px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 200;
}

.dropdown-parent:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--paper);
  padding-bottom: 6px;
  letter-spacing: 0.05em;
}

.mega-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  padding: 6px 0;
}

.mega-col a:hover {
  color: var(--navy);
  padding-left: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #d1123c;
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  background-color: var(--paper);
  border-color: var(--mist);
}

.btn-outline-white {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

@media (max-width: 992px) {
  .main-nav, .header-actions .btn {
    display: none;
  }
  .burger {
    display: block;
  }
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--navy);
  z-index: 1000;
  padding: 40px 30px;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
}

.mobile-sidebar.open {
  right: 0;
}

.mobile-sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.mobile-nav-link {
  color: #C7C6E2;
  font-size: 16px;
  font-weight: 500;
  display: block;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--white);
}

.mobile-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu {
  display: none;
  padding-left: 16px;
  margin-top: 8px;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-submenu a {
  color: #A5A4CD;
  font-size: 14px;
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 24, 79, 0.06);
}

/* ---------- Pentagon House Shape Motif ---------- */
.house-mask {
  width: 100%;
  aspect-ratio: 4/5;
  clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.house-quote {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--violet);
  color: var(--white);
  clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  text-align: center;
}

.house-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.house-quote cite {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.05em;
  color: #B9B8D6;
}

.house-stat {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--red-tint);
  clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.house-stat .stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  color: var(--red);
}

.house-stat .stat-lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.05em;
  max-width: 18ch;
  margin-top: 8px;
}

/* Peak Divider */
.peak-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0;
}

.peak-divider .peak {
  width: 14px;
  height: 16px;
  background-color: var(--red);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  flex-shrink: 0;
}

.peak-divider .line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

/* ---------- Grid Layouts ---------- */
.essence-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.traits-list {
  list-style: none;
}

.traits-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.traits-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.traits-list .trait-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--red);
  font-weight: 500;
}

.traits-list .trait-desc {
  font-size: 14px;
  color: var(--violet);
}

@media (max-width: 768px) {
  .essence-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ---------- Hero Unit ---------- */
.hero-block {
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.hero-txt .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #FF7C97;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-txt h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 60px);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-txt h1 em {
  font-style: italic;
  color: #FF6A8A;
}

.hero-txt p {
  font-size: 17px;
  color: #C7C6E2;
  max-width: 48ch;
  margin-bottom: 30px;
}

.hero-graphic {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(155deg, var(--red), #ff5678 45%, var(--violet) 100%);
  clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-graphic {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ---------- Forms & Inputs ---------- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group label.required::after {
  content: " *";
  color: var(--red);
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background-color: var(--white);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
}

textarea.form-control {
  height: 80px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 3px;
}

.form-checkbox span {
  font-size: 12.5px;
  color: var(--violet);
}

/* ---------- Sidebar Form Panel ---------- */
.sidebar-panel {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
}

.sidebar-panel h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}

.sidebar-panel p {
  font-size: 13px;
  color: var(--mist);
  margin-bottom: 20px;
}

/* ---------- Midpage Dark CTA Banner ---------- */
.cta-band {
  background-color: var(--navy);
  color: var(--white);
  padding: 48px 0;
  margin-top: 60px;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--serif);
  color: var(--white);
  font-size: 24px;
  max-width: 45ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #171242;
  color: #B9B8D6;
  padding: 60px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 13.5px;
}

.footer-col ul a {
  color: #A5A4CD;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--mono);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links a {
  margin-left: 16px;
  color: #8A899E;
}

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

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 40px rgba(29, 24, 79, 0.1);
  padding: 20px 0;
  z-index: 1000;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-txt {
  flex: 1;
  min-width: 260px;
  font-size: 13.5px;
  color: var(--ink);
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

/* ---------- Cookie Preference Modal ---------- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(29, 24, 79, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-modal {
  background-color: var(--white);
  width: 440px;
  max-width: 90%;
  padding: 30px;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cookie-modal h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 8px;
}

.cookie-modal p {
  font-size: 13px;
  color: var(--mist);
  margin-bottom: 20px;
}

.cookie-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--paper);
}

.cookie-pref-row:first-of-type {
  border-top: none;
}

.cookie-pref-info h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
}

.cookie-pref-info p {
  font-size: 12px;
  color: var(--mist);
  margin: 2px 0 0;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--red);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--red);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Grid listing for articles ---------- */
.article-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .article-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .article-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Article detail page layout ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

.detail-layout > aside {
  position: sticky;
  top: 20px;
  align-self: start;
}

@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout > aside {
    position: static;
  }
}

.detail-main article {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
}

@media (max-width: 576px) {
  .detail-main article {
    padding: 24px;
  }
}

.detail-header {
  margin-bottom: 24px;
}

.detail-header .cat-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.detail-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mist);
  border-bottom: 1px solid var(--paper);
  padding-bottom: 16px;
}

.detail-featured {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  margin-bottom: 30px;
}

.detail-content h2, .detail-content h3 {
  margin: 32px 0 16px;
}

.detail-content p {
  font-size: 16.5px;
  color: var(--ink);
  margin-bottom: 20px;
  text-align: justify;
}

.detail-content ul, .detail-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
  color: var(--ink);
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}

.detail-content th, .detail-content td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.detail-content th {
  background-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.detail-content tr:nth-child(even) {
  background-color: var(--paper);
}

/* In-article CTA box */
.in-article-cta {
  background-color: var(--red-tint);
  border-left: 4px solid var(--red);
  padding: 24px;
  margin: 30px 0;
}

.in-article-cta h4 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.in-article-cta p {
  font-size: 13.5px;
  color: var(--violet);
  margin-bottom: 16px;
}

.in-article-cta form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.in-article-cta .form-control {
  flex: 1;
  min-width: 160px;
}

/* ---------- Sidebar widgets ---------- */
.sidebar-widget {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 30px;
}

.sidebar-widget h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  display: inline-block;
}

.related-post {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.related-post:last-of-type {
  margin-bottom: 0;
}

.related-post-img {
  width: 80px;
  height: 60px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.related-post-info h5 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
}

.related-post-info .date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mist);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mist);
  margin: 24px 0 10px;
}

.breadcrumbs a {
  color: var(--violet);
}

.breadcrumbs span {
  color: var(--mist);
  margin: 0 8px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background-color: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s ease;
}

.pagination-item:hover, .pagination-item.active {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---------- Policies layout ---------- */
.policy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }
}

.policy-sidebar-menu {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 16px 0;
  align-self: start;
}

.policy-sidebar-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--violet);
  border-left: 3px solid transparent;
}

.policy-sidebar-menu a:hover, .policy-sidebar-menu a.active {
  color: var(--red);
  background-color: var(--paper);
}

.policy-sidebar-menu a.active {
  border-left-color: var(--red);
}

.policy-content-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 40px;
}

@media (max-width: 576px) {
  .policy-content-card {
    padding: 24px;
  }
}

.policy-content-card h2 {
  font-size: clamp(20px, 3.5vw, 28px);
  margin-bottom: 24px;
}

.policy-content-card h3 {
  font-size: 16px;
  margin: 24px 0 12px;
}

.policy-content-card p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 16px;
}

/* ---------- News Portal Elements ---------- */
.news-ticker {
  background-color: #171242;
  color: #B9B8D6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12.5px;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-badge {
  background-color: var(--red);
  color: var(--white);
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
}
.ticker-content a {
  color: #E6E5F3;
}
.ticker-content a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Editorial Hero Layout */
.editorial-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 992px) {
  .editorial-hero {
    grid-template-columns: 1fr;
  }
}
.hero-featured-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.hero-featured-img {
  height: 380px;
  background-size: cover;
  background-position: center;
}
@media (max-width: 576px) {
  .hero-featured-img {
    height: 240px;
  }
}
.hero-featured-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-featured-title {
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 12px 0 16px;
  line-height: 1.25;
}
.hero-featured-desc {
  font-size: 15px;
  color: var(--violet);
  margin-bottom: 24px;
}

.hero-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-sidebar-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-sidebar-item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(29, 24, 79, 0.04);
}
.hero-sidebar-img {
  width: 80px;
  height: 80px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.hero-sidebar-body {
  flex: 1;
}
.hero-sidebar-body h4 {
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
}

/* Visa Bulletin Table Widget */
.bulletin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
}
.bulletin-table th, .bulletin-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.bulletin-table th {
  font-family: var(--mono);
  font-weight: 600;
  background-color: var(--paper);
  color: var(--navy);
}
.bulletin-table td {
  color: var(--ink);
}
.bulletin-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 2px;
  background-color: #E2F8EE;
  color: #0E7043;
}
.bulletin-badge.waiting {
  background-color: #FFF2E0;
  color: #B25E00;
}

/* ---------- Homepage Category Sections ---------- */
.category-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.category-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.category-header h2 {
  font-size: 20px;
  margin: 0;
}
.category-header a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  white-space: nowrap;
}

/* Category List — horizontal list style (no images) */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg);
}
.category-list li:last-child {
  border-bottom: none;
}
.category-list li::before {
  content: '\25AA';
  color: var(--red);
  font-size: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}
.category-list li a {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  transition: color 0.15s;
}
.category-list li a:hover {
  color: var(--red);
}
.category-list li .list-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mist);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Category Grid — 2 columns */
.category-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 576px) {
  .category-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Card Horizontal — image left, text right */
.card-horizontal {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-horizontal .card-h-img {
  width: 220px;
  min-height: 160px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.card-horizontal .card-h-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-horizontal .card-h-body h3 {
  font-size: 17px;
  margin: 6px 0 10px;
  line-height: 1.4;
}
.card-horizontal .card-h-body p {
  font-size: 13px;
  color: var(--violet);
  line-height: 1.5;
  margin-bottom: 0;
}
@media (max-width: 576px) {
  .card-horizontal {
    flex-direction: column;
  }
  .card-horizontal .card-h-img {
    width: 100%;
    min-height: 140px;
  }
}
