/*
Theme Name: Nyeronap
Theme URI: https://nyeronap.hu
Author: The Pitch
Description: Modern blog theme for gambling magazine
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nyeronap
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #f4f5ed;
  color: #1c1918;
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HEADER
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #f4f5ed;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  background: rgba(244, 245, 237, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1c1918;
}

.logo a {
  display: block;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: #57534e;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #a2b04a;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #1c1918;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  padding: 120px 0 60px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-slides {
  position: relative;
  min-height: 450px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-content {
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-category {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #60692c;
  background: #eceddd;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid #dce0c1;
  margin-bottom: 24px;
}

.hero-title {
  font-family: "Manrope", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: #1c1918;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-excerpt {
  font-size: 17px;
  color: #57534e;
  line-height: 1.7;
  margin-bottom: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-content > .btn-primary {
  align-self: flex-start;
  flex-shrink: 0;
  width: fit-content;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
}

/* Hero Navigation - Jobb oldalra */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 40px;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8e7e6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-arrow:hover {
  background: #a2b04a;
  border-color: #a2b04a;
}

.hero-arrow:hover svg {
  stroke: #fff;
}

.hero-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #1c1918;
  stroke-width: 2;
  fill: none;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: #a2b04a;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #8f9c40;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: #ffffff;
  color: #1c1918;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid #ebe9e8;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #fafaf7;
  border-color: #e2e6c8;
  transform: translateY(-2px);
}

/* ========================================
   SECTION HEADER
======================================== */
.section-header {
  margin-bottom: 40px;
}

.section-header.left {
  text-align: left;
}

.section-header.center {
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #60692c;
  background: rgba(162, 176, 74, 0.15);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #a2b04a;
  border-radius: 50%;
}

.section-title {
  font-family: "Manrope", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: #1c1918;
  letter-spacing: -0.02em;
}

.section-title span {
  color: #a2b04a;
}

.section-subtitle {
  font-size: 16px;
  color: #57534e;
  margin-top: 12px;
  line-height: 1.6;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

/* ========================================
   E HETI VÁLOGATÁS (Cultivated Section)
======================================== */
.cultivated-section {
  background: #080a08;
  padding: 80px 0;
}

.cultivated-section .section-title {
  color: #ffffff;
}

.cultivated-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.cultivated-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.cultivated-card {
  position: relative;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #223025;
  cursor: pointer;
  transition: all 0.4s ease;
}

.cultivated-card:hover {
  border-color: #c7d466;
  box-shadow: 0 0 30px rgba(199, 212, 102, 0.3);
}

.cultivated-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.cultivated-card:hover .cultivated-card-bg {
  transform: scale(1.08);
}

.cultivated-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 30%, rgba(11, 15, 12, 0.9) 100%);
  z-index: 1;
}

.cultivated-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.cultivated-category {
  display: inline-block;
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: #a3b04c;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 3;
}

.cultivated-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.cultivated-excerpt {
  font-size: 15px;
  color: #a3b04c;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  max-height: 0;
  overflow: hidden;
}

.cultivated-card:hover .cultivated-excerpt {
  opacity: 1;
  transform: translateY(0);
  max-height: 100px;
  margin-top: 8px;
}

/* ========================================
   GYAKOROLJ VELÜNK SECTION
======================================== */
.practice-section {
  background: #1f1d19;
  padding: 80px 0;
}

.practice-section .section-title {
  color: #ffffff;
}

.practice-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.practice-card {
  background: #171717;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #262624;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.practice-card:hover {
  border-color: #a2b04a;
}

.practice-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.practice-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.practice-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #a2b04a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.practice-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.practice-card p {
  font-size: 14px;
  color: #a1a1a1;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.practice-card .btn-primary {
  padding: 12px 24px;
  font-size: 14px;
  align-self: flex-start;
  margin-top: auto;
}

/* ========================================
   AKTUALITÁSOK SECTION
======================================== */
.news-section {
  background: #f4f5ed;
  padding: 80px 0;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.news-image-wrapper {
  position: relative;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: #e8e7e6;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.news-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.news-image.active {
  opacity: 1;
}

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

.news-content .section-header {
  margin-bottom: 32px;
}

.news-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e8e7e6;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: #a2b04a;
  box-shadow: 0 4px 20px rgba(162, 176, 74, 0.15);
}

.news-card-text {
  flex: 1;
}

.news-card-text h4 {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #1c1918;
  line-height: 1.3;
  margin-bottom: 6px;
}

.news-card-text p {
  font-size: 14px;
  color: #57534e;
  line-height: 1.5;
}

.news-card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f5ed;
  border: 1px solid #e8e7e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.news-card:hover .news-card-arrow {
  background: #a2b04a;
  border-color: #a2b04a;
}

.news-card:hover .news-card-arrow svg {
  stroke: #fff;
}

.news-card-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #1c1918;
  stroke-width: 2;
  fill: none;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e8e7e6;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}

.footer-column h4 {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1c1918;
  margin-bottom: 20px;
}

.footer-logo {
  display: block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
}

.footer-tagline {
  font-size: 15px;
  color: #57534e;
  line-height: 1.7;
}

.footer-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-post {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-post img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-post-title {
  font-size: 14px;
  font-weight: 500;
  color: #1c1918;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.footer-post:hover .footer-post-title {
  color: #a2b04a;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 15px;
  color: #57534e;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a2b04a;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e8e7e6;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #57534e;
}

/* ========================================
   SINGLE POST
======================================== */
.single-post-header {
  padding: 140px 0 40px;
}

.breadcrumbs {
  font-size: 14px;
  color: #57534e;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: #57534e;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: #a2b04a;
}

.breadcrumbs span {
  margin: 0 8px;
  color: #d4d4d4;
}

.single-post-title {
  font-family: "Manrope", sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  color: #1c1918;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.single-post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: #57534e;
}

.single-post-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #60692c;
  background: #eceddd;
  padding: 6px 14px;
  border-radius: 50px;
}

.single-post-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 50px;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  padding-bottom: 80px;
}

.single-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #1c1918;
}

.single-post-content p {
  margin-bottom: 24px;
}

.single-post-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 500;
  margin: 40px 0 20px;
  line-height: 1.3;
}

.single-post-content h3 {
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 500;
  margin: 32px 0 16px;
  line-height: 1.3;
}

.single-post-content h4 {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 24px 0 12px;
  line-height: 1.3;
}

.single-post-content a {
  color: #a2b04a;
  text-decoration: underline;
}

.single-post-content a:hover {
  color: #8f9c40;
}

.single-post-content img {
  border-radius: 12px;
  margin: 24px 0;
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 2em;
  margin-bottom: 1.5em;
}

.single-post-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* Sidebar */
.single-post-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-title {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1c1918;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #a2b04a;
}

.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-post {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e7e6;
}

.sidebar-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-post img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-post-content h4 {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1c1918;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.sidebar-post:hover h4 {
  color: #a2b04a;
}

.sidebar-post-category {
  font-size: 12px;
  color: #a2b04a;
  font-weight: 500;
}

/* ========================================
   ARCHIVE PAGE
======================================== */
.archive-header {
  padding: 140px 0 40px;
  text-align: center;
}

.archive-title {
  font-family: "Manrope", sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: #1c1918;
  letter-spacing: -0.02em;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 60px;
}

.archive-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e7e6;
  transition: all 0.3s ease;
}

.archive-card:hover {
  border-color: #a2b04a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.archive-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.archive-card-content {
  padding: 20px;
}

.archive-card-category {
  font-size: 12px;
  font-weight: 500;
  color: #a2b04a;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.archive-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1c1918;
  line-height: 1.3;
}

.archive-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 40px 0 80px;
}

/* ========================================
   PAGE TEMPLATE
======================================== */
.page-header {
  padding: 140px 0 40px;
  text-align: center;
}

.page-title {
  font-family: "Manrope", sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: #1c1918;
  letter-spacing: -0.02em;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
  font-size: 17px;
  line-height: 1.8;
  color: #1c1918;
}

.page-content p {
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 500;
  margin: 40px 0 20px;
  line-height: 1.3;
}

.page-content h3 {
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 500;
  margin: 32px 0 16px;
  line-height: 1.3;
}

.page-content a {
  color: #a2b04a;
  text-decoration: underline;
}

.page-content a:hover {
  color: #8f9c40;
}

.page-content ul,
.page-content ol {
  padding-left: 2em;
  margin-bottom: 1.5em;
}

.page-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* ========================================
   404 ERROR PAGE
======================================== */
.error-404-section {
  padding: 140px 0 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.error-404-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.error-404-code {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: #a2b04a;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.3;
}

.error-404-title {
  font-family: "Manrope", sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: #1c1918;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.error-404-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: #1c1918;
  margin-bottom: 16px;
}

.error-404-text {
  font-size: 17px;
  color: #57534e;
  line-height: 1.7;
  margin-bottom: 32px;
}

.error-404-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.error-404-suggestions {
  max-width: 900px;
  margin: 0 auto;
}

.error-404-suggestions h2 {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #1c1918;
  text-align: center;
  margin-bottom: 32px;
}

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

.error-404-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8e7e6;
  text-decoration: none;
  transition: all 0.3s ease;
}

.error-404-card:hover {
  border-color: #a2b04a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.error-404-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.error-404-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1c1918;
  padding: 16px;
  line-height: 1.4;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-slides {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-slide:not(.active) {
    position: absolute;
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
    align-items: center;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-image img {
    height: 350px;
  }

  .hero-nav {
    justify-content: center;
  }

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

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

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

  .single-post-sidebar {
    position: static;
    border-top: 1px solid #e8e7e6;
    padding-top: 40px;
    margin-top: 40px;
  }

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

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

  .news-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-image-wrapper {
    height: 350px;
    order: -1;
  }

  .error-404-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    position: relative;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #f4f5ed;
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: flex-end;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
    color: #1c1918;
    text-align: right;
  }

  .hero-section {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-excerpt {
    font-size: 15px;
  }

  .hero-image img {
    height: 280px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-content > .btn-primary {
    align-self: stretch;
    width: 100%;
  }

  .hero-category {
    align-self: center;
    width: auto;
  }

  .section-title {
    font-size: 28px;
  }

  .cultivated-section,
  .practice-section {
    padding: 60px 0;
  }

  .cultivated-grid,
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .cultivated-card {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .single-post-title {
    font-size: 32px;
  }

  .single-post-image {
    height: 300px;
  }

  .archive-title,
  .page-title {
    font-size: 36px;
  }

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

  .news-section {
    padding: 60px 0;
  }

  .news-image-wrapper {
    height: 280px;
  }

  .news-card {
    padding: 16px 20px;
  }

  .news-card-text h4 {
    font-size: 15px;
  }

  .news-card-arrow {
    width: 36px;
    height: 36px;
  }

  .error-404-section {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .error-404-code {
    font-size: 80px;
  }

  .error-404-title {
    font-size: 32px;
  }

  .error-404-subtitle {
    font-size: 20px;
  }

  .error-404-grid {
    grid-template-columns: 1fr;
  }

  .error-404-card h3 {
    font-size: 15px;
  }
}
