@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/*
Theme Name: Zilauto Blog
Theme URI: https://zilauto.in/
Author: Zilauto
Description: Custom blog theme inspired by Zilauto Web structure.
Version: 1.0.0
Text Domain: zilauto-blog
*/

:root {
  --za-primary: #ff5638;
  --za-primary-dark: #e64d33;
  --za-heading: #1f2937;
  --za-text: #1f2937;
  --za-muted: #64748b;
  --za-border: #e8e6e3;
  --za-bg: #fbfaf9;
  --za-white: #ffffff;
  --za-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.za-dark {
  --za-heading: #f8fafc;
  --za-text: #cbd5e1;
  --za-muted: #94a3b8;
  --za-border: #283548;
  --za-bg: #121821;
  --za-white: #1a222e;
  --za-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--za-text);
  background: var(--za-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

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

.za-container {
  width: min(1440px, 96%);
  margin: 0 auto;
}

.za-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: color-mix(in srgb, var(--za-white) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--za-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.za-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 8px 0;
}

.za-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--za-heading);
}

.za-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--za-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.za-logo-icon svg {
  width: 19px;
  height: 19px;
}

.za-logo-text {
  font-size: 20px;
  letter-spacing: 0.01em;
  font-weight: 700;
  line-height: 1;
  color: #0f766e;
}

body.za-dark .za-logo-text {
  color: #5eead4;
}

.za-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 500;
  color: var(--za-heading);
}

.za-nav > a,
.za-nav-dropdown > a {
  font-size: 14px;
  padding: 8px 0;
}

.za-nav-dropdown {
  position: relative;
}

.za-nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.za-caret {
  font-size: 12px;
}

.za-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  border: 1px solid var(--za-border);
  border-radius: 14px;
  background: var(--za-white);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16);
  padding: 8px;
  display: none;
}

.za-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
}

.za-dropdown-menu a:hover {
  background: #fff1e7;
  color: var(--za-primary-dark);
}

.za-nav-dropdown:hover .za-dropdown-menu {
  display: block;
}

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

.za-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--za-heading);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.za-theme-toggle:hover {
  background: color-mix(in srgb, var(--za-heading) 10%, transparent);
  color: var(--za-heading);
}

.za-theme-toggle:active {
  transform: scale(0.98);
}

.za-theme-toggle:focus-visible,
.za-mobile-toggle:focus-visible {
  outline: 2px solid var(--za-primary);
  outline-offset: 2px;
}

.za-theme-icon {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.za-theme-icon svg {
  width: 20px;
  height: 20px;
}

body.za-dark .za-theme-moon {
  display: none;
}

body:not(.za-dark) .za-theme-sun {
  display: none;
}

.za-mobile-toggle,
.za-mobile-panel {
  display: none;
}

body.za-mobile-open .za-mobile-toggle-open {
  display: none;
}

body.za-mobile-open .za-mobile-toggle-close {
  display: inline;
}

.za-nav a:hover,
.za-nav .current-menu-item > a,
.za-nav .current_page_item > a {
  color: var(--za-primary);
}

.za-hero {
  position: relative;
  padding: 90px 0 64px;
  background: linear-gradient(130deg, #fff7ed 0%, #ffedd5 50%, #fff7ed 100%);
  overflow: hidden;
}

body.za-dark .za-hero {
  background: linear-gradient(130deg, #0b1220 0%, #111a2d 50%, #0b1220 100%);
}

.za-hero::before,
.za-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.35;
}

.za-hero::before {
  left: -70px;
  top: 30px;
  background: #fdba74;
}

body.za-dark .za-hero::before {
  background: rgba(249, 115, 22, 0.35);
}

.za-hero::after {
  right: -60px;
  bottom: -40px;
  background: #fb923c;
}

body.za-dark .za-hero::after {
  background: rgba(251, 146, 60, 0.3);
}

.za-hero-content {
  position: relative;
  text-align: center;
}

.za-hero h1 {
  margin: 0;
  color: var(--za-heading);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.za-hero h1 span {
  color: var(--za-primary);
}

.za-hero p {
  margin: 14px auto 0;
  max-width: 760px;
  color: var(--za-text);
  font-size: clamp(16px, 2vw, 18px);
}

.za-search {
  margin: 24px auto 0;
  max-width: 560px;
  display: flex;
  gap: 10px;
}

.za-search input {
  width: 100%;
  border: 1px solid var(--za-border);
  border-radius: 12px;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  background: var(--za-white);
  color: var(--za-heading);
}

.za-search input::placeholder {
  color: var(--za-muted);
}

.za-btn {
  border: none;
  border-radius: 12px;
  background: var(--za-primary);
  color: #ffffff;
  min-width: 110px;
  font-weight: 700;
  cursor: pointer;
}

.za-btn:hover {
  background: var(--za-primary-dark);
}

.za-section {
  padding: 42px 0 70px;
}

.za-featured {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--za-shadow);
  margin-bottom: 26px;
  background: #111827;
}

.za-featured-media {
  position: absolute;
  inset: 0;
}

.za-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.87), rgba(0, 0, 0, 0.2));
}

.za-featured-content {
  position: relative;
  color: var(--za-white);
  padding: 36px;
  max-width: 760px;
  margin-top: 180px;
}

.za-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--za-white);
  background: var(--za-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.za-featured h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  margin: 12px 0;
}

.za-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

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

.za-card {
  background: var(--za-white);
  border: 1px solid var(--za-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.za-card:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.za-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.za-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-card-body {
  padding: 18px;
}

.za-card h3 {
  margin: 10px 0;
  color: var(--za-heading);
  font-size: 20px;
  line-height: 1.25;
}

.za-card p {
  margin: 0;
  color: var(--za-muted);
  font-size: 14px;
  line-height: 1.6;
}

.za-read {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--za-primary-dark);
  font-weight: 700;
  font-size: 14px;
}

.za-pagination {
  margin-top: 28px;
}

.za-pagination ul.page-numbers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: transparent;
  border: 0;
}

.za-pagination a.page-numbers,
.za-pagination span.page-numbers {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--za-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--za-white);
}

.za-pagination li .page-numbers {
  padding: 0 12px;
}

.za-pagination a.page-numbers {
  cursor: pointer;
}

.za-latest-feed.is-loading {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.za-pagination span.page-numbers.current,
.za-pagination a.page-numbers:hover {
  background: var(--za-primary);
  color: var(--za-white);
  border-color: var(--za-primary);
}

.za-single {
  padding: 70px 0;
}

.za-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.86fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.za-single-main {
  min-width: 0;
}

.za-single-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.za-single-header {
  margin: 0 0 24px;
}

.za-single-header h1 {
  color: var(--za-heading);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin: 12px 0;
}

.za-single-cover {
  margin: 0 0 28px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--za-shadow);
}

.za-single-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.za-single-content {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--za-text);
}

.za-single-content h2,
.za-single-content h3,
.za-single-content h4 {
  color: var(--za-heading);
  margin-top: 34px;
  margin-bottom: 12px;
}

.za-single-content ul,
.za-single-content ol {
  padding-left: 22px;
}

.za-single-content .wp-block-table,
.za-single-content table {
  width: 100%;
  margin: 28px 0;
}

.za-single-content .wp-block-table {
  overflow-x: auto;
}

.za-single-content table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--za-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--za-white);
  font-size: 16px;
}

.za-single-content th,
.za-single-content td {
  border-right: 1px solid var(--za-border);
  border-bottom: 1px solid var(--za-border);
  padding: 12px 12px;
  text-align: center;
  vertical-align: middle;
}

.za-single-content tr th:last-child,
.za-single-content tr td:last-child {
  border-right: none;
}

.za-single-content tbody tr:last-child td {
  border-bottom: none;
}

.za-single-content thead th {
  background: #ff5639;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.za-single-content tbody tr:nth-child(odd) td {
  background: #efefef;
}

.za-single-content tbody tr:nth-child(even) td {
  background: #f7f2f2;
}

.za-single-content tbody td:first-child {
  font-weight: 700;
  color: var(--za-heading);
}

.za-single-content tbody tr {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.za-single-content tbody tr:hover {
  transform: translateY(-1px);
}

.za-single-content tbody tr:hover td {
  background: #ffe8db;
}

.za-single-extras {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.za-single-share,
.za-single-author,
.za-single-comments {
  border: 1px solid var(--za-border);
  border-radius: 14px;
  background: var(--za-white);
  padding: 16px;
}

.za-single-share h3,
.za-single-author h3,
.za-single-comments h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--za-heading);
}

.za-single-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.za-single-share-links a {
  border: 1px solid var(--za-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--za-heading);
  background: var(--za-white);
  transition: all 0.2s ease;
}

.za-single-share-links a:hover {
  border-color: var(--za-primary);
  color: var(--za-primary-dark);
  background: #fff3eb;
}

.za-single-author p {
  margin: 0 0 8px;
  color: var(--za-muted);
}

.za-comments-area {
  margin-top: 6px;
}

.za-comments-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--za-heading);
}

.za-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.za-comment-list li.comment {
  border: 1px solid var(--za-border);
  border-radius: 12px;
  padding: 12px;
  background: var(--za-white);
}

.za-comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.za-comment-list .comment-author img {
  border-radius: 999px;
}

.za-comment-list .comment-meta {
  font-size: 12px;
  color: var(--za-muted);
  margin-bottom: 6px;
}

.za-comment-list .comment-content p {
  margin: 0;
  color: var(--za-text);
  line-height: 1.6;
}

.za-comment-list .reply {
  margin-top: 8px;
}

.za-comment-list .reply a {
  font-size: 12px;
  font-weight: 700;
  color: var(--za-primary-dark);
}

.za-comment-identity {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.za-comment-identity label {
  font-size: 13px;
  font-weight: 700;
  color: var(--za-heading);
}

.za-comment-identity input {
  height: 42px;
  border: 1px solid var(--za-border);
  border-radius: 10px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--za-white) 88%, var(--za-bg) 12%);
  color: var(--za-muted);
}

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

.za-comment-form p {
  margin: 0;
}

.za-comment-form .comment-form-author,
.za-comment-form .comment-form-email {
  width: 100%;
}

.za-comment-form .logged-in-as {
  margin: 0;
  font-size: 13px;
  color: var(--za-muted);
}

.za-comment-form .logged-in-as a {
  color: var(--za-primary-dark);
}

.za-comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--za-heading);
}

.za-comment-form input,
.za-comment-form textarea {
  width: 100%;
  border: 1px solid var(--za-border);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--za-white);
  font-size: 14px;
  color: var(--za-heading);
}

.za-comment-form textarea {
  min-height: 160px;
  resize: vertical;
}

.za-comment-submit {
  border: 0;
  border-radius: 10px;
  background: var(--za-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  height: 42px;
  padding: 0 16px;
  cursor: pointer;
}

.za-single-categories {
  display: grid;
  gap: 8px;
}

.za-single-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--za-heading);
  font-size: 14px;
}

.za-single-categories a span {
  color: var(--za-muted);
  font-weight: 600;
}

.za-footer {
  margin-top: 48px;
  border-top: 1px solid var(--za-border);
  background: color-mix(in srgb, var(--za-white) 84%, #cbd5e1 16%);
}

.za-footer-wrap {
  padding: 48px 0;
}

.za-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.za-footer-brand {
  max-width: 460px;
}

.za-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.za-footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--za-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.za-footer-logo-icon svg {
  width: 20px;
  height: 20px;
}

.za-footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--za-heading);
}

.za-footer-desc {
  margin: 0 0 16px;
  max-width: 360px;
  color: var(--za-muted);
  font-size: 14px;
  line-height: 1.7;
}

.za-footer-contact {
  display: grid;
  gap: 8px;
}

.za-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--za-muted);
}

.za-footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.za-footer h3 {
  margin: 0 0 16px;
  color: var(--za-heading);
  font-size: 16px;
  font-weight: 700;
}

.za-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.za-footer li {
  margin: 0;
}

.za-footer ul a {
  font-size: 14px;
  color: var(--za-muted);
  transition: color 0.2s ease;
}

.za-footer ul a:hover {
  color: var(--za-primary-dark);
}

.za-footer-bottom {
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--za-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.za-footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: var(--za-muted);
}

.za-footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.za-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--za-muted);
  transition: color 0.2s ease;
}

.za-footer-socials a:hover {
  color: var(--za-primary-dark);
}

.za-footer-socials svg {
  width: 20px;
  height: 20px;
}

.za-empty {
  text-align: center;
  color: var(--za-muted);
  padding: 30px 0;
}

@media (max-width: 1024px) {
  .za-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .za-footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .za-header-inner {
    min-height: 62px;
    padding: 8px 0;
    flex-direction: row;
    align-items: center;
  }

  .za-logo-text {
    font-size: 22px;
  }

  .za-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .za-logo-icon svg {
    width: 19px;
    height: 19px;
  }

  .za-nav-desktop {
    display: none;
  }

  .za-theme-toggle-desktop {
    display: none;
  }

  .za-mobile-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--za-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
  }

  .za-mobile-toggle:hover {
    background: color-mix(in srgb, var(--za-heading) 10%, transparent);
  }

  .za-mobile-toggle-close {
    display: none;
  }

  .za-mobile-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    background: var(--za-white);
    transition: max-height 0.25s ease;
  }

  body.za-mobile-open .za-mobile-panel {
    border-top-color: var(--za-border);
  }

  .za-mobile-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0 16px;
  }

  .za-mobile-panel-inner a {
    padding: 10px 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--za-heading);
  }

  .za-mobile-panel-inner a:hover {
    color: var(--za-primary-dark);
  }

  .za-theme-toggle-mobile {
    margin-top: 4px;
    width: fit-content;
    height: 36px;
    border-radius: 10px;
    padding: 0 12px;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
  }

  .za-header-actions {
    margin-left: auto;
  }

  .za-search {
    flex-direction: column;
  }

  .za-btn {
    height: 44px;
  }

  .za-featured {
    min-height: 360px;
  }

  .za-featured-content {
    margin-top: 140px;
    padding: 20px;
  }

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

  .za-footer-top {
    grid-template-columns: 1fr;
  }

  .za-footer-wrap {
    padding: 36px 0;
  }

  .za-footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .za-single-content {
    font-size: 16px;
  }

  .za-single-content table {
    min-width: 640px;
    font-size: 15px;
  }

  .za-single-content th,
  .za-single-content td {
    padding: 10px 9px;
  }
}

/* Magazine home layout */
.za-mag-layout {
  padding-top: 50px;
}

.za-mag-grid {
  display: grid;
  grid-template-columns: 2.3fr 0.9fr;
  gap: 18px;
}

.za-mag-left {
  display: grid;
  gap: 14px;
}

.za-lead-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  min-height: 520px;
}

.za-lead-media {
  height: 100%;
}

.za-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-lead-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.25));
}

.za-lead-overlay h2 {
  margin: 10px 0 0;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.2;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.za-side-stack {
  display: grid;
  gap: 12px;
  align-content: start;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.za-side-item {
  border: 1px solid var(--za-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--za-white);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  height: 100%;
}

.za-side-thumb {
  aspect-ratio: 16 / 7.8;
}

.za-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-side-item h3 {
  margin: 7px 10px 9px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--za-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
}

.za-lead-under-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.za-lead-mini {
  border: 1px solid var(--za-border);
  border-radius: 10px;
  background: var(--za-white);
  overflow: hidden;
}

.za-lead-mini a {
  display: block;
}

.za-lead-mini-thumb {
  aspect-ratio: 1 / 0.72;
}

.za-lead-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-lead-mini h4 {
  margin: 8px 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--za-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.za-trending {
  margin-top: 50px;
}

.za-trending h3,
.za-topstories h3,
.za-latest-main h3,
.za-cat-panels h3 {
  margin: 0 0 14px;
  font-size: 28px;
  color: var(--za-heading);
}

.za-trending-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  cursor: grab;
  user-select: none;
}

.za-trending-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.za-trending-wrap.is-dragging {
  cursor: grabbing;
}

.za-trend-chip {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  width: 180px;
  min-height: 116px;
  flex: 0 0 auto;
  color: #fff;
}

.za-trend-chip-media,
.za-trend-chip-media img {
  width: 100%;
  height: 100%;
}

.za-trend-chip-media img {
  object-fit: cover;
}

.za-trend-chip span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), transparent);
}

.za-topstories {
  margin-top: 50px;
}

.za-topstories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.za-topstories-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.za-topstories-tab {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--za-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--za-muted);
  background: var(--za-white);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.za-topstories-tab.is-active,
.za-topstories-tab:hover {
  color: var(--za-heading);
  background: #f5f5f5;
  border-color: #e5e7eb;
}

.za-topstories-panels {
  position: relative;
}

.za-topstories-panel {
  display: none;
}

.za-topstories-panel.is-active {
  display: block;
}

.za-topstories-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
}

.za-topstories-main {
  order: 2;
}

.za-topstories-grid.is-reversed {
  grid-template-columns: 1.5fr 1fr;
}

.za-topstories-grid.is-reversed .za-topstories-main {
  order: 1;
}

.za-topstories-grid.is-reversed .za-topstories-list {
  order: 2;
}

.za-topstories-list {
  display: grid;
  gap: 0;
}

.za-story-row {
  border-bottom: 1px solid #d1d5db;
}

.za-story-row-empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  margin-top: 14px;
  background: #f8fafc;
}

.za-story-row-empty-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--za-muted);
}

.za-story-row a {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.za-story-row-thumb {
  width: 118px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
}

.za-story-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-story-row h4 {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.3;
  color: var(--za-heading);
}

.za-featured-compact {
  min-height: 500px;
  margin: 0;
  border-radius: 16px;
}

.za-featured-compact .za-featured-content {
  margin-top: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
}

.za-featured-date {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.za-featured-compact .za-featured-content h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 1.15;
  max-width: 90%;
}

.za-latest-shell {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.za-stream-item {
  border: 1px solid var(--za-border);
  border-radius: 12px;
  background: var(--za-white);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  margin-bottom: 14px;
}

.za-stream-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-stream-content {
  padding: 12px;
}

.za-stream-content h4 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--za-heading);
}

.za-stream-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--za-muted);
}

.za-stream-meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--za-muted);
}

.za-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  margin-top: 50px;
}

.za-sidebar-card {
  border: 1px solid var(--za-border);
  border-radius: 12px;
  background: var(--za-white);
  padding: 16px;
}

.za-sidebar-card h4 {
  margin: 0 0 12px;
  color: var(--za-heading);
  font-size: 16px;
}

.za-sidebar-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--za-border);
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--za-heading);
}

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

.za-recent-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.za-recent-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.za-recent-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
}

.za-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-recent-item span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--za-heading);
}

.za-cat-panels {
  margin-top: 50px;
}

.za-cat-panels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.za-cat-panel {
  border: 1px solid var(--za-border);
  border-radius: 14px;
  background: var(--za-white);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.za-cat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.za-cat-panel-head h4 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--za-heading);
  text-transform: capitalize;
}

.za-cat-panel-head a {
  font-size: 12px;
  color: var(--za-primary-dark);
  font-weight: 700;
  border: 1px solid var(--za-border);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.za-cat-panel-posts {
  display: grid;
  gap: 12px;
}

.za-cat-card {
  border: 1px solid var(--za-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--za-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.za-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

body.za-dark .za-single-content thead th {
  background: #f97316;
  color: #fff;
}

body.za-dark .za-single-content tbody tr:nth-child(odd) td {
  background: #111827;
}

body.za-dark .za-single-content tbody tr:nth-child(even) td {
  background: #0f172a;
}

body.za-dark .za-single-content tbody tr:hover td {
  background: #1f2937;
}

body.za-dark .za-single-share-links a:hover {
  background: #1f2937;
  border-color: #334155;
  color: #f8fafc;
}

body.za-dark .za-cat-card:hover {
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.5);
}

.za-cat-card-thumb {
  height: 170px;
}

.za-cat-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.za-cat-card h5 {
  margin: 11px;
  font-size: 17px;
  line-height: 1.34;
  color: var(--za-heading);
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.za-archive {
  margin-top: 24px;
}

.za-archive-head {
  margin-bottom: 18px;
}

.za-archive-head h1 {
  margin: 0 0 8px;
  color: var(--za-heading);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
}

.za-archive-head p {
  margin: 0;
  color: var(--za-muted);
  font-size: 15px;
}

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

@media (max-width: 1100px) {
  .za-mag-grid,
  .za-topstories-grid,
  .za-latest-shell {
    grid-template-columns: 1fr;
  }

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

  .za-single-side {
    position: static;
  }

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

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

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

  .za-lead-card {
    min-height: 430px;
  }

  .za-side-stack {
    grid-template-rows: none;
  }

  .za-sidebar {
    margin-top: 0;
  }

  .za-topstories-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .za-topstories-tabs {
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .za-trend-chip {
    width: 146px;
    min-height: 102px;
  }

  .za-story-row a,
  .za-stream-item {
    grid-template-columns: 1fr;
  }

  .za-story-row-thumb,
  .za-stream-thumb {
    width: 100%;
    height: auto;
  }

  .za-stream-thumb {
    aspect-ratio: 16 / 10;
  }

  .za-cat-panels-grid {
    grid-template-columns: 1fr;
  }

  .za-archive-grid {
    grid-template-columns: 1fr;
  }

  .za-cat-panel-head h4 {
    font-size: 18px;
  }

  .za-cat-card-thumb {
    height: 154px;
  }

  .za-lead-under-grid {
    grid-template-columns: 1fr;
  }

  .za-topstories h3 {
    font-size: 24px;
  }

  .za-story-row h4 {
    font-size: 18px;
  }

  .za-featured-compact {
    min-height: 360px;
  }

  .za-featured-compact .za-featured-content h2 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .za-single-content {
    font-size: 16px;
  }

  .za-single-header h1 {
    font-size: clamp(28px, 8vw, 36px);
  }
}
