/* Shared layout utilities — replacement for Bootstrap on the public frontend. */

:root,
[data-theme="light"] {
  --nl-gutter-x: 1.5rem;
  --nl-gutter-y: 0;
  --nl-body-bg: #fff;
  --nl-body-color: #212529;
  --nl-border-color: #dee2e6;
  --nl-primary: var(--theme-color, #0d6efd);
  --nl-muted: #6c757d;
  --nl-dark-bg-subtle: #ececf0;
  --nl-black: #000;
  --nl-light-text: #f8f9fa;
  --nl-gray-300: #dee2e6;
  --nl-breadcrumb-gap: 0.5rem;
  --bs-body-bg: var(--nl-body-bg);
  --bs-primary: var(--nl-primary);
  --bs-border-color: var(--nl-border-color);
  --bs-dark-bg-subtle: var(--nl-dark-bg-subtle);
  --bs-black: var(--nl-black);
  --bs-light-text-emphasis: var(--nl-light-text);
  --bs-link-color-rgb: 13, 110, 253;
  --bs-breadcrumb-item-padding-x: var(--nl-breadcrumb-gap);
  --bs-gray-300: var(--nl-gray-300);
}

[data-theme="dark"] {
  --nl-body-bg: #212529;
  --nl-body-color: #dee2e6;
  --nl-border-color: #495057;
  --nl-dark-bg-subtle: #2b3035;
  --nl-light-text: #e9ecef;
  --bs-body-bg: var(--nl-body-bg);
  --bs-border-color: var(--nl-border-color);
  --bs-dark-bg-subtle: var(--nl-dark-bg-subtle);
  --bs-light-text-emphasis: var(--nl-light-text);
}

*,
*::before,
*::after { box-sizing: border-box; }

img, svg { vertical-align: middle; }

figure {
  margin: 0 0 1rem;
}

.nl-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.nl-icon.fa-lg { width: 1.33em; height: 1.33em; }
.nl-icon.fa-2x { width: 2em; height: 2em; }
.nl-icon.fa-3x { width: 3em; height: 3em; }
.nl-icon.fa-4x { width: 4em; height: 4em; }
.nl-icon.fa-5x { width: 5em; height: 5em; }
.nl-icon.fa-fw { width: 1.25em; }

.nl-icon--spin {
  animation: nl-icon-spin 0.75s linear infinite;
}

@keyframes nl-icon-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nl-icon--spin { animation: none; }
}

.container,
.container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.container { max-width: 1320px; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--nl-gutter-y) * -1);
  margin-inline: calc(var(--nl-gutter-x) * -0.5);
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: calc(var(--nl-gutter-x) * 0.5);
  margin-top: var(--nl-gutter-y);
}

.col { flex: 1 0 0%; }

.g-0, .gx-0 { --nl-gutter-x: 0; }
.g-0, .gy-0 { --nl-gutter-y: 0; }
.g-1, .gx-1 { --nl-gutter-x: 0.25rem; }
.g-1, .gy-1 { --nl-gutter-y: 0.25rem; }
.g-2, .gx-2 { --nl-gutter-x: 0.5rem; }
.g-2, .gy-2 { --nl-gutter-y: 0.5rem; }
.g-3, .gx-3 { --nl-gutter-x: 1rem; }
.g-3, .gy-3 { --nl-gutter-y: 1rem; }
.g-4, .gx-4 { --nl-gutter-x: 1.5rem; }
.g-4, .gy-4 { --nl-gutter-y: 1.5rem; }
.g-5, .gx-5 { --nl-gutter-x: 3rem; }
.g-5, .gy-5 { --nl-gutter-y: 3rem; }
@media (min-width: 992px) { .g-lg-5 { --nl-gutter-x: 3rem; --nl-gutter-y: 3rem; } }
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }
@media (min-width: 576px) {
  .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 1200px) {
  .col-xl-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-xl-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75%; }
  .col-xl-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
@media (min-width: 576px) { .d-sm-block { display: block !important; } }
@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
}

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-self-start { align-self: flex-start !important; }
.align-self-center { align-self: center !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }

.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ms-0 { margin-inline-start: 0 !important; }
.me-0 { margin-inline-end: 0 !important; }
.mx-0 { margin-inline: 0 !important; }
.my-0 { margin-block: 0 !important; }
.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.ps-0 { padding-inline-start: 0 !important; }
.pe-0 { padding-inline-end: 0 !important; }
.px-0 { padding-inline: 0 !important; }
.py-0 { padding-block: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.ms-1 { margin-inline-start: 0.25rem !important; }
.me-1 { margin-inline-end: 0.25rem !important; }
.mx-1 { margin-inline: 0.25rem !important; }
.my-1 { margin-block: 0.25rem !important; }
.p-1 { padding: 0.25rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.ps-1 { padding-inline-start: 0.25rem !important; }
.pe-1 { padding-inline-end: 0.25rem !important; }
.px-1 { padding-inline: 0.25rem !important; }
.py-1 { padding-block: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.ms-2 { margin-inline-start: 0.5rem !important; }
.me-2 { margin-inline-end: 0.5rem !important; }
.mx-2 { margin-inline: 0.5rem !important; }
.my-2 { margin-block: 0.5rem !important; }
.p-2 { padding: 0.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.ps-2 { padding-inline-start: 0.5rem !important; }
.pe-2 { padding-inline-end: 0.5rem !important; }
.px-2 { padding-inline: 0.5rem !important; }
.py-2 { padding-block: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ms-3 { margin-inline-start: 1rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.mx-3 { margin-inline: 1rem !important; }
.my-3 { margin-block: 1rem !important; }
.p-3 { padding: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.ps-3 { padding-inline-start: 1rem !important; }
.pe-3 { padding-inline-end: 1rem !important; }
.px-3 { padding-inline: 1rem !important; }
.py-3 { padding-block: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ms-4 { margin-inline-start: 1.5rem !important; }
.me-4 { margin-inline-end: 1.5rem !important; }
.mx-4 { margin-inline: 1.5rem !important; }
.my-4 { margin-block: 1.5rem !important; }
.p-4 { padding: 1.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-4 { padding-inline-start: 1.5rem !important; }
.pe-4 { padding-inline-end: 1.5rem !important; }
.px-4 { padding-inline: 1.5rem !important; }
.py-4 { padding-block: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ms-5 { margin-inline-start: 3rem !important; }
.me-5 { margin-inline-end: 3rem !important; }
.mx-5 { margin-inline: 3rem !important; }
.my-5 { margin-block: 3rem !important; }
.p-5 { padding: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.ps-5 { padding-inline-start: 3rem !important; }
.pe-5 { padding-inline-end: 3rem !important; }
.px-5 { padding-inline: 3rem !important; }
.py-5 { padding-block: 3rem !important; }

@media (min-width: 576px) {
  .p-sm-4 { padding: 1.5rem !important; }
}
@media (min-width: 768px) {
  .mb-md-4 { margin-bottom: 1.5rem !important; }
  .p-md-5 { padding: 3rem !important; }
  .py-md-5 { padding-block: 3rem !important; }
  .text-md-start { text-align: start !important; }
  .text-md-center { text-align: center !important; }
  .text-md-end { text-align: end !important; }
}
@media (min-width: 992px) {
  .mb-lg-4 { margin-bottom: 1.5rem !important; }
}

.text-center { text-align: center !important; }
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }
.text-muted { color: var(--nl-muted) !important; }
.text-white { color: #fff !important; }
.text-decoration-none { text-decoration: none !important; }
.small, small { font-size: 0.875em; }
.fw-light { font-weight: 300 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fs-2 { font-size: 2rem; }
.fs-5 { font-size: 1.25rem; }
.fs-12 { font-size: 0.75rem; }
.lh-30 { line-height: 1.875; }
.list-unstyled { padding-left: 0; list-style: none; }

.bg-light { background-color: #f8f9fa !important; }
.bg-primary { background-color: var(--nl-primary) !important; }

.border { border: 1px solid var(--nl-border-color) !important; }
.border-0 { border: 0 !important; }
.border-1 { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-3 { border-width: 3px !important; }
.border-top { border-top: 1px solid var(--nl-border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--nl-border-color) !important; }
.border-light { border-color: #f8f9fa !important; }

.rounded { border-radius: 0.375rem !important; }
.rounded-3 { border-radius: 0.5rem !important; }
.rounded-4 { border-radius: 0.75rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.img-fluid { max-width: 100%; height: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.btn-lg { padding: 0.5rem 1rem; font-size: 1.125rem; }
.btn-primary { background: var(--nl-primary); border-color: var(--nl-primary); color: #fff; }
.btn-primary:hover { filter: brightness(0.92); color: #fff; }
.btn-dark { background: #212529; border-color: #212529; color: #fff; }
.btn-link { background: none; border: 0; color: var(--nl-primary); text-decoration: underline; padding-inline: 0; }
.btn-outline-primary { color: var(--nl-primary); border-color: var(--nl-primary); }
.btn-outline-secondary { color: #6c757d; border-color: #6c757d; }
.btn-outline-danger { color: #dc3545; border-color: #dc3545; }
.btn-close {
  width: 1em; height: 1em; padding: 0.25em;
  border: 0; background: transparent;
  opacity: 0.5; cursor: pointer;
}
.btn-close::before { content: "×"; font-size: 1.4em; line-height: 1; }

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
  background: var(--nl-body-bg, #fff);
  border: 1px solid var(--nl-border-color);
  border-radius: 0.375rem;
}
.form-control:focus,
.form-select:focus {
  outline: 2px solid color-mix(in srgb, var(--nl-primary) 35%, transparent);
  border-color: var(--nl-primary);
}
.form-label { display: inline-block; margin-bottom: 0.35rem; }
.input-group { display: flex; width: 100%; }
.input-group .form-control { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group .btn { border-radius: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-item + .breadcrumb-item { padding-inline-start: var(--nl-breadcrumb-gap); }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding-inline-end: var(--nl-breadcrumb-gap);
  color: var(--nl-muted);
}
.breadcrumb-item.active { color: var(--nl-muted); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--nl-body-bg, #fff);
  border: 1px solid var(--nl-border-color);
  border-radius: 0.375rem;
}
.card-body { padding: 1rem; }
.card-title { margin-bottom: 0.5rem; }
.card-text { margin-bottom: 0; }
.card-img-top { width: 100%; border-top-left-radius: inherit; border-top-right-radius: inherit; }

.alert { padding: 0.75rem 1rem; border: 1px solid transparent; border-radius: 0.375rem; }
.alert-warning { color: #664d03; background: #fff3cd; border-color: #ffecb5; }
.alert-success { color: #0f5132; background: #d1e7dd; border-color: #badbcc; }
.alert-danger { color: #842029; background: #f8d7da; border-color: #f5c2c7; }

.collapse:not(.show) { display: none; }
.collapse.show { display: block; }

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}
.navbar-brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.navbar-nav { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; gap: 0.25rem; }
.nav-link { display: block; padding: 0.5rem 0.75rem; text-decoration: none; color: inherit; }
.nav-link.active { font-weight: 600; }
.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid var(--nl-border-color);
  border-radius: 0.375rem;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.navbar-collapse { flex-basis: 100%; }
@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
  }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
}

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  top: 100%;
  z-index: 1000;
  min-width: 10rem;
  margin: 0.125rem 0 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--nl-body-bg, #fff);
  border: 1px solid var(--nl-border-color);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
}
.dropdown-menu.show,
.dropdown.is-open > .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.35rem 1rem;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: start;
}
.dropdown-item:hover { background: color-mix(in srgb, var(--nl-primary) 10%, transparent); }

.pagination { display: flex; list-style: none; padding: 0; margin: 0; gap: 0.25rem; }
.page-link {
  display: block;
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  color: var(--nl-primary);
  border: 1px solid var(--nl-border-color);
  border-radius: 0.375rem;
}

/* Google Preferred Sources Component Styles */

.google-preferred-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nl-body-color, #212529);
  background: color-mix(in srgb, var(--nl-body-color, #212529) 4%, transparent);
  border: 1px solid var(--nl-border-color, #dee2e6);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.25;
  white-space: nowrap;
}

.google-preferred-btn:hover {
  color: var(--nl-body-color, #212529);
  background: color-mix(in srgb, var(--nl-primary, #0d6efd) 8%, transparent);
  border-color: #4285f4;
  box-shadow: 0 2px 10px rgba(66, 133, 244, 0.18);
  transform: translateY(-1px);
}

.google-preferred-btn:active {
  transform: translateY(0);
}

/* Card / Banner Variant */
.google-preferred-card {
  margin: 2.25rem 0;
  padding: 1.35rem 1.65rem;
  border-radius: 1rem;
  border: 1px solid var(--nl-border-color, #dee2e6);
  background: linear-gradient(135deg, rgba(235, 243, 255, 0.75) 0%, rgba(254, 247, 245, 0.65) 50%, rgba(240, 249, 244, 0.75) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .google-preferred-card {
  background: linear-gradient(135deg, rgba(26, 40, 60, 0.55) 0%, rgba(38, 30, 42, 0.5) 50%, rgba(20, 40, 30, 0.55) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.google-preferred-card:hover {
  border-color: color-mix(in srgb, #4285f4 50%, var(--nl-border-color, #dee2e6));
  box-shadow: 0 6px 24px rgba(66, 133, 244, 0.12);
}

.google-preferred-card__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.google-preferred-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.google-preferred-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--nl-body-bg, #fff);
  border: 1px solid var(--nl-border-color, #dee2e6);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nl-body-color, #212529);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .google-preferred-card__badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.google-preferred-card__star {
  color: #fbbc05;
  font-size: 0.95rem;
  line-height: 1;
}

.google-preferred-card__body {
  margin: 0.15rem 0;
}

.google-preferred-card__title {
  margin: 0 0 0.4rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nl-body-color, #212529);
  line-height: 1.4;
}

.google-preferred-card__desc {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--nl-muted, #6c757d);
}

.google-preferred-card__action {
  margin-top: 0.35rem;
  display: flex;
}

.google-preferred-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--nl-body-bg, #fff);
  border: 1px solid var(--nl-border-color, #dee2e6);
  color: var(--nl-body-color, #212529);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .google-preferred-card__btn {
  background: var(--nl-dark-bg-subtle, #2b3035);
  border-color: rgba(255, 255, 255, 0.15);
}

.google-preferred-card__btn:hover {
  background: var(--nl-body-bg, #fff);
  border-color: #4285f4;
  color: #1a73e8;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.22);
  transform: translateY(-1px);
}

[data-theme="dark"] .google-preferred-card__btn:hover {
  background: #33383e;
  border-color: #8ab4f8;
  color: #8ab4f8;
}

.google-preferred-card__ext {
  font-size: 0.8em;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.google-preferred-card__btn:hover .google-preferred-card__ext {
  opacity: 1;
  transform: translateX(-2px);
}

[dir="ltr"] .google-preferred-card__btn:hover .google-preferred-card__ext {
  transform: translateX(2px);
}

/* Icon variant for social lists / footer */
.google-preferred-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.google-preferred-icon-btn:hover {
  transform: scale(1.12);
  background: rgba(66, 133, 244, 0.1);
}

/* =============================================
   Shared toolbar pill — Share button
   ============================================= */
.toolbar-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nl-body-color, #212529);
  background: color-mix(in srgb, var(--nl-body-color, #212529) 5%, transparent);
  border: 1px solid var(--nl-border-color, #dee2e6);
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toolbar-share-btn:hover {
  background: color-mix(in srgb, var(--nl-body-color, #212529) 10%, transparent);
  border-color: color-mix(in srgb, var(--nl-body-color, #212529) 40%, transparent);
  transform: translateY(-1px);
}

.toolbar-share-btn:active {
  transform: translateY(0);
}

/* =============================================
   Article toolbar — mobile responsive fixes
   Prevents pill buttons from overflowing on small screens
   ============================================= */
.article-toolbar {
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* The right-side action group that holds pill buttons + share */
.article-toolbar .d-flex.align-items-center.gap-3 {
  flex-wrap: wrap;
  gap: 0.5rem !important;
  justify-content: flex-end;
}

/* On small phones, also prevent the toolbar row from pushing past viewport */
@media (max-width: 576px) {
  .article-toolbar {
    overflow-x: hidden;
    row-gap: 0.5rem;
  }

  .google-preferred-btn,
  .ask-ai-btn,
  .toolbar-share-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

/* =============================================
   Ask AI — trigger button + picker modal
   ============================================= */

/* Trigger pill button */
.ask-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nl-body-color, #212529);
  background: color-mix(in srgb, #7c3aed 6%, transparent);
  border: 1px solid color-mix(in srgb, #7c3aed 28%, transparent);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-ai-btn:hover {
  background: color-mix(in srgb, #7c3aed 12%, transparent);
  border-color: #7c3aed;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.22);
  transform: translateY(-1px);
}

.ask-ai-btn:active {
  transform: translateY(0);
}

.ask-ai-btn__spark {
  font-size: 0.85em;
  background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ask-ai-sparkle 3s ease-in-out infinite;
}

@keyframes ask-ai-sparkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Backdrop */
.ask-ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: ask-ai-fade-in 0.2s ease;
}

@keyframes ask-ai-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal */
.ask-ai-modal {
  position: fixed;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 1050;
  width: min(92vw, 440px);
  background: var(--nl-body-bg, #fff);
  border: 1px solid var(--nl-border-color, #dee2e6);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .ask-ai-modal {
  background: #1e2023;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ask-ai-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal header */
.ask-ai-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.ask-ai-modal__icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-top: 0.1rem;
}

.ask-ai-modal__header-text {
  flex: 1;
  min-width: 0;
}

.ask-ai-modal__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nl-body-color, #212529);
  line-height: 1.3;
}

.ask-ai-modal__subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--nl-muted, #6c757d);
  line-height: 1.5;
}

.ask-ai-modal__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: color-mix(in srgb, var(--nl-body-color, #212529) 8%, transparent);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--nl-muted, #6c757d);
  transition: background 0.15s, color 0.15s;
}

.ask-ai-modal__close:hover {
  background: color-mix(in srgb, var(--nl-body-color, #212529) 14%, transparent);
  color: var(--nl-body-color, #212529);
}

/* Article snippet */
.ask-ai-modal__article {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  background: color-mix(in srgb, var(--nl-body-color, #212529) 4%, transparent);
  border: 1px solid var(--nl-border-color, #dee2e6);
  border-radius: 0.75rem;
}

[data-theme="dark"] .ask-ai-modal__article {
  background: rgba(255, 255, 255, 0.04);
}

.ask-ai-modal__article-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nl-muted, #6c757d);
}

.ask-ai-modal__article-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nl-body-color, #212529);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Services list */
.ask-ai-modal__services {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ask-ai-service-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: color-mix(in srgb, var(--nl-body-color, #212529) 3%, transparent);
  border: 1px solid var(--nl-border-color, #dee2e6);
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: start;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--nl-body-color, #212529);
}

[data-theme="dark"] .ask-ai-service-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.ask-ai-service-btn:hover {
  background: color-mix(in srgb, var(--ai-color, #7c3aed) 9%, transparent);
  border-color: var(--ai-color, #7c3aed);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--ai-color, #7c3aed) 20%, transparent);
  transform: translateY(-1px);
}

.ask-ai-service-btn:active {
  transform: translateY(0);
}

.ask-ai-service-btn__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ask-ai-service-btn__icon svg {
  width: 100%;
  height: 100%;
}

.ask-ai-service-btn__name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
}

.ask-ai-service-btn__arrow {
  font-size: 1rem;
  color: var(--nl-muted, #6c757d);
  transition: transform 0.18s ease;
}

.ask-ai-service-btn:hover .ask-ai-service-btn__arrow {
  transform: translate(2px, -2px);
  color: var(--ai-color, currentColor);
}

[dir="rtl"] .ask-ai-service-btn:hover .ask-ai-service-btn__arrow {
  transform: translate(-2px, -2px);
}

/* Note */
.ask-ai-modal__note {
  margin: 0;
  font-size: 0.775rem;
  color: var(--nl-muted, #6c757d);
  line-height: 1.5;
  text-align: center;
}

/* Contact page + form — baseline for every public theme. */

.contact-page {
  padding: 2.5rem 0 4.25rem;
}

.contact-page__header {
  margin-bottom: 1.75rem;
}

.contact-page__header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
}

.contact-page__lead {
  color: var(--nl-muted, var(--text-color-light, #64748b));
  max-width: 42ch;
  margin: 0.7rem 0 0;
  line-height: 1.65;
}

.contact-page__card {
  max-width: 40rem;
  background: var(--nl-surface, var(--bg, #fff));
  border: 1px solid var(--nl-line, var(--border-color, #e2e8f0));
  border-radius: 1rem;
  padding: 1.6rem 1.7rem 1.85rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.contact-page--banner {
  padding-top: 0;
}

.contact-page--banner .contact-page__card {
  margin-inline: auto;
}

.contact-hero {
  background: var(--theme-color, var(--link-color, #0d6efd));
  color: #fff;
  padding: 2.35rem 0 2.5rem;
  margin-bottom: 2rem;
}

.contact-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: inherit;
}

.contact-hero__lead {
  margin: 0;
  max-width: 38ch;
  font-size: 1.12rem;
  line-height: 1.55;
  opacity: 0.92;
}

.contact-hero__icon {
  flex: 0 0 auto;
  font-size: 4.75rem;
  line-height: 1;
  opacity: 0.72;
}

.contact-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.contact-form .form-control {
  background: var(--nl-surface, var(--bg, #fff));
  border-color: var(--nl-line, var(--border-color, #ced4da));
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form .form-control:focus {
  border-color: var(--theme-color, var(--nl-accent, #0d6efd));
  outline: 2px solid color-mix(in srgb, var(--theme-color, #0d6efd) 28%, transparent);
  outline-offset: 1px;
}

.contact-form textarea.form-control {
  min-height: 9rem;
  resize: vertical;
}

.contact-form__captcha {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 60px;
  object-fit: contain;
  background: #f3f4f6;
  cursor: pointer;
}

.contact-form .alert {
  margin-bottom: 1rem;
}

.contact-form button[type="submit"] {
  cursor: pointer;
  min-width: 11rem;
}

@media (max-width: 991px) {
  .contact-hero__icon {
    display: none;
  }
}

@media (max-width: 575px) {
  .contact-page {
    padding: 1.5rem 0 3rem;
  }

  .contact-page__card {
    padding: 1.15rem 1.1rem 1.35rem;
    border-radius: 0.85rem;
  }

  .contact-hero {
    padding: 1.75rem 0 1.85rem;
    margin-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form .form-control {
    transition: none;
  }
}

[data-theme="dark"] .contact-page__card {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .contact-form__captcha {
  background: #1f2937;
}

:root {
    --nl-bg: #f4f6f8;
    --nl-surface: #ffffff;
    --nl-ink: #050f19;
    --nl-muted: #495965;
    --nl-line: #e2e6eb;
    --nl-accent: #3858f5;
    --nl-accent-hover: #6079f7;
    --nl-accent-soft: #e9f6ff;
    --nl-live: #da104d;
    --nl-plus: #00d46e;
    --nl-navy: #0f134b;
    --nl-yellow: #ffff56;
    --nl-radius: 4px;
    --nl-radius-lg: 8px;
    --nl-shadow: 0 6px 22px rgba(5, 15, 25, 0.08);
    --nl-shadow-sm: 0 2px 8px rgba(5, 15, 25, 0.04);
    --nl-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nl-serif: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nl-container: 1280px;
}

[data-theme="dark"] {
    --nl-bg: #0b0f19;
    --nl-surface: #141a29;
    --nl-ink: #f0f4f8;
    --nl-muted: #8a99ad;
    --nl-line: #1e293b;
    --nl-accent: #486dfa;
    --nl-accent-hover: #7390fc;
    --nl-accent-soft: #162447;
    --nl-live: #fa3b6e;
    --nl-plus: #00e676;
    --nl-navy: #090c14;
    --nl-yellow: #ffee55;
    --nl-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --nl-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--nl-font);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--nl-ink);
    background: var(--nl-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover { color: var(--nl-accent); }

img { max-width: 100%; height: auto; display: block; }

.main-wrapper { min-height: 60vh; }

.container {
    max-width: var(--nl-container);
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.post-title,
.news-title {
    font-family: var(--nl-font);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--nl-ink);
}

.section-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--nl-accent);
    display: inline-block;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--nl-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nl-accent);
    background: var(--nl-accent-soft);
    padding: 0.2rem 0.6rem;
    border-radius: var(--nl-radius);
    margin-bottom: 0.5rem;
}

.btn-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--nl-accent);
    color: #fff !important;
    border: none;
    border-radius: var(--nl-radius);
    font-family: var(--nl-font);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(56, 88, 245, 0.25);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-theme:hover {
    background: var(--nl-accent-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 88, 245, 0.35);
}

.text-color-50 { color: var(--nl-muted) !important; }

.bg-bg { background: transparent; }

.hr { margin: 2.25rem 0 1.25rem; }

/* Grids */
.posts-grid-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .posts-grid-row { grid-template-columns: 1fr; }
}

.two-columns-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    .two-columns-grid { grid-template-columns: repeat(2, 1fr); }
}

.slide-post-columns-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (max-width: 575px) {
    .slide-post-columns-grid { grid-template-columns: 1fr; }
}

@media (min-width: 576px) and (max-width: 991px) {
    .slide-post-columns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grid-scroll-x-sm {
    overflow-x: auto;
    scrollbar-width: thin;
}

/* Post cards — List & row style */
.post-item.v2 .post-wrapper-row {
    display: grid;
    gap: 1.25rem;
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    overflow: hidden;
    box-shadow: var(--nl-shadow-sm);
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

@media (min-width: 768px) {
    .post-item.v2 .post-wrapper-row {
        grid-template-columns: 300px 1fr;
    }
}

.post-item.v2 .post-wrapper-row:hover {
    box-shadow: var(--nl-shadow);
    border-color: rgba(56, 88, 245, 0.3);
    transform: translateY(-2px);
}

.post-image-wrapper,
.post-image-wrapper-row,
.postImageWrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--nl-line);
}

.post-image-wrapper-row { aspect-ratio: 16 / 9; }

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.post-image.loaded { opacity: 1; }

.post-wrapper-row:hover .post-image.loaded,
.post-wrapper:hover .post-image.loaded { transform: scale(1.04); }

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 15, 25, 0.6) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 0.85rem;
    transition: opacity 0.22s ease;
}

.post-image-link:hover .image-overlay { opacity: 1; }

.read-more {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(56, 88, 245, 0.85);
    padding: 0.25rem 0.5rem;
    border-radius: var(--nl-radius);
}

.post-content { padding: 1.15rem 1.25rem; }

.post-item.v2 .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.35rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--nl-muted);
    margin-bottom: 0.45rem;
}

.post-meta .post-author {
    color: var(--nl-ink);
    font-weight: 600;
}

.post-meta .post-comments,
.headline-comments {
    color: var(--nl-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.post-title {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.post-title a:hover { color: var(--nl-accent); }

.post-excerpt {
    font-size: 0.9rem;
    color: var(--nl-muted);
    line-height: 1.55;
}

/* Sidebar compact card */
.post-item .post-wrapper {
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--nl-shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.post-item .post-wrapper:hover {
    box-shadow: var(--nl-shadow);
    border-color: rgba(56, 88, 245, 0.25);
    transform: translateY(-2px);
}

.post-item .post-image-wrapper { aspect-ratio: 16 / 10; }

.post-item .post-content { padding: 0.95rem; }

.post-item .post-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

/* Search / archive card */
.post-card {
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    overflow: hidden;
    background: var(--nl-surface);
    box-shadow: var(--nl-shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: var(--nl-shadow);
    transform: translateY(-2px);
}

.post-card .card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-card .card-body { padding: 1.15rem; }

.post-card .card-title { font-size: 1rem; font-weight: 700; margin: 0; }

/* Home layout */
.home-main {
    padding: 2rem 0 4rem;
}

.home-main .row > * {
    min-width: 0;
}

.home-sidebar {
    position: sticky;
    top: 5.5rem;
    align-self: flex-start;
}

.sidebar-block + .sidebar-block { margin-top: 2.25rem; }

.sidebar-block .section-label {
    margin-bottom: 0.85rem;
}

@media (max-width: 991px) {
    .home-main {
        padding: 1.25rem 0 3rem;
        overflow-x: clip;
    }

    .home-sidebar {
        position: static;
        align-self: stretch;
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 2px solid var(--nl-line);
    }

    .sidebar-block + .sidebar-block { margin-top: 2rem; }

    .hr { margin: 1.75rem 0 1.25rem; }

    .section-title {
        max-width: 100%;
        word-break: break-word;
    }
}

@media (max-width: 575px) {
    .home-main { padding: 1rem 0 2.5rem; }

    .home-sidebar {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .post-item.v2 .post-content { padding: 1rem 1.1rem 1.15rem; }

    .post-item.v2 .post-wrapper-row:hover {
        transform: none;
    }
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.82rem;
    font-weight: 500;
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before { color: var(--nl-muted); }

/* Utilities */
.fs-12 { font-size: 0.75rem; }
.lh-30 { line-height: 1.75; }

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 25, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
}

.overlay.active { display: block; }

/* ── Article & Content Pages ── */
.article-page { padding: 1.5rem 0 4rem; }

.article-header {
    max-width: 820px;
    margin: 0 auto 2rem;
    text-align: center;
}

.article-header h1 {
    font-family: var(--nl-font);
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--nl-ink);
    margin: 0 0 1rem;
}

.article-header .lead {
    font-size: 1.2rem;
    color: var(--nl-muted);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--nl-muted);
}

.article-cover {
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    border-radius: var(--nl-radius-lg);
    overflow: hidden;
    box-shadow: var(--nl-shadow-sm);
    border: 1px solid var(--nl-line);
}

.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.article-content {
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    padding: 2.25rem 2.5rem;
    box-shadow: var(--nl-shadow-sm);
}

@media (max-width: 576px) {
    .article-content { padding: 1.25rem 1.1rem; }
}

/* Single-column article (no sidebar): keep a readable centered measure */
.col-12 > .article-content,
.col-12 > .comment-section,
.col-12 > .comment-form {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.article-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--nl-line);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nl-muted);
}

.article-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--nl-ink);
}

.article-text img:not(.post-image) {
    border-radius: var(--nl-radius);
    margin: 1.5rem 0;
    box-shadow: var(--nl-shadow-sm);
}

.article-text h2, .article-text h3 {
    font-family: var(--nl-font);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-sidebar {
    position: sticky;
    top: 5.5rem;
    align-self: flex-start;
}

/* Related posts — Editorial folio rail */
.nl-related {
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    overflow: hidden;
    box-shadow: var(--nl-shadow-sm);
}

.nl-related__head {
    padding: 1.1rem 1.25rem;
    border-bottom: 2px solid var(--nl-accent);
    background: var(--nl-surface);
}

.nl-related__head .section-label {
    margin: 0;
}

.nl-related__lead {
    display: grid;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem 1.15rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid var(--nl-line);
}

.nl-related__lead:hover,
.nl-related__lead:focus-visible {
    color: inherit;
}

.nl-related__lead-media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--nl-radius);
    background: var(--nl-line);
}

.nl-related__lead-media img,
.nl-related__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.nl-related__lead:hover .nl-related__lead-media img,
.nl-related__item:hover .nl-related__media img {
    transform: scale(1.05);
}

.nl-related__lead-copy {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    row-gap: 0.3rem;
    align-items: start;
}

.nl-related__lead-copy .nl-related__index {
    grid-row: 1 / span 2;
    padding-top: 0.12rem;
}

.nl-related__lead-copy h3 {
    grid-column: 2;
    font-family: var(--nl-font);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--nl-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    transition: color 0.18s ease;
}

.nl-related__lead:hover .nl-related__lead-copy h3 {
    color: var(--nl-accent);
}

.nl-related__lead-copy .nl-related__meta {
    grid-column: 2;
}

.nl-related__index {
    font-family: var(--nl-font);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--nl-accent);
}

.nl-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nl-related__list > li + li {
    border-top: 1px solid var(--nl-line);
}

.nl-related__item {
    display: grid;
    grid-template-columns: 1.75rem 4.5rem 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1.15rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease;
}

.nl-related__item:hover,
.nl-related__item:focus-visible {
    background: var(--nl-accent-soft);
    color: inherit;
}

.nl-related__media {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: var(--nl-radius);
    background: var(--nl-line);
}

.nl-related__copy {
    min-width: 0;
}

.nl-related__copy h3 {
    font-family: var(--nl-font);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.3rem;
    color: var(--nl-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.18s ease;
}

.nl-related__item:hover .nl-related__copy h3 {
    color: var(--nl-accent);
}

.nl-related__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nl-muted);
}

.nl-related__meta .post-comments {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--nl-accent);
    font-weight: 700;
}

.nl-related a:focus-visible {
    outline: 2px solid var(--nl-accent);
    outline-offset: -2px;
}

@media (max-width: 991px) {
    .nl-related {
        margin-top: 0.5rem;
    }

    .article-sidebar {
        position: static;
        align-self: stretch;
        margin-top: 2rem;
    }

    .article-page { overflow-x: hidden; }
}

@media (max-width: 576px) {
    .article-page { padding: 1rem 0 2.5rem; }

    .article-header {
        margin-bottom: 1.25rem;
        text-align: start;
    }

    .article-header h1 {
        font-size: clamp(1.65rem, 6.5vw, 2.25rem);
    }

    .article-meta {
        justify-content: flex-start;
    }

    .article-cover {
        margin-bottom: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nl-related__lead-media img,
    .nl-related__media img,
    .nl-related__item,
    .nl-related__copy h3,
    .nl-related__lead-copy h3 {
        transition: none;
    }

    .nl-related__lead:hover .nl-related__lead-media img,
    .nl-related__item:hover .nl-related__media img {
        transform: none;
    }
}

.article-meta img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 2px solid var(--nl-line);
    margin-top: 2rem;
}

.author-card img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Comments */
.comment-section h4,
.comment-form h4 {
    font-family: var(--nl-font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.comment-form .form-control {
    border-radius: var(--nl-radius);
    border-color: var(--nl-line);
    background: var(--nl-surface);
}

.comment-form .form-control:focus {
    border-color: var(--nl-accent);
    box-shadow: 0 0 0 3px rgba(56, 88, 245, 0.15);
}

.comment-item {
    background: var(--nl-surface);
    border-radius: var(--nl-radius) !important;
    border: 1px solid var(--nl-line) !important;
    box-shadow: var(--nl-shadow-sm);
}

/* Image lightbox */
.article-popup-image {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 25, 0.94);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.article-popup-image.active { display: flex; }

.article-popup-image-img { max-height: 90vh; max-width: 90vw; }

.article-popup-image-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.article-popup-image-prev,
.article-popup-image-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    padding: 1rem;
}

.article-popup-image-prev { left: 0.5rem; }
.article-popup-image-next { right: 0.5rem; }

.comment-item--reply {
    border-left: 3px solid var(--nl-accent) !important;
}

/* Archive / search / static pages */
.archive-page,
.search-page,
.static-page {
    padding: 2rem 0 4rem;
}

.archive-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.archive-header h1 {
    font-family: var(--nl-font);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.search-form .form-control {
    flex: 1;
    border-radius: var(--nl-radius);
    border-color: var(--nl-line);
    background: var(--nl-surface);
    padding: 0.75rem 1.25rem;
}

.search-form .form-control:focus {
    border-color: var(--nl-accent);
    box-shadow: 0 0 0 3px rgba(56, 88, 245, 0.15);
}

.static-page__content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius-lg);
    padding: 2rem 2.25rem;
    box-shadow: var(--nl-shadow-sm);
}

.archive-pagination { margin-top: 2.5rem; }

.post-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card__body { padding: 1.15rem 1.25rem; }

.post-card__title {
    font-family: var(--nl-font);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.35rem 0 0;
}

.post-card__title a:hover { color: var(--nl-accent); }

.user-comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nl-accent-soft);
    color: var(--nl-accent);
}

.reply-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nl-accent);
}

.comment-actions .btn {
    border-radius: var(--nl-radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-float {
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: 999px;
    box-shadow: var(--nl-shadow);
    padding: 0.75rem 1.25rem;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
    align-items: center;
    gap: 0.65rem;
}

.comment-float .close-btn {
    padding: 0.25rem;
    cursor: pointer;
    color: var(--nl-muted);
}

.comment-float.show { transform: translateX(0); }

.contact-page {
    padding: 2rem 0 4rem;
}

.contact-page .contact-page__card {
    margin-inline: auto;
}

.contact-page .contact-page__lead {
    margin-inline: auto;
}

.contact-page .archive-header h1 {
    font-family: var(--nl-font);
}

/* ── Multi-Tier Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nl-line);
    box-shadow: 0 2px 12px rgba(5, 15, 25, 0.04);
}

[data-theme="dark"] .site-header {
    background: rgba(20, 26, 41, 0.96);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

/* Top utility bar */
.site-header__topbar {
    background: #f0f3f6;
    border-bottom: 1px solid var(--nl-line);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--nl-muted);
    padding: 0.3rem 0;
}

[data-theme="dark"] .site-header__topbar {
    background: #0f1420;
}

.site-header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__topbar-left,
.site-header__topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.topbar-divider {
    display: inline-block;
    width: 1px;
    height: 11px;
    background: var(--nl-line);
    margin: 0 0.35rem;
}

.topbar-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--nl-accent);
    background: var(--nl-accent-soft);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--nl-muted);
}

.topbar-link:hover {
    color: var(--nl-accent);
}

/* Main header row */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.25rem;
}

.site-header__brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-header__brand img {
    height: 2.25rem;
    width: auto;
}

.brand-badge-nr1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: var(--nl-accent);
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    letter-spacing: 0.04em;
    line-height: 1;
}

/* Navigation menu */
.travel-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem 1.65rem;
    flex-wrap: wrap;
}

.travel-nav > ul > li > a {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.45rem 0;
    color: var(--nl-ink);
    border-bottom: 2px solid transparent;
    transition: all 0.18s ease;
}

.travel-nav > ul > li > a:hover {
    border-bottom-color: var(--nl-accent);
    color: var(--nl-accent);
}

.travel-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: var(--nl-radius);
    box-shadow: var(--nl-shadow);
    padding: 0.5rem 0;
    z-index: 100;
}

.travel-nav li { position: relative; }

.travel-nav li:hover > .submenu { display: block; }

.travel-nav .submenu a {
    display: block;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nl-ink);
}

.travel-nav .submenu a:hover {
    background: var(--nl-accent-soft);
    color: var(--nl-accent);
}

/* Header actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.site-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--nl-line);
    border-radius: 50%;
    color: var(--nl-ink);
    background: var(--nl-surface);
    transition: all 0.18s ease;
}

.site-header__icon:hover {
    border-color: var(--nl-accent);
    color: var(--nl-accent);
    background: var(--nl-accent-soft);
}

.site-header__login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nl-ink);
    background: var(--nl-surface);
    border: 1px solid var(--nl-line);
    border-radius: 999px;
    transition: all 0.18s ease;
}

.site-header__login-btn:hover {
    border-color: var(--nl-accent);
    color: var(--nl-accent);
    background: var(--nl-accent-soft);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid var(--nl-line);
    border-radius: 50%;
    background: var(--nl-surface);
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: var(--nl-ink);
    transition: transform 0.22s ease;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
    .mobile-menu-toggle { display: flex; }

    .site-header__login-btn .login-text { display: none; }
    .site-header__login-btn {
        width: 2.35rem;
        height: 2.35rem;
        padding: 0;
        justify-content: center;
    }

    .travel-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        background: var(--nl-surface);
        padding: 5rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 1051;
        box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    }

    .travel-nav.active { transform: translateX(0); }

    .travel-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .travel-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--nl-line);
    }

    .travel-nav > ul > li > a {
        display: block;
        padding: 0.85rem 0;
    }

    .travel-nav .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }

    .travel-nav li.has-submenu.active > .submenu { display: block; }
}

@media (max-width: 575px) {
    .site-header__topbar-right { display: none; }
}

/* Legacy class hooks */
.travel-header { display: none; }

/* Sub-bar Category Pills */
.category-bar {
    border-top: 1px solid var(--nl-line);
    background: var(--nl-surface);
}

.category-bar__inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-bar__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-height: 2.4rem;
    align-items: center;
}

.category-bar__link {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nl-muted);
    text-decoration: none;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: transparent;
    transition: all 0.15s ease;
}

.category-bar__link:hover,
.category-bar__link.is-active {
    color: var(--nl-accent);
    background: var(--nl-accent-soft);
}

/* ── Midnight Navy Footer ── */
.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--nl-line);
    background: var(--nl-navy);
    color: #e2e8f0;
}

[data-theme="dark"] .site-footer {
    background: #080c16;
    border-top-color: var(--nl-line);
}

/* ── Newsletter CTA band ── */
.site-footer__cta {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    padding: 3rem 0;
}

.site-footer__cta .section-label {
    color: #3858f5;
    background: rgba(56, 88, 245, 0.18);
    margin-bottom: 0.65rem;
}

.site-footer__cta-grid {
    display: grid;
    gap: 2rem;
    align-items: end;
}

@media (min-width: 768px) {
    .site-footer__cta-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 3rem;
    }
}

.site-footer__cta-title {
    font-family: var(--nl-font);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.65rem;
    color: #ffffff;
}

.site-footer__cta-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.78);
    max-width: 38ch;
}

.site-footer__newsletter-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .site-footer__newsletter-row {
        flex-direction: row;
        align-items: stretch;
    }
}

.site-footer__newsletter .form-control {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: var(--nl-radius);
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    font-family: var(--nl-font);
}

.site-footer__newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.site-footer__newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--nl-accent);
    box-shadow: 0 0 0 3px rgba(56, 88, 245, 0.35);
    color: #fff;
}

.site-footer__newsletter .btn-theme {
    background: var(--nl-accent);
    white-space: nowrap;
    padding: 0.8rem 1.5rem;
    border-radius: var(--nl-radius);
    box-shadow: 0 2px 10px rgba(56, 88, 245, 0.35);
}

.site-footer__newsletter .btn-theme:hover {
    background: var(--nl-accent-hover);
    color: #fff !important;
}

.site-footer__newsletter-msg {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.site-footer__newsletter-msg.alert {
    border-radius: var(--nl-radius);
    padding: 0.5rem 0.85rem;
}

/* ── Main body ── */
.site-footer__main {
    background: transparent;
    padding: 3.5rem 0 2.5rem;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 2rem 3rem;
    }
}

.site-footer__logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.site-footer__logo-link img {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-footer__site-name {
    font-family: var(--nl-font);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    color: #ffffff;
}

.site-footer__tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 38ch;
}

.site-footer__heading {
    font-family: var(--nl-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.site-footer__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer__links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--nl-accent);
    transition: width 0.18s ease;
    flex-shrink: 0;
}

.site-footer__links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.site-footer__links a:hover::before {
    width: 10px;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.site-footer__social a {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.95rem;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.site-footer__social a:hover {
    background: var(--nl-accent);
    border-color: var(--nl-accent);
    color: #fff !important;
    transform: translateY(-2px);
}

.site-footer__address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #94a3b8;
}

.site-footer__address .nl-icon {
    margin-top: 0.2rem;
    color: var(--nl-accent);
    flex-shrink: 0;
}

/* ── Bottom bar ── */
.site-footer__bar {
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 0;
}

.site-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.site-footer__theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.site-footer__theme:hover {
    border-color: var(--nl-accent);
    color: #ffffff;
    background: var(--nl-accent);
}

/* ── Floating newsletter button ── */
.floating-newsletter-btn {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1030;
    background: var(--nl-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.35rem;
    font-family: var(--nl-font);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(56, 88, 245, 0.4);
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(56, 88, 245, 0.5);
    color: #fff;
}

@media (max-width: 768px) {
    .floating-newsletter-btn { display: inline-flex; }

    .floating-btn-text { display: none; }

    .floating-newsletter-btn {
        width: 3rem;
        height: 3rem;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

.footer { display: none; }

/* ── Modular Hero Grid ── */
.hero {
    padding: 1.25rem 0 2rem;
}

.hero__header-row {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero__section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.hero__live-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--nl-live, #da104d);
    box-shadow: 0 0 0 3px rgba(218, 16, 77, 0.2);
    animation: hero-pulse 2s infinite ease-in-out;
}

@keyframes hero-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.6; }
}

.hero__section-title .section-label {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--nl-ink);
    margin: 0;
}

.hero__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 576px) and (max-width: 991px) {
    .hero__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__featured {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .hero__grid {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: 1fr 1fr;
        min-height: 490px;
    }

    .hero__featured {
        grid-row: 1 / 3;
    }
}

/* Hero card item */
.hero-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--nl-radius-lg, 10px);
    background: var(--nl-ink);
    border: 1px solid var(--nl-line);
    box-shadow: var(--nl-shadow-sm);
    min-height: 235px;
    height: 100%;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-card:hover {
    box-shadow: 0 12px 32px rgba(5, 15, 25, 0.16);
    border-color: rgba(56, 88, 245, 0.35);
    transform: translateY(-3px);
}

.hero-card__image {
    position: absolute;
    inset: 0;
}

.hero-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.96;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.hero-card:hover .hero-card__image img {
    transform: scale(1.035);
    opacity: 1;
}

/* Multi-stop scrim: keeps top 40% clean and vibrant, strong contrast at bottom */
.hero-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 15, 25, 0.02) 0%,
        rgba(5, 15, 25, 0.15) 40%,
        rgba(5, 15, 25, 0.65) 72%,
        rgba(5, 15, 25, 0.93) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.4rem;
    z-index: 2;
    color: #fff;
}

.hero-card__meta-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.hero-card__tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--nl-live, #da104d);
    padding: 0.22rem 0.6rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(218, 16, 77, 0.35);
    line-height: 1;
}

.hero-card__time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    line-height: 1;
}

.hero-card__time svg {
    width: 0.75rem;
    height: 0.75rem;
    opacity: 0.85;
}

.hero-card__comments-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    line-height: 1;
}

.hero-card__comments-bubble svg {
    width: 0.75rem;
    height: 0.75rem;
    opacity: 0.9;
}

.hero-card__title {
    font-family: var(--nl-font);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-card--featured .hero-card__title {
    font-size: clamp(1.35rem, 2.5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.25;
}

.hero-card__excerpt {
    margin: 0.65rem 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 575px) {
    .hero {
        padding: 0.85rem 0 1.5rem;
    }

    .hero-card {
        min-height: 210px;
    }

    .hero__featured .hero-card {
        min-height: min(75vw, 340px);
    }

    .hero-card__body {
        padding: 1rem 1.1rem;
    }

    .hero-card__title {
        font-size: clamp(1.02rem, 4.2vw, 1.3rem);
    }

    .hero-card--featured .hero-card__title {
        font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    }

    .hero-card:not(.hero-card--featured) .hero-card__excerpt {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .hero-card {
        min-height: 230px;
    }

    .hero__featured .hero-card {
        min-height: 380px;
    }
}

.news-section { display: none; }

body { direction: ltr; text-align: left; }

/* Estedad — Persian / Arabic UI & article text */

@font-face {
  font-family: Estedad;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/themes/default/fonts/estedad/Estedad-Light.woff2") format("woff2");
}

@font-face {
  font-family: Estedad;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/themes/default/fonts/estedad/Estedad-Regular.woff2") format("woff2");
}

@font-face {
  font-family: Estedad;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/themes/default/fonts/estedad/Estedad-Medium.woff2") format("woff2");
}

@font-face {
  font-family: Estedad;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/themes/default/fonts/estedad/Estedad-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: Estedad;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/themes/default/fonts/estedad/Estedad-Bold.woff2") format("woff2");
}

@font-face {
  font-family: Estedad;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/themes/default/fonts/estedad/Estedad-ExtraBold.woff2") format("woff2");
}

/* Persian site (html lang/dir from site settings) */
html[lang^="fa"],
html[dir="rtl"] {
  --nl-font: Estedad, system-ui, sans-serif;
  --nl-display: Estedad, system-ui, sans-serif;
  --nl-serif: Estedad, system-ui, sans-serif;
}

html[lang^="fa"] body,
html[dir="rtl"] body {
  font-family: Estedad, system-ui, sans-serif !important;
}

/* Persian article / page content on any locale */
.is-persian {
  --nl-font: Estedad, system-ui, sans-serif;
  --nl-display: Estedad, system-ui, sans-serif;
  --nl-serif: Estedad, system-ui, sans-serif;
  font-family: Estedad, system-ui, sans-serif;
}

.newPagination {
    margin-top: 2rem;
}

.newPagination .pagination {
    gap: 0.25rem;
}

.newPagination .page-item .page-link {
    border-radius: 0.5rem;
    min-width: 2.5rem;
    text-align: center;
}

.newPagination .page-item.active .page-link {
    font-weight: 600;
}

.newPagination .page-item.page-ellipsis span {
    display: inline-block;
    padding: 0.375rem 0.5rem;
    color: var(--text-color-light, #6c757d);
}

.newPagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* Shared homepage category strip — used by all themes including custom01/CMS */
.category-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .category-bar {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.category-bar__inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-bar__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  min-height: 2.5rem;
  align-items: center;
}

.category-bar__item {
  margin: 0;
  padding: 0;
}

.category-bar__link {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c5c5c;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
}

.category-bar__link:hover,
.category-bar__link.is-active {
  color: #111;
  border-bottom-color: currentColor;
}

/* Shared horizontal post rail — keeps content inside page width + prev/next controls */

.nl-hscroll {
  --nl-hscroll-btn-size: 2.5rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.nl-hscroll__viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.nl-hscroll__viewport::-webkit-scrollbar {
  display: none;
}

.nl-hscroll__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  max-width: none;
  min-width: 100%;
  box-sizing: border-box;
  padding-block: 0.15rem 0.5rem;
  padding-inline: 0;
}

.nl-hscroll__track > * {
  flex: 0 0 auto;
  min-width: 0;
}

.nl-hscroll__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: var(--nl-hscroll-btn-size);
  height: var(--nl-hscroll-btn-size);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nl-hscroll__btn:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.nl-hscroll__btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.nl-hscroll__btn--prev {
  inset-inline-start: 0.35rem;
}

.nl-hscroll__btn--next {
  inset-inline-end: 0.35rem;
}

.nl-hscroll__chevron {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
}

.nl-hscroll__chevron--prev {
  transform: rotate(135deg);
  margin-inline-start: 0.15rem;
}

.nl-hscroll__chevron--next {
  transform: rotate(-45deg);
  margin-inline-end: 0.15rem;
}

[data-theme="dark"] .nl-hscroll__btn,
:root[data-theme="dark"] .nl-hscroll__btn {
  background: rgba(33, 37, 41, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8f9fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

@media (max-width: 575.98px) {
  .nl-hscroll {
    --nl-hscroll-btn-size: 2.15rem;
  }

  .nl-hscroll__btn--prev {
    inset-inline-start: 0.15rem;
  }

  .nl-hscroll__btn--next {
    inset-inline-end: 0.15rem;
  }
}

/* Post body image lightbox — shared across all themes */

.article-text img:not(.post-image) {
    cursor: zoom-in;
}

.article-popup-image {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    -webkit-tap-highlight-color: transparent;
}

.article-popup-image.is-open {
    display: flex;
}

.article-popup-image-img {
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    cursor: default;
    user-select: none;
}

.article-popup-image-close {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.article-popup-image-close:hover,
.article-popup-image-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.article-popup-image-prev,
.article-popup-image-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.article-popup-image-prev {
    inset-inline-start: 0.75rem;
}

.article-popup-image-next {
    inset-inline-end: 0.75rem;
}

.article-popup-image-prev:hover,
.article-popup-image-next:hover,
.article-popup-image-prev:focus-visible,
.article-popup-image-next:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.article-popup-image-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 575px) {
    .article-popup-image {
        padding: 0.75rem;
    }

    .article-popup-image-prev,
    .article-popup-image-next {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1.1rem;
    }
}

/* Full layout: title, cover, white content box, and body images use full width */
.article-layout-full .article-header,
.article-layout-full .article-header .lead,
.article-layout-full .article-cover,
.article-layout-full .article-content,
.article-layout-full .article-text,
.article-layout-full .t2-article__hero-inner,
.article-layout-full .t2-article__head,
.article-layout-full .t2-article__title,
.article-layout-full .t2-article__lead,
.article-layout-full .t2-article__cover,
.article-layout-full .t2-article__content,
.article-layout-full .t2-article__text,
.article-layout-full .t2-article__main,
.article-layout-full .am-post__intro,
.article-layout-full .am-post__intro h1,
.article-layout-full .am-post__deck,
.article-layout-full .am-post__cover,
.article-layout-full .am-post__body,
.article-layout-full .am-post__text,
.article-layout-full .am-post__main,
.article-layout-full .content-wrapper {
    max-width: 100% !important;
    width: 100%;
}

.article-layout-full .article-header {
    margin-left: 0;
    margin-right: 0;
    text-align: start;
}

.article-layout-full .article-meta {
    justify-content: flex-start;
}

.article-layout-full .article-cover {
    margin-left: 0;
    margin-right: 0;
}

.article-layout-full .article-content {
    margin-left: 0;
    margin-right: 0;
}

.article-layout-full .article-text figure,
.article-layout-full .article-text img:not(.post-image) {
    width: 100% !important;
    max-width: 100% !important;
}

.article-layout-full .article-text img:not(.post-image) {
    height: auto !important;
}

/* Full layout: article column + related sidebar stack so related sits below */
.article-layout-full .row > .col-lg-8,
.article-layout-full .row > .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 992px) {
    .article-layout-full .t2-article__layout,
    .article-layout-full .am-post__layout {
        grid-template-columns: 1fr;
    }

    .article-layout-full .t2-article__aside,
    .article-layout-full .am-post__aside,
    .article-layout-full .article-sidebar {
        position: static;
    }
}

/* CKEditor / article body images — scoped so public posts keep editor layout. */

.article-text::after,
.t2-article__text::after,
.am-post__text::after {
  content: "";
  display: table;
  clear: both;
}

.article-text .image,
.article-text figure.image {
  --ck-image-style-spacing: 1.5em;
  clear: both;
  display: table;
  margin: 0.9em auto;
  min-width: 50px;
  max-width: 100%;
  text-align: center;
}

.article-text .image img,
.article-text figure.image img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  min-width: 100%;
}

.article-text .image > figcaption,
.article-text figure.image > figcaption {
  display: table-caption;
  caption-side: bottom;
  padding: 0.6em 0.2em 0;
  font-size: 0.85em;
  line-height: 1.45;
  color: var(--nl-muted, #64748b);
  text-align: center;
  word-break: break-word;
}

.article-text img.image_resized,
.article-text .image.image_resized img {
  height: auto;
}

.article-text .image.image_resized {
  box-sizing: border-box;
  display: block;
  max-width: 100%;
}

.article-text .image.image_resized img {
  width: 100%;
  min-width: 0;
}

.article-text .image.image_resized > figcaption {
  display: block;
}

.article-text .image.image-style-side {
  float: right;
  margin-left: var(--ck-image-style-spacing);
  max-width: 50%;
}

.article-text .image.image-style-align-left,
.article-text .image-style-align-left {
  float: left;
  margin-right: var(--ck-image-style-spacing);
}

.article-text .image.image-style-align-right,
.article-text .image-style-align-right {
  float: right;
  margin-left: var(--ck-image-style-spacing);
}

.article-text .image.image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
  max-width: calc(100% - var(--ck-image-style-spacing));
}

.article-text .image.image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
  max-width: calc(100% - var(--ck-image-style-spacing));
}

.article-text .image-style-align-center {
  margin-left: auto;
  margin-right: auto;
}

.article-text .image-inline {
  display: inline-flex;
  max-width: 100%;
  align-items: flex-start;
}

.article-text .image-inline img {
  max-width: 100%;
  min-width: 0;
  height: auto;
}

.article-text figure.table,
.article-text table.table {
  margin: 0.9em auto;
  overflow-x: auto;
}

.article-text figure.table > table,
.article-text table.table {
  width: 100%;
  border-collapse: collapse;
}

.article-text figure.table td,
.article-text figure.table th,
.article-text table.table td,
.article-text table.table th {
  border: 1px solid var(--nl-line, #bfbfbf);
  padding: 0.4em 0.6em;
}

.article-text .media {
  clear: both;
  display: block;
  margin: 0.9em 0;
  min-width: 15em;
}

[dir="rtl"] .article-text .image.image-style-side {
  float: left;
  margin-left: 0;
  margin-right: var(--ck-image-style-spacing);
}

[dir="rtl"] .article-text .image.image-style-align-left,
[dir="rtl"] .article-text .image-style-align-left {
  float: right;
  margin-right: 0;
  margin-left: var(--ck-image-style-spacing);
}

[dir="rtl"] .article-text .image.image-style-align-right,
[dir="rtl"] .article-text .image-style-align-right {
  float: left;
  margin-left: 0;
  margin-right: var(--ck-image-style-spacing);
}

@media (max-width: 575px) {
  .article-text .image.image-style-side,
  .article-text .image.image-style-align-left,
  .article-text .image.image-style-align-right,
  [dir="rtl"] .article-text .image.image-style-side,
  [dir="rtl"] .article-text .image.image-style-align-left,
  [dir="rtl"] .article-text .image.image-style-align-right {
    float: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
}

/* Inline + popup related posts (fc_related_post) — shared across themes */

.post-item-related {
  background: var(--bs-body-bg, var(--nl-surface, #fff));
  overflow: hidden;
  padding: 10px;
  width: 100%;
  border-radius: 16px;
}

.post-item-related .post-wrapper-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.post-item-related-title {
  margin-bottom: 5px;
  font-style: italic;
  padding-left: 5px;
  color: var(--text-color-light, var(--nl-muted, #6c757d));
  font-weight: 300;
}

.post-image-wrapper-related {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-basis: 30%;
  flex-grow: 0;
  flex-shrink: 0;
  border-radius: 10px;
  min-width: 110px;
}

.post-image-wrapper-related .post-image-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.post-image-wrapper-related .post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 1;
}

/* Related cards are injected inside .article-text; do not inherit body-image rules. */
.article-text .post-item-related .post-image,
.article-text .post-image-wrapper-related .post-image,
.am-post__text .post-item-related .post-image,
.t2-article__text .post-item-related .post-image {
  margin: 0 !important;
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0;
  cursor: default;
  display: block;
}

.post-item-related .post-content {
  flex: 1;
  min-width: 0;
  padding: 0 6px;
}

.post-item-related .post-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
}

.post-item-related .post-title a {
  color: inherit;
  text-decoration: none;
}

.post-item-related .post-excerpt a {
  color: var(--text-color, inherit);
  text-decoration: none;
}

@media (max-width: 576px) {
  .post-item-related .post-wrapper-row {
    flex-direction: column;
  }

  .post-image-wrapper-related {
    flex-basis: auto;
    width: 100%;
  }
}

/* Popup variants */
.post-item-related.popup {
  position: fixed;
  z-index: 1050;
  max-width: min(420px, calc(100vw - 24px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.post-item-related.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.post-item-related.popup.center-bottom {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
}

.post-item-related.popup.center-middle {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.post-item-related.popup.center-top {
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
}

.post-item-related.popup.left-bottom {
  left: 16px;
  bottom: 16px;
}

.post-item-related.popup.left-middle {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.post-item-related.popup.left-top {
  left: 16px;
  top: 16px;
}

.post-item-related.popup.right-bottom {
  right: 16px;
  bottom: 16px;
}

.post-item-related.popup.right-middle {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.post-item-related.popup.right-top {
  right: 16px;
  top: 16px;
}

.post-item-related.popup .popup-close {
  cursor: pointer;
  padding: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
}

/* Bottom related section (full layout) */
.article-related-bottom {
  clear: both;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nl-line, rgba(0, 0, 0, 0.08));
}

.article-related-bottom__title {
  margin: 0 0 1.15rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.article-related-bottom__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .article-layout-full .article-related-bottom__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .article-layout-full .article-related-bottom__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.article-layout-full .article-related-bottom .post-item-related {
  height: 100%;
  margin: 0;
}

.article-layout-full .article-related-bottom .post-wrapper-row {
  flex-direction: column;
}

.article-layout-full .article-related-bottom .post-image-wrapper-related {
  flex-basis: auto;
  width: 100%;
  min-width: 0;
}

.article-layout-full .article-related-bottom .post-image-wrapper-related .post-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.author-profile {
  padding: 2rem 0 4rem;
}

.author-profile__hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  background: var(--nl-surface, #fff);
  border: 1px solid var(--nl-line, #e6e2d8);
  border-radius: var(--nl-radius-lg, 12px);
}

.author-profile__photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--nl-accent-soft, #f3f0e8);
}

.author-profile__photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--nl-ink, #121212);
}

.author-profile__info {
  min-width: 0;
  flex: 1;
}

.author-profile__name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.author-profile__bio {
  margin: 0 0 1.25rem;
  color: var(--nl-muted, #5f5a52);
  line-height: 1.6;
}

.author-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 0;
}

.author-profile__stats dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nl-muted, #5f5a52);
}

.author-profile__stats dd {
  margin: 0;
  font-weight: 600;
}

.author-profile__posts-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
}

@media (max-width: 575.98px) {
  .author-profile__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-profile__stats {
    justify-content: center;
  }
}

.post-author-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.post-author-byline img {
  display: block;
  flex-shrink: 0;
  max-width: none;
  object-fit: cover;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.post-date-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.post-author {
  font-weight: 600;
}

.post-comments {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.post-comments .nl-icon {
  font-size: 0.85em;
}

.post-review-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--theme-color, #0d6efd) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-color, #0d6efd) 22%, transparent);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
}

.post-review-rating__label {
  font-weight: 600;
  font-size: 0.82rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-review-rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  color: #e6a817;
}

.post-review-rating__stars .nl-icon {
  font-size: 0.95em;
}

.post-review-rating__score {
  font-variant-numeric: tabular-nums;
  font-size: 1.05em;
}

.post-review-rating__of {
  opacity: 0.7;
  font-size: 0.9em;
}

.post-review-rating__item {
  width: 100%;
  font-size: 0.88em;
  opacity: 0.85;
}

.post-review-rating--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.post-review-rating--light .post-review-rating__stars {
  color: #ffd666;
}

.post-review-rating--light .post-review-rating__of,
.post-review-rating--light .post-review-rating__item,
.post-review-rating--light .post-review-rating__label {
  opacity: 0.9;
}