:root {
  --primary-color: #1f4e3d;
  --secondary-color: #fad41f;
  --text-color: #2d2d2d;
  --bg-light: #f8f9fa;
  --high-contrast-bg: #000;
  --high-contrast-text: #fff;
}

body {
  font-family: 'Lora', serif;
  font-size: 1.125rem;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: var(--primary-color);
}

/* Accessibility Bar */
.accessibility-bar {
  background-color: #343a40;
  padding: 0.5rem 0;
}
.accessibility-bar a,
.accessibility-bar button {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
}
.accessibility-bar a:hover, 
.accessibility-bar a:focus,
.accessibility-bar button:hover,
.accessibility-bar button:focus {
  text-decoration: underline;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Navbar */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar.stick {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.navbar-brand img {
  transition: transform 0.3s ease;
}
.navbar-brand:hover img {
  transform: scale(1.05);
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  position: relative;
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:focus {
  color: var(--secondary-color);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after, 
.navbar-nav .nav-link:focus::after {
  width: 100%;
}
.navbar-nav .nav-link.dropdown-toggle::after {
  content: none;
}
.dropdown-menu {
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-size: 1rem;
}
.dropdown-item:hover, 
.dropdown-item:focus {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Dropdown submenu - 2 poziom */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  margin-left: 0;
}
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}
.dropdown-submenu > .dropdown-item::after {
  content: '\f054';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  float: right;
  margin-left: 10px;
}
@media (max-width: 991px) {
  .dropdown-submenu .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-left: 1rem;
    box-shadow: none;
  }
}

/* Hero Carousel */
.carousel-item img {
  object-fit: cover;
  height: 600px;
  width: 100%;
}
.carousel-caption {
  background: rgba(31, 78, 61, 0.85);
  border-radius: 8px;
  padding: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.carousel-caption h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.carousel-caption h1 a {
  color: #fff;
  text-decoration: none;
}
.carousel-caption h1 a:hover {
  color: var(--secondary-color);
}
.carousel-caption p {
  font-size: 1.25rem;
  color: #f8f9fa;
  margin: 0;
}

/* Header Page */
.header-page {
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  position: relative;
}
.header-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}
.header-page-content {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}
.header-page-content h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 4rem;
}
.header-page-content .lead-text {
  font-size: 1.25rem;
}
.header-page-content hr {
  border-color: #fff;
  opacity: 0.5;
}

#header-baner-page {
  padding: 0 !important;
}

/* Sections */
section {
  padding: 4rem 0;
}

.logo-2 {
  margin-top: -200px;
  z-index: 999;
  position: relative;
}

/* O Marce - ikony/linki */
.mik-o-marce-links {
  margin-top: 2rem;
}
.mik-icon-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid rgba(31, 78, 61, 0.18);
  border-radius: 14px;
  text-decoration: none;
  color: var(--primary-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mik-icon-tile:hover,
.mik-icon-tile:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}
.mik-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}
.mik-icon-title {
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mik-icon-title strong {
  color: var(--secondary-color);
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  cursor: pointer;
}
.card-img-top {
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem;
}
.card-title {
  font-size: 1.25rem;
  color: var(--primary-color);
}
.card-title a {
  color: var(--primary-color);
  text-decoration: none;
}
.card-title a:hover {
  color: var(--secondary-color);
}

.featured-post {
  background: linear-gradient(135deg, #fbd41f 0%, #f8e08e 100%);
  border: 2px solid var(--secondary-color);
}

.text-muted {
  color: #6c757d !important;
  font-size: 0.875rem;
}
.text-muted .fa-calendar {
  margin-right: 8px;
}

/* Kategorie Section */
/* #kategorie {
  background: linear-gradient(135deg, #fbd41f 0%, #f8e08e 100%);
} */

/* #kategorie {
	border-top: 3px dashed #ccc;
} */

#kategorie .card {
  border: 2px solid var(--secondary-color);
  background: #fff;
}

/* Archive */
.arch {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
.arch h5 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}
.arch ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.arch ul li {
  margin-bottom: 0.5rem;
}
.arch ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.arch ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Sidebar */
.sidebar-menu {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sidebar-menu ul {
  list-style: none;
  padding: 0;
}
.sidebar-menu ul li {
  margin-bottom: 0.5rem;
}
.sidebar-menu ul li a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  transition: background-color 0.3s ease;
}
.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active {
  background-color: var(--bg-light);
  color: var(--primary-color);
}
.sidebar-menu ul ul {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

/* Content */

#content {
  padding-top: 25px;
}
.page-content,
.post-content {
  line-height: 1.8;
}

.page-content img,
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Gallery */
.galeria .thumb {
  overflow: hidden;
  border-radius: 8px;
}
.galeria .thumb img {
  width: 100%;
  transition: transform 0.3s ease;
}
.galeria .thumb:hover img {
  transform: scale(1.1);
}
.border-grey {
  border: 1px solid #ddd;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}
.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Float Icons */
.float-ico {
  position: fixed;
  top: 200px;
  right: -182px;
  z-index: 1000;
  transition: right 0.5s ease;
}
.float-ico ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.float-ico ul li {
  display: block;
}
.float-ico a {
  display: block;
  margin-bottom: 5px;
  right: 0;
  transition: transform 0.5s ease;
}
.float-ico a:hover {
  transform: translateX(-150px);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 3rem 0;
}
footer h5 {
  color: #fff;
  margin-bottom: 1rem;
}
footer a {
  color: var(--secondary-color);
  text-decoration: none;
}
footer a:hover, 
footer a:focus {
  text-decoration: underline;
}

/* High Contrast Mode */
.high-contrast {
  background-color: var(--high-contrast-bg) !important;
  color: var(--high-contrast-text) !important;
}
.high-contrast h1, 
.high-contrast h2, 
.high-contrast h3,
.high-contrast h4, 
.high-contrast h5, 
.high-contrast h6 {
  color: var(--high-contrast-text) !important;
}
.high-contrast .navbar {
  background-color: #333 !important;
}
.high-contrast .nav-link {
  color: var(--high-contrast-text) !important;
}
.high-contrast .card {
  background-color: #222 !important;
  border-color: #fff !important;
}
.high-contrast .carousel-caption {
  background: rgba(0, 0, 0, 0.9) !important;
}
.high-contrast footer {
  background-color: #111 !important;
}

/* Focus States for Accessibility */
a:focus, 
button:focus, 
.nav-link:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
section {
  animation: fadeIn 0.5s ease-in;
}

/* Buttons */
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  .float-ico { 
    display: none; 
  }
  .accessibility-bar { 
    font-size: 0.8rem; 
  }
  .carousel-caption {
    right: 5%;
    left: 5%;
  }
  .carousel-caption h1 {
    font-size: 1.3rem;
  }
  .carousel-caption p {
    font-size: 0.8rem;
  }
  footer {
    font-size: 0.8rem;
    text-align: center;
  }
  .logo-2 {
    margin-top: -100px;
  }
  .carousel-item img {
    height: 300px;
  }
  section {
    padding: 3rem 0;
  }
  body {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 576px) {
  .carousel-caption {
    height: auto;
    padding: 1rem;
  }
  .carousel-caption h1 {
    font-size: 1.1rem;
  }
  .carousel-caption p {
    font-size: 0.75rem;
  }
}

/* Utilities */
.img-100 {
  width: 100%;
}

.section-header {
  font-size: 2rem;
  margin-bottom: 2rem;
}


