:root {
  --green: #38a84a;
  --green-strong: #64d874;
  --blue: #0b3f91;
  --navy: #071225;
  --dark: #05070d;
  --white: #ffffff;
  --muted: #b9c2d6;
  --card: #101827;
  --card-strong: #141f31;
  --border: rgba(255, 255, 255, 0.12);
  --danger: #ff6b6b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans Myanmar", Arial, sans-serif;
  background: radial-gradient(circle at top left, #102a55, var(--dark) 45%);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  min-height: 100vh;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 7%;
  background: rgba(5, 7, 13, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 220px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-weight: 700;
}

.nav-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.nav-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.nav-links a {
  display: block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
}

.nav-action {
  flex-shrink: 0;
}

.hero {
  width: min(1180px, 90%);
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-banner {
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
}

.hero-content {
  min-width: 0;
  padding: 34px;
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.92), rgba(5, 7, 13, 0.72));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.eyebrow,
.section-title span,
.tag {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  margin: 12px 0 16px;
  font-size: 3.8rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hero p {
  color: var(--muted);
}

.primary-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--green), #62d06f);
  color: #061106;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1.2;
  text-align: center;
}

button.primary-btn {
  margin-top: 0;
}

.section {
  width: min(1180px, 90%);
  margin: 80px auto;
}

.section-title {
  margin-bottom: 26px;
}

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

.section-heading-row .section-title {
  margin-bottom: 0;
}

.section-title h2 {
  margin-top: 6px;
  font-size: 2.4rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.blog-view-toggle {
  display: inline-flex;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.news-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 14px;
  margin-bottom: 20px;
}

.news-filters label {
  display: grid;
  gap: 8px;
  color: #e7edf8;
  font-weight: 800;
}

.news-filters input,
.news-filters select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  color: var(--white);
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
}

.view-toggle-btn {
  min-width: 74px;
  min-height: 42px;
  padding: 9px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.view-toggle-btn.is-active {
  background: linear-gradient(135deg, var(--green), #62d06f);
  color: #061106;
}

.feature-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.public-blog-card,
.score-card,
.table-card {
  background: rgba(16, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.feature-card,
.score-card {
  min-width: 0;
}

.feature-card h3,
.public-blog-body h3,
.score-card h3 {
  margin-bottom: 10px;
}

.feature-card p,
.public-blog-body p,
.score-card p {
  color: var(--muted);
}

.public-blog-body .tag {
  color: var(--green);
}

.news-layout {
  display: grid;
  gap: 24px;
}

.featured-news {
  margin-bottom: 24px;
}

.news-layout[data-view="grid"] {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.news-layout[data-view="list"] {
  grid-template-columns: minmax(0, 1fr);
}

.public-blog-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
}

.public-blog-card-featured {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  grid-template-rows: auto;
  border-color: rgba(100, 216, 116, 0.34);
}

.news-layout[data-view="list"] .public-blog-card {
  grid-template-columns: minmax(210px, 310px) minmax(0, 1fr);
  grid-template-rows: auto;
}

.public-blog-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 13, 0.55);
}

.public-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.public-blog-body {
  min-width: 0;
  padding: 24px;
}

.public-blog-body h3 {
  margin: 8px 0 12px;
  font-size: 1.55rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.public-blog-body h3 a:hover,
.read-more-link:hover {
  color: var(--green-strong);
}

.breaking-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  background: rgba(255, 107, 107, 0.16);
  color: #ffd3d3;
  border: 1px solid rgba(255, 107, 107, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-layout[data-view="list"] .public-blog-body h3 {
  font-size: 1.35rem;
}

.blog-excerpt,
.blog-more p {
  color: var(--muted);
}

.blog-date {
  display: inline-block;
  color: #d5dded;
  font-size: 0.9rem;
  font-weight: 700;
}

.blog-public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: #d5dded;
  font-size: 0.9rem;
  font-weight: 700;
}

.blog-public-meta .blog-views {
  color: var(--green-strong);
  text-transform: none;
  letter-spacing: 0;
}

.blog-more {
  margin-top: 14px;
}

.blog-more summary {
  color: var(--green-strong);
  cursor: pointer;
  font-weight: 800;
}

.blog-more p {
  margin-top: 10px;
}

.read-more-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--green-strong);
  font-weight: 800;
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.skeleton-card .public-blog-image,
.skeleton-card .public-blog-body {
  min-height: 130px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  background-size: 220% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.empty-state {
  background: rgba(16, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  color: var(--muted);
}

.table-card {
  overflow-x: auto;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(56, 168, 74, 0.16);
  color: #d8ffe0;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: none;
}

.score-card strong {
  color: var(--green);
  margin: 0 8px;
}

.score-card span {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(56, 168, 74, 0.18);
  color: #b7ffbf;
  border-radius: 999px;
  font-weight: 700;
}

.live-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.live-score-card {
  min-width: 0;
  padding: 18px;
  background: rgba(16, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.live-score-card h3 {
  margin: 6px 0 10px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.live-score-card span {
  color: var(--green-strong);
  font-weight: 800;
}

.detail-header .navbar {
  position: sticky;
}

.blog-detail {
  width: min(920px, 90%);
  margin: 42px auto 90px;
}

.blog-detail-article {
  display: grid;
  gap: 18px;
}

.blog-detail-article h1 {
  font-size: 3rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.blog-detail-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.blog-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-detail-content {
  display: grid;
  gap: 16px;
  color: #e3ebf8;
  font-size: 1.05rem;
}

.blog-detail-content h2,
.blog-detail-content h3 {
  margin-top: 10px;
  line-height: 1.35;
}

.blog-detail-content ul,
.blog-detail-content ol {
  padding-left: 22px;
}

.blog-detail-content blockquote {
  padding: 14px 18px;
  color: #d8ffe0;
  background: rgba(56, 168, 74, 0.12);
  border-left: 4px solid var(--green);
  border-radius: 12px;
}

.blog-detail-content a {
  color: var(--green-strong);
  font-weight: 800;
}

footer {
  margin-top: 90px;
  padding: 36px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #03050a;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer img {
  width: 190px;
}

.footer-copy {
  display: grid;
  gap: 6px;
  text-align: right;
  min-width: 0;
}

.footer-copy a {
  color: var(--green-strong);
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
}

.admin-app-page {
  background: radial-gradient(circle at top left, #102a55, var(--dark) 45%);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 24px;
  background: rgba(5, 7, 13, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.admin-topbar-brand,
.admin-sidebar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.admin-topbar-brand img {
  width: 160px;
}

.admin-sidebar-brand img {
  width: 190px;
}

.admin-topbar-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.admin-topbar-account span {
  min-width: 0;
  color: #e7edf8;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.admin-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.admin-app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.admin-sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 24px;
  background: rgba(5, 7, 13, 0.62);
  border-right: 1px solid var(--border);
}

.admin-sidebar-nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.is-active {
  color: #061106;
  background: linear-gradient(135deg, var(--green), #62d06f);
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-content {
  width: min(1180px, 100%);
  min-width: 0;
  display: grid;
  gap: 24px;
  padding: 32px;
}

.admin-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 28px;
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.94), rgba(7, 18, 37, 0.82));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.admin-page-title h1 {
  margin-top: 6px;
  font-size: 2.7rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-shell {
  width: min(440px, calc(100% - 28px));
}

.login-panel img {
  width: 220px;
  margin-bottom: 22px;
}

.login-panel h1 {
  margin-top: 4px;
  font-size: 2rem;
}

.admin-header .navbar {
  position: sticky;
}

.admin-shell {
  width: min(1180px, 90%);
  margin: 42px auto 84px;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.94), rgba(7, 18, 37, 0.82));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.admin-hero h1 {
  margin-top: 6px;
  font-size: 3.4rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 12px;
}

.compact-stats {
  min-width: min(100%, 360px);
}

.admin-stats article {
  min-width: 86px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}

.admin-stats span {
  display: block;
  color: var(--green-strong);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.admin-stats p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

.admin-side-panels {
  display: grid;
  gap: 24px;
}

.admin-panel {
  min-width: 0;
  background: rgba(16, 24, 39, 0.84);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-heading p {
  color: var(--green-strong);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin-top: 4px;
  font-size: 1.55rem;
}

.blog-form label,
.category-form label,
.admin-user-form label,
.password-form label,
.login-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #e7edf8;
  font-weight: 800;
}

.blog-form input,
.blog-form select,
.blog-form textarea,
.category-form input,
.admin-user-form input,
.password-form input,
.login-panel input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-form textarea {
  min-height: 118px;
  resize: vertical;
}

.account-summary {
  display: grid;
  gap: 10px;
}

.account-summary .mini-row {
  margin: 0;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.inline-option {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  margin-bottom: 0 !important;
}

.inline-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: var(--green);
}

.rich-editor-shell {
  margin: -8px 0 16px;
  overflow: hidden;
  background: rgba(5, 7, 13, 0.42);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.rich-toolbar button {
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 800;
}

.rich-editor {
  min-height: 180px;
  padding: 14px;
  outline: none;
}

.rich-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(100, 216, 116, 0.42);
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol,
.rich-editor blockquote,
.rich-editor h2,
.rich-editor h3 {
  margin-bottom: 12px;
}

.rich-editor ul,
.rich-editor ol {
  padding-left: 22px;
}

.rich-editor blockquote {
  padding: 10px 14px;
  background: rgba(56, 168, 74, 0.12);
  border-left: 4px solid var(--green);
  border-radius: 10px;
}

.advanced-fields {
  margin-bottom: 16px;
}

.advanced-fields summary {
  cursor: pointer;
  color: var(--green-strong);
  font-weight: 800;
}

.advanced-fields label {
  margin-top: 14px;
}

.blog-form input:focus,
.blog-form select:focus,
.blog-form textarea:focus,
.category-form input:focus,
.admin-user-form input:focus,
.password-form input:focus,
.login-panel input:focus {
  border-color: rgba(100, 216, 116, 0.84);
  box-shadow: 0 0 0 4px rgba(56, 168, 74, 0.16);
}

.blog-form input::placeholder,
.blog-form textarea::placeholder,
.category-form input::placeholder,
.admin-user-form input::placeholder,
.password-form input::placeholder,
.login-panel input::placeholder {
  color: rgba(185, 194, 214, 0.62);
}

.login-panel .remember-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.login-panel .remember-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: var(--green);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 14px;
}

.image-preview-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  overflow: hidden;
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.image-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-actions,
.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-btn,
.secondary-btn,
.danger-btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  line-height: 1.2;
}

.ghost-btn,
.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.danger-btn {
  background: rgba(255, 107, 107, 0.14);
  color: #ffd3d3;
  border: 1px solid rgba(255, 107, 107, 0.34);
}

.form-message {
  min-height: 28px;
  margin-top: 14px;
  color: var(--green-strong);
  font-weight: 800;
}

.form-message[data-type="error"] {
  color: var(--danger);
}

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

.category-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-user-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.category-item,
.admin-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(5, 7, 13, 0.38);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.category-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.admin-user-details {
  display: grid;
  min-width: 0;
}

.admin-user-details strong,
.admin-user-details span {
  overflow-wrap: anywhere;
}

.admin-user-details span {
  color: var(--muted);
  font-size: 0.9rem;
}

.category-item button:disabled,
.admin-user-item button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-blog-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  background: rgba(5, 7, 13, 0.38);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.admin-blog-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(5, 7, 13, 0.55);
  border-radius: 14px;
}

.admin-blog-content {
  min-width: 0;
}

.admin-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pill {
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: capitalize;
}

.status-published {
  color: #cbffd1;
  background: rgba(56, 168, 74, 0.2);
}

.status-draft {
  color: #ffe7b0;
  background: rgba(255, 190, 92, 0.18);
}

.status-featured {
  color: #cbffd1;
  background: rgba(56, 168, 74, 0.2);
}

.status-breaking {
  color: #ffd3d3;
  background: rgba(255, 107, 107, 0.16);
}

.admin-blog-card h3 {
  margin: 8px 0 8px;
  font-size: 1.1rem;
  line-height: 1.45;
}

.admin-blog-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

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

.analytics-grid article {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.analytics-grid strong {
  display: block;
  color: var(--green-strong);
  font-size: 1.35rem;
  line-height: 1;
}

.analytics-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.top-blog-list,
.backup-status {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: rgba(5, 7, 13, 0.38);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.mini-row span,
.mini-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mini-row span,
.backup-status p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .navbar,
  footer {
    flex-direction: column;
    gap: 16px;
    padding: 16px 5%;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .hero,
  .feature-grid,
  .result-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-menu-button {
    display: grid;
  }

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

  .admin-sidebar {
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: min(300px, calc(100% - 48px));
    height: auto;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    background: rgba(5, 7, 13, 0.96);
    box-shadow: 20px 0 44px rgba(0, 0, 0, 0.36);
  }

  body.admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }

  body.admin-menu-open .admin-sidebar-backdrop {
    position: fixed;
    inset: 72px 0 0;
    z-index: 35;
    display: block;
    background: rgba(0, 0, 0, 0.52);
  }

  .admin-content {
    width: 100%;
    padding: 24px;
  }

  .admin-page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-title h1 {
    font-size: 2.25rem;
  }

  .hero {
    margin-top: 28px;
    gap: 24px;
  }

  .brand img {
    width: 180px;
  }

  .hero-content {
    padding: 28px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .section {
    margin: 64px auto;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .news-layout[data-view="list"] .public-blog-card {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  }

  .public-blog-card-featured {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-hero h1 {
    font-size: 2.6rem;
  }

  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .news-layout[data-view="list"] .public-blog-card {
    grid-template-columns: 1fr;
  }

  .news-filters {
    grid-template-columns: 1fr;
  }

  .blog-view-toggle {
    width: 100%;
  }

  .view-toggle-btn {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: auto;
  }

  .navbar {
    flex-direction: row;
    gap: 12px;
    padding: 12px 14px;
  }

  .nav-menu-toggle {
    display: grid;
  }

  .brand img {
    width: 150px;
  }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    gap: 8px 12px;
    font-size: 0.95rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 4px 6px;
  }

  .nav-action,
  .social-link {
    justify-content: center;
  }

  .social-link {
    order: 3;
    width: 100%;
  }

  .admin-shell,
  .section,
  .hero {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    margin-top: 18px;
    gap: 18px;
  }

  .hero-banner {
    border-radius: 18px;
  }

  .hero-content {
    padding: 20px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .primary-btn {
    width: 100%;
    padding: 12px 16px;
  }

  .section {
    margin: 52px auto;
  }

  .section-heading-row {
    gap: 14px;
  }

  .section-title {
    margin-bottom: 18px;
  }

  .section-title h2 {
    font-size: 1.55rem;
  }

  .feature-grid,
  .result-grid,
  .news-layout[data-view="grid"] {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .score-card,
  .empty-state {
    padding: 18px;
    border-radius: 18px;
  }

  .news-layout {
    gap: 18px;
  }

  .public-blog-body {
    padding: 18px;
  }

  .public-blog-body h3,
  .news-layout[data-view="list"] .public-blog-body h3 {
    font-size: 1.2rem;
    line-height: 1.45;
  }

  .blog-public-meta {
    font-size: 0.85rem;
  }

  .blog-detail {
    width: min(100% - 24px, 920px);
    margin: 28px auto 64px;
  }

  .blog-detail-article h1 {
    font-size: 1.85rem;
  }

  .blog-detail-image {
    border-radius: 18px;
  }

  th,
  td {
    padding: 14px 16px;
  }

  footer {
    margin-top: 56px;
    padding: 28px 14px;
  }

  footer img {
    width: 150px;
  }

  .login-shell {
    width: min(100% - 24px, 440px);
  }

  .login-panel img {
    width: 170px;
    margin-inline: auto;
  }

  .login-panel h1 {
    font-size: 1.7rem;
  }

  .admin-topbar {
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
  }

  .admin-topbar-brand img {
    width: 128px;
  }

  .admin-topbar-account {
    gap: 8px;
  }

  .admin-topbar-account span {
    max-width: 128px;
    font-size: 0.9rem;
  }

  .admin-app-shell {
    min-height: calc(100vh - 64px);
  }

  .admin-sidebar {
    top: 64px;
    width: min(292px, calc(100% - 32px));
    padding: 18px;
  }

  body.admin-menu-open .admin-sidebar-backdrop {
    inset: 64px 0 0;
  }

  .admin-content {
    gap: 18px;
    padding: 14px;
  }

  .admin-page-title {
    padding: 20px;
    border-radius: 20px;
  }

  .admin-page-title h1 {
    font-size: 1.8rem;
  }

  .admin-shell {
    margin: 24px auto 56px;
  }

  .admin-hero,
  .admin-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .admin-hero h1 {
    font-size: 2rem;
  }

  .admin-stats {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-stats article {
    min-width: 0;
    padding: 10px;
  }

  .admin-stats span {
    font-size: 1.45rem;
  }

  .admin-stats p {
    font-size: 0.78rem;
  }

  .panel-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .panel-heading h2 {
    font-size: 1.35rem;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-row,
  .news-layout[data-view="list"] .public-blog-card,
  .admin-blog-card {
    grid-template-columns: 1fr;
  }

  .admin-blog-card > img {
    aspect-ratio: 4 / 3;
  }

  .category-item,
  .admin-user-item {
    align-items: stretch;
    flex-direction: column;
  }

  .category-item button,
  .admin-user-item button {
    width: 100%;
  }

  .admin-actions > *,
  .admin-card-actions > * {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-actions > *,
  .admin-card-actions > * {
    flex-basis: 100%;
  }
}


.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
