/*
Theme Name: Rybáři Měřín 2.0
Description: Věrná rekonstrukce podle schváleného screenshotu (v6.0).
Version: 6.0
Author: Antigravity
Text Domain: rybarimerin
*/


:root {
  /* Water Palette */
  --water-light: #e0f2f1; /* Den nad hladinou */
  --water-mid: #0b3a47; /* Přechod pod vodu */
  --water-deep: #03151b; /* Úplné dno */
  
  /* Accents */
  --accent-green: #2c9384;
  --accent-bright: #38bdf8;
  
  /* Text & Surfaces */
  --text-main: #334155; /* Na světlém */
  --text-light: #f1f5f9; /* Na tmavém */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Legacy mapping to prevent breakage before full refactor */
  --blue-dark: var(--water-mid);
  --blue-accent: var(--water-deep);
  --green: var(--accent-green);
  --text-white: var(--text-light);
  --text-muted: rgba(255, 255, 255, 0.7);
  --bg-light: #f5f7f8;
  --bg-dark: #15545c;
  --text-dark: #1a1a1a;
  --text-on-dark: #ffffff;
  
  --radius: 16px;
  --sh-box: 0 10px 30px rgba(11, 58, 71, 0.08);
  --sh-box-dark: 0 30px 60px rgba(0, 0, 0, 0.3);
  --tr: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; height: 100%; }
html, body { overflow-x: clip; width: 100%; }
body { min-height: 100%; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main#primary {
  flex: 1 0 auto;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===================== HLAVIČKA ===================== */
.premium-header {
  min-height: 75px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(11, 58, 71, 0.05);
  transition: all 0.4s ease;
}

.premium-header.scrolled {
  background: var(--header-bg); /* Keeping it consistent */
  box-shadow: 0 4px 25px rgba(11, 58, 71, 0.1);
  min-height: 65px;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; height: 100%; }

.logo-wrap { display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; transition: var(--tr); }
.logo-wrap:hover { opacity: 0.8; transform: translateY(-1px); }
.logo-icon { width: 50px; height: 50px; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.5rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.5px; color: var(--water-deep); }
.logo-subtitle { font-size: 0.8rem; font-weight: 600; color: var(--accent-green); text-transform: uppercase; letter-spacing: 1px; }

.header-right { display: flex; align-items: center; justify-content: space-between; flex-grow: 1; gap: 20px; }
.nav-primary { display: flex; justify-content: center; flex-wrap: nowrap; margin: 0 auto; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }

/* CTA Button */
.btn-header-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--button-bg); color: var(--button-text);
  padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  box-shadow: 0 4px 15px rgba(11, 58, 71, 0.1);
  transition: var(--tr);
}
.btn-header-cta:hover { background: var(--button-hover-bg); color: var(--button-hover-text); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.btn-header-cta svg { width: 18px; height: 18px; }

/* Nav Primary */
.nav-primary ul { display: flex; list-style: none; gap: 8px; align-items: center; margin: 0; padding: 0; }
.nav-primary li { position: relative; }
.nav-primary a { 
  padding: 8px 14px; 
  color: var(--header-text); 
  font-weight: 600; 
  font-size: 0.9rem; 
  text-decoration: none; 
  transition: var(--tr);
  border-radius: 8px;
  position: relative;
  display: block;
}

/* Hover line/dot only for top-level */
.nav-primary > ul > li > a::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--header-text-hover);
  opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-primary > ul > li > a:hover { color: var(--header-text-hover); background: var(--header-item-hover-bg); }
.nav-primary > ul > li > a:hover::after { opacity: 1; width: 20px; border-radius: 2px; }
.nav-primary > ul > li.current-menu-item > a, .nav-primary > ul > li.curr-hover > a { color: var(--header-text-hover); background: var(--header-item-hover-bg); }
.nav-primary > ul > li.current-menu-item > a::after, .nav-primary > ul > li.curr-hover > a::after { opacity: 1; width: 20px; border-radius: 2px; }

/* Dropdown Sub-menus */
.nav-primary ul.sub-menu {
  position: absolute; top: 110%; left: 0;
  background: var(--header-dropdown-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  min-width: 260px; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  padding: 12px 0;
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex; flex-direction: column; gap: 0;
  z-index: 100;
}
.nav-primary li:hover > ul.sub-menu { top: 100%; opacity: 1; visibility: visible; }
.nav-primary ul.sub-menu li { width: 100%; }
.nav-primary ul.sub-menu a { 
  padding: 10px 20px; 
  font-size: 0.9rem; 
  font-weight: 500; 
  border-radius: 0; 
  color: var(--text-main) !important; /* Force consistency */
  display: block;
}
.nav-primary ul.sub-menu a:hover { 
  background: var(--header-item-hover-bg); 
  color: var(--accent-green) !important; 
  transform: translateX(5px); 
}
/* Multi-level dropdown - adjustment to match style while keeping usability */
.nav-primary ul.sub-menu ul.sub-menu { 
  top: -12px !important; 
  left: 100%; 
  margin-left: 2px;
}

/* Lock ikona */
.lock-icon { display: none; }

/* H-Socials */
.h-socials { display: flex; gap: 8px; position: relative; z-index: 20; border-left: 2px solid rgba(11, 58, 71, 0.1); padding-left: 20px; align-items: center; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--tr);
  color: var(--icon-color); flex-shrink: 0;
}
.social-link:hover { transform: translateY(-4px); background: var(--icon-hover-bg); box-shadow: 0 8px 20px rgba(0,0,0,0.1); color: var(--icon-hover-color); }
.social-link img, .social-link svg { width: 18px; height: 18px; object-fit: contain; }

/* Social Stacking / Dropdown */
.social-dropdown-wrapper {
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; display: flex; align-items: center; }
.social-more-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--icon-bg); color: var(--icon-color);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--tr); margin-left: 5px; flex-shrink: 0;
}
.social-more-btn:hover { background: var(--icon-hover-bg); color: var(--icon-hover-color); }
.social-dropdown {
  position: absolute; top: calc(100% + 15px); right: 0;
  background: var(--header-dropdown-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex; gap: 8px; flex-direction: row;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(0,0,0,0.05);
  z-index: 110;
}
.social-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.social-more-btn.open svg { transform: rotate(180deg); transition: transform 0.3s ease; }

/* Mobile Only Socials */
.mobile-socials-wrapper { display: none; margin-top: auto; padding-top: 30px; border-top: 1px solid rgba(0,0,0,0.05); width: 100%; }

/* Hamburger Menu Toggle */
.nav-toggle {
  display: none; background: transparent !important; border: none !important; cursor: pointer;
  padding: 10px; z-index: 1050; margin-left: auto; margin-right: 15px; outline: none; box-shadow: none;
}
.hamburger {
  display: block; width: 30px; height: 3px; background-color: var(--header-text) !important;
  position: relative; transition: var(--tr);
}
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; width: 30px; height: 3px;
  background-color: var(--header-text) !important; left: 0; transition: var(--tr);
}
.hamburger::before { top: -9px; }
.hamburger::after { bottom: -9px; }
.nav-toggle[aria-expanded="true"] .hamburger { background-color: transparent !important; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* Responsive Headers */
@media (max-width: 1024px) {
  .header-inner { display: flex; justify-content: space-between; align-items: center; }
  .logo-wrap { flex-shrink: 0; }
  .header-right { display: contents; }

  .header-actions { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-left: auto;
    margin-right: 15px;
    flex-direction: row;
    position: relative;
    z-index: 1051;
  }
  
  .btn-header-cta { order: 1; padding: 10px; border-radius: 50%; }
  .btn-header-cta span { display: none; }
  
  .nav-toggle { 
    display: block; 
    order: 2;
    position: relative; 
    z-index: 1052; 
    margin: 0;
    padding: 10px;
    background: transparent !important;
  }
  
  .desktop-socials { display: none !important; }
  .mobile-socials-wrapper { display: block; }
  .m-socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 15px; }
  .mobile-social-link { width: 44px; height: 44px; }
  
  .nav-primary {
    display: flex !important; position: fixed; top: 0; left: 0; width: 300px; height: 100vh;
    background: var(--header-mobile-bg); backdrop-filter: blur(20px);
    box-shadow: 5px 0 30px rgba(0,0,0,0.1);
    flex-direction: column; padding: 100px 30px 40px;
    transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; z-index: 999; visibility: hidden;
  }
  .nav-primary.nav-open { transform: translateX(0) !important; visibility: visible !important; }
  .nav-primary ul { flex-direction: column; width: 100%; align-items: flex-start; gap: 10px; }
  .nav-primary ul.sub-menu { display: none; position: static; opacity: 1; visibility: visible; box-shadow: none; background: transparent; border: none; padding-left: 15px; margin-top: 5px; }
  .nav-primary li.mobile-expanded > ul.sub-menu { display: flex; flex-direction: column; }
  .nav-primary ul.sub-menu a { padding: 8px 10px; }
  .nav-primary ul.sub-menu ul.sub-menu { margin-left: 15px; }
}

.custom-logo-link { display: flex; align-items: center; }
.custom-logo { height: 60px; width: auto; }
.logo-text-link { text-decoration: none; color: inherit; }

/* ===================== HERO SEKCE ===================== */
.hero-slider { 
  position: relative; height: 55vh; min-height: 400px; 
  background: #000; overflow: hidden; 
}
.rm-slide { 
  position: absolute; inset: 0; 
  opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: center;
  z-index: 1;
}
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.rm-slide.active { opacity: 1; z-index: 2; }
.rm-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}
.rm-slide.align-center::after {
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}
.hero-inner { position: relative; z-index: 10; height: 100%; display: flex; align-items: center; width: 100%; }
.hero-content { max-width: 600px; color: var(--text-white); transition: var(--tr); }

.rm-slide.align-center .hero-inner { justify-content: center; text-align: center; }
.rm-slide.align-center .hero-content { margin: 0 auto; }

.hero-eyebrow {
  display: inline-block; background: var(--green); padding: 5px 14px; 
  border-radius: 20px; font-size: 0.7rem; font-weight: 800; 
  letter-spacing: 0.05em; margin-bottom: 20px; text-transform: uppercase;
}
.hero-content h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.1; margin-bottom: 15px; font-weight: 800; }
.hero-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; font-weight: 500; }

.hero-btns { display: flex; gap: 15px; }
.btn { padding: 12px 28px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: var(--tr); }
.btn-white { background: #fff; color: var(--blue-dark); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; backdrop-filter: blur(4px); }
.btn-white:hover { transform: translateY(-3px); }

/* --- Water Surface Divider (Hladina) --- */
.water-surface-divider {
  position: absolute;
  bottom: -1px; /* Prevents rendering gap */
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}
.water-surface-divider svg { 
  width: 100%; 
  position: absolute;
  bottom: 0;
  display: block;
}

/* --- Underwater World (Pod hladinou) --- */
.underwater-world {
  position: relative;
  background: transparent;
  min-height: auto;
  z-index: 1;
  padding-bottom: 0;
  margin-top: 0;
}


/* Slider UI */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.2); color: #fff; border: none;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  z-index: 100; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: var(--tr); backdrop-filter: blur(4px); opacity: 0; visibility: hidden;
}
.hero-slider:hover .slider-arrow { opacity: 1; visibility: visible; }
.slider-arrow:hover { background: rgba(0,0,0,0.5); transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.hero-slider { position: relative; width: 100%; height: 60vh; min-height: 400px; overflow: hidden; z-index: 0; }

.nl-wrapper { 
  position: absolute; 
  bottom: 130px; /* Finální vytažení nahoru nad boxy (v7.26) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: 100%;
}



@media (max-width: 1024px) {

}

/* Info Boxes Wrapper */
.info-boxes-wrapper {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0 40px;
}

@media (max-width: 1024px) {
  .custom-logo, .logo-icon { height: 60px !important; }
}

@media (max-width: 768px) {
  .hero-slider { height: 55vh; }
  .slider-arrow { display: none; }
  .hero-waves { height: 50px; }

}

/* ===================== KNIHOVNA BOXŮ (Prolnutí) ===================== */
.page-sections { 
  position: relative; z-index: 40; 
  margin-top: 0; padding-bottom: 40px;
  background: var(--water-mid);
}
.info-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }

.rm-card { 
  background: #fff; border-radius: 16px; 
  padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
  display: flex; flex-direction: column;
}

.card-header { margin-bottom: 25px; }

.card-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Akce Box */
.akce-card h3 { 
  font-size: 1.25rem; margin: 0; font-weight: 800; 
  color: var(--blue-dark);
}

.info-list-container {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.is-hidden-item {
  display: none;
}

.is-expanded .is-hidden-item {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.akce-item { 
  display: flex; align-items: center; padding: 12px 0; 
  border-bottom: 1px solid #f1f5f9; 
}
.akce-date {
  min-width: 80px; background: #eef7ff; color: #0284c7; 
  font-weight: 800; font-size: 0.7rem; padding: 4px 10px; 
  border-radius: 20px; text-align: center; margin-right: 15px;
}
.akce-name { font-weight: 600; font-size: 0.95rem; color: #334155; }

/* Sdělení Box */
.sdeleni-wrapper { background: var(--blue-dark); color: #fff; }
.sdeleni-wrapper h3 { color: #fff; font-size: 1.25rem; margin: 0; font-weight: 800; }
.sdeleni-badge { background: var(--green); }

.sdeleni-item {
  background: rgba(255,255,255,0.08); padding: 15px 18px; border-radius: 12px;
  margin-bottom: 12px; font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 14px; transition: var(--tr);
}
.sdeleni-item:hover { background: rgba(255,255,255,0.12); }
.sdeleni-icon { font-size: 1.2rem; }

/* Show More Button */
.show-more-btn {
  margin-top: 20px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  color: #64748b;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sdeleni-wrapper .show-more-btn {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

.show-more-btn:hover {
  background: rgba(0,0,0,0.03);
  color: var(--blue-dark);
}

.sdeleni-wrapper .show-more-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

@media (max-width: 1024px) {
  .info-flex { grid-template-columns: 1fr; }
  .nav-primary { display: none; }
  .custom-logo, .logo-icon { height: 60px !important; }
}

/* ===================== PATIČKA (MODULAR V4) ===================== */
.custom-footer {
  position: relative;
  background: linear-gradient(135deg, var(--footer-bg-start, var(--accent-green)), var(--footer-bg-end, #001a26));
  color: #fff;
  padding: 60px 0 0 0;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}
/* Premium Footer Design */
.premium-footer {
    position: relative;
    background: linear-gradient(140deg, #093b4a 0%, #03212b 100%);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    margin-top: 0 !important;
    padding-top: 50px !important; /* Mírně sníženo a vynucena priorita */
    border-top: none;
    overflow: visible; /* Aby ::before mohl přečnívat nahoru */
}

/* --- Footer Wave & Divider --- */
.footer-wave-divider {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) scale(1.01) translateZ(0) !important; /* Mírné zvětšení + GPU fix */
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 0 !important;
    z-index: 5 !important;
    pointer-events: none !important;
    margin-bottom: -3px !important;
}
.footer-wave-divider svg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: -3px !important;
    filter: drop-shadow(0 2px 0 #093b4a) !important; /* "Těsnění" pod vlnou stejnou barvou */
}


/* Overlay fólie pro fotografické pozadí */
.premium-fog {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.pf-content {
    position: relative;
    z-index: 10;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* 3 hlavní sloupce: Brand | Odkazy | Kontakt */
.pf-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1fr;
    gap: 48px;
}

/* Brand name fallback (když není logo) */
.pf-brand-name-link { text-decoration: none; color: inherit; display: block; margin-bottom: 20px; }
.pf-brand-name { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -0.3px; }

/* Credit / Tvůrce */
.pf-credit-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
    vertical-align: middle;
}
.pf-credit-prefix { color: rgba(255,255,255,0.4); font-size: 0.82rem; }
.pf-credit-logo { height: 20px; width: auto; opacity: 0.7; transition: opacity 0.3s; display: block; }
.pf-credit-logo-link:hover .pf-credit-logo { opacity: 1; }
.pf-credit-text { color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.pf-credit-text-link { color: rgba(255,255,255,0.55); font-size: 0.82rem; text-decoration: none; transition: color 0.3s; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1px; }
.pf-credit-text-link:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* Levá část */
.pf-brand {
    display: flex;
    flex-direction: column;
}

.pf-logo-link {
    display: inline-block;
    margin-bottom: 25px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s;
}

.pf-logo-link:hover {
    opacity: 0.9;
}

.pf-logo {
    max-width: 220px;
    height: auto;
    /* Invert if dark logo */
    filter: brightness(0) invert(1);
}

.pf-logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0;
}

.pf-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin: 0;
}



.pf-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.pf-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Dynamické rozdělení odkazů do sloupců (v8.98) */
.pf-dynamic-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    justify-content: center;
    text-align: center;
}
@media (min-width: 1025px) {
    .pf-dynamic-links { grid-template-columns: repeat(3, 1fr); gap: 8px 30px; text-align: left; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .pf-dynamic-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pf-dynamic-links { grid-template-columns: repeat(2, 1fr); }
}

.pf-menu li {
    margin-bottom: 0px; /* Mezery řeší grid gap */
}
.pf-nav-col .pf-menu:not(.pf-dynamic-links) li { margin-bottom: 16px; }

.pf-menu a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.pf-menu a::before {
    content: "›";
    font-size: 1.1rem;
    color: #2c9384;
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.pf-menu a:hover {
    color: #ffffff;
}

.pf-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Pravá část */
.pf-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pf-contact-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (min-width: 1025px) {
    .pf-contact-list li { justify-content: flex-start; align-items: flex-start; }
}

.pf-icon {
    flex-shrink: 0;
    color: #2c9384;
    width: 20px;
    height: 20px;
}

.pf-icon svg {
    width: 100%;
    height: 100%;
}

.pf-contact-list a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.pf-contact-list a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #2c9384;
    text-underline-offset: 4px;
}

.pf-socials {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pf-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-social-icon svg {
    width: 20px;
    height: 20px;
}

/* Vlastní nahraná ikona sociální sítě */
.pf-social-custom-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.pf-social-icon:hover {
    background: #2c9384;
    border-color: #2c9384;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(44, 147, 132, 0.3);
}

/* Spodní lišta */
.pf-bottom {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    background: rgba(0,0,0,0.15);

}

.pf-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.pf-legal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pf-legal a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.pf-legal a:hover {
    color: #fff;
}

.pf-sep {
    opacity: 0.3;
}

/* Responsive */
/* Responsive Footer */
@media (max-width: 1200px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 1024px) {
    .premium-footer {
        text-align: center;
    }
    .pf-grid { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 40px; 
    }
    .pf-brand, .pf-nav-col, .pf-contact { 
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center; 
        width: 100%; 
    }
    .pf-contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .pf-dynamic-links {
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
    }
    .pf-socials { 
        justify-content: center; 
    }
    .pf-bottom-inner { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 15px;
    }
    .pf-copy { order: 1; }
    .pf-legal { 
        order: 2; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        gap: 8px;
    }
    .pf-credit-wrapper { order: 3; margin-top: 5px; }
    .pf-sep, .pf-sep-credit { display: none; }
}

@media (max-width: 600px) {
    .pf-grid { gap: 28px; }
    .pf-contact { text-align: left; }
    .pf-contact-list li { justify-content: flex-start; }
    .pf-socials { display: flex; justify-content: flex-start; }
}

/* ===================== PODVODNÍ KARTY A OBSAH (Glassmorphism) ===================== */
.page-sections { 
  padding: 80px 0 100px 0; 
  position: relative;
  margin-top: 0;
  z-index: 10;
  background: var(--bg-light); /* SVĚTLÁ SEKCE */
  color: var(--text-dark);
}

/* Flex kontejner pro dvě hlavní zprávy */
.info-flex { 
  display: flex; 
  gap: 40px; 
  flex-wrap: wrap; 
  margin-top: 0;
  position: relative;
  z-index: 10;
}
.rm-card {
  flex: 1; min-width: 300px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--sh-box);
  transition: var(--tr);
}
.rm-card:hover { transform: translateY(-5px); border-color: var(--accent-green); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.card-header { margin-bottom: 25px; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 15px; }
.card-badge { display: inline-block; padding: 6px 12px; background: rgba(44,147,132,0.1); border-radius: 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; color: var(--accent-green); margin-bottom: 10px; }
.card-header h3 { font-size: 1.6rem; font-weight: 900; color: var(--text-dark); margin: 0; }
.card-header h3 a { color: inherit; text-decoration: none; transition: var(--tr); }
.card-header h3 a:hover { color: var(--accent-bright); }

/* Vnitřek seznamu - společné prvky */
.rm-list-item {
  padding: 15px; border-bottom: 1px solid rgba(0,0,0,0.06) !important; 
  position: relative; transition: background 0.3s ease !important; border-radius: 12px !important; margin-bottom: 8px !important;
}
.rm-list-item:hover { background: rgba(0,0,0,0.02) !important; }
.rm-list-item:last-child { border-bottom: none !important; }

.item-inner { display: flex; gap: 20px; align-items: flex-start; }
.item-left { flex: 0 0 90px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.item-right { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }

.rm-date-badge { background: var(--accent-green) !important; color: #fff !important; padding: 4px 8px !important; border-radius: 6px !important; font-size: 0.75rem !important; font-weight: 700 !important; width: 100% !important; text-align: center !important; }
.item-time { font-size: 0.8rem; font-weight: 600; color: #64748b !important; }

.item-title { font-weight: 800 !important; font-size: 1.1rem !important; line-height: 1.3 !important; margin-bottom: 2px !important; display: flex !important; align-items: flex-start !important; justify-content: space-between !important; gap: 10px !important; color: var(--text-dark) !important; }
.item-title-link { color: inherit !important; text-decoration: none !important; transition: 0.2s !important; position: relative !important; z-index: 3 !important; }
.item-title-link:hover { color: var(--accent-green) !important; }
.item-icon-link { margin-left: auto; opacity: 0.4; transition: 0.2s; text-decoration: none; color: inherit; font-size: 1.1rem; line-height: 1; position: relative; z-index: 3; }
.item-icon-link:hover { opacity: 1; color: var(--accent-green); }
.item-text { font-size: 0.95rem !important; color: #4b5563 !important; line-height: 1.5 !important; }
.item-loc { font-size: 0.8rem !important; color: #94a3b8 !important; font-weight: 600 !important; margin-top: 4px !important; }

.item-more-link { display: block !important; text-align: center !important; padding: 14px !important; background: #f8fafc !important; border-radius: 12px !important; margin-top: 20px !important; font-weight: 800 !important; text-transform: uppercase !important; font-size: 0.85rem !important; letter-spacing: 1px !important; color: #475569 !important; transition: 0.2s !important; text-decoration: none !important; border: 1px solid rgba(0,0,0,0.06) !important; }
.item-more-link:hover { background: var(--accent-green) !important; color: #fff !important; border-color: var(--accent-green) !important; }

.empty-state-msg { padding: 20px 15px; text-align: center; opacity: 0.4; font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }

.main-more-button { display: block; text-align: center; margin: 50px auto 0; padding: 15px 35px; border-radius: 12px; background: #fff; color: var(--text-dark); text-decoration: none; font-weight: 700; transition: 0.3s; width: max-content; border: 1px solid rgba(0,0,0,0.1); box-shadow: var(--sh-box); }
.main-more-button:hover { background: var(--accent-green); color: #fff; transform: translateY(-3px); border-color: var(--accent-green); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

@media (max-width: 700px) {
  .info-flex { 
    display: flex;
    flex-direction: column; 
    align-items: stretch;
    gap: 20px;
    margin-top: -40px; 
  }
  .rm-card { width: 100%; max-width: 100%; padding: 20px; }
  .item-left { flex: 0 0 80px; }
  .main-more-button { width: 100%; box-sizing: border-box; }
}

/* --- Co u nás najdete (Info Boxy) --- */
.custom-info-boxes.full-width-section { padding: 100px 20px; text-align: center; background: #fff; color: var(--text-dark); border-top: 1px solid rgba(0,0,0,0.05); }
.custom-info-inner { max-width: 1200px; margin: 0 auto; }
.custom-info-boxes h2, .latest-posts-inner h2 { font-size: 2.5rem; font-weight: 900; color: var(--text-dark); margin-bottom: 60px; position: relative; display: inline-block; }
.custom-info-boxes h2::after, .latest-posts-inner h2::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--accent-green); border-radius: 2px; }

.custom-info-grid, .latest-posts-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px; 
  margin-top: 40px; 
}
.custom-info-box {
  flex: 1; max-width: 350px; width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: var(--sh-box);
  transition: var(--tr);
  display: flex; flex-direction: column; align-items: center; color: var(--text-dark);
}
.custom-info-box:hover { transform: translateY(-10px); border-color: var(--accent-green); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.custom-info-box .icon-wrapper {
  width: 90px; height: 90px; background: rgba(44,147,132,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 25px;
  font-size: 40px; color: var(--accent-green); border: 1px solid rgba(0,0,0,0.05);
}
.custom-info-icon { width: 70px; height: 70px; object-fit: contain; margin-bottom: 25px; }
.custom-info-box h3 { font-size: 1.5rem; font-weight: 900; color: var(--text-dark); margin-bottom: 15px; }
.custom-info-box p { font-size: 1rem; color: #4b5563; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }
.custom-info-button {
  padding: 12px 30px; background: #f1f5f9 !important; color: #1e293b !important;
  border: 1px solid rgba(0,0,0,0.05) !important; border-radius: 12px;
  font-weight: 700; font-size: 0.9rem; transition: var(--tr); text-decoration: none;
}
.custom-info-button:hover { background: var(--accent-green) !important; border-color: var(--accent-green) !important; color: #fff !important; transform: scale(1.05); box-shadow: 0 10px 20px rgba(44,147,132, 0.2); }

/* --- Poslední aktuality --- */
.latest-posts-section { 
    padding: 100px 20px 0 !important; /* Padding-bottom nula pro plynulý přechod na vlnu */
    background: #f5f7f8; 
    color: var(--text-dark); 
    border-top: 1px solid rgba(0,0,0,0.05); 
    position: relative; 
    overflow: visible !important;
    margin-bottom: 0 !important;
}

/* Responzivita pro tlačítko "Zobrazit vše" */
@media (max-width: 600px) {
    .latest-posts-more { margin-top: 30px !important; }
    .latest-posts-more .custom-info-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
.latest-posts-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.latest-posts-inner h2 { color: var(--text-dark); margin-bottom: 53px; } /* Celkové odsazení pod nadpisem */
.latest-posts-inner h2::after { background: var(--accent-green); bottom: -15px; } /* Čárka 10px pod textem */

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 35px; /* Vytvoří mezeru přesně 16px od čárky (40 margin - 10 underline - 14 offset) */
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.latest-post-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff;
  border: 1px solid rgba(11, 58, 71, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none; 
  color: var(--text-dark);
  transition: var(--tr);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  height: auto;
}
.latest-post-card:hover { transform: translateY(-5px); border-color: var(--accent-green); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.latest-post-card .image { 
  width: 100%; 
  height: 200px; 
  flex-shrink: 0; 
  overflow: hidden; 
  position: relative; 
  border-bottom: 1px solid rgba(0,0,0,0.05); 
}
.latest-post-card .image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.latest-post-card:hover .image img { transform: scale(1.05); }

.latest-post-card .content { padding: 25px; display: flex; flex-direction: column; justify-content: flex-start; flex-grow: 1; min-width: 0; }
.latest-post-card .meta { margin-bottom: 8px; font-size: 0.7rem; color: rgba(0,0,0,0.4); font-weight: 700; text-transform: uppercase; }
.latest-post-card .badge { padding: 4px 10px; background: rgba(21, 84, 92, 0.08); color: #15545c; border-radius: 6px; border: 1px solid rgba(0,0,0,0.03); }
.latest-post-card .date { color: rgba(0,0,0,0.4); }
.latest-post-card h3 { font-size: 1.25rem; font-weight: 800; color: #1a1a1a; margin-bottom: 12px; line-height: 1.3; }
.latest-post-card:hover h3 { color: #15545c; }
.latest-post-card p { font-size: 0.95rem; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1024px) {
  .latest-posts-grid, .custom-info-grid { grid-template-columns: repeat(2, 1fr); }

  .latest-posts-inner .section-subtitle { font-size: 15px; margin-top: 10px; margin-bottom: 30px; padding: 0 15px; }
}

@media (max-width: 768px) {
  .latest-posts-section { padding: 40px 15px; }
  .latest-posts-inner h2 { font-size: 1.8rem; margin-bottom: 10px; }
  .latest-posts-grid { gap: 15px; }
  
  .latest-post-card { 
    flex-direction: row !important; 
    height: 140px; 
    border-radius: 14px; 
  }
  .latest-post-card .image { 
    width: 140px; 
    height: 100%; 
    border-bottom: none; 
    border-right: 1px solid rgba(0,0,0,0.05); 
  }
  .latest-post-card .content { padding: 15px; justify-content: center; }
  .latest-post-card .meta { margin-bottom: 10px; font-size: 0.7rem; }
  .latest-post-card h3 { 
    font-size: 1.1rem; 
    margin-bottom: 8px; 
    display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .latest-post-card p { 
    font-size: 13px; 
    line-height: 1.4; 
    -webkit-line-clamp: 2; line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
  }
  .latest-post-card .badge, .latest-post-card .date { font-size: 11px; }
}

@media (max-width: 700px) {
  .latest-posts-grid, .custom-info-grid { grid-template-columns: 1fr !important; }
  .latest-post-card, .custom-info-box { max-width: 100% !important; }

}

/* ===================== STRÁNKY (Subpages: page.php, single.php) ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--water-light) 0%, rgba(224, 242, 241, 0.4) 100%);
  padding: 60px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(11, 58, 71, 0.05);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at top right, rgba(44, 147, 132, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--water-deep);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0;
  position: relative;
  z-index: 2;
}

.page-content-wrap, .single-section {
  padding: 60px 0 100px;
  background: var(--bg-light);
  position: relative;
  z-index: 5;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  max-width: 900px;
}
.entry-content h2, .entry-content h3 {
  color: var(--water-deep);
  font-weight: 800;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  letter-spacing: -0.5px;
}
.entry-content p {
  margin-bottom: 1.5em;
}
.entry-content a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--tr);
}
.entry-content a:hover {
  color: var(--water-deep);
}



/* Dynamic Social Icon Masking */
.social-mask {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--icon-color);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: background-color 0.3s ease;
}
.social-link:hover .social-mask {
  background-color: var(--icon-hover-color);
}

/* SVG Inline Fixes */
.social-inline-svg { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: inherit; }
.social-inline-svg svg { width: 100%; height: 100%; }
.social-fallback-img { width: 18px; height: 18px; object-fit: contain; }

/* ===================== STRÁNKA O NÁS ===================== */
/* Global Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #2a9d8f; /* Silnější teal podle screenshotu */
    color: #fff !important;
}

.btn-primary:hover {
    background: #21867a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2a9d8f !important;
    border: 2px solid #2a9d8f;
}

.btn-outline:hover {
    background: #2a9d8f;
    color: #fff !important;
}

.btn-full {
    display: block;
    width: 100%;
}

.about-page,
.zavody-detail-page,
.partneri-page { 
    padding: 84px 0 60px; background: #fff; 
    position: relative; z-index: 10; 
}
.about-container { display: flex; gap: 50px; align-items: flex-start; }

@media (max-width: 1100px) {
    .about-page, .partneri-page, .zavody-detail-page { padding-top: 100px; }
}
@media (max-width: 768px) {
    .about-page, .partneri-page, .zavody-detail-page { padding-top: 40px; }
}

/* Sidebar */
.about-sidebar { 
    width: 300px; flex-shrink: 0; position: sticky; top: 159px; 
    z-index: 900;
    height: fit-content;
}
.sidebar-sticky-wrap { display: flex; flex-direction: column; gap: 40px; }
.sidebar-title { font-size: 1.1rem; font-weight: 800; color: var(--water-deep); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }

.reviry-links { display: flex; flex-direction: column; gap: 10px; }
.reviry-btn { 
    display: block; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; 
    border-radius: 8px; font-weight: 600; color: var(--text-main); transition: var(--tr);
    text-decoration: none;
}
.reviry-btn:hover { background: var(--water-light); border-color: var(--accent-green); color: var(--accent-green); transform: translateX(5px); }

.about-internal-nav ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.about-internal-nav a { 
    display: block; padding: 10px 15px; border-radius: 8px; color: var(--text-main); 
    font-weight: 500; transition: var(--tr); text-decoration: none;
}
.about-internal-nav a:hover, .about-internal-nav a.active { background: var(--water-mid); color: #fff; }

/* Content */
.about-content { flex-grow: 1; max-width: 800px; }
.about-h1 { font-size: 3rem; font-weight: 900; color: var(--water-deep); margin-top: 0 !important; margin-bottom: 30px; line-height: 1.1; }
.intro-text, .activity-desc, .cta-desc, .milestone-desc, .history-content-full { font-size: 1rem; line-height: 1.6; color: var(--text-main); margin-bottom: 20px; }
.activity-desc p, .cta-desc p, .milestone-desc p, .history-content-full p { margin-bottom: 10px; }


.section-title { font-size: 2rem; font-weight: 800; color: var(--water-deep); margin-bottom: 25px; margin-top: 60px; }
.section-title.center { text-align: center; margin-top: 0; }
.center { text-align: center; justify-content: center; }

.about-section { margin-bottom: 50px; }

/* History */
.history-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; }
.history-content-full { max-width: 100%; }
.milestones-list li { margin-bottom: 8px; border-left: 3px solid var(--accent-green); padding-left: 20px; position: relative; list-style: none !important; }
.milestones-list li::before, .milestones-list li::after { display: none !important; content: none !important; }

.milestones-list li:last-child { margin-bottom: 0; }
.milestones-list .year { display: block; font-size: 1.2rem; font-weight: 900; color: var(--water-deep); margin-bottom: 0; line-height: 1.2; }
.milestones-list .milestone-desc p { font-size: 0.95rem; margin: 0; line-height: 1.4; color: var(--text-main); }
.milestones-list p { font-size: 0.9rem; margin: 0; line-height: 1.4; color: var(--text-main); }

/* Sidebar Milestones variation */
.sidebar-milestones { padding: 10px; border: none; background: transparent; list-style: none !important; }

.sidebar-milestones li { margin-bottom: 6px; padding-left: 15px; border-left-width: 2px; list-style: none !important; }
.sidebar-milestones li::before, .sidebar-milestones li::after { display: none !important; content: none !important; }
.sidebar-milestones .year { font-size: 1rem; margin-bottom: 0; line-height: 1.2; }
.sidebar-milestones .milestone-desc p { font-size: 0.85rem; margin: 0; line-height: 1.4; }
.sidebar-milestones p { font-size: 0.85rem; margin: 0; }

/* Activities */
.activities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 30px; }
.milestones-list { list-style: none !important; background: #f8fafc; padding: 20px; border-radius: 16px; border: 1px solid #e2e8f0; }
.activity-card { background: #fff; padding: 35px; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.3s ease; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.activity-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--accent-green); }
.activity-icon { font-size: 2.5rem; margin-bottom: 20px; display: flex; align-items: center; justify-content: flex-start; height: 60px; }
.activity-icon img { max-height: 50px; width: auto; object-fit: contain; }
.activity-card h3 { font-size: 1.4rem; color: var(--water-deep); margin-bottom: 12px; font-weight: 800; }
.activity-card .activity-desc { font-size: 1.25rem; margin: 0; line-height: 1.5; color: var(--text-main); }

/* Zavody Specifics */
.zavod-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.zavod-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.zavod-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.zavod-card:hover .zavod-card-image img {
    transform: scale(1.05);
}
.zavod-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.zavod-date-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--accent-green);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}
.zavod-meta {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--accent-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Race Detail specific tweaks */
.zavody-detail-page .about-h1 { margin-bottom: 5px; }
.zavody-detail-page .section-subtitle { font-weight: 500; }
.zavody-detail-page .stat-box { 
    background: #f8fbfa; border: 1px solid #e2f2ef; text-align: left; padding: 20px; align-items: flex-start;
}
.zavody-detail-page .stat-label { color: var(--text-main); font-weight: 600; text-transform: none; font-size: 1rem; }
.zavody-detail-page .stat-number { margin-bottom: 2px; }

.info-box-highlight { position: relative; overflow: hidden; }
.rules-box { box-shadow: 0 4px 20px rgba(0,0,0,0.02); }

.no-accordion .accordion-chevron { display: none !important; }
.about-section.no-border { margin-bottom: 40px; }

/* People */
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 0; }
.stat-box { background: #E0F2F1; padding: 25px 15px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 120px; }
.stat-number { display: block; font-size: 2rem; font-weight: 900; color: #002b3d; line-height: 1.2; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; font-weight: 800; color: #2C9384; text-transform: uppercase; letter-spacing: 0.5px; }
.people-desc-text { font-size: 0.95rem; line-height: 1.6; color: var(--text-main); margin-top: 40px; }
.people-images { display: flex; flex-direction: column; gap: 0; }
.about-img { border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; height: auto; object-fit: cover; }

/* Visual Break */
.visual-break { margin: 60px 0 80px; }
.full-width-img { width: 100%; border-radius: 24px; box-shadow: var(--sh-box); }

/* Final CTA */
.cta-btns { display: flex; gap: 20px; margin-top: 30px; }

/* Sidebar Accordion (Mobile/Tablet) */
.sidebar-title { 
    display: flex; align-items: center; justify-content: space-between; 
    cursor: default; transition: var(--tr);
}

.accordion-chevron { 
    display: none; width: 20px; height: 20px; transition: transform 0.3s ease; 
    color: var(--accent-green);
}

.sidebar-title.active .accordion-chevron { transform: rotate(180deg); }

/* Responsive */
@media (max-width: 1024px) {
    .premium-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        background: #fff; /* Jistota viditelnosti na mobilu */
        box-shadow: 0 2px 15px rgba(11, 58, 71, 0.1);
    }
    .about-container { flex-direction: column; }
    .about-sidebar { width: 100%; position: relative; top: 0; margin-bottom: 40px; }
    .sidebar-sticky-wrap { gap: 20px; }
    
    .sidebar-section { 
        background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; 
        overflow: hidden; padding: 0;
    }

    .sidebar-title { 
        padding: 20px; margin-bottom: 0; cursor: pointer; background: #fff;
        user-select: none;
    }
    .sidebar-title:hover { background: #f1f5f9; }
    
    .accordion-chevron { display: block; }
    
    .accordion-content { 
        max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 20px;
    }
    
    .sidebar-title.active + .accordion-content { 
        max-height: 1000px; padding-bottom: 25px; padding-top: 10px;
    }

    .reviry-links, .sidebar-milestones { border: none; background: transparent; padding: 0; }

    .history-grid, .people-grid { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
    .about-page { padding: 40px 0; }
    .about-h1 { font-size: 2.2rem; }
}

/* ===================== ŠABLONA REVÍR (v9.50) ===================== */
.reviry-template { padding: 60px 0 0; background: #fff; }

.revir-header { margin-bottom: 50px; }
.revir-title { font-size: 3.5rem; font-weight: 900; color: var(--water-deep); margin-bottom: 15px; }
.revir-perex { font-size: 1.25rem; color: var(--text-main); max-width: 800px; margin: 0 auto; line-height: 1.6; opacity: 0.9; }

/* Stats Cards */
.revir-stats { margin-bottom: 70px; }
.stats-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { 
    background: #f8fafc; padding: 30px 20px; border-radius: 20px; text-align: center; 
    border: 1px solid #e2e8f0; transition: var(--tr); box-shadow: 0 4px 15px rgba(0,0,0,0.04); 
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); border-color: var(--accent-green); }
.stat-icon { font-size: 2.2rem; color: #2a9d8f; margin-bottom: 12px; }
.stat-icon .dashicons { font-size: 36px; width: 36px; height: 36px; }
.stat-label { font-size: 0.85rem; font-weight: 700; color: var(--water-deep); opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.stat-value { font-size: 1.3rem; font-weight: 800; color: #2a9d8f; }

/* Main Grid */
.revir-main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; margin-bottom: 80px; align-items: start; }
.revir-content-area .section-title { margin-top: 0; margin-bottom: 30px; font-size: 2.2rem; }

/* ==========================================================================
   SHABLONA: REVIR (FISHING GROUND) - v14.0
   ========================================================================== */
.revir-detail-template {
    padding-top: 60px;
    background: #fff;
    padding-bottom: 20px;
}

.revir-hero {
    margin-bottom: 50px;
    text-align: center;
}

.revir-main-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--water-deep);
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -1px;
}

.revir-subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Grid */
.revir-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 70px;
}

.stat-box {
    background: #f8fbfb;
    padding: 30px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    background: #fff;
}

.stat-box-icon {
    font-size: 2.2rem;
    color: var(--accent-green);
    margin-bottom: 5px;
}

.stat-box-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.stat-box-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--water-deep);
}

/* Two Column Layout */
.revir-two-column-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    margin-bottom: 70px;
    align-items: start;
}

.revir-section-heading {
    font-size: 2.1rem;
    color: var(--water-deep);
    margin-bottom: 30px;
    font-weight: 800;
}

.revir-article-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #444;
}

.revir-article-content p {
    margin-bottom: 25px;
}

/* Info Cards */
.info-card-box {
    background: #f1f7f7;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(42, 157, 143, 0.08);
}

.info-card-title {
    font-size: 1.5rem;
    color: var(--water-deep);
    margin-bottom: 25px;
    font-weight: 800;
}

.info-card-list {
    list-style: none;
    padding: 0;
}

.info-card-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 18px;
    color: #555;
    font-weight: 500;
    line-height: 1.5;
}

.info-card-list li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: 900;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.highlight-card {
    background: #e0f2f1;
    border: 1px solid var(--accent-green);
}

/* Gallery Grid */
.revir-custom-gallery-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 25px;
    margin-bottom: 80px;
}

.gallery-large-area img {
    height: 500px;
}

.gallery-large-area img,
.gallery-small-area img,
.placeholder-img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-small-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gallery-small-area img {
    height: 237px;
}

/* Location */
.revir-location-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    margin-bottom: 120px;
    align-items: stretch;
}

.map-wrapper {
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    background: #f0f4f8;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #adb5bd;
    font-weight: 600;
}

/* Footer Wave */
.revir-footer-wave {
    line-height: 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.revir-footer-wave svg {
    width: 100%;
    height: auto;
}

/* Responsivita */
@media (max-width: 1100px) {
    .revir-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .revir-two-column-grid,
    .revir-location-grid {
        grid-template-columns: 1fr;
    }
    .revir-sidebar-side,
    .location-info-area {
        order: 2;
    }
    .revir-custom-gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-large-area img {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .revir-stats-grid {
        grid-template-columns: 1fr;
    }
    .revir-main-title {
        font-size: 2.2rem;
    }
    .revir-hero {
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   CPT: REVIRY - INFO BOXES (v18.0)
   ========================================================================== */
.revir-stats-grid,
.revir-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    margin-top: 30px;
}

.stat-box,
.info-box {
    flex: 1 1 220px; max-width: 300px;
    background: #f8fbfb;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(42, 157, 143, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    color: var(--water-deep);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover,
.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    background: #fff;
    border-color: rgba(42, 157, 143, 0.3);
}

/* Enlarge Icons */
.stat-box-icon svg,
.info-box-icon svg {
    width: 54px !important;
    height: 54px !important;
    color: var(--accent-green);
    margin-bottom: 18px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-box:hover .stat-box-icon svg,
.info-box:hover .info-box-icon svg {
    transform: scale(1.1) rotate(5deg);
    color: var(--water-blue);
}

.stat-box-label,
.info-box-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-box-value,
.info-box-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.revir-single-cpt .revir-title {
    margin-top: 40px;
    margin-bottom: 10px;
    color: var(--water-deep);
    font-weight: 900;
}

.revir-featured-image {
    margin-bottom: 40px;
}


/* ========================================================================= */

/* =========================================================================
   14. FOTOGALERIE A VIDEA (template-galerie.php)
   ========================================================================= */

/* Layout Container */
.galerie-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    grid-template-rows: max-content auto;
    grid-template-areas: 
        "galleries box"
        "galleries videos";
    column-gap: 60px;
    row-gap: 15px;
    align-items: start;
    margin-top: 0;
}

.galerie-left { grid-area: galleries; }
.galerie-ulovky-cta { grid-area: box; }
.galerie-right-videa { 
    grid-area: videos;
    margin-top: 0; /* Oprava překrývání, layout je již vyřešen v grid-template-rows */
}

/* Responsive adjustments for Gallery */

@media (max-width: 480px) {
    .galerie-photos-grid,
    .galerie-videos-list {
        grid-template-columns: 1fr;
    }
}

/* Typography override */
.galerie-left .about-h1,
.galerie-right .about-h1 {
    margin-bottom: 30px;
}

/* Fotos - Grid */
.galerie-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Karta Fotogalerie */
.rm-gallery-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.rm-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rm-gallery-card-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #f5f7f8;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rm-gallery-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fotogalerie,
#videa,
#rmArchivToggle {
    scroll-margin-top: 120px;
}

.rm-gallery-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rm-gallery-title {
    font-size: 1.1rem;
    color: #002b3d;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1;
}

.rm-gallery-btn {
    width: 100%;
    text-align: center;
}

/* Videa - Seznam */
.galerie-videos-list {
    display: grid;
    grid-template-columns: 1fr; /* Jeden sloupec v sidebar režimu na desktopu */
    gap: 25px;
}

/* Položka Videa */
.rm-video-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.rm-video-item:hover {
    transform: translateY(-3px);
}

.rm-video-thumb {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
    display: block;
}

.rm-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(44, 147, 132, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}
.rm-video-thumb:hover .rm-video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(44, 147, 132, 1);
}

.rm-video-info {
    padding: 15px;
}

.rm-video-title {
    font-size: 1rem;
    color: #002b3d;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3; line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rm-video-btn {
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 8px;
    display: inline-block;
}

/* Archiv */
.rm-archiv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rm-archiv-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.rm-archiv-list li:last-child {
    border-bottom: none;
}
.rm-archiv-list a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}
.rm-archiv-list a:hover {
    color: var(--accent-green);
}

/* Responsivita Galerie - Musí být až za základními styly pro správný override */
@media (max-width: 1024px) {
    .galerie-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }
    .galerie-ulovky-cta { 
        order: -1; 
        margin-top: 0 !important;
        margin-bottom: 20px;
        width: 100% !important;
    }
    .galerie-left { order: 1; width: 100% !important; }
    .galerie-right-videa { 
        order: 2;
        margin-top: 20px !important;
        width: 100% !important;
    }
    
    .galerie-photos-grid,
    .galerie-videos-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


@media (max-width: 600px) {
    .galerie-photos-grid, .galerie-videos-list {
        grid-template-columns: 1fr; /* 1 sloupec na mobilu */
    }
    .rm-video-thumb {
        height: 180px;
    }
    .rm-video-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* ============================================
   KONTAKTY - Karta kontaktu and Grid
   ============================================ */

.kontakty-page .kontakty-intro { max-width: 700px; margin-bottom: 50px; }

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
    border-color: var(--accent-green);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--water-light, #e0f5f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green, #2a9d8f);
    flex-shrink: 0;
}

.contact-details { display: flex; flex-direction: column; gap: 4px; }

.contact-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--water-deep, #1a3c5e);
    margin: 0;
    line-height: 1.3;
}

.contact-function {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-green, #2a9d8f);
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.contact-phone:hover { color: var(--water-deep, #1a3c5e); }

.global-contacts-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.contact-map-wrapper .contact-map {
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
}

.contact-map-wrapper .contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 1100px) { .contacts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .contacts-grid { grid-template-columns: repeat(2, 1fr); }
    .global-contacts-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .contacts-grid { grid-template-columns: 1fr; } }

/* Hezké teal barvy pro hypertextové odkazy místo výchozí modré */
.site-link,
.kontakty-page a:not(.contact-phone):not(.btn) {
    color: var(--accent-green, #2a9d8f);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.site-link:hover,
.kontakty-page a:not(.contact-phone):not(.btn):hover {
    color: var(--water-deep, #1a3c5e);
    text-decoration: underline;
}

/* ============================================
   CHCI SE STÁT ČLENEM - Layout & Boxy
   ============================================ */

.clenove-page .clenove-top-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.clenove-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 44px 48px 36px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.clenove-box-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.clenove-box-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--water-deep, #1a3c5e);
    margin: 0 0 12px 0;
}

.clenove-box-header p {
    color: #4b5563;
    font-size: 1rem;
    margin: 0;
    max-width: 680px;
    line-height: 1.7;
}

.clenove-box-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
}

.clenove-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.clenove-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 22px;
    border-left: 3px solid var(--accent-green, #2a9d8f);
}

.clenove-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--water-deep, #1a3c5e);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.clenove-item-content p,
.clenove-item-content ul,
.clenove-item-content ol {
    font-size: 0.93rem;
    color: #374151;
    margin: 0;
    line-height: 1.65;
}

.clenove-item-content ul,
.clenove-item-content ol {
    padding-left: 18px;
}

.clenove-item-content li {
    margin-bottom: 4px;
}

.clenove-cta {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

/* Responzivita */
@media (max-width: 768px) {
    .clenove-box {
        padding: 28px 20px 24px;
    }
    .clenove-box-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .clenove-top-nav {
        flex-direction: column;
    }
    .clenove-top-nav .btn {
        text-align: center;
    }
}

/* --- Stránkování (Pagination) v Galerii --- */
.rm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.rm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background-color: var(--bg-alt);
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.rm-pagination .page-numbers:hover {
    background-color: var(--border-color);
}
.rm-pagination .page-numbers.current,
.rm-pagination .page-numbers.current:hover {
    background-color: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
    cursor: default;
}
.rm-pagination .page-numbers i {
    font-size: 16px;
    margin: 0 4px;
}

/* =========================================
   ARCHÍV - VLASTNÍ ŠABLONA
   ========================================= */

.rm-archive-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.rm-archive-header {
    margin-bottom: 30px;
}
.rm-archive-desc {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Filtry */
.rm-archive-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.rm-archive-filters .filter-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.rm-archive-filters .filter-btn:hover,
.rm-archive-filters .filter-btn.active {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}
.rm-archive-filters-active {
    background: var(--blue-pale);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: var(--text-main);
}
.rm-archive-filters-active p {
    margin: 0;
}

/* Grid článků */
.rm-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.rm-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.rm-post-card:hover {
    transform: translateY(-4px);
}
.rm-post-card-thumb {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-alt);
}
.rm-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.rm-post-card:hover .rm-post-card-thumb img {
    transform: scale(1.05);
}
.rm-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 3rem;
    background: #f1f5f9;
}
.rm-post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.rm-post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.rm-post-cat-dot {
    margin: 0 8px;
}
.rm-post-cat {
    color: var(--accent-blue);
    font-weight: 500;
}
.rm-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
}
.rm-post-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}
.rm-post-title a:hover {
    color: var(--accent-green);
}
.rm-post-excerpt {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.rm-post-readmore {
    display: inline-flex;
    align-items: center;
    color: var(--accent-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.rm-post-readmore i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}
.rm-post-readmore:hover {
    color: var(--text-main);
}
.rm-post-readmore:hover i {
    transform: translateX(4px);
}

.rm-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    color: var(--text-light);
}

/* Sidebar */
.rm-archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.rm-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.rm-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-pale);
}

/* Hledání */
.rm-search-form {
    display: flex;
    position: relative;
}
.rm-search-field {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-alt);
    transition: all 0.3s ease;
}
.rm-search-field:focus {
    outline: none;
    border-color: var(--accent-green);
    background: #fff;
}
.rm-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}
.rm-search-submit:hover {
    color: var(--accent-green);
}

/* Kategorie widget */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-categories li {
    margin-bottom: 10px;
}
.widget-categories li:last-child {
    margin-bottom: 0;
}
.widget-categories a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-alt);
}
.widget-categories a:hover {
    background: var(--blue-pale);
    color: var(--accent-blue);
}

/* Archiv widget */
.widget-archive-dates .rm-archive-structured-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.archive-year-item {
    margin-bottom: 10px;
}
.archive-year-link {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 600;
}
.archive-year-link:hover {
    color: var(--accent-green);
    padding-left: 5px;
}
.archive-year-static-active {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent-green);
}
.archive-year-item strong.rm-year-toggle {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}
.archive-month-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.archive-month-list li {
    margin-bottom: 5px;
}
.archive-month-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}
.archive-month-list a:hover {
    color: var(--accent-green);
}

/* Poslední články widget */
.rm-recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.rm-recent-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: center;
    transition: transform 0.2s ease;
}
.rm-recent-item:hover {
    transform: translateX(4px);
}
.rm-recent-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-alt);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.rm-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rm-recent-info h5 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0 0 5px 0;
    line-height: 1.3;
    font-weight: 600;
}
.rm-recent-item:hover .rm-recent-info h5 {
    color: var(--accent-green);
}
.rm-recent-date {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responzivita Archivu */
@media (max-width: 991px) {
    .rm-archive-layout {
        grid-template-columns: 1fr;
    }
    .rm-archive-sidebar {
        order: 2;
    }
    .rm-archive-main {
        order: 1;
    }
}
@media (max-width: 768px) {
    .rm-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* Vylepšení čitelnosti data a kategorie u článků */
.rm-post-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}
.rm-post-cat {
    color: var(--text-main);
    font-weight: 700;
}
.rm-post-cat-dot {
    color: var(--text-light);
    margin: 0 10px;
}

/* Úpravy pro rozbalovací archiv */
.rm-year-toggle {
    cursor: pointer;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.rm-year-toggle:hover {
    color: var(--accent-green) !important;
}
.rm-year-toggle i {
    transition: transform 0.3s;
    font-size: 1.2rem;
}
.rm-year-toggle.active i {
    transform: rotate(180deg);
}
.rm-btn-show-older {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-main);
    font-weight: 500;
}
.rm-btn-show-older:hover {
    background: var(--bg-alt);
    border-color: var(--text-light);
}

/* Ukazatel rozbalovacího menu v hlavičce (vpravo vedle textu) */
.nav-primary .menu .menu-item-has-children > a {
    display: inline-flex !important;
    align-items: center;
}

.nav-primary .menu .menu-item-has-children > a::before {
    content: "▾";
    font-family: inherit;
    order: 2; /* Zobrazení až ZA textem */
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

/* Šipka doprava pro zanořená menu */
.nav-primary .menu .sub-menu .menu-item-has-children > a::before {
    content: "▸";
    margin-left: auto;
}

/* Jemná rotace při najetí */
.nav-primary .menu .menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}
.nav-primary .menu .sub-menu .menu-item-has-children:hover > a::before {
    transform: rotate(90deg);
}

/* Resetování případného přepsání ::after (aby zůstala vlnka/tečka pod menu) */
.nav-primary .menu .menu-item-has-children > a::after {
    content: ''; 
}
/* ===================== MODUL KALENDÁŘ (v14.0) ===================== */
.calendar-page-main {
    background: #f5f7f8;
    padding-bottom: 80px;
}

/* FullCalendar Customization */
#full-calendar-container {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    margin-bottom: 30px;
    margin-top: 20px;
}

.fc {
    --fc-border-color: #f1f5f9;
    --fc-today-bg-color: rgba(56, 189, 248, 0.08);
    --fc-event-bg-color: var(--accent-green);
    --fc-event-border-color: var(--accent-green);
    font-family: 'Inter', sans-serif !important;
}

.fc .fc-toolbar-title { font-weight: 800; color: var(--water-deep); }
.fc .fc-button-primary { background: var(--water-mid); border-color: var(--water-mid); font-weight: 600; text-transform: capitalize; }
.fc .fc-button-primary:hover { background: var(--accent-green); border-color: var(--accent-green); }
.fc .fc-button-primary:disabled { background: #cbd5e1; border-color: #cbd5e1; }

.fc-event {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 2px 0;
}

/* Větší puntíky (pro mobilní zobrazení nebo dot-view) */
.fc-daygrid-event-dot {
    border-width: 6px !important;
    margin-right: 8px;
}

.fc-list-event-dot {
    border-width: 6px !important;
}

.calendar-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.calendar-actions .btn-secondary {
    background: #fff;
    color: var(--water-mid);
    border: 1px solid rgba(11, 58, 71, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Modal Detail */
.rm-modal {
    display: none; /* JS přepne na flex */
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow-y: auto;
    background-color: rgba(3, 21, 27, 0.6);
    backdrop-filter: blur(8px);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.rm-modal-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.rm-modal-close {
    position: absolute;
    right: 25px; top: 20px;
    color: #64748b;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--water-deep);
    margin-bottom: 25px;
    padding-right: 30px;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #334155;
}

.meta-item .dashicons {
    color: var(--accent-green);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.event-description {
    line-height: 1.7;
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.event-modal-actions {
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

/* Calendar Mobile Fixes */
@media (max-width: 480px) {
    .fc .fc-toolbar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .fc .fc-toolbar-title {
        font-size: 1.25rem !important;
        margin: 5px 0 !important;
    }

    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Make buttons more compact */
    .fc .fc-button {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
    }
}

/* Premium Event Tooltip */
.fc-event-tooltip {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid rgba(11, 58, 71, 0.1);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    color: var(--water-deep);
    pointer-events: none;
    display: none;
    min-width: 200px;
    max-width: 300px;
    line-height: 1.4;
}
.fc-event-tooltip strong { color: var(--accent-green); display: block; margin-bottom: 4px; font-size: 1rem; }
.fc-event-tooltip .dashicons { font-size: 14px; width: 14px; height: 14px; color: #94a3b8; margin-right: 4px; }

/* Aktuality & Archiv pod kalendářem */
.news-archive-section {
    padding: 80px 0;
}

.news-archive-section .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover { transform: translateY(-5px); }

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-date {
    font-weight: 700;
    color: var(--accent-green);
    font-size: 0.9rem;
}

.news-status-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.is-upcoming .news-status-badge { background: #e0f2f1; color: var(--accent-green); }
.is-upcoming { border-left: 5px solid var(--accent-green); }

.is-archived {
    opacity: 0.7;
    background: rgba(255,255,255,0.6);
}
.is-archived .news-status-badge { background: #f1f5f9; color: #64748b; }
.is-archived h3 { color: #64748b; }

.news-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-more-link {
    font-weight: 700;
    color: var(--water-mid);
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .calendar-hero h1 { font-size: 2.2rem; }
    #full-calendar-container { padding: 15px; }
    .rm-modal-content { padding: 30px 20px; width: 95%; max-width: 500px; }
}

@media (max-width: 768px) {
    .news-list { grid-template-columns: 1fr; }
}

/* Stránkování (Pagination) */
.archive-pagination {
    margin: 60px 0 20px;
    display: flex;
    justify-content: center;
}

.archive-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    justify-content: center;
}

.archive-pagination .page-numbers li {
    margin: 0;
}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: var(--water-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(11, 58, 71, 0.05);
}

.archive-pagination .page-numbers span.current {
    background: var(--accent-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(44, 147, 132, 0.3);
}

.archive-pagination .page-numbers a:hover {
    background: var(--water-mid);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 58, 71, 0.15);
}

.archive-pagination .page-numbers .prev,
.archive-pagination .page-numbers .next {
    padding: 0 20px;
}

/* =========================================
   LIGHTBOX - GLightbox Visuals
   ========================================= */
.glightbox {
    display: block;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 12px;
}
.glightbox img {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glightbox:hover img {
    transform: scale(1.03);
}
.people-images .glightbox {
    margin-bottom: 20px;
}
.people-images .glightbox:last-child {
    margin-bottom: 0;
}
@media (max-width: 1024px) {
    .glightbox {
        pointer-events: auto; /* Ensure clickable on mobile */
    }
}

/* =========================================
   ZÁVODY - Fallback Trophy Image
   ========================================= */
.zavod-fallback-img {
    width: 100%;
    height: 200px;
    background: #03212b; /* Dark teal matching footer/header */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at 50% 50%, #093b4a 0%, #03212b 100%);
}

.zavod-fallback-img::before {
    content: "";
    width: 80px;
    height: 80px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Elegant trophy SVG in gold */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M18 2H6a1 1 0 0 0-1 1v2c0 2.2 1.8 4 4 4h1v1.1c-1.3.4-2.4 1.4-2.8 2.7l-.2.2c-.6.6-1 1.4-1 2.3v2c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-2c0-.9-.4-1.7-1-2.3l-.2-.2c-.4-1.3-1.5-2.3-2.8-2.7V9h1c2.2 0 4-1.8 4-4V3a1 1 0 0 0-1-1zm-9 5c-1.1 0-2-.9-2-2V4h2v3zm6-5v3c0 1.1-.9 2-2 2h-2V4h4zm2 3c0 1.1-.9 2-2 2v-3h2v1zM6 22h12v-2H6v2z'/%3E%3C/svg%3E");
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.zavody-page {
    background-color: #ffffff !important;
}

.zavod-card-image img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
}

/* =========================================
   PARTNEŘI - Logo Grid & Hover Effects
   ========================================= */
.partners-section {
    padding: 80px 0;
}

.partners-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: var(--water-deep);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.partners-section h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
}

.partners-grid {
    display: grid;
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-bottom: 80px;
}

.partners-grid.big {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.partners-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    aspect-ratio: 3/2;
}

.partner-item img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.08);
}

.partners-grid.big .partner-item {
    padding: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partners-grid.small {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .partners-grid.big {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }
    .partner-item {
        padding: 15px;
    }
}

/* Oprava odsazení pro kotvy (sticky header-offset) */
html { scroll-padding-top: 110px; }
[id] { scroll-margin-top: 110px; }

/* ===================== ÚLOVKY (CATCHES) ===================== */
.catches-page {
    padding: 60px 0;
}

.catches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.catch-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    height: 100%;
}

.catch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--accent-green);
}

.catch-image-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8fafc;
}

.catch-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.catch-card:hover .catch-image-wrap img {
    transform: scale(1.1);
}

.catch-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.catch-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--water-deep);
    margin-bottom: 5px;
}

.catch-author {
    font-size: 1rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 12px;
}

.catch-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.catch-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.catch-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

/* Úlovek měsíce - Speciální styl */
.catch-card.highlight {
    border: 2px solid #ffd700;
    position: relative;
}

.catch-card.highlight::before {
    content: "👑 Úlovek měsíce";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Lightbox Trigger */
.catch-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catch-image-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.catch-photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);

    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 5;
    backdrop-filter: blur(4px);
}
.catches-page-wrapper {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #f5f7f8;
}

.catches-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.catches-container > * {
    width: 100%;
}

.catches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}
.send-catch-cta {
    margin-top: 80px;
    margin-bottom: 40px;
}
.cta-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.cta-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.05;
    transform: rotate(-15deg);
    pointer-events: none;
    color: var(--water-deep);
}
.cta-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.cta-title {
    color: var(--water-deep);
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 2.2rem;
    margin-top: 0;
}
.cta-desc {
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
.submission-rules {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.rules-title {
    color: #334155;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}
.rules-icon {
    background: var(--water-deep);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}
.rules-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}
.rules-list li {
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
}
.cta-action {
    text-align: center;
}
.action-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.action-label {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}
.btn-send-email {
    display: block;
    background: var(--accent-green);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.btn-send-email:hover {
    background: #257d71; /* Darker teal for subtle hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 147, 132, 0.2);
}
.action-note {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cta-banner {
        padding: 40px 30px;
    }
    .cta-title {
        font-size: 1.8rem;
    }
}
.cta-text a,
.action-note a {
    color: var(--accent-green) !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: var(--tr);
    border-bottom: 2px solid transparent;
}
.cta-text a:hover,
.action-note a:hover {
    color: #0b3a47 !important; /* Darker teal instead of bright blue */
    border-bottom-color: #0b3a47 !important;
}
.catch-card a.catch-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Responzivita Úlovky */
@media (max-width: 1200px) {
    .catches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .catches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .catches-grid {
        grid-template-columns: 1fr;
    }
    .catch-image-wrap {
        height: 280px;
    }
}
/* Filtrování úlovků - Nový panel se skrollem */
.filter-panel {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 400px;
}
.filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}
.filter-scroll-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px; /* Space for arrows */
}
.catch-filters {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    padding: 5px 0;
    width: 100%;
}
.catch-filters::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0;
}
.scroll-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}
.arrow-fallback {
    display: none; /* Skryté, SVG je primární */
}
.scroll-arrow:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}
.scroll-arrow:hover svg {
    stroke: #fff;
}
.scroll-arrow.left { left: 0; }
.scroll-arrow.right { right: 0; }

.filter-btn {
    flex-shrink: 0; /* Prevents buttons from squishing */
    padding: 8px 18px;
    border-radius: 50px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
}
.filter-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: #fff;
}
.filter-btn.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(44, 147, 132, 0.2);
}

.catch-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
}
.catch-card.is-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Pagination */
.pagination {
    margin: 50px 0 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
.pagin-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pagin-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.pagin-btn.active {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

/* Calendar Page Enhancements (v14.7) */
.calendar-main-grid { 
    display: grid; 
    grid-template-columns: 1fr 380px; 
    gap: 40px; 
    margin-bottom: 20px; 
    align-items: stretch; 
}
@media (max-width: 1100px) { .calendar-main-grid { grid-template-columns: 1fr; } }

/* Shared Box Styling for Calendar and Sidebar */
.calendar-main-box,
.calendar-sidebar-events { 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 20px; 
    padding: 25px; /* Sjednocený padding pro lepší symetrii */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    display: flex;
    flex-direction: column;
    height: 100%; /* Force grid child to fill track */
    min-height: 0; 
    margin-top: 30px !important; /* Posun o 30px níž dle požadavku (v15.4) */
}

.calendar-sidebar-events h3 { font-size: 1.5rem; color: var(--water-deep); margin-bottom: 25px; font-weight: 800; }
.upcoming-events-list { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    overflow-y: auto; 
    position: relative; 
    flex: 1 1 0; /* Grow and shrink within the stretched container */
    flex-grow: 1; /* Ensure it occupies all space to push button down */
    padding-right: 8px;
    margin-bottom: 15px;
}

/* On Desktop, list stretches and scrolls within the stretched box */
.upcoming-events-list.expanded { max-height: none; }

/* Custom Scrollbar for Event List */
.upcoming-events-list::-webkit-scrollbar { width: 5px; }
.upcoming-events-list::-webkit-scrollbar-track { background: #f8fafc; border-radius: 10px; }

/* ICS Sync Notice Redesign (v14.7) */
.calendar-ics-row {
    display: flex;
    align-items: center;
    gap: 20px;
}
@media (max-width: 768px) {
    .calendar-ics-row {
        flex-direction: column;
        align-items: stretch;
    }
}
.calendar-sync-info {
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem; /* Mírně menší pro lepší fit vedle tlačítka */
    color: #64748b;
    border: 1px solid #e2e8f0;
    line-height: 1.4;
    flex: 1;
}
.calendar-sync-info .dashicons {
    color: var(--accent-green);
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.calendar-sync-info p {
    margin: 0;
}
.upcoming-events-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.upcoming-events-list::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }

/* Responzivní chování akcí (v15.5) - žádný vnitřní scroll na mobilu */
@media (max-width: 1100px) {
    .calendar-sidebar-events {
        height: auto !important; /* Box se přizpůsobí obsahu */
        margin-top: 20px !important;
    }
    .upcoming-events-list {
        max-height: none !important; 
        overflow: visible !important;
        flex: none !important;
    }
    /* Skryjeme vše od 4. položky dál, pokud není 'expanded' */
    .upcoming-events-list:not(.expanded) .event-sidebar-item:nth-child(n+4) {
        display: none !important;
    }
}

.event-sidebar-item { display: flex; gap: 15px; padding: 15px; border-radius: 12px; background: #f8fafc; border: 1px solid transparent; transition: all 0.3s ease; text-decoration: none !important; }
.event-sidebar-item:hover { background: #fff; border-color: var(--accent-green); transform: translateX(5px); }
.event-date-box { flex-shrink: 0; width: 60px; height: 60px; background: var(--accent-green); color: #fff; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-day { font-size: 1.2rem; font-weight: 800; line-height: 1; }
.event-month { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; opacity: 0.9; }
.event-info h4 { margin: 0 0 5px; font-size: 1rem; color: var(--water-deep); line-height: 1.3; }
.event-time { font-size: 0.85rem; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.show-more-events-btn { width: 100%; margin-top: 20px; background: #f1f5f9; border: none; padding: 12px; border-radius: 10px; color: var(--water-deep); font-weight: 700; cursor: pointer; transition: var(--tr); }
.show-more-events-btn:hover { background: #e2e8f0; }
.fc .fc-daygrid-day.fc-day-today { background: rgba(44, 147, 132, 0.05) !important; }
.fc .fc-event { border-radius: 6px; padding: 2px 5px; font-weight: 600; font-size: 0.9rem; border: none !important; }
.fc .fc-daygrid-day-number { font-weight: 800; font-size: 1rem; color: #475569; padding: 8px; }
.fc .fc-daygrid-day.has-event { background-color: #f0fdf4 !important; }
.fc .fc-daygrid-day.has-event .fc-daygrid-day-number { color: var(--accent-green); }

/* Spacing and Scrollbar Fixes (v14.6/v14.9 Refined) */
.calendar-main-grid { margin-bottom: 60px !important; }
@media (max-width: 1100px) {
    .calendar-main-grid { margin-bottom: 30px !important; }
}
.news-archive-section { padding-top: 40px; }
#calendar, .fc-scroller, .fc-scroller-harness { overflow: hidden !important; height: auto !important; }

/* =====================================================
   Čistá šablona (GDPR, Cookies, Právní stránky)
   ===================================================== */
.clean-page {
    background: #fff;
    padding: 60px 20px 80px;
    min-height: 60vh;
}
.clean-page-wrap {
    max-width: 820px;
    margin: 0 auto;
}
.clean-page-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--accent-green);
}
.clean-page-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    line-height: 1.2;
}
.clean-page-updated {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}
.clean-page-updated time {
    font-weight: 600;
    color: #64748b;
}
.clean-page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}
.clean-page-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 40px 0 12px;
}
.clean-page-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 10px;
}
.clean-page-content p {
    margin-bottom: 16px;
}
.clean-page-content ul,
.clean-page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.clean-page-content li {
    margin-bottom: 6px;
}
.clean-page-content a {
    color: var(--accent-green);
    text-decoration: underline;
    text-decoration-color: rgba(44,147,132,0.3);
    transition: 0.2s;
}
.clean-page-content a:hover {
    text-decoration-color: var(--accent-green);
}
.clean-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.clean-page-content th,
.clean-page-content td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.clean-page-content th {
    background: #f8fafc;
    font-weight: 700;
}
.clean-page-back {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}
.clean-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: 0.2s;
}
.clean-back-link:hover {
    color: var(--accent-green);
}
@media (max-width: 600px) {
    .clean-page { padding: 40px 16px 60px; }
    .clean-page-title { font-size: 1.7rem; }
}

/* =====================================================
   Single Post Template (single.php)
   ===================================================== */

/* HERO */
.sp-hero {
    position: relative;
    background: var(--bg-dark, #1a2332);
    min-height: 220px;
    display: flex;
    align-items: center;
    color: #fff;
}
.sp-hero--img {
    background-size: cover;
    background-position: center;
    min-height: 280px;
}
.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,20,35,0.92) 0%, rgba(10,20,35,0.4) 60%, transparent 100%);
}
.sp-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
    text-align: center;
}
.sp-cat-badge {
    display: inline-block;
    background: var(--accent-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 18px;
    transition: 0.2s;
}
.sp-cat-badge:hover { opacity: 0.85; }
.sp-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.sp-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
}

/* LAYOUT */
.sp-section {
    background: #f5f7f8;
    padding: 60px 20px 80px;
}
.sp-wrap {
    max-width: 1140px;
    margin: 0 auto;
}
.sp-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ARTICLE */
.sp-article {
    background: #fff;
    border-radius: 20px;
    padding: 48px 48px 40px;
    box-shadow: 0 4px 20px rgba(11, 58, 71, 0.05);
    min-width: 0;
}
.sp-entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #374151;
    display: flow-root; /* Fix pro floaty (obtékání) */
}
.sp-entry-content h2 {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 40px 0 14px;
}
.sp-entry-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 30px 0 10px;
}
.sp-entry-content p { margin-bottom: 18px; }
.sp-entry-content img {
    max-width: 100%;
    height: auto !important; /* Oprava natažených obrázků */
    border-radius: 12px;
    margin: 8px 0 16px;
    display: block;
}
.sp-entry-content img.alignleft { 
    float: left; 
    margin: 5px 20px 20px 0; 
    max-width: 45%; 
}
.sp-entry-content img.alignright { 
    float: right; 
    margin: 5px 0 20px 20px; 
    max-width: 45%; 
}
.sp-entry-content img.aligncenter { 
    display: block; 
    margin: 25px auto; 
}
.sp-entry-content ul, .sp-entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.sp-entry-content li { margin-bottom: 6px; }
.sp-entry-content a { color: var(--accent-green); text-decoration: underline; }
.sp-entry-content blockquote {
    border-left: 4px solid var(--accent-green);
    margin: 24px 0;
    padding: 14px 24px;
    background: rgba(44,147,132,0.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4b5563;
}

/* TAGY */
.sp-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e9eef4;
}
.sp-tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sp-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}
.sp-tag:hover { background: var(--accent-green); color: #fff; border-color: var(--accent-green); }

/* POST NAV */
.sp-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e9eef4;
}
.sp-post-nav-item a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e9eef4;
    text-decoration: none;
    transition: 0.2s;
}
.sp-post-nav-item a:hover { border-color: var(--accent-green); background: rgba(44,147,132,0.05); }
.sp-post-nav-next a { text-align: right; }
.sp-nav-dir {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sp-nav-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SIDEBAR */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 190px;
}
.sp-back-btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent-green);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: 0.2s;
}
.sp-back-btn:hover { background: #238378; transform: translateY(-2px); }
.sp-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 4px 20px rgba(11, 58, 71, 0.05);
    border: 1px solid rgba(11, 58, 71, 0.05);
}
.sp-sidebar-title {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-green);
}
.sp-recent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}
.sp-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.sp-recent-item:hover .sp-recent-title { color: var(--accent-green); }
.sp-recent-thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.sp-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-recent-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sp-recent-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.2s;
}
.sp-recent-date {
    font-size: 0.78rem;
    color: #64748b;
}
.sp-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sp-archive-list li { margin-bottom: 6px; }
.sp-archive-list a {
    font-size: 0.88rem;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 6px;
}
.sp-archive-list a:hover { background: rgba(44,147,132,0.08); color: var(--accent-green); }
/* RESPONSIVE */
@media (max-width: 1024px) {
    .sp-layout { grid-template-columns: 1fr; }
    .sp-sidebar { position: static; }
}
@media (max-width: 640px) {
    .sp-hero { min-height: 340px; }
    .sp-hero--img { min-height: 380px; }
    .sp-article { padding: 28px 20px; }
    .sp-post-nav { grid-template-columns: 1fr; }
}

/* Sidebar Archive - Collapsible Years */
.sp-archive-years { list-style: none; padding: 0; margin: 0; }
.sp-archive-year-item { border-bottom: 1px solid #f1f5f9; }
.sp-archive-year-item:last-child { border-bottom: none; }
.sp-year-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    border-radius: 6px;
    transition: 0.15s;
}
.sp-year-toggle:hover { background: rgba(44,147,132,0.07); color: var(--accent-green); }
.sp-year-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.sp-year-toggle[aria-expanded= true] .sp-year-arrow { transform: rotate(180deg); }
.sp-archive-months {
    list-style: none;
    padding: 0 4px 8px 12px;
    margin: 0;
    display: none;
}
.sp-archive-months.open { display: block; }
.sp-archive-months li { margin-bottom: 4px; }
.sp-archive-months a {
    font-size: 0.84rem;
    color: #475569;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 3px 6px;
    border-radius: 5px;
    transition: 0.15s;
}
.sp-archive-months a:hover { background: rgba(44,147,132,0.08); color: var(--accent-green); }
.sp-month-count { color: #94a3b8; font-weight: 400; }

/* New Static Year Links (v8.910) */
.sp-year-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.sp-year-link:hover {
    background: rgba(44,147,132,0.07);
    color: var(--accent-green);
    transform: translateX(4px);
}
.sp-btn-show-older {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
}
.sp-btn-show-older:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(44,147,132,0.2);
}

/* =====================================================
   Heslem chráněný obsah (Password Form v8.96)
   ===================================================== */
.rm-password-protected-wrap {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    margin: 40px 0;
}

.rm-password-protected-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(11, 58, 71, 0.08);
}

.rm-pwd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(44, 147, 132, 0.1);
    color: var(--accent-green);
    border-radius: 50%;
    margin-bottom: 20px;
}

.rm-pwd-icon svg {
    width: 32px;
    height: 32px;
}

.rm-pwd-title {
    font-size: 2rem;
    color: var(--water-deep);
    margin-bottom: 15px;
    font-weight: 800;
}

.rm-pwd-desc {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.rm-pwd-form .rm-pwd-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rm-pwd-form input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    text-align: center;
    color: var(--text-main);
}

.rm-pwd-form input[type="password"]:focus {
    border-color: var(--accent-green);
}

.rm-pwd-form .btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    justify-content: center;
}

/* =====================================================
   Dokumenty / PDF Karty (.rm-docs-*)
   ===================================================== */
.rm-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.rm-doc-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 20px 22px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 16px rgba(11, 58, 71, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rm-doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(11, 58, 71, 0.12);
    color: var(--text-main);
}

.rm-doc-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(44, 147, 132, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    font-size: 1.6rem;
}

.rm-doc-info { overflow: hidden; }

.rm-doc-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--water-deep);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-doc-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 3px;
    display: block;
}

.rm-doc-badge {
    flex-shrink: 0;
    margin-left: auto;
    background: var(--accent-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rm-docs-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0,0,0,0.07);
}

/* Skrytí tagů pod příspěvky */
.sp-tags { display: none !important; }

/* Mapa v detailu závodu */
.map-wrap .glightbox {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}
.map-wrap .glightbox:hover {
    transform: scale(1.02);
}
.map-wrap img {
    transition: opacity 0.3s ease;
}
.map-wrap:hover img {
    opacity: 0.9;
}

/* ===================== GALERIE: CTA SEKCE "VAŠE ÚLOVKY" (Kompaktní) ===================== */
.galerie-ulovky-cta {
    background: linear-gradient(135deg, var(--water-mid) 0%, var(--water-deep) 100%);
    border-radius: 20px;
    padding: 30px 20px;
    margin-top: 81px; /* desktop alignment override by grid-area if needed */
    margin-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--sh-box-dark);
}

.galerie-ulovky-cta::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--accent-green);
    filter: blur(50px);
    opacity: 0.3;
}

.galerie-ulovky-cta-inner {
    position: relative;
    z-index: 2;
}

.ulovky-cta-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    color: var(--accent-bright);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.galerie-ulovky-cta h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.25;
}

.galerie-ulovky-cta p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-ulovky {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-green);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--tr);
    box-shadow: 0 8px 20px rgba(44, 147, 132, 0.25);
    width: 100%;
    justify-content: center;
}

.btn-ulovky:hover {
    background: #34b3a0;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(44, 147, 132, 0.4);
    color: #fff;
}

.btn-ulovky i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-ulovky:hover i {
    transform: rotate(15deg) scale(1.1);
}
/* ===================== GALERIE REZERVACÍ / REVÍRŮ ===================== */
.revir-custom-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-large-area a {
    display: block;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.gallery-large-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-small-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-small-area a {
    display: block;
    height: calc(140px); /* 450 / 3 roughly */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-small-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.revir-custom-gallery-grid a:hover img {
    transform: scale(1.05);
}

/* Podpora pro malé fotky - aby se nerozmazávaly */
.glightbox.is-small-resolution img {
    object-fit: scale-down !important;
    background: #f1f5f9;
}

@media (max-width: 768px) {
    .revir-custom-gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-large-area a {
        height: 300px;
    }
    .gallery-small-area {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .gallery-small-area a {
        flex-shrink: 0;
        width: 150px;
        height: 100px;
    }
}

/* Mobilní optimalizace pro info boxy revírů (2 sloupce) */
@media (max-width: 600px) {
    .revir-stats-grid,
    .revir-info {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 40px !important;
    }
    
    .stat-box,
    .info-box {
        flex: none !important;
        max-width: none !important;
        padding: 20px 10px !important;
        gap: 6px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .stat-box-icon svg,
    .info-box-icon svg {
        width: 36px !important;
        height: 36px !important;
        margin-bottom: 8px !important;
    }

    .stat-box-label,
    .info-box-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 2px !important;
    }

    .stat-box-value,
    .info-box-value {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }
}

/* =====================================================
   Newsletter Popup – Ikona v hlavičce + Modál
   ===================================================== */

.btn-newsletter-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--icon-bg, rgba(11, 58, 71, 0.06));
    border: none;
    cursor: pointer;
    color: var(--icon-color, var(--water-mid));
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.btn-newsletter-popup:hover {
    background: var(--accent-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44, 147, 132, 0.3);
}
.btn-newsletter-popup svg { width: 18px; height: 18px; }

.mp-popup-overlay {
  backdrop-filter: blur(6px);
    position: fixed;
    inset: 0;
    background: rgba(3, 21, 27, 0.65);

    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mp-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.mp-popup-box {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mp-popup-overlay.is-open .mp-popup-box {
    transform: translateY(0) scale(1);
}
.mp-popup-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.mp-popup-close:hover { background: rgba(255,255,255,0.3); }
.mp-popup-icon {
    width: 72px; height: 72px;
    background: rgba(44, 147, 132, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    color: var(--accent-green);
}
.mp-popup-title { font-size: 1.6rem; font-weight: 900; color: var(--water-deep); margin: 0 0 12px; }
.mp-popup-desc { font-size: 0.95rem; color: #64748b; line-height: 1.6; margin: 0 auto 28px; max-width: 360px; }
.mp-popup-form { width: 100%; overflow: hidden; }
.mp-popup-form > *, .mp-popup-form .mailpoet_form { width: 100% !important; max-width: 100% !important; }
/* Fialový link → bílý */
.mp-popup-form a { color: rgba(255,255,255,0.85) !important; text-decoration-color: rgba(255,255,255,0.4) !important; }
.mp-popup-form a:hover { color: #fff !important; }
.mp-popup-form input[type="email"],
.mp-popup-form input[type="text"] {
    width: 100% !important;
    padding: 13px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}
.mp-popup-form input[type="email"]:focus,
.mp-popup-form input[type="text"]:focus { border-color: var(--accent-green) !important; }
.mp-popup-form input[type="submit"],
.mp-popup-form button[type="submit"] {
    width: 100% !important;
    padding: 13px !important;
    background: var(--accent-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 6px !important;
}
.mp-popup-form input[type="submit"]:hover,
.mp-popup-form button[type="submit"]:hover { background: #238378 !important; transform: translateY(-2px) !important; }
@media (max-width: 480px) {
    .mp-popup-box { padding: 40px 24px 30px; }
    .mp-popup-title { font-size: 1.3rem; }
}

/* =====================================================
   Galerie – Archiv sekce
   ===================================================== */
.galerie-archiv-container { margin-top: 70px; padding-bottom: 20px; }
.galerie-archiv-header { text-align: center; margin-bottom: 40px; }
.archiv-main-title { font-size: 2rem; font-weight: 900; color: var(--water-deep); position: relative; display: inline-block; padding-bottom: 14px; }
.archiv-main-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--accent-green); border-radius: 2px; }
.archiv-sub-title { font-size: 1.2rem; font-weight: 700; color: var(--water-mid); margin-bottom: 20px; }
.galerie-archiv-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.galerie-archiv-grid.no-video { grid-template-columns: 1fr; }
.archiv-grid-3col { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 1024px) {
    .galerie-archiv-grid { grid-template-columns: 1fr; }
    .archiv-grid-3col { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .archiv-grid-3col { grid-template-columns: 1fr !important; }
    .archiv-main-title { font-size: 1.5rem; }
}

/* =====================================================
   Sidebar Widgets (Archive/Post/Zavody) - v15.0
   ===================================================== */
.rm-sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 15px 20px; /* Further reduced from 20px */
    box-shadow: 0 4px 20px rgba(11, 58, 71, 0.05);
    border: 1px solid rgba(11, 58, 71, 0.05);
    margin-bottom: 12px; /* Further reduced from 20px */
    overflow: hidden; /* Ensure content doesn't bleed out */
}

/* Specific Prominent Style for Newsletter Widget */
.rm-sidebar-widget.widget-newsletter {
    background: #0b3a47; /* Dark Teal from the theme */
    padding: 24px 25px; /* Adjusted contextually */
    border: none;
    box-shadow: 0 12px 40px rgba(9, 59, 74, 0.2);
    position: relative;
    z-index: 1;
}

.rm-sidebar-widget.widget-newsletter .rm-widget-title {
    color: #fff;
    border-bottom-color: var(--accent-green);
    margin-bottom: 15px; /* Reduced from 22px */
}

.rm-widget-title {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin: 0 0 12px; /* Reduced from 18px */
    padding-bottom: 10px; /* Reduced from 12px */
    border-bottom: 2px solid var(--accent-green);
}

/* MailPoet Form Styling Overrides for Sidebar */
.widget-newsletter .mailpoet_form {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.widget-newsletter .mailpoet_paragraph {
    margin-bottom: 18px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
}

/* Nuclear override for MailPoet links */
.widget-newsletter div.mailpoet_form a,
.widget-newsletter div.mailpoet_form a *,
.widget-newsletter .mailpoet_paragraph a,
.widget-newsletter .mailpoet_paragraph a span,
.widget-newsletter a[href] {
    color: #2c9384 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

.widget-newsletter div.mailpoet_form a:hover,
.widget-newsletter a[href]:hover {
    color: #ffffff !important;
}

/* Hide MailPoet internal title and description */
.widget-newsletter .mailpoet_form_title,
.widget-newsletter .mailpoet_form_description {
    display: none !important; 
}

.widget-newsletter .mailpoet_text,
.widget-newsletter .mailpoet_textarea,
.widget-newsletter .mailpoet_select {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
}

.widget-newsletter .mailpoet_text:focus {
    border-color: var(--accent-green) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(44, 147, 132, 0.2) !important;
}

.widget-newsletter .mailpoet_text::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Checkbox alignment fixes for dark card */
.widget-newsletter .mailpoet_checkbox_label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem !important;
    cursor: pointer;
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 0 !important;
}

.widget-newsletter .mailpoet_checkbox {
    margin-right: 10px !important;
    vertical-align: middle;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: var(--accent-green) !important;
}

.widget-newsletter .mailpoet_submit {
    width: 100% !important;
    padding: 16px !important;
    background-color: var(--accent-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 8px !important;
}

.widget-newsletter .mailpoet_submit:hover {
    background-color: #238378 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 147, 132, 0.4);
}

.widget-newsletter .mailpoet_message_success {
    color: var(--accent-green) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    margin-top: 15px !important;
    text-align: center;
}

/* --- ZÁVODY CATALOG --- */
.zavod-card {
    background: #fff;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
    border: none !important;
}

.zavod-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.zavod-card-image {
    position: relative;
    padding-top: 56.25% !important; /* 16:9 */
    border-radius: 20px !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.zavod-card-image img {
    position: absolute !important;
    top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important;
    object-fit: cover !important;
}

/* =========================================
   RM-Z BADGES (DEFINITIVE STABLE FIX)
   v23.0 - Moving outside image area to bypass skeletons
   ========================================= */
.zavod-card {
    position: relative !important;
}

span.rm-z-badges-wrap {
    position: absolute !important;
    top: 172px !important; /* Pozice přesně na spodní hraně 16:9 obrázku */
    right: 15px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    z-index: 500 !important;
    background: transparent !important;
    width: auto !important;
    max-width: none !important;
    pointer-events: none !important;
}

span.rm-z-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    background-image: none !important;
    animation: none !important;
    text-decoration: none !important;
    line-height: normal !important;
}

span.rm-z-badge::before, span.rm-z-badge::after {
    display: none !important;
    content: none !important;
}

/* Datum - Tyrkysové + Fix centr */
span.rm-z-badge.is-date {
    background-color: #2c9384 !important;
    padding: 0 14px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 0.9rem !important;
    min-width: 95px !important;
    box-shadow: 0 4px 12px rgba(44, 147, 132, 0.45) !important;
}

/* Ikony - Barevné */
span.rm-z-badge.is-icon {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 1.25rem !important;
}

span.rm-z-badge.type-results { background-color: #f1c40f !important; }
span.rm-z-badge.type-gallery { background-color: #3498db !important; }
span.rm-z-badge.type-video   { background-color: #9b59b6 !important; }

@media (max-width: 768px) {
    span.rm-z-badges-wrap { top: 150px !important; right: 8px !important; gap: 4px !important; }
    span.rm-z-badge.is-date { height: 32px !important; line-height: 32px !important; padding: 0 10px !important; font-size: 0.75rem !important; min-width: 75px !important; }
    span.rm-z-badge.is-icon { width: 32px !important; height: 32px !important; line-height: 32px !important; font-size: 1.1rem !important; }
}

span.rm-z-badge.type-results { background-color: #f1c40f !important; }
span.rm-z-badge.type-gallery { background-color: #3498db !important; }
span.rm-z-badge.type-video   { background-color: #9b59b6 !important; }

@media (max-width: 768px) {
    span.rm-z-badges-wrap { top: 155px !important; right: 10px !important; gap: 4px !important; }
    span.rm-z-badge.is-date { height: 32px !important; line-height: 32px !important; padding: 0 10px !important; font-size: 0.75rem !important; min-width: 75px !important; }
    span.rm-z-badge.is-icon { width: 32px !important; height: 32px !important; line-height: 32px !important; font-size: 1rem !important; }
}

.zavod-location-label {
    color: #2c9384 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin-bottom: 10px !important;
}

.zavod-title-mockup {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #001517 !important;
    margin: 5px 0 15px 0 !important;
    line-height: 1.15 !important;
}

.zavod-excerpt-mockup {
    color: #4A5568 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .zavody-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 640px) {
    .zavody-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   SIDEBAR EVENT CARDS (v18.0)
   ========================================= */
.sidebar-event-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* Clickable state */
a.sidebar-event-card {
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

a.sidebar-event-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
    box-shadow: 0 8px 20px rgba(44, 147, 132, 0.12);
}

/* Static state */
div.sidebar-event-card {
    cursor: default;
    background: #fdfdfd;
}

.sidebar-event-date {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--accent-green);
    color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

/* New: Layout for events in main content */
.content-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.content-card-layout {
    margin-bottom: 0 !important;
    height: 100%;
}

.sidebar-event-date .day {
    font-size: 1.25rem;
    font-weight: 800;
}

.sidebar-event-date .month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-event-info {
    flex-grow: 1;
    min-width: 0;
}

.sidebar-event-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--water-deep);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-event-location {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-event-location .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* =========================================
   ZÁVOD INDICATORS (POST LIST FIX)
   v18.0 - Oprava velikosti a zarovnání
   ========================================= */
/* Ikonky v katalogu jsou nyní řešeny přes systém zavod-badge */

/* =========================================
   SINGLE ZÁVOD - SEPARATED SECTIONS
   ========================================= */
#vysledky, #media {
    scroll-margin-top: 120px;
}

.results-main-wrap {
    margin-top: 25px;
}

.result-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.06) !important;
}

.special-award-box {
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.awards-list-box li:last-child {
    border-bottom: none !important;
}

.btn-primary:hover, .btn-outline:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ==========================================================================
   RM GLOBAL ACCORDION PATCH (Vynucení funkčnosti & stylingu)
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar-section {
        margin-bottom: 15px !important;
        margin-top: 0 !important;
        background: #f8fafc !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .sidebar-title {
        margin: 0 !important;
        padding: 16px 20px !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        color: #0b3a47 !important;
        background: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        cursor: pointer !important;
        border-bottom: 1px solid transparent !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .sidebar-section.active .sidebar-title {
        border-bottom-color: #f1f5f9 !important;
    }

    .accordion-content {
        padding: 0 20px !important;
        background: #fdfdfd !important;
        display: none;
        transition: none !important;
    }

    .sidebar-section.active .accordion-content {
        display: block !important;
        padding-bottom: 20px !important;
        padding-top: 10px !important;
        height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .accordion-chevron {
        display: block !important;
        font-size: 14px !important;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        color: var(--accent-green) !important;
    }

    .sidebar-section.active .accordion-chevron {
        transform: rotate(180deg) !important;
        color: var(--accent-green) !important;
    }

    .reviry-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .reviry-btn {
        display: block !important;
        padding: 14px 18px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1px solid #edf2f7 !important;
        color: #475569 !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
    }

    .reviry-btn.active {
        background: var(--accent-green) !important;
        color: #fff !important;
        border-color: var(--accent-green) !important;
    }

    .sidebar-event-card {
        margin-bottom: 12px !important;
        padding: 12px 15px !important;
        background: #fff !important;
        border-radius: 12px !important;
        border: 1px solid #edf2f7 !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        text-decoration: none !important;
    }
}

.sidebar-desc-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    padding: 0 20px;
}

.results-podium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .results-podium-grid {
        grid-template-columns: 1fr;
    }
}

.result-card.podium-1 { border-top: 4px solid #f1c40f; }
.result-card.podium-2 { border-top: 4px solid #ced4da; }
.result-card.podium-3 { border-top: 4px solid #cd7f32; }

.results-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.full-width-column {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .results-secondary-grid {
        grid-template-columns: 1fr;
    }
    .full-width-column {
        grid-column: auto;
    }
}

.special-award-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
    height: 100%;
}

.special-award-box.side-by-side {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.special-award-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.fish-award-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.fish-award-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fish-award-item .medal {
    font-size: 1.8rem;
    min-width: 40px;
}

.fish-award-item .fish-info h5 {
    margin: 0;
    color: var(--water-deep);
    font-size: 1.1rem;
    font-weight: 700;
}

.fish-award-item .fish-info p {
    margin: 2px 0 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.awards-list-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    height: 100%;
}

@media (max-width: 400px) {
    .results-secondary-grid {
        grid-template-columns: 1fr;
    }
    .special-award-box {
        padding: 20px 15px;
        gap: 15px;
    }
    .special-award-box > div:first-child {
        font-size: 2rem !important;
    }
    .awards-list-box {
        padding: 20px 15px;
    }
}

@media (max-width: 330px) {
    .special-award-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .awards-list-box li {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }
}

/* =====================================================
   FIX 320px RESPONSIVITY (v15.7)
   ===================================================== */
@media (max-width: 350px) {
    .container { padding: 0 12px !important; }
    .header-inner { padding: 0 10px !important; }
    .logo-title { font-size: 1.1rem !important; }
    .logo-icon { width: 32px !important; height: 32px !important; }
    .logo-subtitle { font-size: 0.6rem !important; }
    .header-actions { gap: 6px !important; margin-right: 2px !important; }
    .btn-header-cta { padding: 8px !important; }
    .nav-toggle { margin-right: 5px !important; padding: 5px !important; }
    
    .rm-card { 
        padding: 16px !important; 
        min-width: 0 !important; 
    }
    .info-boxes-wrapper { gap: 12px !important; }
    
    .hero-content h2 { font-size: 1.4rem !important; }
    .hero-eyebrow { font-size: 0.6rem !important; padding: 2px 8px !important; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .btn { padding: 10px 20px; font-size: 0.85rem; text-align: center; }
}

/* =====================================================
   O NÁS - KOMPAKTNÍ BOXY "ČEMU SE VĚNUJEME" (v15.8)
   ===================================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.activity-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.activity-card:hover { transform: translateY(-3px); }

.activity-card h3 { 
    font-size: 1.15rem !important; 
    font-weight: 800;
    color: var(--water-deep);
    margin: 12px 0 10px 0; 
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.activity-desc, .activity-desc p { 
    font-size: 0.88rem !important; 
    line-height: 1.55; 
    color: #475569;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .activities-grid { 
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .activity-card { 
        padding: 20px !important; 
    }
    .activity-card h3 { 
        font-size: 1.05rem !important; 
    }
    .activity-desc, .activity-desc p { 
        font-size: 0.82rem !important; 
    }
    
    .about-page .activity-card {
        padding: 0 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
        overflow: hidden;
    }
    .about-page .activity-card .activity-icon {
        width: 100%;
        height: 120px !important;
        background: #f8fafc;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 20px;
    }
    .about-page .activity-card .activity-icon img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
    }
    .about-page .activity-card h3 {
        padding: 15px 15px 5px 15px !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    .about-page .activity-card .activity-desc {
        padding: 0 15px 15px 15px !important;
        font-size: 0.85rem !important;
    }
    .about-page .activity-card .activity-desc p {
        font-size: 0.85rem !important;
    }
}

/* --- Partneři Grid (Premium) --- */
.partners-container { padding-bottom: 60px; }
.partners-group { margin-bottom: 80px; }
.partners-group h2 { 
    font-size: 1.8rem; font-weight: 800; color: var(--water-deep); 
    margin-bottom: 35px; position: relative; padding-bottom: 12px;
}
.partners-group h2::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--accent-green); border-radius: 2px;
}

.partners-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.partners-grid.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.partners-grid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.partner-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    min-height: 140px;
    text-decoration: none;
}
.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.4s ease;
}
.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--accent-green);
}
.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    .partner-item { padding: 20px; min-height: 110px; }
}
@media (max-width: 480px) {
    .partners-grid { grid-template-columns: 1fr !important; }
}

/* --- Archiv: Hierarchie kategorií --- */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-categories li.parent-cat-item {
    margin-bottom: 8px;
}
.widget-categories .sub-categories-list {
    list-style: none;
    padding-left: 18px;
    margin-top: 6px;
    margin-bottom: 12px;
    border-left: 2px solid rgba(44, 147, 132, 0.15);
}
.widget-categories .sub-cat-item {
    margin-bottom: 4px;
    font-size: 0.92rem;
}
.widget-categories .sub-cat-item a {
    color: var(--text-main, #4b5563);
    display: block;
    padding: 2px 0;
    transition: all 0.2s ease;
    text-decoration: none;
}
.widget-categories .sub-cat-item a:hover {
    color: var(--accent-green, #2c9384);
    padding-left: 4px;
}


@media (max-width: 1024px) {
    .zavody-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 640px) {
    .zavody-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   SIDEBAR EVENT CARDS (v18.0)
   ========================================= */
.sidebar-event-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* Clickable state */
a.sidebar-event-card {
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

a.sidebar-event-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
    box-shadow: 0 8px 20px rgba(44, 147, 132, 0.12);
}

/* Static state */
div.sidebar-event-card {
    cursor: default;
    background: #fdfdfd;
}

.sidebar-event-date {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--accent-green);
    color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

/* New: Layout for events in main content */
.content-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.content-card-layout {
    margin-bottom: 0 !important;
    height: 100%;
}

.sidebar-event-date .day {
    font-size: 1.25rem;
    font-weight: 800;
}

.sidebar-event-date .month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-event-info {
    flex-grow: 1;
    min-width: 0;
}

.sidebar-event-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--water-deep);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-event-location {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-event-location .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* =========================================
   ZÁVOD INDICATORS (POST LIST FIX)
   v18.0 - Oprava velikosti a zarovnání
   ========================================= */
/* Ikonky v katalogu jsou nyní řešeny přes systém zavod-badge */

/* =========================================
   SINGLE ZÁVOD - SEPARATED SECTIONS
   ========================================= */
#vysledky, #media {
    scroll-margin-top: 120px;
}

.results-main-wrap {
    margin-top: 25px;
}

.result-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.06) !important;
}

.special-award-box {
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.awards-list-box li:last-child {
    border-bottom: none !important;
}

.btn-primary:hover, .btn-outline:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ==========================================================================
   RM GLOBAL ACCORDION PATCH (Vynucení funkčnosti & stylingu)
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar-section {
        margin-bottom: 15px !important;
        margin-top: 0 !important; /* Odstranění velkých mezer mezi boxy */
        background: #f8fafc !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .sidebar-title {
        margin: 0 !important;
        padding: 16px 20px !important; /* Kompaktnější výška */
        font-size: 1rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        color: #0b3a47 !important;
        background: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        cursor: pointer !important;
        border-bottom: 1px solid transparent !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .sidebar-section.active .sidebar-title {
        border-bottom-color: #f1f5f9 !important;
    }

    .accordion-content {
        padding: 0 20px !important;
        background: #fdfdfd !important;
        display: none;
        transition: none !important;
    }

    .sidebar-section.active .accordion-content {
        display: block !important;
        padding-bottom: 20px !important; /* Méně místa dole */
        padding-top: 10px !important;  /* Méně místa nahoře */
        height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .accordion-chevron {
        display: block !important;
        font-size: 14px !important;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        color: var(--accent-green) !important;
    }

    .sidebar-section.active .accordion-chevron {
        transform: rotate(180deg) !important;
        color: var(--accent-green) !important;
    }

    /* Vnitřní prvky (tlačítka kategorií) */
    .reviry-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .reviry-btn {
        display: block !important;
        padding: 14px 18px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        border: 1px solid #edf2f7 !important;
        color: #475569 !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
    }

    .reviry-btn.active {
        background: var(--accent-green) !important;
        color: #fff !important;
        border-color: var(--accent-green) !important;
    }

    /* Event karty v sidebaru */
    .sidebar-event-card {
        margin-bottom: 12px !important;
        padding: 12px 15px !important;
        background: #fff !important;
        border-radius: 12px !important;
        border: 1px solid #edf2f7 !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        text-decoration: none !important;
    }
}

/* Sidebar Info Text Alignment Fix */
.sidebar-desc-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Results & Podium Layout (Unified) */
.results-main-wrap {
    padding-left: 5px;
}

.results-podium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .results-podium-grid {
        grid-template-columns: 1fr;
    }
}

.result-card.podium-1 { border-top: 4px solid #f1c40f; }
.result-card.podium-2 { border-top: 4px solid #ced4da; }
.result-card.podium-3 { border-top: 4px solid #cd7f32; }

.results-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.full-width-column {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .results-secondary-grid {
        grid-template-columns: 1fr;
    }
    .full-width-column {
        grid-column: auto;
    }
}

/* Special Awards Styles (Unified) */
.special-award-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
    height: 100%;
}

.special-award-box.side-by-side {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.special-award-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.fish-award-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.fish-award-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fish-award-item .medal {
    font-size: 1.8rem;
    min-width: 40px;
}

.fish-award-item .fish-info h5 {
    margin: 0;
    color: var(--water-deep);
    font-size: 1.1rem;
    font-weight: 700;
}

.fish-award-item .fish-info p {
    margin: 2px 0 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.awards-list-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    height: 100%;
}

@media (max-width: 400px) {
    .results-secondary-grid {
        grid-template-columns: 1fr;
    }
    .special-award-box {
        padding: 20px 15px;
        gap: 15px;
    }
    .special-award-box > div:first-child {
        font-size: 2rem !important;
    }
    .awards-list-box {
        padding: 20px 15px;
    }
}

@media (max-width: 330px) {
    .special-award-box {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .awards-list-box li {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }
}

/* =====================================================
   FIX 320px RESPONSIVITY (v15.7)
   ===================================================== */
@media (max-width: 350px) {
    .container { padding: 0 12px !important; }
    .header-inner { padding: 0 10px !important; }
    .logo-title { font-size: 1.1rem !important; }
    .logo-icon { width: 32px !important; height: 32px !important; }
    .logo-subtitle { font-size: 0.6rem !important; }
    .header-actions { gap: 6px !important; margin-right: 2px !important; }
    .btn-header-cta { padding: 8px !important; }
    .nav-toggle { margin-right: 5px !important; padding: 5px !important; }
    
    /* Boxy na úvodní stránce */
    .rm-card { 
        padding: 16px !important; 
        min-width: 0 !important; 
    }
    .info-boxes-wrapper { gap: 12px !important; }
    
    /* Hero sekce */
    .hero-content h2 { font-size: 1.4rem !important; }
    .hero-eyebrow { font-size: 0.6rem !important; padding: 2px 8px !important; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .btn { padding: 10px 20px; font-size: 0.85rem; text-align: center; }
}

/* =====================================================
   O NÁS - KOMPAKTNÍ BOXY "ČEMU SE VĚNUJEME" (v15.8)
   ===================================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2x2 default (PC & Tablet) */
    gap: 24px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.activity-card {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Fix flex/grid blowout */
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.activity-card:hover { transform: translateY(-3px); }

.activity-card h3 { 
    font-size: 1.15rem !important; 
    font-weight: 800;
    color: var(--water-deep);
    margin: 12px 0 10px 0; 
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.activity-desc, .activity-desc p { 
    font-size: 0.88rem !important; 
    line-height: 1.55; 
    color: #475569;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .activities-grid { 
        grid-template-columns: minmax(0, 1fr); /* 1 sloupec na mobilu */
        gap: 16px;
    }
    .activity-card { 
        padding: 20px !important; 
    }
    .activity-card h3 { 
        font-size: 1.05rem !important; 
    }
    .activity-desc, .activity-desc p { 
        font-size: 0.82rem !important; 
    }
    
    /* Vlastní "Article-like" styl pro karty "Kdo jsme" na stránce "O nás" na mobilech */
    .about-page .activity-card {
        padding: 0 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
        overflow: hidden;
    }
    .about-page .activity-card .activity-icon {
        width: 100%;
        height: 120px !important;
        background: #f8fafc;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 20px;
    }
    .about-page .activity-card .activity-icon img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
    }
    .about-page .activity-card h3 {
        padding: 15px 15px 5px 15px !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    .about-page .activity-card .activity-desc {
        padding: 0 15px 15px 15px !important;
        font-size: 0.85rem !important;
    }
    .about-page .activity-card .activity-desc p {
        font-size: 0.85rem !important;
    }
}

/* --- Partneři Grid (Premium) --- */
.partners-container { padding-bottom: 60px; }
.partners-group { margin-bottom: 80px; }
.partners-group h2 { 
    font-size: 1.8rem; font-weight: 800; color: var(--water-deep); 
    margin-bottom: 35px; position: relative; padding-bottom: 12px;
}
.partners-group h2::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--accent-green); border-radius: 2px;
}

.partners-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.partners-grid.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.partners-grid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.partner-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    min-height: 140px;
    text-decoration: none;
}
.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.4s ease;
}
.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--accent-green);
}
.partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    .partner-item { padding: 20px; min-height: 110px; }
}
@media (max-width: 480px) {
    .partners-grid { grid-template-columns: 1fr !important; }
}

/* --- Archiv: Hierarchie kategorií --- */
.widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-categories li.parent-cat-item {
    margin-bottom: 8px;
}
.widget-categories .sub-categories-list {
    list-style: none;
    padding-left: 18px;
    margin-top: 6px;
    margin-bottom: 12px;
    border-left: 2px solid rgba(44, 147, 132, 0.15);
}
.widget-categories .sub-cat-item {
    margin-bottom: 4px;
    font-size: 0.92rem;
}
.widget-categories .sub-cat-item a {
    color: var(--text-main, #4b5563);
    display: block;
    padding: 2px 0;
    transition: all 0.2s ease;
    text-decoration: none;
}
.widget-categories .sub-cat-item a:hover {
    color: var(--accent-green, #2c9384);
    padding-left: 4px;
}
