﻿:root {
  --bg: #f5f8f2;
  --surface: #ffffff;
  --text: #17301d;
  --muted: #54705a;
  --primary: #a64800;
  --primary-dark: #008A44;
  --primary-soft: #E6F8EE;
  --border: #d7e7d6;
  --shadow: 0 12px 32px rgba(19, 51, 26, 0.08);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #edf8ec 0%, #f7faf5 35%, var(--bg) 100%);
  line-height: 1.65;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

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

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 0;
}

.header-top-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-categories {
  justify-self: start;
}

.site-branding {
  justify-self: center;
  flex-shrink: 0;
}

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

.site-logo-image {
  width: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.header-nav-area {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.site-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.site-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-weight: 600;
  color: #2b2f34;
}

.main-navigation .menu-item {
  border-bottom: 2px solid transparent;
}

.main-navigation .menu-item:hover,
.main-navigation .menu-item.current-menu-item {
  border-bottom-color: #2f5ca8;
}

.categories-mega {
  position: relative;
}

.categories-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: var(--primary-dark);
  color: #fff;
  font-size: 1.06rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-width: 280px;
  min-height: 52px;
  padding: 0 18px;
  cursor: pointer;
}

.categories-mega-trigger:hover,
.categories-mega-trigger:focus-visible {
  background: var(--primary);
}

.categories-mega-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.categories-mega-title {
  flex: 1;
  text-align: left;
}

.categories-mega-chevron {
  font-size: 0.78rem;
}

.categories-mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: min(1160px, calc(100vw - 36px));
  background: #fff;
  border: 1px solid #d9d9d9;
  box-shadow: 0 18px 42px rgba(28, 35, 48, 0.16);
  z-index: 40;
  grid-template-columns: 280px minmax(0, 1fr);
}

.categories-mega.is-open .categories-mega-panel {
  display: grid;
}

.categories-main-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.categories-main-item {
  list-style: none;
}

.categories-main-list-wrap {
  background: #f4f4f4;
  border-right: 1px solid #dedede;
}

.categories-main-item + .categories-main-item {
  border-top: 1px solid #e5e5e5;
}

.categories-main-button {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: left;
  font-size: 1.06rem;
  font-weight: 600;
  color: #262d33;
  line-height: 1.35;
  padding: 14px 22px;
  cursor: pointer;
}

.categories-main-button:hover,
.categories-main-button.is-active {
  text-decoration: none;
  color: #262d33;
  background: #fff;
}

.categories-main-button:focus-visible {
  outline: 2px solid #2f5ca8;
  outline-offset: -2px;
}

.categories-content {
  padding: 20px 24px;
  min-height: 520px;
}

.categories-sub-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 36px;
  align-content: start;
}

.categories-sub-grid.is-active {
  display: grid;
}

.category-column-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 800;
}

.category-column-title a {
  color: #2d3136;
}

.category-sub-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.category-sub-list li + li {
  margin-top: 4px;
}

.category-sub-list a {
  color: #44484d;
  font-size: 1.02rem;
  line-height: 1.45;
}

.category-sub-list a:hover {
  color: #2f5ca8;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 6px;
  padding: 8px 12px;
}

.mobile-categories-overlay {
  display: none;
}

.hero {
  margin: 26px auto 24px;
}

.live-test-banner {
  margin: 22px auto 0;
}

.live-test-banner p {
  margin: 0;
  font-size: clamp(4rem, 18vw, 12rem);
  line-height: 0.9;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.08em;
  color: #b00020;
}

.hero-inner {
  background: linear-gradient(130deg, #ecf7e8, #dbefdb 60%, #d2e8d3);
  border: 1px solid #cae1cc;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 54px 42px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 8px;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.hero p {
  max-width: 700px;
  color: #2f5234;
  margin: 14px 0 0;
}

.homepage-grid,
.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 26px;
  margin-bottom: 38px;
}

.category-block {
  margin-bottom: 30px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2,
.sidebar-card h2,
.archive-header h1 {
  margin: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.post-card-large {
  grid-row: span 3;
}

.post-card-large .post-thumb-link img,
.post-card-large .post-thumb-placeholder {
  min-height: 300px;
}

.featured-grid .post-card-small {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: stretch;
}

.featured-grid .post-card-small .post-thumb-link {
  height: 100%;
}

.featured-grid .post-card-small .post-thumb-link img,
.featured-grid .post-card-small .post-thumb-placeholder {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

.featured-grid .post-card-small .post-card-body {
  padding: 10px 12px;
}

.featured-grid .post-card-small .post-card-body h3 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.featured-grid .post-card-small .meta {
  font-size: 0.78rem;
  margin-top: 4px;
}

.post-card,
.post-card-default,
.sidebar-card,
.single-article,
.widget,
.comments-area,
.post-navigation-cards,
.related-posts,
.archive-header,
.not-found {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-card,
.post-card-default {
  overflow: hidden;
}

.post-thumb-link img,
.post-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: linear-gradient(120deg, #d4e8d2, #c3ddc2);
}

.post-card-body {
  padding: 14px;
}

.post-card-body h2,
.post-card-body h3 {
  margin: 0;
  line-height: 1.3;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0;
  margin-bottom: 8px;
}

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

.sidebar-column,
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card,
.widget {
  padding: 18px;
}

.mini-card {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.mini-card:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.mini-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.35;
}

.mini-card p,
.mini-post-list {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-post-list {
  list-style: none;
  padding: 0;
}

.mini-post-list li {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.single-layout {
  width: min(860px, 92%);
  margin: 20px auto 40px;
}

.single-header,
.single-content,
.single-footer {
  padding: 0 24px;
}

.single-header {
  padding-top: 28px;
  padding-bottom: 16px;
}

.single-header h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.single-category {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.88rem;
}

.single-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.single-featured-image {
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.single-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.single-content {
  padding-top: 24px;
  padding-bottom: 8px;
}

.single-content h2,
.single-content h3 {
  margin-top: 30px;
  line-height: 1.3;
}

.post-toc {
  margin: 0 0 26px;
  padding: 16px 18px;
  background: #f3f8f0;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.post-toc-title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.2;
}

.post-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.post-toc-list li {
  margin: 0;
}

.post-toc-list .toc-level-3 {
  padding-left: 14px;
}

.post-toc-list .toc-level-4 {
  padding-left: 28px;
}

.post-toc-list a {
  color: #23452a;
  font-weight: 600;
}

.post-toc-list a:hover {
  color: var(--primary);
}

.single-content blockquote {
  margin: 20px 0;
  border-left: 4px solid var(--primary);
  padding: 8px 14px;
  background: var(--primary-soft);
}

.single-footer {
  padding-bottom: 22px;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-links a,
.button,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 14px;
  font-weight: 700;
}

.share-links a:hover,
.button:hover,
.search-submit:hover {
  background: var(--primary-dark);
  color: #fff;
}

.post-navigation-cards {
  margin-top: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.post-navigation-cards p {
  margin: 6px 0 0;
}

.related-posts {
  margin-top: 24px;
  padding: 18px;
}

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

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

.breadcrumbs {
  margin-top: 18px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs span {
  margin: 0 6px;
}

.comments-area {
  margin-top: 24px;
  padding: 20px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-field {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
}

.site-footer {
  margin-top: 40px;
  background: #183920;
  color: #d7ebd9;
  padding-top: 36px;
}

.site-footer h3,
.site-footer a {
  color: #f0fff1;
}

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

.footer-grid ul {
  margin: 0;
  padding-left: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
  padding: 14px 0;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

body.mobile-categories-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .homepage-grid,
  .two-col-layout,
  .featured-grid,
  .related-grid,
  .post-list-grid,
  .footer-grid,
  .post-navigation-cards {
    grid-template-columns: 1fr;
  }

  .post-card-large {
    grid-row: auto;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    width: 100%;
  }

  .main-navigation.is-open {
    display: block;
  }

  .header-wrap {
    gap: 10px;
  }

  .header-top-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .header-categories {
    display: none;
  }

  .mobile-categories-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(20, 29, 24, 0.4);
  }

  .mobile-categories-overlay.is-open {
    display: block;
  }

  .mobile-categories-sheet {
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .mobile-categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-categories-header h2 {
    margin: 0;
    font-size: 1.1rem;
  }

  .mobile-categories-close {
    border: 0;
    background: transparent;
    color: #172d1d;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
  }

  .mobile-categories-step {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 10px 0 24px;
  }

  .mobile-categories-step.is-active {
    display: block;
  }

  .mobile-main-categories-list,
  .mobile-subcategory-list,
  .mobile-subsubcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-main-category-button {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e7ece4;
    background: #fff;
    color: #16271a;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .mobile-main-category-arrow {
    color: #4f5c51;
    font-size: 1.3rem;
    line-height: 1;
  }

  .mobile-step-toolbar {
    padding: 10px 16px 14px;
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 10px;
  }

  .mobile-step-back {
    justify-self: start;
    border: 1px solid #cfdccf;
    background: #fff;
    color: #1f3725;
    border-radius: 4px;
    padding: 7px 10px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-main-category-link {
    color: #1d3824;
    font-size: 1.08rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-subcategory-item {
    border-bottom: 1px solid #ebefea;
    padding: 12px 16px;
  }

  .mobile-subcategory-link {
    color: #1f2f24;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-subsubcategory-list {
    margin-top: 8px;
    display: grid;
    gap: 5px;
  }

  .mobile-subsubcategory-list a {
    color: #44584a;
    font-size: 0.96rem;
    text-decoration: none;
  }

  .mobile-empty-note {
    margin: 14px 16px;
    color: #506453;
  }

  .header-nav-area {
    width: 100%;
    display: block;
  }

  .categories-mega {
    display: none;
  }

  .main-navigation ul {
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
  }

  .main-navigation a {
    min-height: 0;
  }

  .main-navigation .menu-item,
  .main-navigation .menu-item:hover,
  .main-navigation .menu-item.current-menu-item {
    border-bottom: 0;
  }
}
