@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;0,800;0,900;1,700&family=Barlow:wght@400;500;600;700&display=swap');

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

:root {
  --green: #1a7a3c;
  --green-dark: #0d2e14;
  --green-mid: #145e2e;
  --green-light: #e8f5e9;
  --white: #ffffff;
  --text: #111111;
  --muted: #555555;
  --hint: #888888;
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.14);
  --bg: #ffffff;
  --bg2: #f4f5f2;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f0f0ee;
    --muted: #aaaaaa;
    --hint: #666666;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.13);
    --bg: #141614;
    --bg2: #1b1d1b;
    --green-light: #0a2410;
  }
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg2);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  width: 100%;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--green);
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.15s;
}

.nav-links a:hover, .nav-links a.active { color: #fff; }

.lang-switch {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 5px 14px;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.lang-switch:hover { border-color: #fff; }

/* ── HERO ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border2);
  min-height: 400px;
}

.hero-main {
  padding: 40px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.new-badge {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero-title a:hover { color: var(--green); }

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-meta {
  font-size: 13px;
  color: var(--hint);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dot { color: var(--border2); }

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 540px;
  overflow: hidden;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--hint);
  font-size: 14px;
  gap: 12px;
}

/* ── RAIL ── */
.recent-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border2);
}

.rail-item {
  padding: 0;
  border-right: 1px solid var(--border);
  display: block;
  transition: background 0.15s;
  cursor: pointer;
  overflow: hidden;
}

.rail-item-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: var(--bg2);
}

.rail-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.rail-item:hover .rail-item-img img { transform: scale(1.04); }

.rail-item-body {
  padding: 12px 18px;
}

.rail-item:last-child { border-right: none; }
.rail-item:hover { background: var(--bg2); }

.ri-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 6px;
}

.ri-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 6px;
}

.rail-item:hover .ri-title { color: var(--green); }
.ri-meta { font-size: 12px; color: var(--hint); }

/* ── TWO COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  width: 100%;
  background: var(--bg);
}

.main-col { border-right: 1px solid var(--border); }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 16px;
  border-bottom: 3px solid var(--green-dark);
}

.sec-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.sec-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green);
}

.post-list { padding: 0 28px; }

.post-row {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.post-row:last-child { border-bottom: none; }
.post-row:hover .post-title { color: var(--green); }

.post-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 4px;
}

.post-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 4px;
  transition: color 0.15s;
}

.post-meta { font-size: 12px; color: var(--hint); }

/* ── SIDEBAR ── */
.sidebar { background: var(--bg); }

.side-sec {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.side-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green-dark);
}

.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s;
}

.cat-item:last-child { border-bottom: none; }
.cat-item:hover { color: var(--green); }

.cat-count {
  background: var(--green-light);
  color: var(--green-mid);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 2px;
}

/* ── FOOTER ── */
.footer {
  width: 100%;
  background: var(--green-dark);
  padding: 56px 40px 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-newsletter p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-newsletter input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-family: 'Barlow', sans-serif;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.3); }

.footer-newsletter button {
  width: 100%;
  padding: 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.15s;
}

.footer-newsletter button:hover { background: var(--green-mid); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p, .footer-bottom a {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── ARTICLE ── */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  background: var(--bg);
}

.article-header { margin-bottom: 28px; }

.article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 12px 0;
}

.article-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-img {
  margin-bottom: 36px;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.article-body { font-size: 17px; line-height: 1.8; }
.article-body p { margin-bottom: 1.3em; }

.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.back-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green);
}

/* ── STATIC PAGES ── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  background: var(--bg);
}

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 44px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 32px 0 12px;
  color: var(--green);
}

.page-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── UPCOMING ── */
.upcoming-banner {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 100px 40px;
}

.upcoming-star { font-size: 56px; margin-bottom: 20px; }

.upcoming-banner h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.upcoming-banner p { font-size: 17px; color: rgba(255,255,255,0.6); }

/* ── SUBMIT FORM ── */
.submit-form input,
.submit-form textarea,
.submit-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 16px;
  font-family: 'Barlow', sans-serif;
  transition: border 0.15s;
}

.submit-form input:focus,
.submit-form textarea:focus { outline: none; border-color: var(--green); }

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

.submit-form button {
  padding: 13px 32px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.submit-form button:hover { background: var(--green-dark); }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 120px 40px;
}

.not-found h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 120px;
  font-weight: 900;
  color: var(--border2);
  line-height: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 360px; }
  .hero-title { font-size: 42px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; height: 56px; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { padding: 28px 20px; }
  .hero-title { font-size: 34px; }
  .hero-img { min-height: 240px; }
  .recent-rail { grid-template-columns: 1fr; }
  .rail-item { border-right: none; border-bottom: 1px solid var(--border); }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { border-top: 1px solid var(--border); }
  .footer { padding: 40px 20px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .article-wrap, .page-wrap { padding: 32px 20px 60px; }
}
