:root {
  --bg: #f6f8fc;
  --panel: rgba(255, 255, 255, 0.92);
  --text: #18212f;
  --muted: #5e6877;
  --line: rgba(24, 33, 47, 0.1);
  --accent: #bf1e2e;
  --accent-2: #1f5fbf;
  --accent-3: #d8aa2f;
  --navbar: #0F47AF;
  --navbar-deep: #0b3d91;
  --shadow: 0 20px 60px rgba(24, 33, 47, 0.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(191, 30, 46, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(31, 95, 191, 0.16), transparent 28%),
    radial-gradient(circle at bottom center, rgba(216, 170, 47, 0.12), transparent 30%),
  linear-gradient(180deg, #ffffff 0%, var(--bg) 48%, #eaf0fb 100%);
}

body.minimal-home {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.minimal-home-wrap {
  width: min(1200px, calc(100% - 32px));
  text-align: center;
}

.minimal-home h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #162034;
}

body.news-cover {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}

.news-cover-wrap {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top left, rgba(31, 95, 191, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(191, 30, 46, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.98));
  box-shadow: 0 30px 80px rgba(24, 33, 47, 0.12);
  border: 1px solid rgba(24, 33, 47, 0.08);
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
}

.news-navbar {
  width: 100%;
  padding: 14px 24px;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, var(--navbar) 0%, var(--navbar-deep) 100%);
  color: #fff;
  backdrop-filter: blur(10px);
}

.navbar-menu {
  display: contents;
}

.navbar-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.navbar-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.navbar-toggle-icon span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.navbar-toggle-text {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar-brand {
  display: grid;
  gap: 0;
}

.navbar-brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.navbar-kicker,
.dateline {
  text-transform: uppercase;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

.navbar-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.navbar-links a {
  padding: 8px 0;
}

.navbar-links a:hover {
  color: #DA121A;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-self: end;
}

.like-widget {
  margin: 0;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-links-label {
  margin-right: 4px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: #FCDD09;
  background: #FCDD09;
  color: #DA121A;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 2px solid #FCDD09;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.like-button .like-icon {
  display: inline-flex;
  transform-origin: center;
}

.like-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #FCDD09;
  background: #FCDD09;
  color: #DA121A;
}

.like-button.is-liked,
.like-button:disabled {
  background: rgba(31, 95, 191, 0.1);
  border-color: #FCDD09;
  color: var(--accent-2);
  box-shadow: none;
  cursor: default;
}

.like-button.is-liked .like-icon,
.like-button.is-liked strong {
  animation: like-pop 0.75s cubic-bezier(0.2, 0.9, 0.2, 1) 1;
}

.like-button.is-liked .like-icon {
  animation-name: like-heartbeat;
}

.like-icon {
  font-size: 0.95rem;
  color: #FCDD09;
}

.like-button strong {
  min-width: 2.2ch;
  text-align: right;
  color: #FCDD09;
}

.cover-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: end;
  padding: 16px 0 22px;
}

.hero-image {
  position: relative;
  width: 100vw;
  height: clamp(340px, 52vh, 560px);
  margin: 0 calc(50% - 50vw);
  overflow: hidden;
  align-self: start;
  background: #0f47af;
}

.hero-image-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.08), rgba(8, 14, 28, 0.28));
  z-index: 1;
}

.hero-float-text {
  position: absolute;
  top: clamp(18px, 6vw, 56px);
  right: clamp(18px, 5vw, 64px);
  z-index: 2;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 71, 175, 0.26);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 40px rgba(8, 14, 28, 0.18);
  animation: hero-float 4.5s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg);
  }
  50% {
    transform: translate3d(0, -8px, 0) rotate(1.5deg);
  }
}

@media (max-width: 768px) {
  .hero-float-text {
    top: 14px;
    right: 14px;
    font-size: clamp(1.15rem, 5vw, 2rem);
    padding: 0.45em 0.75em;
  }
}

.cover-copy {
  display: grid;
  gap: 18px;
}

.section-label,
.headline-chip {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-2);
  font-weight: 700;
}

.cover-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  max-width: 8ch;
  color: #172136;
}

.lead {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  color: var(--muted);
}

.cover-panel {
  justify-self: end;
  width: min(100%, 360px);
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 12px;
}

.cover-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1.05;
}

.cover-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.news-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.home-insights {
  width: min(980px, calc(100% - 28px));
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 8px;
}

.insight-card {
  overflow: hidden;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.insight-card--weather {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98)),
    #fff;
  color: var(--text);
  border-color: rgba(15, 71, 175, 0.14);
  box-shadow: 0 18px 42px rgba(15, 71, 175, 0.12);
}

.insight-card--economy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.98)),
    #fff;
}

.insight-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.insight-card h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.insight-card--weather .section-kicker {
  color: var(--accent-2);
}

.insight-card--weather h2,
.insight-card--weather .weather-readout strong {
  color: var(--text);
}

.insight-card--weather .weather-meta {
  color: var(--muted);
}

.insight-card--weather .weather-meta span {
  background: rgba(15, 71, 175, 0.08);
  color: var(--accent-2);
}

.insight-card--weather .insight-badge {
  background: rgba(15, 71, 175, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(15, 71, 175, 0.12);
}

.insight-card--economy .insight-badge {
  background: rgba(15, 71, 175, 0.1);
  color: var(--accent-2);
}

.insight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.weather-readout {
  display: flex;
  align-items: center;
}

.weather-readout strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.weather-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.68rem;
}

.weather-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15, 71, 175, 0.08);
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.indicator-tile {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.98)),
    #fff;
}

.indicator-tile span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.58rem;
  color: var(--accent-2);
  font-weight: 800;
}

.indicator-tile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.indicator-tile small {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.6rem;
}

.panel-rules {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.panel-rules span {
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 95, 191, 0.35), rgba(191, 30, 46, 0.12));
}

@media (max-width: 900px) {
  .cover-grid {
    grid-template-columns: 1fr;
  }

  .cover-copy h1 {
    max-width: none;
  }

  .cover-panel {
    justify-self: start;
  }

  .news-section {
    width: calc(100% - 32px);
  }

  .home-insights {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .indicator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .news-cover-wrap {
    min-height: 100vh;
  }

  .news-navbar {
    padding: 16px 18px;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .navbar-brand,
  .navbar-links,
  .navbar-actions {
    width: 100%;
  }

  .navbar-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .navbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cover-grid {
    width: calc(100% - 32px);
  }

  .news-section {
    width: calc(100% - 32px);
    padding: 22px 0 44px;
  }

  .hero-image {
    height: clamp(300px, 44vh, 460px);
  }

  .hero-image-img {
    object-position: center center;
  }

  .cover-copy h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .chatbot {
    left: 14px;
    bottom: 14px;
  }

  .chatbot-panel {
    width: min(340px, calc(100vw - 28px));
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.primary-button,
.secondary-button,
.read-button,
.admin-action,
.filter-chip {
  cursor: pointer;
}

.page-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 26, 22, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 26, 22, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 100%);
  opacity: 0.5;
}

.topbar,
.page-shell,
.footer,
.auth-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fffaf3;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 36px rgba(31, 95, 191, 0.22);
}

.eyebrow,
.brand-subtitle,
.hero-kicker,
.section-kicker,
.card-meta,
.hero-panel-chip,
.mini-list span {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--muted);
}

.section-kicker-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.section-kicker-link:hover {
  opacity: 0.82;
}

.brand-subtitle {
  margin-top: 4px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.98rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.nav a,
.footer-links a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.footer-links a:hover {
  background: rgba(218, 18, 26, 0.08);
  color: #DA121A;
}

.hero,
.panel-section,
.footer {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  padding: 26px 0 54px;
}

.hero-copy,
.hero-panel,
.editor-card,
.editor-info,
.admin-list-card,
.featured-article,
.latest-card,
.news-card,
.info-card,
.modal-dialog,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 38px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 255, 0.96)),
    var(--panel);
}

.hero-copy h1 {
  margin: 14px 0 16px;
  max-width: 13ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.admin-hero-title {
  max-width: 8ch;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-text,
.section-note,
.mini-list p,
.info-card p,
.summary,
.news-body,
.article-meta,
.modal-meta,
.modal-summary,
.news-card p,
.latest-item p,
.featured-content p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.read-button,
.form-actions button,
.admin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 13px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button,
.read-button {
  background: #DA121A;
  color: #ffffff;
}

.secondary-button,
.admin-action.secondary {
  background: #f3f4f6;
  color: var(--text);
  border-color: #d6d9e0;
}

.primary-button:hover,
.secondary-button:hover,
.read-button:hover,
.form-actions button:hover,
.admin-action:hover {
  transform: translateY(-1px);
  background: #FCDD09;
  border-color: #FCDD09;
  color: #DA121A;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.hero-stats div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 255, 0.95)),
    var(--panel);
}

.hero-panel-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
}

@keyframes like-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes like-heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.15);
  }
  45% {
    transform: scale(0.98);
  }
  70% {
    transform: scale(1.12);
  }
}

.mini-feature {
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(31, 95, 191, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.64);
}

.mini-feature h2 {
  margin: 12px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.14;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-list div {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.mini-list span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
}

.panel-section {
  padding: 16px 0 52px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head h2,
.latest-head h3,
.featured-content h3,
.modal-content h3,
.auth-title {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
}

.section-note {
  max-width: 42ch;
  margin: 0;
}

.admin-layout,
.portal-layout {
  display: grid;
  gap: 18px;
}

.admin-layout {
  justify-items: center;
  grid-template-columns: 1fr;
}

.editor-card,
.editor-info,
.admin-list-card,
.featured-article,
.latest-card,
.auth-card {
  border-radius: var(--radius-xl);
}

.editor-card {
  padding: 28px;
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.96)),
    var(--panel);
}

.editor-card-compact {
  padding: 18px;
  gap: 12px;
  width: min(100%, 760px);
  margin: 0 auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-card-compact .field-grid {
  gap: 10px;
}

.field {
  display: grid;
  gap: 8px;
}

.editor-card-compact .field {
  gap: 5px;
}

.editor-card-compact .field span {
  font-size: 0.86rem;
}

.field span {
  font-size: 0.98rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.search-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-card-compact .field input,
.editor-card-compact .field select,
.editor-card-compact .field textarea {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.editor-card-compact .field textarea {
  min-height: 76px;
  height: 76px;
}

.editor-card-compact .field textarea[name="content"] {
  min-height: 150px;
  height: 150px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus {
  border-color: rgba(24, 75, 87, 0.45);
  box-shadow: 0 0 0 4px rgba(24, 75, 87, 0.1);
}

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

.editor-card-compact .form-actions {
  gap: 8px;
}

.editor-card-compact .form-actions .primary-button,
.editor-card-compact .form-actions .secondary-button {
  padding: 10px 12px;
  min-height: 38px;
  font-size: 0.92rem;
}

.editor-info {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
  background: linear-gradient(180deg, rgba(245, 248, 255, 0.94), rgba(255, 255, 255, 0.92));
}

.info-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.56);
}

.muted-card {
  background: linear-gradient(180deg, rgba(31, 95, 191, 0.08), rgba(255, 255, 255, 0.58));
}

.info-card h3 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.step-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-list-card {
  margin-top: 18px;
  padding: 28px;
}

.admin-notice {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 75, 87, 0.16);
  background: rgba(31, 95, 191, 0.08);
  color: var(--text);
  font-weight: 600;
}

.admin-notice.is-success {
  border-color: rgba(77, 132, 72, 0.22);
  background: rgba(77, 132, 72, 0.12);
}

.admin-notice.is-error {
  border-color: rgba(191, 30, 46, 0.22);
  background: rgba(191, 30, 46, 0.12);
}

@keyframes admin-fresh-highlight {
  0% {
    transform: translateY(10px);
    opacity: 0.7;
    box-shadow: 0 0 0 rgba(31, 95, 191, 0);
  }
  60% {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 18px 40px rgba(31, 95, 191, 0.14);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 18px 40px rgba(31, 95, 191, 0.12);
  }
}

.admin-archive {
  display: grid;
  gap: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill.is-published {
  background: rgba(77, 132, 72, 0.14);
  color: #3f6d39;
}

.status-pill.is-draft {
  background: rgba(191, 30, 46, 0.12);
  color: #8c1021;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 28px;
  border: 1px solid rgba(24, 33, 47, 0.09);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(24, 33, 47, 0.08);
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table thead th {
  padding: 16px 18px;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(245, 248, 255, 0.98);
  border-bottom: 1px solid rgba(24, 33, 47, 0.08);
}

.admin-table tbody td {
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid rgba(24, 33, 47, 0.08);
  color: var(--text);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr.is-fresh {
  background: rgba(245, 248, 255, 0.96);
  animation: admin-fresh-highlight 0.9s ease-out;
}

.admin-table-thumb {
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 95, 191, 0.1), rgba(191, 30, 46, 0.08));
}

.admin-table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-social-thumb {
  display: grid;
  place-items: center;
}

.admin-social-thumb svg {
  width: 28px;
  height: 28px;
  fill: #0f47af;
}

.admin-menu-url {
  word-break: break-word;
  color: var(--accent-2);
}

.admin-menu-url:hover {
  color: #DA121A;
}

.admin-table-title {
  display: grid;
  gap: 4px;
}

.admin-table-title strong {
  font-size: 1rem;
  line-height: 1.35;
}

.admin-table-title span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-table-actions .admin-action {
  padding: 9px 12px;
  font-size: 0.92rem;
}

.admin-table-actions form {
  margin: 0;
}

.ad-layout {
  grid-template-columns: 1.15fr 0.85fr;
}

.ad-compact-grid {
  gap: 16px;
}

.ad-mini-media {
  aspect-ratio: 16 / 8;
}

.admin-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.admin-mini-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(24, 33, 47, 0.08);
}

.admin-mini-card.is-fresh {
  outline: 2px solid rgba(31, 95, 191, 0.22);
  outline-offset: 1px;
}

.admin-mini-media {
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 95, 191, 0.12), rgba(191, 30, 46, 0.08));
}

.admin-mini-media svg {
  width: 34px;
  height: 34px;
  fill: #0f47af;
}

.admin-mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-mini-body {
  display: grid;
  gap: 10px;
}

.admin-mini-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.admin-mini-body h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.15;
}

.admin-mini-actions {
  justify-content: flex-start;
}

.admin-mini-actions .admin-action {
  padding: 9px 12px;
  font-size: 0.92rem;
}

.social-compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.social-mini-media {
  aspect-ratio: 1 / 1;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.admin-item h3,
.latest-head h3,
.featured-content h3,
.modal-content h3 {
  font-size: 1.2rem;
  line-height: 1.15;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-start;
}

.admin-action {
  padding: 11px 14px;
  font-size: 0.98rem;
}

.admin-action.danger {
  background: #DA121A;
  color: #ffffff;
  border-color: #DA121A;
}

.portal-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.search-field input {
  padding: 15px 18px;
  border-radius: 999px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid #d6d9e0;
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.filter-chip.active {
  background: #1f5fbf;
  color: #ffffff;
  border-color: transparent;
}

.portal-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  margin-bottom: 18px;
}

.home-layout {
  grid-template-columns: 1.35fr 0.65fr;
}

.home-feed {
  display: grid;
  gap: 10px;
}

.home-sidebar {
  position: static;
}

.featured-article {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: stretch;
}

.home-layout .featured-article {
  grid-template-columns: 0.8fr 1.2fr;
}

.home-layout .featured-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.home-layout .featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-figure {
  width: min(920px, 100%);
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.article-figure .featured-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  height: auto;
  border-radius: 26px;
  overflow: hidden;
}

.featured-media {
  height: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, rgba(31, 95, 191, 0.18), rgba(191, 30, 46, 0.12));
}

.featured-media img,
.news-media img,
.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-figure .featured-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0f1722;
}
.featured-content {
  padding: 16px;
  display: grid;
  align-content: center;
}

.featured-content h3 {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
}

.latest-card {
  padding: 14px;
}

.latest-list {
  display: grid;
  gap: 10px;
}

.commented-populars {
  display: grid;
  gap: 8px;
}

.commented-popular {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.commented-popular:first-child {
  border-top: 0;
  padding-top: 0;
}

.commented-popular.has-image {
  grid-template-columns: 60px 1fr;
  gap: 8px;
  align-items: center;
}

.commented-popular-media {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(31, 95, 191, 0.12), rgba(191, 30, 46, 0.08));
}

.commented-popular-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.commented-popular-body h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.commented-popular-body h4 a {
  color: var(--text);
}

.commented-popular-body h4 a:hover {
  color: #DA121A;
}

.latest-item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.liked-item {
  display: grid;
  gap: 10px;
}

.liked-item h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  line-height: 1.2;
}

.liked-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.liked-rank {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 95, 191, 0.08);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.liked-item-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.latest-item h4 {
  margin: 4px 0 3px;
  font-size: 0.88rem;
  line-height: 1.2;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: 10px;
}

.news-section .news-grid {
  margin-top: 10px;
}

.news-card {
  overflow: hidden;
  border-radius: 18px;
}

.category-card {
  border: 1px solid rgba(24, 33, 47, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.98)),
    #fff;
  box-shadow: 0 14px 34px rgba(24, 33, 47, 0.08);
}

.news-card-link {
  display: grid;
  color: inherit;
  height: 100%;
}

.category-card.is-reversed .news-card-link {
  grid-template-areas:
    "content"
    "media";
}

.category-card.is-reversed .news-content {
  grid-area: content;
}

.category-card.is-reversed .news-media {
  grid-area: media;
}

.news-media {
  height: 132px;
  background: linear-gradient(135deg, rgba(31, 95, 191, 0.14), rgba(191, 30, 46, 0.08));
}

.category-media {
  height: 132px;
}

.news-content {
  padding: 12px;
  display: grid;
  gap: 0;
}

.news-content h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.category-card .news-card-link:hover .news-content h3 {
  color: #DA121A;
}

.home-section-stack {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.category-section {
  padding: 12px 0 0;
  border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.home-section-stack .category-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.category-page .panel-section {
  width: min(980px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.category-page .news-navbar {
  padding: 14px 24px;
}

.category-hero {
  position: relative;
  width: 100vw;
  height: clamp(160px, 22vw, 260px);
  margin: 0 calc(50% - 50vw) 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(24, 33, 47, 0.12);
  border-bottom: 1px solid rgba(24, 33, 47, 0.08);
  border-left: 0;
  border-right: 0;
  background: rgba(255, 255, 255, 0.9);
}

.category-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}

.category-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 14, 28, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.category-hero-copy {
  position: absolute;
  left: clamp(18px, 3vw, 42px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: min(90vw, 780px);
  color: #fff;
}

.category-hero-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.category-hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.category-page .category-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-link {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-link:hover {
  color: #DA121A;
}

.ad-slot {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
}

.ad-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.92)),
    #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-banner:hover,
.ad-inline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(24, 33, 47, 0.14);
}

.ad-banner-copy,
.ad-inline-copy {
  display: grid;
  gap: 10px;
}

.ad-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(31, 95, 191, 0.1);
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ad-banner-copy h2,
.ad-inline-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.ad-banner-copy p,
.ad-inline-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ad-banner-media {
  min-height: 160px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 95, 191, 0.12), rgba(191, 30, 46, 0.08));
}

.ad-banner-media img,
.ad-inline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-inline {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.ad-inline-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(24, 33, 47, 0.1);
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-inline-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 95, 191, 0.12), rgba(191, 30, 46, 0.08));
}

.comments-panel {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.comments-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.comments-head h3 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.comment-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.comment-status.is-success {
  background: rgba(77, 132, 72, 0.12);
  color: #3f6d39;
}

.comment-status.is-error {
  background: rgba(191, 30, 46, 0.12);
  color: #8c1021;
}

.comment-form {
  display: grid;
  gap: 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 33, 47, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.summary {
  margin: 0 0 16px;
}

.read-button {
  width: 100%;
}

.empty-state {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(31, 26, 22, 0.2);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-kicker,
.section-kicker,
.card-meta,
.hero-panel-chip,
.mini-list span {
  color: var(--accent-2);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 10px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  background: linear-gradient(135deg, var(--navbar) 0%, var(--navbar-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -10px 30px rgba(15, 71, 175, 0.18);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.footer .social-links {
  justify-content: center;
}

.footer .social-links-label {
  color: rgba(255, 255, 255, 0.88);
}

.footer .social-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.footer .social-link:hover {
  color: #DA121A;
}

.footer-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #DA121A;
}

.chatbot {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1001;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navbar), var(--navbar-deep));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(15, 71, 175, 0.32);
  cursor: pointer;
}

.chatbot-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.chatbot-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 32px));
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 71, 175, 0.18);
  box-shadow: 0 24px 60px rgba(24, 33, 47, 0.2);
  backdrop-filter: blur(14px);
}

.chatbot-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, var(--navbar), var(--navbar-deep));
  color: #fff;
}

.chatbot-header h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  line-height: 1.1;
}

.chatbot-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.8);
}

.chatbot-close {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chatbot-messages {
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
  background:
    radial-gradient(circle at top left, rgba(31, 95, 191, 0.08), transparent 28%),
    #f7f9fe;
}

.chatbot-message {
  display: flex;
}

.chatbot-message p {
  margin: 0;
  padding: 11px 13px;
  border-radius: 16px;
  max-width: 100%;
  line-height: 1.45;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.chatbot-message.bot {
  justify-content: flex-start;
}

.chatbot-message.bot p {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(24, 33, 47, 0.08);
}

.chatbot-message.user {
  justify-content: flex-end;
}

.chatbot-message.user p {
  background: rgba(15, 71, 175, 0.1);
  color: var(--text);
  border: 1px solid rgba(15, 71, 175, 0.16);
}

.chatbot-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: #FCDD09;
  color: #172136;
  font-weight: 800;
}

.chatbot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}

.chatbot-chip {
  border: 1px solid rgba(15, 71, 175, 0.18);
  background: rgba(15, 71, 175, 0.08);
  color: var(--navbar-deep);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.chatbot-form {
  display: flex;
  gap: 10px;
  padding: 14px;
}

.chatbot-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(24, 33, 47, 0.14);
  background: #fff;
}

.chatbot-send {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #FCDD09;
  color: #172136;
  font-weight: 800;
}

.chatbot-toggle:focus-visible,
.chatbot-close:focus-visible,
.chatbot-chip:focus-visible,
.chatbot-send:focus-visible,
.chatbot-input:focus-visible {
  outline: 3px solid rgba(255, 221, 9, 0.9);
  outline-offset: 2px;
}

.chatbot-panel[hidden] {
  display: none;
}

.whatsapp-float,
.chatbot-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover,
.chatbot-float:hover {
  transform: translateY(-2px);
  background: #1c4fb3;
  box-shadow: 0 22px 40px rgba(15, 71, 175, 0.32);
  color: #fff;
}

.whatsapp-float-icon,
.chatbot-float-icon {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.whatsapp-float-text,
.chatbot-float-text {
  display: none;
}

.whatsapp-float:focus-visible,
.chatbot-float:focus-visible {
  outline: 3px solid rgba(255, 221, 9, 0.9);
  outline-offset: 3px;
}

.auth-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-card {
  width: min(560px, 100%);
  padding: 32px;
  border-radius: 30px;
}

.auth-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(191, 30, 46, 0.12);
  color: #8c1021;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 22, 0.58);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: min(920px, calc(100% - 24px));
  margin: 4vh auto;
  border-radius: 32px;
  overflow: hidden;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.modal-content {
  padding: 30px;
  overflow: auto;
  background: rgba(255, 252, 247, 0.98);
}

.modal-body {
  display: grid;
  gap: 14px;
}

.modal-body p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.news-body {
  margin: 0;
  font-size: 1.02rem;
}

.news-actions-panel {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.news-action-form {
  margin: 0;
}

.action-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(24, 33, 47, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-2);
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

a.action-icon-button {
  text-decoration: none;
}

.action-icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #FCDD09;
  background: #FCDD09;
  color: #DA121A;
}

.action-icon-button:disabled,
.action-icon-button.is-liked {
  background: rgba(31, 95, 191, 0.1);
  border-color: #FCDD09;
  color: var(--accent-2);
  box-shadow: none;
  cursor: default;
}

.action-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.like-button--icon.is-liked .action-icon {
  animation: like-heartbeat 0.75s cubic-bezier(0.2, 0.9, 0.2, 1) 1;
}

.action-count {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #0f1722;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-icon-button--whatsapp {
  color: #25d366;
}

.share-feedback {
  min-height: 1.25em;
  margin: 0;
  width: 100%;
  color: var(--accent-2);
  font-size: 0.88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .hero,
  .admin-layout,
  .portal-layout,
  .featured-article,
  .modal-dialog {
    grid-template-columns: 1fr;
  }

  .featured-media {
    height: 180px;
  }

  .article-figure .featured-media {
    max-height: 320px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .news-navbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .navbar-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .navbar-menu {
    display: none;
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(7, 28, 78, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
  }

  .news-navbar.is-menu-open .navbar-menu {
    display: grid;
    gap: 14px;
  }

  .news-navbar.is-menu-open .navbar-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
  }

  .news-navbar.is-menu-open .navbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .category-page .panel-section {
    width: calc(100% - 32px);
  }

  .category-hero {
    width: 100vw;
    height: 200px;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .category-hero-copy {
    left: 16px;
    right: 16px;
    bottom: 14px;
    max-width: none;
  }

  .category-hero-copy h1 {
    font-size: clamp(1.5rem, 7vw, 2.4rem);
  }

  .category-page .category-page-grid {
    grid-template-columns: 1fr;
  }

  .home-layout .featured-article {
    grid-template-columns: 1fr;
  }

  .home-layout .featured-article {
    grid-template-columns: 1fr;
  }

  .category-media {
    height: 220px;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .news-navbar {
    padding: 16px 18px;
  }

  .navbar-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .navbar-menu {
    padding: 12px;
  }

  .hero-copy,
  .hero-panel,
  .editor-card,
  .editor-info,
  .admin-list-card,
  .featured-content,
  .latest-card,
  .auth-card,
  .modal-content {
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .navbar-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .navbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .news-navbar.is-menu-open .navbar-links,
  .news-navbar.is-menu-open .navbar-actions {
    align-items: stretch;
  }

  .social-links--header {
    justify-content: flex-start;
  }

  .admin-hero-title {
    max-width: none;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .hero-stats,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .ad-layout,
  .ad-banner,
  .ad-inline-card {
    grid-template-columns: 1fr;
  }

  .ad-slot {
    width: calc(100% - 32px);
  }

  .ad-banner-media {
    min-height: 200px;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-insights {
    margin-top: 14px;
  }

  .insight-card {
    padding: 20px;
  }

  .weather-readout strong {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .home-sidebar {
    position: static;
  }

  .commented-popular.has-image {
    grid-template-columns: 1fr;
  }

  .commented-popular-media {
    width: 100%;
    height: 100px;
  }

  .comments-head {
    align-items: start;
    flex-direction: column;
  }

  .news-actions-panel {
    gap: 10px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

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

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .like-button,
  .primary-button,
  .secondary-button,
  .read-button,
  .admin-action {
    transition: none;
  }

  .like-button.is-liked .like-icon,
  .like-button.is-liked strong {
    animation: none;
  }
}
