* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #003366;
    color: white;
    width: 100%;
}

body {
  background: linear-gradient(180deg, #002a55 0%, #001a33 100%);
}

/* Zabrání scrollování stránky při otevřeném mobilním menu */
body.menu-open {
  overflow: hidden;
}



/* Úvodní logo */
.logo-image {
  width: 70px; /* Optimalizovaná šířka */
  height: auto; /* Zachová proporce obrázku */
  max-width: 70%; /* Zabrání přetečení obrázku */
  display: block; /* Zamezí inline chování */
}

@media (max-width: 1024px) {
  .logo-image {
    width: 50px; /* Menší velikost loga na mobilních zařízeních */
  }
}




/* === NAVBAR (sjednocený styl s footerem) === */
.navbar {
  width: 100%;
  background: linear-gradient(180deg, #001a33 0%, #002244 100%);
  border-bottom: 2px solid #3EB489; /* zelený akcent jako u footeru */
  color: #ffffff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-image {
  height: 40px;
  width: auto;
}

/* === Menu === */
.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.menu a:hover {
  color: #3EB489;
  border-bottom: 1px solid #3EB489;
}

/* === Aktivní stránka (např. Population) === */
.menu a.active {
  color: #3EB489;
  border-bottom: 2px solid #3EB489;
  font-weight: 600;
}

/* === Nadřazená kategorie (např. Demography) === */
.menu a.active-parent {
  color: #3EB489;
  font-weight: 500;
  border-bottom: 2px solid rgba(62, 180, 137, 0.4); /* jemnější linka */
}



/* === Submenu === */
.menu-item,
.submenu-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  background-color: #002244;
  border: 1px solid #3EB489;
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1100;
}

.submenu-level-2 {
  top: -10px;
  left: 100%;
}

.menu-item:hover > .submenu,
.submenu-item:hover > .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 9px 15px;
  color: #ffffff;
  white-space: nowrap;
  border-bottom: none;
}

.submenu a:hover {
  background-color: rgba(62, 180, 137, 0.1);
  color: #3EB489;
  border-bottom: none;
}

.submenu a.active {
  background-color: rgba(62, 180, 137, 0.15);
  color: #3EB489;
  border-radius: 4px;
}



/* === Přepínač jazyků === */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  margin-left: 1rem;
  white-space: nowrap;
}

/* odkazy */
.language-switcher a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0 6px;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* hover */
.language-switcher a:hover {
  color: #3EB489;
  text-decoration: underline;
}

/* aktivní jazyk – ZACHOVÁNO */
.language-switcher a.active-lang {
  color: #3EB489;
  text-decoration: underline;
  font-weight: 600;
}

/* oddělovač | pouze mezi EN a CZ */
.language-switcher a:not(:last-child)::after {
  content: "|";
  color: #3EB489;
  position: absolute;
  right: -8px;
}




  /* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none; /* desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* === Mobilní verze === */
@media (max-width: 1024px) {
.menu {
    position: fixed;
    top: 64px;              /* výška navbaru */
    right: 0;
    width: 100%;
    max-width: 320px;

    height: calc(100vh - 64px);
    overflow-y: auto;

    flex-direction: column;
    align-items: flex-start;

    background: linear-gradient(180deg, #002244 0%, #00162e 100%);
    border-left: 1px solid #3EB489;

    padding: 20px;

    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .menu.show {
    transform: translateX(0);
  }

  /* Pravá část navbaru */
  .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto; /* drží celý blok vpravo */
  }

  /* Jazykový přepínač */
  .language-switcher {
    display: flex;
    align-items: center;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Hamburger tlačítko */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 28px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    display: block;
  }

  /* === DOPLNĚNÍ PRO SUBMENU NA MOBILU === */
 .submenu,
.submenu-level-2 {
  position: static;
  display: block;
  width: 100%;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 4px 0 4px 16px;
}

.submenu-level-2 {
  padding-left: 18px;
}

.submenu a {
  padding: 8px 0;
  white-space: normal;
}

.menu-item,
.submenu-item {
  width: 100%;
}

  .menu-item > a {
    width: 100%;
  }
}
















/* Definování pravidel pro pozicování titulků nad tabulkama */
.section-table-title-container {
    max-width: 30%;
    margin: 40px auto;
}

/* Definování pravidel pro vizualizaci titulků nad tabulkama */
.section-table-title-visual {
    text-align: center;
    padding: 10px 0;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}









/* Sekce pro přepínání mezi mapou a tabulkou */
/* === Hlavní sekce / rámečky === */
.dynamic-section {
  width: 80%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;

  /* Moderní card styl */
  background: linear-gradient(145deg, #002b55, #003b70);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.dynamic-section p {
  margin-bottom: 1.2em;
  line-height: 1.6;
  text-align: justify;
  color: #f8fafc;
}
.dynamic-section h2 {
  margin-bottom: 1em;
  color: #3EB489;
  font-weight: 600;
}
.dynamic-section h3 {
  margin-top: 1.5em;
  margin-bottom: 1em;
  color: #3EB489;
  font-weight: 600;
}
.highlight-soft {
  color: #3EB489;
}

.dynamic-section:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Privacy Policy, About, Contact - úprava nadpisů h1,2,3 */
.legal-section h1 {
  margin-bottom: 40px;
}
.legal-section h2 {
  text-align: left;
  margin-top: 50px;
  margin-bottom: 20px;
}

.legal-section h3 {
  text-align: left;
  margin-top: 1.5em;
  margin-bottom: 1em;
}



/* --- Tablety --- */
@media (max-width: 1024px) {
  .dynamic-section {
    width: 90%;
  }
}

/* --- Mobily --- */
@media (max-width: 600px) {
  .dynamic-section {
    width: 95%;
    border-radius: 12px;
    padding: 16px;
  }
}





.dynamic-section:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Uvnitř sekce (např. mapa, tabulka, graf) */
.dynamic-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  min-height: 300px;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.dynamic-content:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Skrytí všech sekcí kromě aktivní */
.content {
  display: none;
}

.content.active {
  display: block;
}

/* Přepínací tlačítka */
.toggle-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.toggle-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  background-color: #004488;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background-color: #1565C0;
}

.toggle-btn.active {
  background-color: #3EB489;
  color: #fff;
}

.toggle-btn:focus {
  outline: 2px solid #3EB489; /* zelené zvýraznění při focusu */
  outline-offset: 3px;        /* malý odstup od tlačítka */
}







/* === ARCHIVE SECTION === */
.archive-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.archive-gallery figure {
  position: relative;
  margin: 1em;
  background: #ffffff;
  border: 2px solid rgba(62, 180, 137, 0.25); /* jemný zelený rámeček */
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.archive-gallery figure:hover {
  transform: translateY(-4px);
  border-color: #3EB489; /* zvýraznění akcentní zelenou */
  box-shadow: 0 10px 20px rgba(62, 180, 137, 0.25);
}

.archive-gallery img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid rgba(62, 180, 137, 0.15);
}

.archive-gallery figcaption {
  padding: 0.75em;
  text-align: center;
  font-size: 0.95rem;
  color: #333;
  background: #f8f9fa;
  width: 100%;
  border-top: 1px solid rgba(62, 180, 137, 0.15);
  font-weight: 500;
}



/* === LIGHTBOX STYLING === */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

#lightbox:target {
  display: flex;
}

/* Zavírací křížek */
#lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 32px;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 38px;
  transition: background 0.3s ease;
}

#lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}





/* === Modern Table Styling === */

.table-modern {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

.table-modern th,
.table-modern td {
  padding: 14px 18px;
  text-align: left;
}

.table-modern thead {
  background: linear-gradient(to right, #0f2027, #203a43);
  color: white;
}

.table-modern tbody tr {
  border-bottom: 1px solid #e5e5e5;
  transition: background 0.2s ease;
}

.table-modern tbody tr:hover {
  background-color: #509773;
}

.table-note {
  margin-top: 15px;
  font-size: 0.85rem;
  opacity: 0.8;
}


/* === Badge Style (Universal) === */

.badge {
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-very-high {
  background-color: #c62828;
  color: white;
}

.badge-high {
  background-color: #ef6c00;
  color: white;
}

.badge-moderate {
  background-color: #f9a825;
  color: white;
}

.badge-low {
  background-color: #43a047;
  color: white;
}

.badge-very-low {
  background-color: #1e88e5;
  color: white;
}


/* === Appreciation / Depreciation Styling === */

.change.appreciation {
  color: #2e7d32;
  font-weight: 600;
}

.change.depreciation {
  color: #c62828;
  font-weight: 600;
}






/* ================= HERO ================= */

.hero {
  background: linear-gradient(180deg, #0f1c2e 0%, #16263f 100%);
  color: white;
  padding: 90px 20px;
  text-align: center;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  color: #ffffff;
}

.hero-subtitle {
  opacity: 0.75;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.hero-big-number {
  margin-bottom: 50px;
}

.hero-label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 10px;
}

.hero-source {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.65;
  font-weight: 400;
}

.hero-number {
  font-size: 56px;
  font-weight: 700;
  color: #3EB489;
  letter-spacing: 1px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s ease;
}

.hero-card:hover {
  background: rgba(255,255,255,0.08);
}

.hero-card-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

.hero-card-number {
  font-size: 22px;
  font-weight: 600;
}

/* ================= HOMEPAGE SECTIONS ================= */

.homepage-section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.homepage-light {
  background: #f8f9fb;
}

.homepage-section h2 {
  margin-bottom: 40px;
}

/* ================= SECTION TITLE SYSTEM ================= */

.section-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 40px;
}

/* ================= TOPIC GRID ================= */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.topic-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.topic-card h3 {
  margin-bottom: 10px;
  color: #3EB489;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  background: #3EB489;
  border-radius: 999px;
  vertical-align: middle;
}


/* === HOMEPAGE: THEMATIC NAVIGATION === */
.thematic-navigation {
  background: linear-gradient(180deg, #0b2238 0%, #102e4a 100%);
  padding: 80px 0;
  width: 100%;
}

.thematic-navigation .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* tmavé pozadí */
.thematic-navigation .section-title {
  color: #ffffff;
}

.thematic-navigation p {
  color: #2c3e50;  /* tmavší text */
}

/* === HOMEPAGE: ABOUT SECTION === */
.about-section {
  background: #f4f6f9;
  padding: 60px 20px;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* světlé pozadí */
.about-section .section-title {
  color: #0a2a43;
  margin-bottom: 30px;
}

.about-section h2 {
  color: #0a2a43;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c3e50;
  margin-bottom: 20px;
}




/* === Landing Pages === */

.landing-hero {
  background: linear-gradient(180deg, #0f1c2e 0%, #16263f 100%);
  padding: 90px 20px 70px;
  text-align: center;
}

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-container.narrow {
  max-width: 850px;
}

.landing-kicker {
  color: #3EB489;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.landing-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.landing-lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #d7e3f4;
}

.landing-section {
  padding: 70px 20px;
  background: linear-gradient(180deg, #0b2238 0%, #102e4a 100%);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.landing-card {
  display: block;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.landing-card h3 {
  color: #3EB489;
  margin-bottom: 12px;
}

.landing-card p {
  line-height: 1.6;
  margin-bottom: 18px;
}

.landing-card span {
  color: #003366;
  font-weight: 600;
}

.landing-context {
  padding: 70px 20px;
  background: #f4f6f9;
  color: #1f2937;
}

.landing-context h2 {
  color: #0a2a43;
  margin-bottom: 24px;
}

.landing-context p {
  line-height: 1.8;
  margin-bottom: 18px;
}

.landing-seo-intro {
  padding: 70px 20px;
  background: #ffffff;
  color: #1f2937;
}

.landing-seo-intro h2 {
  color: #0a2a43;
  margin-bottom: 24px;
}

.landing-seo-intro p {
  line-height: 1.8;
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .landing-hero h1 {
    font-size: 2.2rem;
  }

  .landing-hero {
    padding: 70px 18px 55px;
  }

  .landing-section,
  .landing-context {
    padding: 50px 18px;

  }
  .landing-seo-intro {
    padding: 50px 18px;
  }
}




/* === FOOTER (Gradient styl, sjednocený s navbar) === */
.footer-container {
  width: 100%;
  background: linear-gradient(180deg, #002244 0%, #00162e 100%);
  color: #e0e8f5;
  border-top: 2px solid #3EB489;
  padding: 15px 25px 15px;
  text-align: center;
}

.footer {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-links a:hover {
  color: #3EB489;
  text-decoration: underline;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #aab4cc;
  margin: 5px 0 0;
}

/* === Responsivita (mobilní zařízení) === */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}


/* ================= RESPONSIVE ================= */

/* Large desktop */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* Tablet */

/* Mobile */
