.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  margin: 0;        
  padding: 0;        
}

#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.1);
  z-index: -1;
}

.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10vw; 
  color: #d02c2c;
  text-align: center;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  user-select: none;
  z-index: 1;
}

nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;       
  max-width: 100%;    
  background-color: #000000 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  margin: 0;           
  padding: 0.25rem 1rem;
  overflow: hidden;   
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

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

nav.navbar .container-fluid {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

.navbar-toggler {
  border: none;
  outline: none;
  position: relative;
  width: 40px; 
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.navbar-toggler-icon {
  width: 48px;
  height: 48px;
}

nav.navbar .navbar-brand img {
  height: 150px;
  transition: height 0.3s ease;
}

nav.navbar .nav-link {
  font-weight: 600;
  font-size: 1.1rem;
  color: #ddd;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0.5rem 1rem;
}

nav.navbar .nav-link:hover {
  color: #d02c2c;
  transform: scale(1.05);
}

nav.navbar .nav-link.active {
  color: #d02c2c;
  font-weight: 700;
  border-bottom: 2px solid #d02c2c;
}

/* Reset */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #000; 
}

/* Sekce s kartami */
.courses-section {
  position: relative;
  background-color: black;
  color: white;
  padding: 60px 15px;
  margin-top: 0;
  z-index: 2;
}

.courses-section h2 {
  font-size: 8rem;
  margin-bottom: 20px;
}

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

.courses-section .card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(208, 40, 42, 0.6);
  z-index: 10;
}


.about-section {
  padding-top: 10% !important;
  padding-bottom: 10% !important;
  background-color: #242424;
  color: whitesmoke;
}

.about-section h2 {
  font-size: 5rem;
  margin-bottom: 20px;
}

.about-section p {
  font-size: 1.5rem;
  line-height: 1.5;
}

.courses-section .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.courses-section .btn {
  background-color: #d02c2c;
  color: whitesmoke;
  border: none;
  width: fit-content;
  margin: 0 auto;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.courses-section .btn:hover {
  background-color: #d02c2c;
}

.courses-section .card-img-top {
  height: 150%;         
  object-fit: cover;     
}

.gallery-section {
  background-color: #000;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 250px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 10px;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

#gallery h2,
#references h2,
#contact h2 {
  font-size: 3rem;
}

#references img {
  width: 80%;
  display: block;
  margin:  auto;
}
#references p {
  font-size: 1.4rem; 
}

#references h5 {
  font-size: 1.2rem; 
}

.reference-img {
  max-width: 180px;
  transition: transform 0.4s ease;
}

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

.quote-icon {
  font-size: 2rem;
  color: #0d6efd;
  margin-right: 10px;
}

.blockquote {
  border-left: 4px solid  #d02c2c;
  padding-left: 1rem;
  margin: 0;
}

.footer {
  background: black;
  color: #ddd;
  font-size: x-large;
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;     
  height: 100%;
}
.footer-logo {
  max-height: 125px;   
  position: relative;
  top: 40px; 
}

.social-icon {
  display: flex;
  position: relative;
  padding: 10px;
  top: 40px;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: black;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-icon img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-icon:hover {
  background-color: #d02c2c;
  transform: scale(1.15);
  width: 60px;
  height: 60px;
}
.social-icon:hover img {
  filter: brightness(1) invert(0);
}

.footer-divider {
  width: 100%;     
  height: 3px;     
  background-color: #ff0000; 
  margin: 10px 0;
  border: none; 
}

 .footer-links a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.footer-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #d02c2c;
  transition: width 0.3s ease;
}
.footer-links a:hover {
  color: #d02c2c;
}
.footer-links a:hover::after {
  width: 100%;
}

.live-clock-row {
  color: #ffffff; 
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  padding: 10px 0;
}

.live-clock {
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 0.2rem;
}

.live-clock-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #d02c2c;
  font-family: Arial, sans-serif;
}

.live-slogan,
.live-clock {
  margin: 0;
  padding: 0;
  line-height: inherit;
  font-size: inherit;
  font-family: inherit;
  display: flex;
  align-items: center;
}


.live-slogan {
  font-style: italic;
  font-size: 1.5rem;
  color: #dddddd; 
}

@media (max-width: 575.98px) {
  .centered-text {
    font-size: 20vw; 
    white-space: normal; 
    padding: 0 10px; 
  }

  nav.navbar .navbar-brand img {
    height: 80px;
  }

  .courses-section h2 {
    font-size: 4rem; 
  }

  .courses-section .card-img-top {
    height: 180px; 
  }

  .courses-section .btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .about-section h2 {
    font-size: 3rem;
  }

  .about-section p {
    font-size: 1.1rem;
  }

   .footer-logo {
    max-height: 70px;
    top: 10px;
  }

  .footer a {
    font-size: 1rem;
    margin: 0 8px;
  }

  .social-icon {
    width: 48px;
    height: 48px;
    position: relative;
    top: 20px;
    padding: 0.5rem;
  }

  .social-icon img {
    width: 22px;
    height: 22px;
  }

  .live-slogan {
    font-size: 1rem;
  }

  .live-clock {
    font-size: 1rem;
  }

  .footer .text-secondary {
    font-size: 0.8rem;
  }
}
  
@media (min-width: 576px) and (max-width: 767.98px) {
  .centered-text {
    font-size: 10vw;
  }

  nav.navbar .navbar-brand img {
    height: 100px;
  }

  .courses-section h2 {
    font-size: 5rem;
  }

  .courses-section .card-img-top {
    height: 140px;
  }

  .about-section h2 {
    font-size: 4rem;
  }

  .about-section p {
    font-size: 1.3rem;
  }

  .about-section img {
    width: 100%;
  }

  .footer-logo {
    max-height: 80px;
    top: 10px;
  }

  .footer a {
    font-size: 1.2rem;
    margin: 0 8px;
  }

  .social-icon {
    width: 48px;
    height: 48px;
    position: relative;
    top: 20px;
    padding: 0.5rem;
  }

  .social-icon img {
    width: 32px;
    height: 32px;
  }

  .live-slogan {
    font-size: 1.2rem;
  }

  .live-clock {
    font-size: 1.2rem;
  }

  .footer .text-secondary {
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .centered-text {
    font-size: 10vw;
  }

  nav.navbar .navbar-brand img {
    height: 120px;
  }

  .courses-section h2 {
    font-size: 6rem;
  }

  .courses-section .card-img-top {
    height: 150px;
  }

 #about-us .row.align-items-center {
    flex-direction: column;
  }
  
  .about-section h2 {
    font-size: 4.5rem;
  }

  .about-section p {
    font-size: 1.4rem;
  }
  
  #about-us .col-md-6 {
    width: 100%;
  }

  .footer-logo {
    max-height: 80px;
    top: 10px;
  }

  .footer a {
    font-size: 1.2rem;
    margin: 0 8px;
  }

  .social-icon {
    width: 48px;
    height: 48px;
    position: relative;
    padding: 1.5rem;
  }

  .col-md-3.d-flex.justify-content-center.justify-content-md-end {
    display: grid !important;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    padding-bottom: 1rem;
  }

  .social-icon img {
    width: 22px;
    height: 22px;
  }

  .live-slogan {
    font-size: 1.2rem;
  }

  .live-clock {
    font-size: 1.2rem;
  }

  .footer .text-secondary {
    font-size: 1rem;
  }
}
