﻿/*
Theme Name: Paravan
Author: Codex
Version: 1.0.0
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --surface-3: #f6f8fc;
  --text: #1a1f2e;
  --text-strong: #0b0f1a;
  --text-soft: #2a2f3c;
  --muted: #6b7386;
  --border: #e6e8ef;
  --dot: #d6d9e4;
  --topbar-bg: #0b1220;
  --topbar-text: #c9d4f2;
  --ink-900: #0b1220;
  --ink-800: #111a2e;
  --ink-700: #18243d;
  --paper: var(--bg);
  --gold: #f4b728;
  --gold-strong: #f0a800;
  --line: var(--border);
  --accent: #0c9a93;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: var(--text);
  background: var(--bg);
}

body.theme-dark {
  color-scheme: dark;
}

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

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

.site-topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.site-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex-wrap: wrap;
}

.site-topbar__cta {
  color: var(--gold);
  font-weight: 600;
  position: relative;
}

.site-topbar__cta::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

body.theme-dark .site-header {
  border-bottom: none;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
}

.site-logo__link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo__image,
.custom-logo {
  height: 30px;
  width: auto;
  max-height: 30px;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo__mark::before,
.site-logo__mark::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.site-logo__mark::before {
  width: 30px;
  height: 30px;
}

.site-logo__mark::after {
  width: 16px;
  height: 16px;
  background: var(--gold);
}

.site-header__nav {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
}

body.theme-dark .site-header__nav {
  border-top: none;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: inline-flex;
  padding: 16px 0;
  position: relative;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--text-strong);
}

.primary-menu .current-menu-item > a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--gold-strong);
}

.primary-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(1px) rotate(45deg);
  opacity: 0.85;
}

.primary-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(12, 18, 36, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.primary-menu .sub-menu a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  white-space: nowrap;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 6px;
}

.header-spacer {
  justify-self: end;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-strong);
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-strong);
}

.hamburger span::before {
  top: -6px;
}

.hamburger span::after {
  top: 6px;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

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

.featured-card {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(12, 18, 36, 0.08);
  border: 1px solid var(--border);
}

.featured-slider {
  position: relative;
}

.featured-slide {
  display: none;
}

.featured-slide.is-active {
  display: block;
}

.featured-media {
  position: relative;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

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

.featured-arrow {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}

.featured-arrow--left {
  left: 16px;
}

.featured-arrow--right {
  right: 16px;
}

.featured-body {
  padding: 18px 22px 22px;
  display: grid;
  gap: 10px;
}

.featured-body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
}

.featured-body h2 a {
  color: inherit;
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-body h2 a:hover {
  text-decoration: none;
  color: var(--accent);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  border-radius: 999px;
  width: fit-content;
}

.featured-dots {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 10px 0 16px;
}

.featured-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  border: none;
  padding: 0;
  cursor: pointer;
}

.featured-dots .dot.is-active {
  background: var(--accent);
  width: 20px;
  border-radius: 999px;
}

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

.feed-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feed-card h3 {
  padding: 0 14px 18px;
}

.archive-header {
  margin-bottom: 18px;
}

.archive-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.archive-desc {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.archive-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 0 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.archive-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.single-layout > * {
  min-width: 0;
}

.single-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(12, 18, 36, 0.06);
  min-width: 0;
  overflow-x: hidden;
}

.single-content--page {
  max-width: 900px;
  margin: 0 auto;
}

.single-hero {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.single-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: nowrap;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 6px;
}

.single-breadcrumbs::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
  box-shadow: 0 4px 8px rgba(12, 18, 36, 0.08);
}

.single-breadcrumbs::-webkit-scrollbar {
  display: none;
}

.single-breadcrumbs > * {
  flex: 0 0 auto;
}

.single-breadcrumbs a {
  color: inherit;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.single-breadcrumbs a:hover {
  color: var(--accent);
}

.single-breadcrumbs__sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
  font-size: 0;
  line-height: 0;
}

.single-breadcrumbs span:not(.single-breadcrumbs__sep) {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--text);
}

.single-sep {
  color: var(--border);
}

.single-content h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.3;
}

.single-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 18px;
}

.single-body {
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.single-body h2 {
  margin: 12px 0 4px;
  font-size: 22px;
}

.single-body h3 {
  margin: 10px 0 4px;
  font-size: 18px;
}

.single-body h4 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.single-body p {
  margin: 0 0 6px;
}

.single-body p:last-child {
  margin-bottom: 0;
}

.single-body strong {
  color: var(--text-strong);
}

.single-body em {
  color: var(--text-soft);
}

.single-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 154, 147, 0.35);
}

.single-body a:hover {
  border-bottom-color: var(--accent);
}

.single-body ul,
.single-body ol {
  margin: 4px 0 8px 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.single-body ul li,
.single-body ol li {
  line-height: 1.6;
}

.single-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 14px;
}

.single-body table th,
.single-body table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.single-body table th {
  background: var(--surface-3);
  color: var(--text-strong);
  font-weight: 600;
}

.single-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.single-body figure {
  margin: 10px 0 16px;
}

.single-body figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.single-body blockquote {
  margin: 10px 0;
  padding: 14px 16px;
  background: var(--surface-3);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text-soft);
}

.single-body .embed-wrap {
  position: relative;
  width: 100%;
  height: 30rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}

.single-body .embed-wrap iframe,
.single-body .embed-wrap embed,
.single-body .embed-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.single-body iframe,
.single-body embed,
.single-body video {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  height: 30rem;
}

.related-posts {
  margin-top: 22px;
}

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

.related-card {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.related-card__media {
  width: 40%;
  min-width: 140px;
  background: var(--surface-2);
  display: block;
}

.related-card__media img,
.related-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.related-card__placeholder {
  background: var(--surface-2);
}

.related-card__content {
  flex: 1;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  display: grid;
  gap: 8px;
}

.related-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.related-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.related-card h3 a {
  color: #fff;
  text-decoration: none;
}

.related-card h3 a:hover {
  text-decoration: underline;
}

.post-nav {
  margin-top: 22px;
}

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

.post-nav__item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px;
}

.post-nav__media {
  width: 120px;
  min-width: 120px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  display: block;
}

.post-nav__media img,
.post-nav__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-nav__placeholder {
  background: var(--surface-2);
}

.post-nav__content {
  display: grid;
  gap: 6px;
}

.post-nav__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-nav__content h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.post-nav__content h3 a {
  color: var(--text-strong);
  text-decoration: none;
}

.post-nav__content h3 a:hover {
  color: var(--accent);
}

.post-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  width: fit-content;
}

.post-nav__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.infinite-posts {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  grid-column: 1 / 2;
}

.single-content--infinite {
  margin-top: 0;
}

.infinite-anchor {
  width: 100%;
  height: 1px;
  grid-column: 1 / 2;
}

.single-body blockquote {
  margin: 6px 0;
  padding: 12px 16px;
  background: var(--surface-3);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text-soft);
}

.single-share {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.share-btn--whatsapp {
  background: #22c55e;
}

.share-btn--facebook {
  background: #1877f2;
}

.share-btn--x {
  background: #0b0f1a;
}

.share-btn--pinterest {
  background: #e60023;
}

.share-btn--copy {
  background: #374151;
}

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

.font-btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 0;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.font-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.single-lead.is-large {
  font-size: 18px;
}

.single-lead.is-small {
  font-size: 14px;
}

.single-body.is-large {
  font-size: 17px;
}

.single-body.is-small {
  font-size: 14px;
}

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

.single-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(12, 18, 36, 0.06);
  margin-bottom: 16px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.sidebar-title::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

.sidebar-title__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 16px;
  position: relative;
}

.sidebar-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 999px;
}

.sidebar-item {
  position: relative;
  padding-left: 12px;
}

.sidebar-item::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
}

.sidebar-item a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  display: block;
}

.sidebar-item a:hover {
  color: var(--accent);
}

.sidebar-group {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.sidebar-group__title {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sidebar-media-item {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 8px;
}

.sidebar-media-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.sidebar-media-link img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.sidebar-media-link span {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-media-link:hover span {
  color: var(--accent);
}

.news-card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(12, 18, 36, 0.08);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
  grid-template-rows: auto 1fr;
}

.news-media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 100px;
  overflow: hidden;
}

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

.news-media .pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.news-card h3 {
  margin: 0;
  padding: 0 14px 16px;
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-card h3 a:hover {
  text-decoration: none;
  color: var(--accent);
}

.featured-body h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
}

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

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

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

  .single-sidebar {
    position: static;
  }

  .related-posts__grid,
  .post-nav__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .single-content {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .single-hero {
    border-radius: 16px;
  }

  .single-lead,
  .single-body {
    text-align: justify;
  }

  .site-footer__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
  }

  .site-footer__nav li {
    flex: 0 0 auto;
  }

  .site-footer__nav::-webkit-scrollbar {
    display: none;
  }

  .related-card {
    flex-direction: column;
  }

  .related-card__media {
    width: 100%;
    min-width: 100%;
    height: 160px;
  }

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

  .post-nav__media {
    width: 100%;
    min-width: 100%;
    height: 160px;
  }
}

@media (max-width: 640px) {
  .featured-arrow {
    top: 32%;
  }

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

  .feed-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feed-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .feed-card .news-media {
    width: 110px;
    min-width: 110px;
    aspect-ratio: 4 / 3;
    min-height: auto;
    border-radius: 12px;
  }

  .feed-card .news-media img {
    border-radius: 12px;
  }

  .feed-card .news-media .pill {
    display: none;
  }

  .feed-card h3 {
    padding: 0;
    font-size: 14px;
  }

  .featured-body h2 {
    font-size: 20px;
  }

  .featured-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .site-footer__inner {
    align-items: flex-start;
  }

  .site-footer__nav {
    flex: 1 1 100%;
  }

  .site-footer__lang {
    margin-left: 0;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-footer__logo .custom-logo {
  height: 28px;
  width: auto;
}

.site-footer__logo-text {
  font-weight: 700;
  color: var(--text-strong);
  font-size: 18px;
}

.site-footer__copy {
  color: var(--muted);
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.site-footer__nav li {
  margin: 0;
}

.site-footer__nav a {
  color: var(--text-strong);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--accent);
}

.site-footer__lang {
  position: relative;
  margin-left: auto;
}

.site-footer__lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
}

.site-footer__lang summary::-webkit-details-marker {
  display: none;
}

.site-footer__lang summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-1px) rotate(45deg);
}

.site-footer__lang[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.site-footer__lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(12, 18, 36, 0.12);
  padding: 6px;
  display: grid;
  gap: 4px;
  min-width: 140px;
  z-index: 10;
  list-style: none;
  margin: 0;
  box-sizing: border-box;
  max-width: min(260px, 90vw);
  width: max-content;
}

.site-footer__lang-menu li {
  margin: 0;
}

.site-footer__lang-menu a {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-strong);
  text-decoration: none;
  display: block;
  white-space: normal;
  word-break: break-word;
}

.site-footer__lang-menu a:hover {
  background: var(--surface-2);
}

.site-footer__lang--static {
  color: var(--text-strong);
}

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

  .site-logo {
    font-size: 22px;
  }

  .site-header__nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .site-header__nav.is-open {
    display: block;
    border-top: none;
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header__nav.is-open .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 24px;
  }

  .site-header__nav.is-open .primary-menu a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header__nav.is-open .primary-menu li:last-child a {
    border-bottom: none;
  }

  .site-header__nav.is-open .primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    padding: 0 0 8px 12px;
  }

  .site-header__nav.is-open .primary-menu .sub-menu a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
}



