/* === MATRADERECSKE LAPJA - Newspaper Style CSS === */

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

/* === Base === */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #2c2c2c;
  background-color: #faf8f5;
}

/* === Typography === */
h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.6em;
  color: #8b1a1a;
  font-weight: 700;
}

h2 {
  font-size: 1.9rem;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: #8b1a1a;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 0.4em;
  color: #2c2c2c;
  font-weight: 700;
}

h4 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.4em;
  color: #2c2c2c;
  font-weight: 700;
}

p {
  margin-bottom: 1em;
}

a {
  color: #8b1a1a;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #5a0f0f;
  text-decoration: underline;
}

ul,
ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  font-weight: 700;
  display: block;
  margin-bottom: 0.6em;
  font-size: 1.05rem;
}

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

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Site Header === */
.site-header {
  background-color: #8b1a1a;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* === Logo === */
.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.7rem;
  font-weight: 700;
  color: #faf8f5;
  font-family: Georgia, serif;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 0.8rem;
  color: #c8a96e;
  font-style: italic;
}

/* === Navigation === */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  color: #faf8f5;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 10px 14px;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-family: Georgia, serif;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background-color: rgba(200, 169, 110, 0.3);
  color: #c8a96e;
  text-decoration: none;
}

/* === Hamburger Toggle === */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid #c8a96e;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #faf8f5;
}

/* === Hero Section === */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 380px;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(139, 26, 26, 0.55) 100%
  );
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-overlay .container {
  position: relative;
  z-index: 1;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-overlay h1 {
  color: #faf8f5;
  font-size: 2.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.3em;
}

.hero-overlay p {
  color: #c8a96e;
  font-size: 1.2rem;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

.hero-sm {
  min-height: 220px;
}

.hero-sm .hero-overlay h1 {
  font-size: 2rem;
}

/* === Content Grid === */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

.main-content {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

/* === Section Titles === */
.section-title {
  border-bottom: 3px solid #8b1a1a;
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #c8a96e;
  margin-top: 4px;
}

/* === News Cards === */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.news-card {
  background-color: #fff;
  border: 1px solid #d4b896;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 16px rgba(139, 26, 26, 0.12);
}

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

.news-card-image-placeholder {
  width: 100%;
  height: 200px;
  background-color: #d4b896;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b1a1a;
  font-size: 1rem;
  font-style: italic;
}

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
  font-style: italic;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-excerpt {
  font-size: 0.95rem;
  color: #555;
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: #8b1a1a;
  text-decoration: underline;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: auto;
}

.read-more:hover {
  color: #5a0f0f;
}

/* === Featured News (top) === */
.news-featured {
  grid-column: 1 / -1;
}

.news-featured .news-card-image {
  height: 280px;
}

/* === 3-col grid on hirek page === */
.news-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* === Sidebar === */
.sidebar-widget {
  background-color: #fff;
  border: 1px solid #d4b896;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h2 {
  font-size: 1.3rem;
  border-bottom: 2px solid #8b1a1a;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.event-list {
  list-style: none;
  padding-left: 0;
}

.event-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee8e0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.event-list li:last-child {
  border-bottom: none;
}

.event-date {
  font-weight: 700;
  color: #8b1a1a;
  display: block;
  font-size: 0.9rem;
}

.event-name {
  display: block;
  color: #2c2c2c;
}

/* === Quote Divider === */
.quote-divider {
  background-color: #8b1a1a;
  color: #faf8f5;
  padding: 32px 0;
  text-align: center;
  margin: 40px 0;
}

.quote-divider blockquote {
  font-size: 1.3rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote-divider cite {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #c8a96e;
  font-style: normal;
}

/* === Events Page === */
.events-month {
  margin-bottom: 40px;
}

.events-month h2 {
  background-color: #8b1a1a;
  color: #faf8f5;
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.event-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #d4b896;
  align-items: start;
}

.event-item:last-child {
  border-bottom: none;
}

.event-item-date {
  font-weight: 700;
  color: #8b1a1a;
  font-size: 0.95rem;
  padding-top: 2px;
}

.event-item-details h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #2c2c2c;
}

.event-item-details p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

.event-item.featured {
  background-color: #fff8ee;
  border: 2px solid #c8a96e;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 8px 0;
}

.event-item.featured .event-item-details h3 {
  color: #8b1a1a;
  font-size: 1.2rem;
}

.event-badge {
  display: inline-block;
  background-color: #c8a96e;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: middle;
}

/* === Blog Page === */
.blog-post {
  background-color: #fff;
  border: 1px solid #d4b896;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

.blog-post-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.blog-post-body {
  padding: 28px;
}

.blog-post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 12px;
  font-style: italic;
}

.blog-post-meta .author {
  color: #8b1a1a;
  font-weight: 700;
  font-style: normal;
}

.blog-post-title {
  font-size: 1.6rem;
  color: #2c2c2c;
  margin-bottom: 16px;
}

.blog-post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

/* === Team / About Page === */
.mission-list {
  list-style: none;
  padding-left: 0;
}

.mission-list li {
  padding: 12px 16px;
  border-left: 4px solid #8b1a1a;
  margin-bottom: 12px;
  background-color: #fff;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.team-member {
  text-align: center;
  background-color: #fff;
  border: 1px solid #d4b896;
  border-radius: 6px;
  padding: 24px 16px;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #8b1a1a;
  color: #faf8f5;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.team-member h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-member p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: Georgia, serif;
  border: 2px solid #d4b896;
  border-radius: 4px;
  background-color: #fff;
  color: #2c2c2c;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #8b1a1a;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  background-color: #8b1a1a;
  color: #faf8f5;
  border: none;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-family: Georgia, serif;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #5a0f0f;
}

.contact-info h2 {
  border-bottom: 3px solid #8b1a1a;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.contact-info-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee8e0;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-info-item:last-of-type {
  border-bottom: none;
}

.contact-info-label {
  font-weight: 700;
  color: #8b1a1a;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 200px;
  background-color: #eee8e0;
  border: 1px solid #d4b896;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
  margin-top: 20px;
  font-size: 1rem;
}

/* === Legal Pages === */
.legal-content {
  max-width: 800px;
  padding: 40px 0;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #8b1a1a;
  border-bottom: 1px solid #d4b896;
  padding-bottom: 6px;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #2c2c2c;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.legal-content table th {
  background-color: #8b1a1a;
  color: #faf8f5;
  padding: 10px 12px;
  text-align: left;
}

.legal-content table td {
  padding: 10px 12px;
  border-bottom: 1px solid #d4b896;
}

.legal-content table tr:nth-child(even) td {
  background-color: #fff8ee;
}

/* === Impresszum === */
.impresszum-box {
  background-color: #fff;
  border: 1px solid #d4b896;
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 28px;
}

.impresszum-box dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 20px;
}

.impresszum-box dt {
  font-weight: 700;
  color: #8b1a1a;
}

.impresszum-box dd {
  color: #2c2c2c;
  margin: 0;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.9rem;
  color: #888;
  border-bottom: 1px solid #eee8e0;
  margin-bottom: 0;
}

.breadcrumb a {
  color: #8b1a1a;
}

.breadcrumb span {
  margin: 0 6px;
}

/* === Standalone Page Layout === */
.page-content {
  padding: 40px 0;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2c2c2c;
  color: #faf8f5;
  z-index: 9999;
  padding: 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.cookie-banner-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cookie-banner-content p {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #faf8f5;
  line-height: 1.6;
}

.cookie-more {
  font-size: 0.85rem !important;
  margin-top: 8px !important;
}

.cookie-more a {
  color: #c8a96e;
}

.cookie-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.btn-accept,
.btn-reject {
  padding: 12px 32px;
  font-size: 1rem;
  font-family: Georgia, serif;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  min-width: 140px;
  transition: all 0.2s;
}

.btn-accept {
  background-color: #8b1a1a;
  color: #faf8f5;
  border-color: #8b1a1a;
}

.btn-accept:hover {
  background-color: #5a0f0f;
  border-color: #5a0f0f;
}

.btn-reject {
  background-color: transparent;
  color: #faf8f5;
  border-color: #faf8f5;
}

.btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* === Site Footer === */
.site-footer {
  background-color: #3a2a1a;
  color: #d4b896;
  padding: 48px 0 0;
  margin-top: 60px;
}

.site-footer a {
  color: #c8a96e;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #faf8f5;
}

.site-footer strong {
  color: #faf8f5;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(212, 184, 150, 0.2);
}

.footer-about p {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding-left: 0;
}

.footer-nav li,
.footer-legal li {
  margin-bottom: 8px;
}

.footer-nav a,
.footer-legal a {
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  color: #9a8a7a;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* === Utility === */
.text-muted {
  color: #888;
  font-size: 0.9rem;
}

.mt-4 {
  margin-top: 2rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.page-section {
  padding: 40px 0;
  border-bottom: 1px solid #eee8e0;
}

.page-section:last-child {
  border-bottom: none;
}

/* === Responsive === */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

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

  .news-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .news-featured {
    grid-column: 1;
  }

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

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

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

  .impresszum-box dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .impresszum-box dt {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  h1 {
    font-size: 1.9rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background-color: #5a0f0f;
    padding: 8px 0;
    border-radius: 4px;
    margin-top: 8px;
  }

  .main-nav.nav-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 16px;
    border-radius: 0;
    font-size: 1.1rem;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background-color: rgba(200, 169, 110, 0.2);
  }

  .news-grid-3 {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: 260px;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .logo-main {
    font-size: 1.3rem;
  }

  .logo-sub {
    font-size: 0.72rem;
  }
}
