/* ============================================================
   Теннисный Журнал — OnePress Theme
   Forest Green + Tennis Club Elegance
   ============================================================ */

/* 1. Variables */
:root {
  --primary: #16a34a;
  --secondary: #15803d;
  --accent: #f97316;
  --bg: #f0fdf4;
  --text: #1a2e1d;
  --header-bg: #15803d;
  --footer-bg: #1a2e1d;
  --link: #16a34a;
  --link-hover: #15803d;
  --card-bg: #ffffff;
  --border: #bbf7d0;
  --gold: #c9a227;
  --muted: #4a6b52;
  --radius: 1rem;
  --shadow: 0 2px 16px rgba(21, 128, 61, 0.08);
  --shadow-hover: 0 8px 32px rgba(21, 128, 61, 0.18);
}

/* 2. Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3. Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 8% 15%, rgba(187, 247, 208, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 92% 85%, rgba(187, 247, 208, 0.25) 0%, transparent 50%);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

h1 { font-size: 2.125rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.625rem; margin-bottom: 0.625rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }

/* 4. Container & Layout */
.onepress-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.onepress-wrap {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: flex-start;
}

.onepress-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.content-area {
  flex: 1;
  min-width: 0;
}

/* 5. Header — Centered Stacked */
.site-header {
  background: var(--header-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 58px, rgba(255,255,255,0.04) 58px, rgba(255,255,255,0.04) 60px),
    repeating-linear-gradient(0deg, transparent, transparent 58px, rgba(255,255,255,0.04) 58px, rgba(255,255,255,0.04) 60px);
  pointer-events: none;
}

.site-branding {
  text-align: center;
  padding: 1.75rem 1.5rem 1rem;
  position: relative;
}

.site-branding__logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.375rem;
  text-decoration: none;
}

.site-branding__name {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.site-branding__logo-wrap:hover .site-branding__name {
  opacity: 0.9;
}

.site-branding__tagline {
  font-size: 0.8125rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-nav {
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.main-nav li a {
  display: block;
  padding: 0.875rem 1.375rem;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.82);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.main-nav li a:hover,
.main-nav li a.active {
  color: #fff;
  border-bottom-color: var(--gold);
  background: rgba(255,255,255,0.07);
}

/* 6. Breadcrumbs */
.breadcrumb-nav {
  padding: 0.875rem 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb-nav a {
  color: var(--primary);
  font-weight: 600;
}

.breadcrumb-nav a:hover { color: var(--secondary); }

.breadcrumb-nav .sep {
  margin: 0 0.375rem;
  color: var(--border);
  font-size: 0.875rem;
}

/* 7. Section Title */
.section-title {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--border), transparent);
  border-radius: 1px;
}

/* 8. Article Cards */
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card::before {
  content: '◈';
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  color: var(--gold);
  font-size: 0.8125rem;
  opacity: 0.65;
  z-index: 2;
  pointer-events: none;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.article-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}

.article-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.article-card:hover .article-card__image-wrap img {
  transform: scale(1.05);
}

.article-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--border);
  position: relative;
}

.article-card__body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  border-radius: 1px;
}

.article-card__cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.2rem 0.625rem;
  border-radius: 50px;
  margin-bottom: 0.625rem;
}

.article-card__title {
  font-family: 'Lora', serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.625rem;
}

.article-card__title a {
  color: var(--text);
  transition: color 0.2s;
}

.article-card__title a:hover {
  color: var(--primary);
}

.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex: 1;
}

.article-card__meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Lato', sans-serif;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* 9. Card Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* 10. Homepage Hero */
.home-hero {
  background: linear-gradient(145deg, #0f5c2a 0%, var(--secondary) 45%, var(--primary) 100%);
  color: #fff;
  padding: 3.5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 480px;
  height: 480px;
  border: 70px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 45px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.home-hero__title {
  font-size: 2.75rem;
  color: #fff;
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 1;
}

.home-hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  font-style: italic;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 11. Page Header */
.page-header {
  background: linear-gradient(135deg, #0f5c2a 0%, var(--secondary) 100%);
  color: #fff;
  padding: 2.75rem 0 3.25rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 35px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
  color: #fff;
  font-size: 2.125rem;
  position: relative;
  z-index: 1;
}

.page-header .page-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* 12. Sidebar Widgets */
.widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.widget-title {
  font-family: 'Lora', serif;
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary);
}

/* Recent Posts */
.widget-recent-posts ul { list-style: none; }

.widget-recent-posts li {
  padding: 0.5625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.4;
}

.widget-recent-posts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-recent-posts a {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
  transition: color 0.2s;
  line-height: 1.35;
}

.widget-recent-posts a:hover { color: var(--primary); }

.widget-recent-posts .post-date {
  color: var(--muted);
  font-size: 0.6875rem;
}

/* Categories */
.widget-categories ul { list-style: none; }

.widget-categories li { border-bottom: 1px solid var(--border); }
.widget-categories li:last-child { border-bottom: none; }

.widget-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.widget-categories a span {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.1rem 0.5rem;
  font-size: 0.6875rem;
}

.widget-categories a:hover {
  color: var(--primary);
  padding-left: 0.375rem;
}

/* Tags cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

a.tag-pill {
  display: inline-block;
  padding: 0.275rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Lato', sans-serif;
}

a.tag-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Tournament Calendar */
.widget-calendar .tour-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  align-items: flex-start;
}

.widget-calendar .tour-item:last-child { border-bottom: none; }

.widget-calendar .tour-date {
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.widget-calendar .tour-name {
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.8125rem;
}

.widget-calendar .tour-surface {
  color: var(--muted);
  font-size: 0.6875rem;
  margin-top: 0.1rem;
}

/* ATP Rankings */
.widget-rankings .rank-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.425rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.widget-rankings .rank-item:last-child { border-bottom: none; }

.widget-rankings .rank-num {
  width: 24px;
  height: 24px;
  background: var(--border);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.widget-rankings .rank-num.top3 {
  background: var(--gold);
  color: #fff;
}

.widget-rankings .rank-name {
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.widget-rankings .rank-pts {
  color: var(--muted);
  font-size: 0.6875rem;
  font-style: italic;
}

/* 13. Article Page */
.article-main {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-main h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.article-date {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-date::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.6rem;
}

.article-cat-link {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.article-cat-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.article-featured-img {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.article-featured-img img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* 14. Article Body — Injected Content Styles */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.82;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--secondary);
}

.article-body p {
  margin-bottom: 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.1rem 1.5rem;
}

.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }

.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-body th {
  background: var(--secondary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
}

.article-body td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
}

.article-body tbody tr:nth-child(even) {
  background: rgba(240, 253, 244, 0.7);
}

.article-body tbody tr:hover {
  background: rgba(187, 247, 208, 0.35);
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(240, 253, 244, 0.6);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--secondary);
  font-family: 'Lora', serif;
  font-size: 1.05rem;
}

.article-body .infobox {
  background: rgba(22, 163, 74, 0.07);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.article-body .stat-block {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1.75rem 0;
  text-align: center;
}

.article-body .stat-block strong {
  display: block;
  font-size: 2.5rem;
  font-family: 'Lora', serif;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.article-body a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--link-hover); }

.article-body img {
  width: 100%;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* 15. Article Footer Elements */
.article-tags-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Author Box */
.author-box {
  background: rgba(240, 253, 244, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-box__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-box__name {
  font-family: 'Lora', serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.author-box__city {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.author-box__bio {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Related Posts */
.related-posts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.related-post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.25s;
}

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

.related-post-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.related-post-card__body { padding: 0.875rem; }

.related-post-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Lora', serif;
  line-height: 1.35;
}

.related-post-card__title a { color: var(--text); }
.related-post-card__title a:hover { color: var(--primary); }

.related-post-card__date {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* 16. Category Badge Colors */
.cat-novosti { color: #1d4ed8; background: #dbeafe; }
.cat-turniry { color: #854d0e; background: #fef9c3; }
.cat-analitika { color: var(--secondary); background: #dcfce7; }
.cat-igroki { color: #be185d; background: #fce7f3; }
.cat-istoriya { color: #7c3aed; background: #f3e8ff; }

/* 17. Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* 18. Tag Page Styles */
.tag-page-header {
  background: linear-gradient(135deg, #0f5c2a 0%, var(--secondary) 100%);
  color: #fff;
  padding: 2.5rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.tag-page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 35px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.tag-page-header h1 {
  color: #fff;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

/* 19. Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(229, 245, 231, 0.75);
  margin-top: 4rem;
  position: relative;
}

.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--primary) 18px,
    rgba(255,255,255,0.08) 18px,
    rgba(255,255,255,0.08) 36px
  );
}

.footer-inner {
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.125rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about p {
  font-size: 0.875rem;
  line-height: 1.72;
  color: rgba(229, 245, 231, 0.65);
  margin: 0;
}

.footer-links ul,
.footer-popular ul { list-style: none; }

.footer-links li,
.footer-popular li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-links li:last-child,
.footer-popular li:last-child { border-bottom: none; }

.footer-links a {
  color: rgba(229, 245, 231, 0.65);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-popular a {
  color: rgba(229, 245, 231, 0.65);
  font-size: 0.8125rem;
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
  padding: 0.1rem 0;
}

.footer-popular a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(229, 245, 231, 0.45);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: rgba(229, 245, 231, 0.45);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--primary); }

/* 20. Decorative Divider */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--border);
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.ornament-divider span {
  font-size: 0.875rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* 21. Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.article-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.55s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.12s; }
.article-card:nth-child(3) { animation-delay: 0.19s; }
.article-card:nth-child(4) { animation-delay: 0.26s; }
.article-card:nth-child(5) { animation-delay: 0.33s; }
.article-card:nth-child(6) { animation-delay: 0.40s; }
.article-card:nth-child(7) { animation-delay: 0.47s; }
.article-card:nth-child(8) { animation-delay: 0.54s; }
.article-card:nth-child(9) { animation-delay: 0.61s; }
.article-card:nth-child(10) { animation-delay: 0.68s; }

/* 22. Responsive */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .onepress-wrap { flex-direction: column; }
  .onepress-sidebar { width: 100%; order: 1; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .home-hero__title { font-size: 2rem; }
  .article-main { padding: 1.5rem; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .main-nav ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .main-nav li a { padding: 0.75rem 1rem; font-size: 0.75rem; }
}

@media (max-width: 420px) {
  .site-branding__name { font-size: 1.625rem; }
  h1 { font-size: 1.625rem; }
}
