/*!
Theme Name: inferway
Theme URI: http://underscores.me/
Author: Michal Hrton
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: inferway
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

inferway is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* CSS Variables */
:root {
  --page-background: #f9f9f9;
}

/* Univerzální třídy pro velikosti fontů */
.h-main {
  font-size: 3.1rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.h-realizace-nadpis {
  font-size: 2.325rem; /* 25% méně než .h-main */
  line-height: 1.1;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.p-bigger {
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.p-default {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.p-smaller {
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.p-box {
  font-size: 1.7rem;
  line-height: 1.4;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.h2-subtitle {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.h-hero {
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 500;
  font-family: 'Satoshi', sans-serif;
}

/* Responsive design pro fontové třídy */
@media (max-width: 1200px) {
  .h-main {
    font-size: 3rem;
  }
  
  .h-realizace-nadpis {
    font-size: 2.25rem; /* 25% méně než .h-main */
  }
  
  .p-bigger {
    font-size: 1.9rem;
  }
  
  .p-box {
    font-size: 1.6rem;
  }
  
  .h2-subtitle {
    font-size: 2.4rem;
  }
  
  .p-default {
    font-size: 1.45rem;
  }
  
  .p-smaller {
    font-size: 1.15rem;
  }
  
  .h-hero {
    font-size: 4.2rem;
  }
}

@media (max-width: 991.98px) {
  .h-main {
    font-size: 2.8rem;
  }
  
  .h-realizace-nadpis {
    font-size: 2.1rem; /* 25% méně než .h-main */
  }
  
  .p-bigger {
    font-size: 1.85rem;
  }
  
  .p-box {
    font-size: 1.55rem;
  }
  
  .h2-subtitle {
    font-size: 2.1rem;
  }
  
  .p-default {
    font-size: 1.4rem;
  }
  
  .p-smaller {
    font-size: 1.15rem;
  }
  
  .h-hero {
    font-size: 3.5rem;
  }
}

@media (max-width: 767.98px) {
  .h-main {
    font-size: 2rem;
  }
  
  .h-realizace-nadpis {
    font-size: 1.5rem; /* 25% méně než .h-main */
  }

  .realizace-banner .container-fluid {
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .p-bigger {
    font-size: 1.7rem;
  }
  
  .p-box {
    font-size: 1.2rem;
  }
  
  .h2-subtitle {
    font-size: 1.7rem;
  }
  
  .p-default {
    font-size: 1.15rem;
  }
  
  .p-smaller {
    font-size: 1.15rem;
  }
  
  .h-hero {
    font-size: 2.8rem;
  }

  
}

@media (max-width: 480px) {
  .h-main {
    font-size: 1.8rem;
  }
  
  .h-realizace-nadpis {
    font-size: 1.25rem; /* 25% méně než .h-main */
  }
  
  .p-bigger {
    font-size: 1.22rem;
  }
  
  .p-box {
    font-size: 1.1rem;
  }
  
  .h2-subtitle {
    font-size: 1.7rem;
  }
  
  .p-default {
    font-size: 1rem;
  }
  
  .p-smaller {
    font-size: 1.1rem;
  }
  
  .h-hero {
    font-size: 2.2rem;
  }
}

/* Univerzální utility třídy */
.content-offset-left {
  margin-left: 33.333%; /* Odsazení o 1/3 stránky od levé strany */
  max-width: 66.667%;
}

/* Responsive design pro content-offset-left */
@media (max-width: 1200px) {
  .content-offset-left {
    margin-left: 0%;
    max-width: 100%;
  }
}

/* Main page background */
body {
  background-color: var(--page-background);
}

html {
  background-color: var(--page-background);
}

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * header.php
 * footer.php
 /template-parts/content.php
 front-page.php
 index.php
 page-architektura.php
 single-projekt.php

 */

/*!
.brand-name {
  color: #000;
  font-size: clamp(2rem, 15vw, 19.0625rem);
  font-weight: 400;
  letter-spacing: clamp(0.5px, 0.3vw, 6.1px);
  text-transform: uppercase;
  font-family: 'Satoshi', sans-serif;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*--------------------------------------------------------------
# Front Page Styles
--------------------------------------------------------------*/

/* Hero Banner Styles */
.hero-banner {
  position: relative;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.banner-content.active {
  opacity: 1;
}

.hero-title {
  color: #f9f9f9;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0;
  /*text-shadow: 0 2px 8px rgba(0,0,0,0.3);*/
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: #f9f9f9;
  font-family: 'Satoshi', sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 0;
}

.banner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.banner-dot {
  width: 18px;
  height: 18px;
  min-width: 12px;
  min-height: 12px;
  max-width: 18px;
  max-height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  flex-grow: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.banner-dot.active {
  background: #fff;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments for hero banner */
@media (max-width: 767.98px) {
  .banner-dots {
    bottom: 20px;
  }
}

:root {
  --red-color: #e30c29;
  --arrow-height: 120px;
  --arrow-hover-color: #b9b9b9;
  --gray-text-color: #979797F5;
  --container-padding: 50px;
  --page-background: #F9F9F9;
  --image-hover-opacity: 0.6; /* Používá se pouze pro projekty */
  --image-transition: opacity 0.3s ease;
  --bg-navbar: #c9c9c9;
}

/* Front Page Main */
.front-page-main {
  font-family: 'Satoshi', sans-serif;
}

/* Hero Section (Legacy - now replaced by hero-banner) */
.hero-section {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

/* Banner Sections */
.banner-section,
.realizace-banner {
  /*background-color: var(--red-color);*/
  /*padding: 2rem 0;*/
  position: relative;
}

.banner-arrowhead {
  position: relative;
  background-color: var(--red-color);
  /*padding: 1rem 2rem;*/
  height: var(--arrow-height);
  display: flex;
  align-items: center;
  width: calc(100% - 100px);
}

.h-90 {
  display: flex;
  
}

.banner-arrowhead::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 100px solid var(--red-color);
  border-top: calc(var(--arrow-height) / 2) solid transparent;
  border-bottom: calc(var(--arrow-height) / 2) solid transparent;
}

@media (max-width: 767.98px) {
  .banner-arrowhead {
    width: calc(100% - 80px);
    height: 70px;
  }
  
  .banner-arrowhead::after {
    right: -80px;
    border-left: 80px solid var(--red-color);
  
  border-top: calc(70px / 2) solid transparent;
  border-bottom: calc(70px / 2) solid transparent;
  }
}

@media (max-width: 480px) {
  .banner-arrowhead {
    width: calc(100% - 60px);
  }
  
  .banner-arrowhead::after {
    right: -60px;
    border-left: 60px solid var(--red-color);
  }
  
  .realizace-image {
    height: 40rem;
  }
}

.banner-title {
  font-weight: 400;
  color: #000;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-family: 'Satoshi', sans-serif;
  margin: 0;
  text-align: center;
}

.realizace-banner .banner-title {
  color: white;
}

/* About Section */
.about-section {
  background-color: #f9f9f9;
  padding: 6rem 0;
}

.about-content {
  padding: 0 0rem;
}

.about-text {
  font-weight: 400;
  color: #000;
  letter-spacing: 1px;
  line-height: 1.42;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 3rem;
  width: 60vw;
  max-width: 100%;
}

.about-button {
  display: flex;
  justify-content: flex-start;
}

/* Play Button */
.play-button {
  width: 5rem;
  height: 5rem;
  background: #000;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.play-button:hover {
  background: #333;
}

.play-button svg {
  width: 24px;
  height: 24px;
}

/* Interiors Section */
.interiors-section {
  background-color: #d9d9d9;
  padding: 6rem 0;
}

.section-title {
  font-weight: 400;
  color: #000;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-family: 'Satoshi', sans-serif;
  margin-top: 5rem;
  /*padding-left: 4.75rem;*/
}

.interior-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.interior-card {
  /*background: white;*/
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 2rem;
  /*box-shadow: 0 4px 6px rgba(0,0,0,0.1);*/
  margin-right: 1.5rem;
  transition: opacity 0.3s ease;
}

.interior-card:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .interior-card {
    margin-right: 0px;
  }
}

.interior-image {
  height: 26rem;
  position: relative;
}

.interior-content {
  padding-right: 2rem;
  padding-top: 2rem;
}

.interior-title {
  font-weight: 500;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  
}

.interior-title-first {
  margin-bottom: 3rem;
  margin-top: 0rem;
  
  color: #000;
  font-family: 'Satoshi', sans-serif;
}

.interior-description {
  font-weight: 400;
  color: #565656;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.4;
}

/* Newsletter Section */
.newsletter-section {
  background-color: rgba(151, 151, 151, 0.96);
  padding: 4rem 0;
  padding-bottom: 1rem;
  color: #d9d9d9;
  text-align: left;
}

.newsletter-title {
  font-weight: 400;
  color: #d9d9d9;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 2rem;
 
}

.newsletter-subtitle {
  font-weight: 400;
  color: #d9d9d9;
  letter-spacing: 0.6px;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 3rem;
  
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  max-width: 46.25rem;
  margin: 0;
  position: relative;
}

.newsletter-input {
  flex: 1;
  border: 2px solid #d9d9d9;
  background: transparent;
  padding: 1rem;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0.5px;
  font-size: 1.5625rem;
  color: #d9d9d9;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--red-color);
}

.newsletter-input::placeholder {
  color: #d9d9d9;
}

.newsletter-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 100%;
}

.newsletter-button:hover {
  transform: scale(1.05);
}

.newsletter-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.newsletter-feedback {
  margin-top: 1rem;
  min-height: 1.7em;
  color: #d9d9d9;
}

.newsletter-feedback.is-success {
  color: #ffffff;
}

.newsletter-feedback.is-error {
  color: #ffd1d1;
}

.newsletter-feedback.is-loading {
  opacity: 0.85;
}

.newsletter-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Update arrow colors for newsletter context */
.newsletter-button .arrow {
  border-color: transparent transparent transparent #d9d9d9;
}

.newsletter-button .arrow:hover {
  border-left-color: #fff;
}



/* Realizace Section */
.realizace-section {
  background-color: var(--page-background);
  /*height: 120vh;*/
  height: 90vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeInSlideUp 0.6s ease-out;
}

.realizace-banner {
  background-color: var(--red-color);
  padding: 1rem 0;
  position: relative;
  flex-shrink: 0;
}

.realizace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-arrow {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.nav-arrow:hover {
  opacity: 0.8;
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
}

.realizace-content {
  background-color: var(--page-background);
  padding: 2rem 0;
  position: absolute;
  top: 97px; /* Height of banner */
  left: 0;
  width: 100%;
  z-index: 1;
  opacity: 0;
  display: none;
}

.realizace-content.active {
  opacity: 1;
}

.realizace-text {
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin: 0;
  padding-left: 50px;
  display: none;
}

.realizace-image-container {
  width: 100%;
  flex: 1;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: absolute;
  /*top: 200px;*/ /* Below text content */
  top: 93px;
  left: 0;
  width: 100%;
  /*height: calc(130vh);*/
  height: calc(90vh - 93px); /* Fits within 90vh section */
  z-index: 0;
  opacity: 0;
  pointer-events: none; /* Inactive slides don't block clicks */
}

@media (max-width: 767.98px) {
  .realizace-image-container {
    top: 80px;
  }
}

.realizace-image-container.active {
  opacity: 1;
  pointer-events: auto; /* Active slide is clickable */
}

.realizace-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
  transition: opacity 0.3s ease; /* Transition for both hover-in and hover-out */
}

.realizace-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.realizace-image-link:hover .realizace-image {
  opacity: 0.85; /* Subtle hover effect for realizace carousel */
}

/* Hover title for realizace carousel */
.realizace-hover-title {
  position: absolute;
  bottom: 40px;
  left: 50px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.realizace-image-link:hover .realizace-hover-title {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .realizace-hover-title {
    font-size: 1.1rem;
    bottom: 20px;
    left: 20px;
  }
}

/* Design Summit Section */
.design-summit-section {
  background-color: #f9f9f9;
  padding: 6rem 0;
}

.summit-content {
  padding-right: 3rem;
}

.summit-title {
  font-weight: 400;
  color: #969696;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 2rem;
}

.summit-description {
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.4;
}

.summit-image {
  position: relative;
  /*height: 47.6875rem;
  border-radius: 0.5rem;*/
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.summit-button {
  /*position: absolute;*/
  bottom: 2rem;
  left: 2rem;
}

/* Responsive Design */
@media (max-width: 767.98px) {
  /* Legacy hero title - now handled by hero-banner */
  

  
  .about-text {
    padding: 0 0rem;
  }
  
  .section-title {
   /* padding-left: 2rem;*/
  }
  
  .interior-image {
    height: 20rem;
  }
  
  .newsletter-input {
    font-size: 1.25rem;
  }
  
  .realizace-text {
    padding-left: 0;
  }
  
  .realizace-image {
    height: 100%;
    margin: 0 0rem;
  }

  .realizace-image-container {
    height: 100%;
  }
  
  .summit-image {
    height: 25rem;
    margin-top: 2rem;
  }
  
  .about-content {
    padding: 0 0rem;
  }

  .interior-title-first {
    margin-bottom: 3rem;
  }

  .interiors-section {
    padding: 1rem 0rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Legacy hero title - now handled by hero-banner */
  

  

}
@media (min-width: 992px) {
  #primaryNavbar .navbar-nav > li {
    padding-right: 20px;
  }
}



/*--------------------------------------------------------------
# Custom Footer Styles
--------------------------------------------------------------*/

/* Custom Footer */
.custom-footer {
  width: 100%;
  font-family: 'Satoshi', sans-serif;
}

/* Contact Section (Grey Background) */
.footer-contact-section {
  background-color: rgba(151, 151, 151, 0.96);
  padding: 0rem 0;
  color: #f9f9f9;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.contact-info {
  /*padding-left: 3rem;*/
}

.contact-info p {
  margin: 0 0 0.5rem 0;
  font-weight: 400;
  color: #f9f9f9;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0.8px;
  line-height: 1.2;
}

.contact-info .contact-phone {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 767px) {
  .social-links {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 530px) {
  .brand-name {
    font-size: clamp(1rem, 6vw, 1.5rem);
    letter-spacing: clamp(0.3px, 0.2vw, 0.5px);
  }
}

@media (max-width: 500px) {
  /*.container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }*/
  
  .projekt-description {
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .projekt-header {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .social-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .newsletter-section {
    padding: 3rem 0;
  }
  
  .newsletter-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .newsletter-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }
  
  .newsletter-input {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  .newsletter-button {
    align-self: flex-start;
    min-height: auto;
  }
  
  .newsletter-button .arrow {
    transform: scale(0.8);
  }
}

.social-link {
  color: #d9d9d9;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 1px;
  line-height: 1;
  text-align: left;
}

.social-link:hover {
  color: var(--red-color);
  text-decoration: none;
}

.contact-form {
  padding-right: 3rem;
  text-align: left;
}

.contact-form-label {
  display: block;
  font-size: 1.875rem;
  color: #f9f9f9;
  margin-bottom: 1.5rem;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0.6px;
  font-weight: 400;
  text-align: left;
}

.contact-form-textarea-container {
  margin-bottom: 2rem;
}

.contact-form-textarea {
  width: 100%;
  height: 283px;
  border: 2px solid #f9f9f9;
  background: transparent;
  resize: none;
  padding: 1rem;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0.6px;
  font-size: 1.875rem;
  color: #f9f9f9;
}

.contact-form-textarea:focus {
  outline: none;
  border-color: var(--red-color);
}

.contact-form-textarea::placeholder {
  color: #f9f9f9;
}

.contact-form-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #f9f9f9;
  background: transparent;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0.6px;
  font-size: 1.875rem;
  color: #f9f9f9;
}

.contact-form-input:focus {
  outline: none;
  border-bottom-color: var(--red-color);
}

.contact-form-input::placeholder {
  color: #f9f9f9;
}

.contact-form-submit {
  display: flex;
  justify-content: flex-start;
}

.submit-button {
  width: 5rem;
  height: 5rem;
  
}

.submit-button:hover {
  background: #333;
}



/* Footer spacer */
.footer-spacer {
  height: 25px;
  background-color: var(--page-background);
}

/* Brand Section (Red Background) */
.footer-brand-section {
  background-color: var(--red-color);
  padding: 2rem 0;
  display: block;
  min-height: auto;
  width: 100%;
}

.brand-content {
  text-align: center;
  /*padding-left: 3rem;*/
}

.brand-name {
  color: #000;
  font-size: clamp(1.5rem, 8vw, 19.0625rem);
  font-weight: 400;
  letter-spacing: clamp(0.5px, 0.3vw, 6.1px);
  text-transform: uppercase;
  font-family: 'Satoshi', sans-serif;
  line-height: 1;
  white-space: nowrap;
  width: auto;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-brand-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
  object-fit: cover;
}

.container-fluid {
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/*--------------------------------------------------------------
# Custom Navigation Styles
--------------------------------------------------------------*/
.custom-navbar {
  padding: 2rem 0;
}

.navbar-brand {
  font-family: 'Satoshi', sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #000;
  text-decoration: none;
}

.navbar-nav .nav-link,
.navbar-nav a,
.navbar-nav li a,
#primaryNavbar .nav-link,
#primaryNavbar a,
#primaryNavbar li a {
  font-family: 'Satoshi', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 300 !important;
  color: #000 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 0.5rem 0.5rem !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

#primaryNavbar li a .current-lang {
  color: var(--red-color) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav a:hover,
.navbar-nav li a:hover,
#primaryNavbar .nav-link:hover,
#primaryNavbar a:hover,
#primaryNavbar li a:hover {
  color: var(--red-color) !important;
  text-decoration: none !important;
}

.navbar-nav .nav-link.active,
.navbar-nav a.active,
.navbar-nav li a.active,
#primaryNavbar .nav-link.active,
#primaryNavbar a.active,
#primaryNavbar li a.active,
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a,
.navbar-nav .current-page-ancestor > a,
#primaryNavbar .current-menu-item > a,
#primaryNavbar .current_page_item > a,
#primaryNavbar .current-page-ancestor > a {
  color: var(--red-color) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Burger menu - pozadí po rozbalení na mobilu */
@media (max-width: 991.98px) {
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background-color: var(--bg-navbar);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
}

/* Responsive Design */
@media (max-width: 809px) {
  .footer-contact-section .row > .col-md-4,
  .footer-contact-section .row > .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .footer-contact-section .row > .col-md-4:first-child {
    order: 1;
  }
  
  .footer-contact-section .row > .col-md-8:first-child {
    order: 2;
  }
  
  .footer-contact-section .row > .col-md-4:last-child {
    order: 3;
  }
  
  .footer-contact-section .row > .col-md-8:last-child {
    order: 4;
  }
  
  .contact-info {
    text-align: left;
    margin-bottom: 2rem;
  }
  
  .social-links {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: start;
  }
  
  .contact-form {
    padding-right: 0;
  }
  
  .footer-contact-section {
    padding: 2rem 0;
    min-height: auto;
  }
  .summit-content {
    padding-right: 0;
  }
}



@media (max-width: 767.98px) {
  .footer-contact-section {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .contact-info {
    /*padding-left: 1rem;*/
    text-align: start;
    margin-bottom: 2rem;
  }
  
  .social-links {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding-right: 1rem;
  }
  
  .contact-form-label {
    font-size: 1.25rem;
    text-align: center;
  }
  
  .contact-form-textarea {
    height: 200px;
    font-size: 1.25rem;
  }
  
  .contact-form-input {
    font-size: 1.25rem;
  }

  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  

  
  .brand-content {
    padding-left: 1rem;
  }
  
  .footer-brand-section {
    min-height: 100px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  

  
  .contact-form-label {
    font-size: 1.5rem;
  }
  
  .contact-form-textarea {
    font-size: 1.5rem;
  }
  
  .contact-form-input {
    font-size: 1.5rem;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}


/*--------------------------------------------------------------
# Reusable Arrow Components
--------------------------------------------------------------*/

.arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow-right {
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #000;
}

/* Červená šipka pro program */
.program-arrow .arrow-right {
  border-left-color: #e30c29;
}

.arrow-right:hover {
  border-left-color: var(--arrow-hover-color);
}

.arrow-left {
  border-width: 12px 20px 12px 0;
  border-color: transparent #000 transparent transparent;
}

.arrow-left:hover {
  border-right-color: var(--arrow-hover-color);
}

/* Larger arrow variants */
.arrow-lg {
  border-width: 16px 0 16px 28px;
}

.arrow-lg.arrow-left {
  border-width: 16px 28px 16px 0;
}

/* Extra large arrow variants */
.arrow-xl {
  border-width: 20px 0 20px 36px;
}

.arrow-xl.arrow-left {
  border-width: 20px 36px 20px 0;
}

.arrow-xxl {
  border-width: 37px 0 37px 75px;
}

@media (max-width: 768px) {
  .arrow-xxl {
    border-width: 20px 0 20px 36px;
  }
  .arrow-xl.arrow-left {
    border-width: 15px 25px 15px 0;
  }
  .arrow-xl.arrow-right {
    border-width: 15px 0 15px 25px;
  }
}

/* Arrow button wrapper */
.arrow-button {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow-button:hover {
  transform: scale(1.1);
}

.submit-arrow {
  border-left-color: #fff !important;
}

.submit-arrow:hover, .submit-arrow:focus {
  border-left-color: #e30c29 !important;
}

/*--------------------------------------------------------------
# Blog Layout Styles
--------------------------------------------------------------*/

.blog-layout {
  background-color: var(--page-background);
  padding: 6rem 0;
  font-family: 'Satoshi', sans-serif;
}

.blog-card {
  background: var(--page-background);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.blog-card-image {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
              linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
              linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.blog-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.entry-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.entry-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-title a:hover {
  color: var(--red-color);
  text-decoration: none;
}

.entry-meta {
  font-size: 0.875rem;
  color: #666;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 1rem;
  font-weight: 300;
}

.entry-content {
  font-size: 1rem;
  color: #333;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.entry-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.875rem;
  color: #666;
  font-family: 'Satoshi', sans-serif;
}

/* Responsive adjustments for blog layout */
@media (max-width: 767.98px) {
  .blog-layout {
    padding: 3rem 0;
  }
  
  .blog-card-content {
    padding: 1.5rem;
  }
  
  .entry-title {
    font-size: 1.25rem;
  }
  
  .entry-content {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .blog-card-image {
    height: 200px;
  }
  
  .blog-card-content {
    padding: 1.75rem;
  }
}

/*--------------------------------------------------------------
# Projekty Page Styles
--------------------------------------------------------------*/

.projekty-page {
  background-color: var(--page-background);
  padding: 0rem 0;
  font-family: 'Satoshi', sans-serif;
  min-height: 100vh;
}

/* Kategorie projektů */
.projekty-categories {
  margin-bottom: 4rem;
}

.category-nav {
  display: flex;
  justify-content: flex-start;
  gap: 4rem;
  margin-bottom: 3rem;
}

.category-btn {
  background: none;
  border: none;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.875rem;
  font-weight: 400;
  color: #333;
  text-transform: none;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
  text-decoration: none;
}

.category-btn:hover {
  color: var(--red-color);
}

.category-btn.active {
  color: var(--red-color);
}

.category-btn.active::after {
  /* Odstraněno podtržení - jen červená barva textu */
}

/* Grid projektů */
.projekty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  row-gap: 5rem;
  margin-bottom: 1rem;
}

.projekt-item {
  background: none;
  border-radius: 0;
  overflow: hidden;
  /* Bez animací - jen opacity hover */
}

.projekt-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Univerzální komponenta - stejný vzhled všude */

/* Staré styly odstraněny - používáme univerzální komponentu */

/*--------------------------------------------------------------
# O nás Page Styles
--------------------------------------------------------------*/

.o-nas-page {
  background-color: var(--page-background);
  font-family: 'Satoshi', sans-serif;
  min-height: 100vh;
}

/* Hlavní obsah */
.o-nas-content {
  padding: 1rem 0;
}

.o-nas-content-wrapper {
  /* Používá .content-offset-left třídu */
}

/* Textové sekce */
.o-nas-text-section {
  margin-bottom: 4rem;
}

.height-80 {
  height: 80vh !important;
}

.o-nas-subtitle {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-transform: none;
  letter-spacing: 1px;
}

.o-nas-description {
  font-size: 1.25rem;
  font-weight: 400;
  color: #333;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Karty tým */
.o-nas-cards-section {
  margin-bottom: 4rem;
}

/* Univerzální grid pro všechny karty */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 0.4fr);
  gap: 5rem;
  margin-top: 2rem;
  justify-content: left;
}

.udalosti-grid {
  grid-template-columns: repeat(4, 0.4fr);
}

.o-nas-cards-wrapper {
  /* Žádné odsazení - karty jsou centrovány */
}

.o-nas-card {
  background: none;
  border: none;
  overflow: hidden;
  box-shadow: none;
  transition: none;
}

.o-nas-card:hover {
  transform: none;
  box-shadow: none;
}

.o-nas-card-image {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-bottom: 141.4%; /* A4 poměr stran (1:1.414) */
}

.o-nas-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Hover efekt odstraněn - žádný hover efekt pro karty týmu */
.o-nas-card:hover .o-nas-card-image img {
  opacity: 1; /* Žádný hover efekt */
}

.o-nas-card-content {
  padding: 0;
  padding-left: 0px;
}

.o-nas-card-name {
  font-weight: 500;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  /*text-transform: uppercase;*/
}

.o-nas-card-position {
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  text-transform: none;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.o-nas-card-description {
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  line-height: 1.4;
  margin: 0;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

/* Karty hostů - používají stejné styly jako tým */
.host-cards-section {
  margin-bottom: 4rem;
  margin-top: 2rem;
}

/* Hosté používají stejný grid jako tým */
.host-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 380px);
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.host-cards-wrapper {
  /* Žádné odsazení - karty jsou centrovány */
}

.host-subtitle {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  margin-top: 0;
  margin-bottom: 3rem;
  text-transform: none;
  letter-spacing: 1px;
}

/* Responsive design */
@media (max-width: 1300px) {
  .udalosti-grid {
    grid-template-columns: repeat(3, 0.4fr);
  }
}

@media (max-width: 991.98px) {
  
  .o-nas-cards-wrapper {
    /* Žádné změny - karty jsou centrovány */
  }
  
  .host-cards-wrapper {
    /* Žádné změny - karty jsou centrovány */
  }
  

  
  /* Všechny gridy používají stejné responsive nastavení */
  .cards-grid,
  .host-cards-grid {
    grid-template-columns: 380px; /* 1 karta na řádek na mobilech */
  }
  

  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr); /* Zachováme 2 karty na řádek */
    gap: 1.5rem;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .o-nas-content {
    padding: 3rem 0;
  }
  
  .cards-grid {
    grid-template-columns: 380px;
    gap: 1rem;
  }
  
  .o-nas-card-content {
    padding: 0.5rem;
    padding-left: 0px;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 500px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  
  .host-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
}



/*--------------------------------------------------------------
# Události Page Styles
--------------------------------------------------------------*/

.udalosti-page {
  background-color: var(--page-background);
  font-family: 'Satoshi', sans-serif;
  min-height: 100vh;
}

/* Karty událostí jako odkazy */
.cards-grid .o-nas-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}

/* Hover efekt pouze pro události - ne pro hosty a členy týmu */
.udalosti-grid .o-nas-card:hover {
  opacity: 0.8;
}

.udalosti-grid .o-nas-card:hover .o-nas-card-position,
.udalosti-grid .o-nas-card:hover .o-nas-card-description {
  color: #000 !important;
  transition: color 0.3s ease;
}

/* Explicitně odstraníme hover efekty pro hosty a členy týmu */
.o-nas-cards-section .o-nas-card:hover,
.host-cards-section .o-nas-card:hover {
  opacity: 1 !important;
  transform: none !important;
}

.o-nas-cards-section .o-nas-card:hover .o-nas-card-position,
.o-nas-cards-section .o-nas-card:hover .o-nas-card-description,
.host-cards-section .o-nas-card:hover .o-nas-card-position,
.host-cards-section .o-nas-card:hover .o-nas-card-description {
  color: var(--gray-text-color) !important;
}

/* Single Událost Page Styles */
.udalost-single-page {
  background-color: var(--page-background);
  font-family: 'Satoshi', sans-serif;
  min-height: 100vh;
}

/* Archiv odkaz */
.udalost-archive-link {
  padding: 2rem 0 1rem 0;
  text-align: left;
}

.archive-link {
  /*font-size: 1rem;*/
  font-weight: 400;
  color: #666;
  text-decoration: none;
  font-family: 'Satoshi', sans-serif;
  transition: color 0.3s ease;
}

.archive-link:hover {
  color: #000;
}

/* H1 nadpis události */
.udalost-header {
  padding: 2rem 0 2rem 0;
}

.udalost-title {
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Obsah události s odsazením */
.udalost-content-wrapper {
  /* Používá .content-offset-left třídu */
}

.udalost-content-editor {
  margin-bottom: 3rem;
}

/* Nadpis stránky */
.udalosti-header {
  padding: 6rem 0 3rem 0;
}

.udalosti-title {
  font-size: 3.125rem;
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  /*padding-left: var(--container-padding);*/
}

/* Hlavní obsah */
.udalosti-content {
  padding: 0 0 4rem 0;
}

.udalosti-content-wrapper {
  /* Používá .content-offset-left třídu */
}

.udalosti-description {
  font-size: 1.25rem;
  font-weight: 400;
  color: #333;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* Program sekce */
.program-section {
  background-color: #D9D9D9;
  padding: 6rem 0;
  margin-top: 0;
}

.program-content {
  max-width: 100vw;
  margin: 0 auto;
}

.program-content .p, .program-content .h1, .program-content .h2, .program-content .h3, .program-content .h4, .program-content .h5, .program-content .h6 {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Program header s šipkou */
.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 var(--container-padding) 3rem var(--container-padding);
  margin-bottom: 2rem;
}

.program-info {
  flex: 1;
}

.program-title {
  font-size: 3.125rem;
  font-weight: 700;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.program-details {
  margin: 0;
}

.program-detail {
  font-size: 2.5rem;
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  text-transform: none;
}

.program-tickets-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.program-tickets-row .program-detail {
  /*font-size: 2.5rem;*/
  font-weight: 700;
}

/* Místo konání má být tučné */
.program-detail strong {
  font-weight: 700;
}

/* Odkaz na vstupenky - černý bez podtržení */
.program-tickets-link {
  text-decoration: none;
  color: #000;
  display: inline-block;
  transition: all 0.3s ease;
  padding: 0.5rem;
  margin: -0.5rem;
}

/* Hover efekt - text i šipka zešednou */
.program-tickets-link:hover {
  color: #666;
}

.program-tickets-link:hover .program-detail,
.program-tickets-link:hover .program-detail strong {
  color: #666;
}

.program-tickets-link:hover .arrow-right {
  border-left-color: #666;
}

.program-arrow {
  display: flex;
  align-items: center;
}

/* Program tabulka */
.program-table {
  width: 100%;
}

.program-row {
  display: flex;
  border-top: 1px solid #969696;
  padding: 1.5rem 0;
  width: 100%;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  box-sizing: border-box;
}

.program-row:first-child {
  border-top: 1px solid #969696;
}

.program-cell {
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.4;
}

.program-cell:empty {
  display: none;
}

.program-time {
  flex: 0 0 80px; /* Fixní šířka pro časy */
  padding-right: 2rem; /* Gap mezi sloupci */
}

.program-description {
  flex: 1;
}

/* Karty událostí */
.udalosti-cards-section {
  padding: 6rem 0;
  background-color: var(--page-background);
}

.udalosti-cards-wrapper {
  margin-left: 33.333%; /* Odsazení o 1/3 stránky od levé strany */
  max-width: 66.667%;
}

.udalosti-subtitle {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  margin-top: 0;
  margin-bottom: 3rem;
  text-transform: none;
  letter-spacing: 1px;
}

.udalosti-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.udalosti-card {
  background: none;
  border: none;
  overflow: hidden;
  box-shadow: none;
  transition: none;
}

.udalosti-card:hover {
  transform: none;
  box-shadow: none;
}

.udalosti-card-image {
  height: 500px; /* A4 poměr stran (1:1.414) */
  overflow: hidden;
  position: relative;
}

.udalosti-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--image-transition);
}

/* Události nemají hover efekt */
.udalosti-card:hover .udalosti-card-image img {
  opacity: 1; /* Žádný hover efekt */
}

.udalosti-card-content {
  padding: 0;
  padding-left: 0px;
}

.udalosti-card-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.udalosti-card-date {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  text-transform: none;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 991.98px) {
  
  .udalosti-title {
    font-size: 2.5rem;
  }
  
  .udalosti-description {
    font-size: 1.125rem;
  }
  
  .program-title {
    font-size: 2.5rem;
  }
  
  .program-detail {
    font-size: 1.125rem;
  }
  
  .program-row.program-header .program-cell {
    font-size: 1.5rem;
  }
  
  .program-cell {
    font-size: 1rem;
    padding-right: 2rem;
  }
  
  .udalosti-subtitle {
    font-size: 2rem;
  }
  
  .udalosti-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .udalosti-header {
    padding: 3rem 0 2rem 0;
  }
  
  .udalosti-title {
    font-size: 2rem;
  }
  
  .udalosti-description {
    font-size: 1rem;
  }
  
  .program-section {
    padding: 3rem 0;
  }
  
  .program-header {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem 2rem 1rem;
  }
  
  .program-title {
    font-size: 2rem;
  }
  
  .program-detail {
    font-size: 1rem;
  }
  
  .program-row {
    padding-left: 1rem;
    padding-right: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .program-row.program-header .program-cell {
    font-size: 1.25rem;
  }
  
  .program-cell {
    font-size: 0.9rem;
    padding-right: 0;
  }
  
  .udalosti-cards-section {
    padding: 3rem 0;
  }
  
  .udalosti-subtitle {
    font-size: 1.75rem;
  }
  
  .udalosti-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .udalosti-card-image {
    height: 350px;
  }
  
  .udalosti-card-name {
    font-size: 1.25rem;
  }
  
  .udalosti-card-date {
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# Události Archive Page
--------------------------------------------------------------*/

.udalosti-page-archive {
 /* background-color: #fff;*/
  --events-record-arrow-height: 11px;
  --events-record-arrow-width: 20px;
  --events-record-arrow-default-color: #9b9b9b;
  --events-record-arrow-hover-color: #e30c29;
}

.udalosti-featured {
  padding: 3.5rem 0 4.5rem 0;
}

.udalosti-featured-title {
  font-weight: 400;
  color: #000;
  margin: 0 0 3rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.udalosti-featured-grid {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  max-width: 1080px;
}

.udalosti-featured-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.udalosti-featured-media.is-empty {
  background-color: #c8c8c8;
}

.udalosti-featured-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.udalosti-featured-content {
  min-width: 0;
}

.udalosti-featured-text p {
  margin-top: 0;
  margin-bottom: 1.6rem;
}

.udalosti-featured-text p:last-child {
  margin-bottom: 0;
}

.udalosti-featured-meta {
  margin: 2.4rem 0 0 0;
  color: #1f1f1f;
}

.udalosti-featured-link {
  margin: 0.45rem 0 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  line-height: 1.35;
}

.udalosti-featured-link.is-static {
  pointer-events: none;
}

.udalosti-featured-link:hover {
  color: #666;
}

.udalosti-featured-link:hover .udalosti-mini-arrow.is-active {
  border-left-color: #666;
}

.udalosti-mini-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #9b9b9b;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.udalosti-mini-arrow.is-active {
  border-left-color: #e30c29;
}

.udalosti-mini-arrow.is-disabled {
  border-left-color: #9b9b9b;
}

.udalosti-empty-message {
  margin: 0;
  color: #1f1f1f;
}

.udalosti-archiv-section {
  background-color: #d9d9d9;
  padding: 4rem 0;
}

.udalosti-archiv-title {
  margin: 0 0 2rem 0;
  padding-left: var(--container-padding);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.udalosti-archiv-table {
  width: 100%;
}

.udalosti-archiv-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  border-bottom: 1px solid #a7a7a7;
  padding: 0.95rem var(--container-padding);
}

.udalosti-archiv-header {
  font-weight: 500;
  padding-top: 0;
}

.udalosti-archiv-cell {
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.4;
}

.udalosti-archiv-cell-year {
  width: 72px;
  flex: 0 0 72px;
}

.udalosti-archiv-cell-hosts {
  flex: 1;
  min-width: 0;
}

.udalosti-archiv-row:not(.udalosti-archiv-header) .udalosti-archiv-cell-hosts {
  font-weight: 500;
}

.udalosti-archiv-cell-record {
  width: 90px;
  flex: 0 0 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 0;
}

.udalosti-archiv-record-link {
  display: inline-flex;
  text-decoration: none;
  line-height: 1;
}

.udalosti-archiv-record-link .udalosti-mini-arrow {
  border-width: var(--events-record-arrow-height) 0 var(--events-record-arrow-height) var(--events-record-arrow-width);
}

.udalosti-archiv-record-link .udalosti-mini-arrow.is-active,
.udalosti-archiv-record-link .udalosti-mini-arrow.is-disabled {
  border-left-color: var(--events-record-arrow-default-color);
}

.udalosti-archiv-record-link:hover .udalosti-mini-arrow.is-active {
  border-left-color: var(--events-record-arrow-hover-color);
}

.udalosti-archiv-empty {
  padding: 1.2rem var(--container-padding);
  color: #4b4b4b;
}

@media (max-width: 991.98px) {
  .udalosti-featured {
    padding: 3rem 0 3.5rem 0;
  }

  .udalosti-featured-title {
    margin-bottom: 2.4rem;
  }

  .udalosti-featured-grid {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 767.98px) {
  .udalosti-featured {
    padding: 2rem 0 3rem 0;
  }

  .udalosti-featured-title {
    margin-bottom: 2rem;
  }

  .udalosti-featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .udalosti-featured-media {
    max-width: 260px;
  }

  .udalosti-featured-meta {
    margin-top: 1.8rem;
  }

  .udalosti-archiv-section {
    padding: 2.75rem 0;
  }

  .udalosti-archiv-title {
    margin-bottom: 1.5rem;
  }

  .udalosti-archiv-header {
    display: none;
  }

  .udalosti-archiv-row {
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .udalosti-archiv-cell,
  .udalosti-archiv-cell-year,
  .udalosti-archiv-cell-hosts,
  .udalosti-archiv-cell-record {
    width: 100%;
    flex-basis: auto;
    flex-shrink: 1;
  }

  .udalosti-archiv-cell[data-label] {
    display: flex;
    align-items: baseline;
  }

  .udalosti-archiv-cell[data-label]::before {
    content: attr(data-label);
    min-width: 74px;
    margin-right: 0.35rem;
    font-weight: 500;
    flex-shrink: 0;
  }

  .udalosti-archiv-cell-record[data-label] {
    justify-content: flex-start;
    align-items: center;
  }
}

/*--------------------------------------------------------------
# Kontakt Page Styles
--------------------------------------------------------------*/

.kontakt-page {
  background-color: var(--page-background);
  font-family: 'Satoshi', sans-serif;
  min-height: 100vh;
}

/* Hlavní obsah */
.kontakt-content {
  padding: 0rem 0;
}

.kontakt-content-wrapper {
  /* Používá .content-offset-left třídu */
}

/* Univerzální textové třídy */
.h2-subtitle {
  color: var(--gray-text-color);
  margin-bottom: 1rem;
  text-transform: none;
  letter-spacing: 1px;
  padding-top: 3rem;
}

.p-description {
  font-size: 1.25rem;
  font-weight: 400;
  color: #333;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Textové sekce */
.kontakt-text-section {
  margin-bottom: 4rem;
}



/* Kontaktní informace */
.kontakt-info-section {
  margin-bottom: 4rem;
}

.kontakt-info-item {
  margin-bottom: 2rem;
}

.kontakt-info-label {
  font-size: 1.5rem;
  font-weight: 500;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.kontakt-info-value {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  line-height: 1.4;
  margin: 0;
}

/* Responsive design */
@media (max-width: 991.98px) {
  

  
  .p-description {
    font-size: 1.125rem;
  }
  
  .kontakt-info-label {
    font-size: 1.25rem;
  }
  
  .kontakt-info-value {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .kontakt-content {
    padding: 3rem 0;
  }
  

  
  .p-description {
    font-size: 1rem;
  }
  
  .kontakt-info-item {
    margin-bottom: 1.5rem;
  }
  
  .kontakt-info-label {
    font-size: 1.125rem;
  }
  
  .kontakt-info-value {
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# Publikace Section Styles
--------------------------------------------------------------*/

.publikace-section {
  background-color: #D9D9D9;
  padding: 4rem 0;
  margin-top: 1rem;
}

.publikace-content {
  max-width: 100vw;
  margin: 0 auto;
  /*padding: 0 var(--container-padding);*/ /* Stejné odsazení jako container-fluid */
}

.publikace-content .p, .publikace-content .h1, .publikace-content .h2, .publikace-content .h3, .publikace-content .h4, .publikace-content .h5, .publikace-content .h6 {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.publikace-title {
  /*font-size: 3.125rem;*/
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: var(--container-padding);
}

.publikace-table {
  width: 100%;
}

.publikace-row {
  display: flex;
  border-bottom: 1px solid #969696;
  padding: 1.5rem 0;
  width: 100%;
  padding-left: var(--container-padding); /* Stejné odsazení jako container-fluid */
  padding-right: var(--container-padding);
  box-sizing: border-box;
}

.publikace-row:last-child {
  border-bottom: none;
}

.publikace-header {
  font-weight: 500;
  border-bottom: 1px solid #969696;
}

.publikace-header .publikace-cell {
  font-weight: 500;
}

/* Na desktopu skryjeme duplicitní roky (zachováme místo pro layout) */
.publikace-cell-year-duplicate {
  color: transparent;
}

.publikace-cell {
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  padding-right: 2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Pevné šířky sloupců pro konzistentní layout */
.publikace-cell:nth-child(1) {
  /* Rok vydání */
  width: 100px;
  flex-basis: 100px;
}

.publikace-cell:nth-child(2) {
  /* Název */
  width: 250px;
  flex-basis: 250px;
}

.publikace-cell:nth-child(3) {
  /* Autor - flexibilní, nejširší */
  flex: 1;
  flex-basis: 0;
  min-width: 150px;
}

.publikace-cell:nth-child(4) {
  /* ISBN */
  width: 180px;
  flex-basis: 180px;
}

.publikace-cell:nth-child(5) {
  /* Soubor */
  width: 180px;
  flex-basis: 180px;
  padding-right: 0;
}

.publikace-cell:last-child {
  padding-right: 0;
}

/* Publication file link styles */
.publikace-file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.5;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.publikace-file-link:hover {
  color: #666;
}

.publikace-file-link .download-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  align-self: center;
  margin-top: 7px;
}

/* Publication title link styles */
.publikace-title-link {
  color: #000;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.publikace-title-link:hover {
  color: #666;
}

/* Download icon styles */
.download-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.download-link:hover {
  color: #666;
}

.download-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Responsive design pro download icon */
@media (max-width: 767.98px) {
  .download-link {
    margin-left: 0.25rem;
  }
  
  .download-icon {
    width: 14px;
    height: 14px;
  }
}

/* Responsive design pro publikace */
@media (max-width: 991.98px) {
  .publikace-content {
    padding: 0 2rem;
  }
  
  .publikace-title {
    padding-left: 30px;
  }
  
  .publikace-row {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .publikace-cell {
    padding-right: 1rem;
  }
}

/* Skrytí ISBN sloupce mezi 950px a 768px */
@media (max-width: 950px) and (min-width: 768px) {
  .publikace-cell:nth-child(4) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .publikace-section {
    padding: 3rem 0;
  }
  
  .publikace-content {
    padding: 0 1rem;
  }
  
  /* Skrytí hlavičky tabulky na mobilu */
  .publikace-header {
    display: none;
  }
  
  .publikace-row:not(.publikace-header) {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    flex-direction: column;
    gap: 0.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .publikace-row:not(.publikace-header):last-child {
    border-bottom: none;
  }
  
  .publikace-title {
    margin-bottom: 2rem;
    padding-left: 15px;
  }
  
  .publikace-cell,
  .publikace-cell:nth-child(1),
  .publikace-cell:nth-child(2),
  .publikace-cell:nth-child(3),
  .publikace-cell:nth-child(4),
  .publikace-cell:nth-child(5) {
    padding-right: 0;
    width: 100% !important;
    flex-basis: auto !important;
    flex-shrink: 1;
    flex: none;
    min-width: 0;
    display: flex;
    align-items: baseline;
  }
  
  /* Zobrazení popisku před obsahem pomocí data-label */
  .publikace-cell[data-label]::before {
    content: attr(data-label);
    font-weight: 500;
    min-width: 100px;
    flex-shrink: 0;
  }
  
  /* Na mobilu zobrazíme všechny roky (i duplicitní) */
  .publikace-cell-year-duplicate {
    color: inherit;
  }
  
  /* Na mobilu skryjeme prázdné buňky Soubor */
  .publikace-cell-file-empty {
    display: none;
  }
}

/* Load more button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 0rem;
  margin-bottom: 5rem;
}

.load-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.load-more-btn:hover {
  transform: scale(1.1);
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #000;
  transition: border-top-color 0.3s ease;
}

.load-more-btn:hover .arrow-down {
  border-top-color: var(--red-color);
}

/* Loading a error stavy */
.loading,
.error,
.no-projects {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  font-size: 1.25rem;
  color: #666;
  font-family: 'Satoshi', sans-serif;
}

.error {
  color: var(--red-color);
}

/* Responsive design pro projekty */
@media (max-width: 991.98px) {
  .projekty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    row-gap: 4rem;
  }
  
  .category-nav {
    gap: 2rem;
  }
  
  .category-btn {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .projekty-page {
    padding: 3rem 0;
  }
  
  .projekty-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    row-gap: 3rem;
  }
  
  .category-nav {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .category-btn {
    font-size: 1.25rem;
  }
  
  .projekt-image {
    height: 250px;
  }
  
  .projekt-title {
    font-size: 1.125rem;
    padding: 1rem;
  }
}

/*--------------------------------------------------------------
# Single Projekt Page Styles
--------------------------------------------------------------*/

.single-projekt-page {
  background-color: #f9f9f9;
  padding: 6rem 0;
  font-family: 'Satoshi', sans-serif;
  min-height: 100vh;
}

.projekt-header {
  text-align: center;
  /*margin-bottom: 4rem;*/
}

.projekt-header .projekt-title {
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projekt-category {
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--red-color);
  font-family: 'Satoshi', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.projekt-content {
  margin-bottom: 4rem;
}

.projekt-featured-image {
  margin-bottom: 3rem;
  border-radius: 0;
  overflow: hidden;
}

.projekt-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.projekt-description {
  font-weight: 400;
  color: #333;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.6;
  max-width: 1000px;
  /*margin: 0 auto;*/
}

.projekt-description p {
  margin-bottom: 1.5rem;
}

.projekt-description h2,
.projekt-description h3,
.projekt-description h4 {
  font-family: 'Satoshi', sans-serif;
  color: #000;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Navigation */
.projekt-navigation {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #ddd;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-previous a,
.nav-next a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-family: 'Satoshi', sans-serif;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  color: var(--red-color);
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-previous a {
  flex-direction: row;
}

.nav-next a {
  flex-direction: row-reverse;
}

.nav-arrow-left,
.nav-arrow-right {
  width: 0;
  height: 0;
  border-style: solid;
  margin: 0 1rem;
  transition: border-color 0.3s ease;
}

.nav-arrow-left {
  border-width: 8px 12px 8px 0;
  border-color: transparent #333 transparent transparent;
}

.nav-arrow-right {
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #333;
}

.nav-previous a:hover .nav-arrow-left {
  border-right-color: var(--red-color);
}

.nav-next a:hover .nav-arrow-right {
  border-left-color: var(--red-color);
}

.nav-title {
  font-weight: 400;
  line-height: 1.4;
}

/* Responsive design pro single projekt */
@media (max-width: 767.98px) {
  .single-projekt-page {
    padding: 3rem 0;
  }
  
  .projekt-header .projekt-title {
    font-size: 2rem;
  }
  
  .projekt-category {
    font-size: 1.25rem;
  }
  

  
  .nav-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-previous,
  .nav-next {
    text-align: center;
  }
  
  .nav-previous a,
  .nav-next a {
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .projekt-header .projekt-title {
    font-size: 2.5rem;
  }
  
  .projekt-category {
    font-size: 1.5rem;
  }
  
  .projekt-header {
    margin-left: 28vw;
    padding-left: 0rem;
    padding-right: 2rem;
  }
}

/*--------------------------------------------------------------
# Projekty Archive Page Styles
--------------------------------------------------------------*/

.projekty-archive-page {
  background-color: var(--page-background);
  padding: 6rem 0;
  font-family: 'Satoshi', sans-serif;
  min-height: 100vh;
}

.archive-header {
  text-align: center;
  margin-bottom: 4rem;
}

.archive-title {
  font-size: 3.125rem;
  font-weight: 400;
  color: #000;
  font-family: 'Satoshi', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Responsive design pro archive */
@media (max-width: 767.98px) {
  .projekty-archive-page {
    padding: 3rem 0;
  }
  
  .archive-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .archive-title {
    font-size: 2.5rem;
  }
}

/*--------------------------------------------------------------
# Single Projekt Detail Page Styles
--------------------------------------------------------------*/

.single-projekt-page {
  background-color: var(--page-background);
  padding: 0;
  font-family: 'Satoshi', sans-serif;
  min-height: 100vh;
}

/* Projekt header */
.projekt-header {
  text-align: left;
  /*margin-bottom: 3rem;*/
  padding: 1.5rem 0;
}

.projekt-header .projekt-title {
  font-size: 3.125rem;
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 0rem;
  text-transform: none;
  letter-spacing: 1px;
}

.projekt-category {
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--red-color);
  font-family: 'Satoshi', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Projekt header - samostatný nadpis */
.projekt-header {
  grid-column: 1 / -1;
  max-width: 1200px;
  padding: 3rem;
  padding-left: 0px;
  padding-right: 4rem;
  padding-top: 0rem;
  margin-bottom: 2rem;
  margin-left: 28vw;
}

/* Conditional margin for h2-subtitle based on first element in projekt-description */
@media (min-width: 991px) {
  /* Pokud je první element v projekt-description odstavec (<p>), přidá margin-left */
  .projekt-content-wrapper:has(.projekt-description > p:first-child) .h2-subtitle {
    margin-left: 25px;
  }
  
  /* Pokud je první element obrázek nebo cokoli jiného, margin-left je 0 */
  .projekt-content-wrapper:has(.projekt-description > :first-child:not(p)) .h2-subtitle {
    margin-left: 0px;
  }
}

/* Content wrapper with sidebar */
.projekt-content-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 28vw 1fr;
  gap: 0;
  margin-bottom: 4rem;
  margin-top: 5vh;
  align-items: start;
}

/* Wrapper for sidebar and content side by side */
.projekt-main-wrapper {
  display: contents;
}

/* Red sidebar - sticky position */
.projekt-sidebar {
  position: sticky;
  top: 0;
  grid-column: 1;
  width: 100%;
  max-width: 530px;
  min-width: 280px;
  height: 100vh;
  background-color: var(--red-color);
  padding: 2rem;
  padding-left: 2rem;
  padding-top: 5rem;
  align-self: start;
}

/* Main content - projekt-content je teď přímo v wrapperu */
.projekt-content {
  grid-column: 2;
  max-width: 1200px;
  padding: 3rem;
  padding-left: 0rem;
  padding-right: 4rem;
  /* Pixel perfect zarovnání s obsahem sidebaru */
  padding-top: 0rem !important;
  margin-bottom: 0;
}

.projekt-featured-image {
  margin-bottom: 3rem;
  border-radius: 0;
  overflow: hidden;
}

.projekt-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.projekt-description {
  /*font-size: 1.25rem;*/
  font-weight: 400;
  color: #333;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.6;
}

.projekt-description p {
  margin-bottom: 1.5rem;
  margin-top: -9px;
  margin-left: 25px;
  margin-right: 25px;
  max-width: 800px;
}

@media (max-width: 768px) {
  .projekt-description p {
    margin-top: 0px;
  }

  .projekt-description img {
    width: 100%;
    max-width: 100%;
  }
}

.projekt-description h2,
.projekt-description h3,
.projekt-description h4 {
  font-family: 'Satoshi', sans-serif;
  color: #000;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.projekt-description img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  margin-left: 0;
}

.projekt-description img:first-of-type {
  margin-top: 0;
}

/* Projekt gallery */
.projekt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  margin-left: 0;
}

.projekt-gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  transition: var(--image-transition);
}

/* Galerie nemají hover efekt */
.projekt-gallery img:hover {
  opacity: 1; /* Žádný hover efekt */
}

.entry-content .wp-block-image,
.entry-content .wp-block-gallery { margin: 0 0 1.25rem 0; }
.entry-content .wp-block-image img { display:block; width:100%; height:auto; border-radius:8px; }


.sidebar-content {
  color: #000;
}

.date-item {
  margin-bottom: 0rem;
  padding-bottom: 0.5rem;
  /*border-bottom: 1px solid rgba(0, 0, 0, 0.2);*/
}

.current-lang a {
  padding-right: 12px !important;
}

.date-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.date-label {
  display: inline;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.date-value {
  display: inline;
  font-weight: 300;
  color: #000;
  font-family: 'Satoshi', sans-serif;
}

/* Related projects section */
.related-projects {
  background: var(--page-background);
  padding: 4rem 0;
  margin-top: 4rem;
}

.related-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gray-text-color);
  font-family: 'Satoshi', sans-serif;
  text-align: left;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  row-gap: 5rem;
  /*max-width: 1200px;*/
  margin: 0 auto;
  /*padding: 0 2rem;*/
}

.related-projekt-item {
  background: var(--page-background);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-projekt-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.related-projekt-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-projekt-image-container {
  height: auto;
  overflow: hidden;
  position: relative;
  width: 97%;
}

.related-projekt-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--image-transition);
  display: block;
}

/* Related projekty nemají hover efekt */
.related-projekt-item:hover .related-projekt-image,
.col-12:hover .related-projekt-image {
  opacity: 1; /* Žádný hover efekt */
}

.related-projekt-title {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gray-text-color) !important;
  font-family: 'Satoshi', sans-serif;
  margin: 0;
  padding-top: 0.5rem;
  text-align: center;
  line-height: 1.4;
}

/*--------------------------------------------------------------
# Projekt Card Component Styles
--------------------------------------------------------------*/

.projekt-card {
  /* Bez animací - jen opacity hover */
}

.projekt-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.projekt-card-image-container {
  height: 330px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.projekt-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--image-transition);
  display: block;
}

/* Hover efekt pouze pro projekty - hosté a členové týmu nemají hover efekt */
.projekt-card:hover .projekt-card-image {
  opacity: var(--image-hover-opacity);
}

.projekt-card:hover .projekt-card-title {
  color: #000 !important;
  transition: color 0.3s ease;
}

/* Explicitně odstraníme hover efekty pro hosty a členy týmu */
.o-nas-card:hover .o-nas-card-image img,
.host-cards-grid .o-nas-card:hover .o-nas-card-image img {
  opacity: 1; /* Žádný hover efekt */
}

.projekt-card-title {
  font-weight: 400;
  color: var(--gray-text-color) !important;
  font-family: 'Satoshi', sans-serif;
  margin: 0;
  padding-top: 0.5rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.projekt-card-placeholder {
  width: 100%;
  height: 250px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: 'Satoshi', sans-serif;
}

/* Responsive design */
@media (max-width: 991.98px) {
  .projekt-header {
    margin-left: 0;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .projekt-content-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
  }
  
  .projekt-main-wrapper {
    display: flex;
    flex-direction: column;
  }
  
  .projekt-sidebar {
    position: static;
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    padding-top: 2rem;
    padding-left: 2rem;
  }
  
  .projekt-content {
    grid-column: 1;
    max-width: 100%;
    padding-left: 0rem;
    padding-right: 0rem;
    padding-top: 2rem;
  }
  
  .related-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
  }
  
  .projekt-main-content {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .about-text {
    width: 100vw;
  }
  .single-projekt-page {
    padding: 0;
  }
  
  .projekt-header {
    padding-top: 0rem;
    padding-bottom: 0rem;
    margin-bottom: 1rem;
  }

  .h2-subtitle {
    padding-top: 1rem;
  }
  
  .projekt-main-content {
    /*padding: 1.5rem;*/
  }
  
  .related-projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    row-gap: 3rem;
    padding: 0 1rem;
  }
  
  .related-title {
    margin-bottom: 2rem;
  }
  
  .related-projekt-image {
    height: 200px;
  }
  
  .related-projekt-title {
    padding: 1rem;
  }

  .realizace-section {
    height: 61vh;
  }
}

/*--------------------------------------------------------------
# Image Hover Utilities
--------------------------------------------------------------*/

/* Universal image hover fade effect */
.image-hover-fade {
  transition: var(--image-transition);
}

/* Univerzální hover efekt odstraněn - používá se pouze pro projekty */
.image-hover-fade:hover {
  opacity: 1; /* Žádný hover efekt */
}

/* Alternative hover effects */
.image-hover-scale {
  transition: transform 0.3s ease;
}

.image-hover-scale:hover {
  transform: scale(1.05);
}

.image-hover-grayscale {
  transition: filter 0.3s ease;
}

.image-hover-grayscale:hover {
  filter: grayscale(100%);
}

/*--------------------------------------------------------------
# Simple Lightbox Styles
--------------------------------------------------------------*/

/* Ensure images in content are clickable and show cursor pointer */
.projekt-description img,
.projekt-content img {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.projekt-description img:hover,
.projekt-content img:hover {
  opacity: 0.9;
}

/* Simple Lightbox overlay customization */
.slb_container {
  z-index: 9999;
}

.slb_overlay {
  background-color: rgba(0, 0, 0, 0.9);
}

.slb_content {
  background-color: transparent;
}

.slb_image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.slb_closeBtn {
  color: #fff;
  font-size: 2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.slb_closeBtn:hover {
  opacity: 1;
}

.slb_navBtn {
  color: #fff;
  font-size: 2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.slb_navBtn:hover {
  opacity: 1;
}

/* Ensure lightbox works with Gutenberg images */
.wp-block-image img {
  cursor: pointer;
}

.wp-block-gallery img {
  cursor: pointer;
}

/* Responsive lightbox */
@media (max-width: 767.98px) {
  .slb_image {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .slb_closeBtn,
  .slb_navBtn {
    font-size: 1.5rem;
  }
}

/* Contact Form 7 styling for footer */
.contact-form .wpcf7-form {
  margin: 0;
  padding: 0;
}

.contact-form .wpcf7-form label {
  display: block;
  margin-bottom: 20px;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5;
  font-family: 'Satoshi', sans-serif;
  color: #E0E0E0;
}

.contact-form .wpcf7-form .wpcf7-textarea,
.contact-form .wpcf7-form .wpcf7-email,
.contact-form .wpcf7-form label {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
}

.contact-form .wpcf7-form .wpcf7-textarea {
  width: 100%;
  min-height: 120px;
  height: 150px;
  padding: 15px;
  border: 1px solid #fff;
  border-radius: 0;
  resize: vertical;
  background-color: transparent;
  color: #E0E0E0;
  transition: border-color 0.3s ease;
}

.contact-form .wpcf7-form .wpcf7-textarea:focus {
  outline: none;
  border-color: #dc3232;
}

.contact-form .wpcf7-form .wpcf7-textarea::placeholder {
  color: #E0E0E0;
}

.contact-form .wpcf7-form .wpcf7-email {
  width: 66.67%;
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  background-color: transparent;
  color: #E0E0E0;
  transition: border-bottom-color 0.3s ease;
  padding-top: 0px;
}

.contact-form .wpcf7-form .wpcf7-email:focus {
  outline: none;
  border-bottom-color: #dc3232;
}

.contact-form .wpcf7-form .wpcf7-email::placeholder {
  color: #E0E0E0;
}

.contact-form .wpcf7-form .wpcf7-submit {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  width: 0;
  height: 0;
  display: inline-block;
  /*margin-top: 20px;*/
  border-width: 25px 0 25px 45px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  transition: all 0.3s ease;
}

.contact-form .wpcf7-form .wpcf7-submit:hover {
  border-left-color: #e30c29;
}

.contact-form .wpcf7-form .wpcf7-submit:active {
  border-left-color: #b30000;
  transform: scale(0.95);
}

.contact-form .wpcf7-form .wpcf7-submit-wrapper {
  margin-top: 20px;
}

.contact-form .wpcf7-form .wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 0.875rem;
  margin-top: 5px;
}

.contact-form .wpcf7-form .wpcf7-spinner {
  display: none;
}

/* Responsive design pro Contact Form 7 */
@media (max-width: 1200px) {
  .contact-form .wpcf7-form .wpcf7-textarea,
  .contact-form .wpcf7-form .wpcf7-email,
  .contact-form .wpcf7-form label {
    font-size: 1.4rem;
  }
}

@media (max-width: 991.98px) {
  .contact-form .wpcf7-form .wpcf7-textarea,
  .contact-form .wpcf7-form .wpcf7-email,
  .contact-form .wpcf7-form label {
    font-size: 1.3rem;
  }
}

@media (max-width: 767.98px) {
  .contact-form .wpcf7-form .wpcf7-textarea,
  .contact-form .wpcf7-form .wpcf7-email,
  .contact-form .wpcf7-form label {
    font-size: 1rem;
  }

  .contact-form .wpcf7-form .wpcf7-textarea {
    height: 180px;
  }
  .contact-form .wpcf7-form .wpcf7-submit {
    border-width: 25px 0 25px 45px;
  }
}

/* Modal popup for Contact Form 7 messages */
.contact-form-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.contact-form-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 0;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-form-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-form-modal-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.contact-form-modal-icon {
  display: none;
}

.contact-form-modal-title {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 500;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 20px;
}

.contact-form-modal-message {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
  margin-bottom: 30px;
}

.contact-form-modal-button {
  background-color: transparent;
  color: #000;
  border: 1px solid #000;
  padding: 15px 40px;
  border-radius: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
  font-family: 'Satoshi', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form-modal-button:hover {
  background-color: #000;
  color: #fff;
}

/* Success modal styling */
.contact-form-modal.success .contact-form-modal-title {
  color: #000;
}

.contact-form-modal.success .contact-form-modal-message {
  color: #000;
}

/* Error modal styling */
.contact-form-modal.error .contact-form-modal-title {
  color: #000;
}

.contact-form-modal.error .contact-form-modal-message {
  color: #000;
}

/* Hide original Contact Form 7 messages */
.contact-form .wpcf7-form .wpcf7-response-output {
  display: none !important;
}

/* Page Load Animation */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to main content - all possible main containers */
.site-content,
.entry-content,
.page-content,
main,
.front-page-main,
.o-nas-page,
.kontakt-page,
.architektura-page,
.udalosti-page,
.udalost-single-page,
.single-page {
  animation: fadeInSlideUp 0.6s ease-out;
}

/* Apply animation to specific page elements */
.hero-banner,
.about-section,
.projects-section,
.contact-section,
.architektura-section,
.udalosti-section,
.o-nas-content,
.kontakt-content,
.architektura-content,
.udalosti-content,
.banner-image {
  animation: fadeInSlideUp 0.6s ease-out;
}

/* Prevent animation on page refresh if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-content,
  .entry-content,
  .page-content,
  main,
  .front-page-main,
  .o-nas-page,
  .kontakt-page,
  .architektura-page,
  .udalosti-page,
  .udalost-single-page,
  .single-page,
  .hero-banner,
  .about-section,
  .projects-section,
  .contact-section,
  .architektura-section,
  .udalosti-section,
  .o-nas-content,
  .kontakt-content,
  .architektura-content,
  .udalosti-content,
  .banner-image {
    animation: none;
  }
}

/* Specifický height pro banner na stránce O nás */
.page-template-page-o-nas .banner-image {
  height: 115vh !important;
}

@media (max-width: 767.98px) {
  .page-template-page-o-nas .banner-image {
    height: 60vh !important;
  }
}

@media (max-width: 480px) {
  .page-template-page-o-nas .banner-image {
    height: 52vh !important;
  }
}

/* Prevenci overflow řešíme jinak - necháme sticky sidebar fungovat */
.projekt-description {
    overflow-x: hidden;
}

.projekt-content {
    overflow-x: hidden;
}

/* Load more functionality */
.projekt-hidden {
    display: none !important;
}

.projekt-visible {
    display: block !important;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner red link styles */
.banner-red-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.banner-red-link .banner-title {
    transition: all 0.3s ease;
}

.banner-red-link:hover .banner-title {
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Polylang Language Switcher Styles */
.polylang-language-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.polylang-language-switcher li {
    display: flex;
    align-items: center;
}

.polylang-language-switcher .lang-delimiter {
    display: flex;
    align-items: center;
    line-height: 1;
}

.polylang-language-switcher a {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.polylang-language-switcher a:hover {
    color: var(--gray-text-color);
}

.polylang-language-switcher .current-lang a {
    font-weight: 500;
    color: var(--gray-text-color);
}

/* Language switcher in navigation */
.language-switcher-nav {
    margin-left: 20px;
    display: flex;
    align-items: center;
    
}

@media (max-width: 992px) {
  .language-switcher-nav {
    margin-left: 0px;
    justify-content: center;
  }
}

.language-switcher-nav .polylang-language-switcher {
    background: none;
    border: none;
    padding: 0;
}

.language-switcher-nav .polylang-language-switcher a {
    color: inherit;
    font-size: 14px;
    font-weight: 400;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher-nav .polylang-language-switcher a:hover {
    color: var(--gray-text-color);
}

.language-switcher-nav .polylang-language-switcher .current-lang a {
    color: var(--red-color);
    font-weight: 500;
}
