/* 🌿 Alapstílusok */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f9f7;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 1rem;
}

h1, h2 {
  color: #006d5b;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

ul {
  padding-left: 1.2rem;
}

.highlight {
  background-color: #e0f7f4;
  padding: 1rem;
  border-left: 4px solid #00a88f;
  margin-bottom: 1.5rem;
}

.cta {
  background-color: #006d5b;
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  margin-top: 2rem;
}

a {
  color: #007c6c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 🎯 Gombszerű linkek */
a.button-link {
  display: inline-block;
  background-color: #00a88f;
  color: white;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

a.button-link:hover {
  background-color: #00c4aa;
}

/* 📐 Fejléc */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.header img {
  height: 60px;
  max-width: 100%;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #006d5b;
  flex: 1;
  text-align: left;
}

/* 📐 Tartalmi sorok */
.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
}

.text-block {
  flex: 1;
  text-align: justify;
  padding-right: 20px;
}

.stamp-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

/* 🖼️ Logók */
.logo-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.pdf-button-container {
  float: right;
  margin-top: -2.5rem;
}

.pdf-button {
  background-color: #b2dcd5; /* halvány zöldes árnyalat */
  color: #004c40;
}

.pdf-button:hover {
  background-color: #a0cfc7;
}

/* 📱 Mobilbarát finomhangolás */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  h2 {
    font-size: 1.2rem;
  }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header h1 {
    font-size: 1.4rem;
    text-align: center;
  }

  .header img {
    height: auto;
    max-width: 80%;
  }

  .flex-row {
    flex-direction: column;
    align-items: center;
    text-align: justify;
  }
  
  .pdf-button-container {
    float: none;
    display: block;
    text-align: center;
    margin-top: 1rem;
  }

  .text-block {
    padding-right: 0;
  }

  .stamp-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-top: 1rem;
  }

  .cta {
    font-size: 1rem;
    padding: 0.8rem;
  }

  a.button-link {
    display: block;
    text-align: center;
    margin: 1rem auto;
    width: fit-content;
  }

  .logo-container {
    text-align: center;
    margin-bottom: 1rem;
  }

  .logo-container img {
    max-width: 80%;
    height: auto;
  }
}

/* 🔚 Lábléc */
.site-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 3rem;
  padding: 1rem 0;
  border-top: 1px solid #ccc;
  background-color: #f4f9f7;
}

.language-switcher {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.language-switcher a {
  display: inline-block;
}

.language-switcher img {
  width: 24px;
  height: 18px;
  vertical-align: middle;
 /* border: 1px solid #ccc;
  border-radius: 2px; */
  transition: transform 0.2s ease;
}

/* Hover effekt */
.language-switcher img:hover {
  transform: scale(1.1);
  border-color: #00a88f;
}

/* 📱 Mobilbarát finomhangolás */
@media (max-width: 768px) {
  .language-switcher img {
    width: 20px;
    height: 14px;
  }

  .site-footer {
    font-size: 0.85rem;
    padding: 1rem;
  }
}

/* ========== ESG 2026 SPECIFIKUS STÍLUSOK ========== */

/* Fő kép stílus */
.main-image {
  margin: 2rem 0;
  text-align: center;
}

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Táblázat stílus */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

th {
  background-color: #1b5e20;
  color: white;
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.8rem;
  border-bottom: 1px solid #e0e0e0;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:hover {
  background-color: #e8f5e9;
}

/* Konklúzió speciális doboz */
.highlight.conclusion {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-left: 4px solid #f44336;
  margin: 2rem 0;
}

/* Fejléc cím frissítés */
.header h1 {
  color: #1b5e20;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}

/* PDF gomb konténer */
.pdf-button-container {
  display: block;
  margin-top: 1rem;
}

.pdf-button {
  background-color: #f44336 !important;
}

.pdf-button:hover {
  background-color: #d32f2f !important;
}

/* Reszponzív táblázatok */
@media (max-width: 768px) {
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  .featured-image {
    border-radius: 4px;
  }
  
  /* Kis képernyőkön táblázat görgethető */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .header h1 {
    font-size: 1.3rem;
  }
}

/* LEGAL SOURCES STYLES */
.legal-sources {
  background-color: #f0f7ff;
  border-left: 4px solid #0066cc;
  padding: 1.5rem;
  margin: 3rem 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0, 102, 204, 0.1);
}

.legal-sources h2 {
  color: #0066cc;
  border-bottom: 2px solid #66b3ff;
  margin-top: 0;
}

.source-category {
  margin: 2rem 0;
  padding: 1rem;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.source-category h3 {
  color: #1b5e20;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.source-category h4 {
  color: #2e7d32;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem 0;
}

.source-link {
  color: #0066cc;
  text-decoration: none;
  padding: 0.3rem 0;
  display: inline-block;
  transition: all 0.2s ease;
}

.source-link:hover {
  color: #004d99;
  text-decoration: underline;
  transform: translateX(2px);
}

.source-link strong {
  font-weight: 600;
}

.note {
  background-color: #fff8e1;
  border-left: 4px solid #ffb300;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.note strong {
  color: #ff6f00;
}

@media (max-width: 768px) {
  .legal-sources {
    padding: 1rem;
    margin: 2rem 0;
  }
  
  .source-category {
    padding: 0.8rem;
  }
}

/* Navigációs gombok stílusa */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1rem 0;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-button {
  display: inline-block;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: white;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-button:hover {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* Reszponzív gombok */
@media (max-width: 768px) {
  .nav-buttons {
    gap: 8px;
    padding: 0.8rem;
  }
  
  .nav-button {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .nav-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-button {
    width: 100%;
    max-width: 300px;
  }
}

/* Anchor offset for fixed header */
:target::before {
  content: '';
  display: block;
  height: 80px;
  margin-top: -80px;
  visibility: hidden;
}