@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  src: url("/includes/fa/webfonts/fa-solid-900.woff2") format("woff2"),
       url("/includes/fa/webfonts/fa-solid-900.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 5 Brands";
  font-style: normal;
  font-weight: 400;
  src: url("/includes/fa/webfonts/fa-brands-400.woff2") format("woff2"),
       url("/includes/fa/webfonts/fa-brands-400.woff") format("woff");
  font-display: swap;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #1a1a1a;
  scroll-behavior: smooth;
  line-height: 1.6;
  background: #f4f4f4;
}

a { 
  color: #e30613; 
  transition: 0.3s; 
}
a:hover { 
  color: #b1050f; 
  text-decoration: none; 
}

.navbar { 
  background: transparent; 
  transition: background 0.4s, padding 0.3s; 
  padding: 15px 0;  
  position: fixed;
  width: 100%;
  z-index: 1050;
}

.navbar.scrolled { 
  background: #1a1a1a !important; 
  padding: 8px 0; 
  box-shadow: 0 3px 10px rgba(0,0,0,0.3); 
}

.navbar-brand img { 
  height: 42px; 
  width: auto; 
  border: 2px solid #fff; 
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important; 
  padding: 8px 12px;
  border-radius: 4px;
  position: relative;
  transition: background 0.3s, transform 0.2s;
}

.navbar .nav-link:hover {
  background-color: #3d3c3c !important;
  color: #fff !important;
}

.navbar .nav-link:focus,
.navbar .nav-link:active {
  background-color: #3d3c3c !important;
  transform: translateY(-2px);
  color: #fff !important;
}

@media (max-width: 768px) {
  .navbar {
    text-align: center !important;
    background: #1a1a1a !important;
    padding: 8px 0;
    transition: background 0.3s;
  }

  .navbar .nav-link {
    color: #fff !important;
    transition: background 0.3s, color 0.3s;
    padding: 8px 12px;
  }

  .navbar .nav-link:hover,
  .navbar .nav-link:focus,
  .navbar .nav-link:active {
    background-color: #3d3c3c !important; 
  }

  .navbar-toggler {
    border-color: #fff !important;
  }

  .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='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
}


.parallax {
  background: url('../images/bg.jpg') center/cover no-repeat fixed;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}
.parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.45));
}
.parallax-content { 
  position: relative; 
  z-index: 2; 
}
.parallax h1,
.parallax h2 {
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 2px 2px 15px rgba(0,0,0,0.6);
  animation: fadeInDown 1s ease;
}
.parallax h1 { font-size: 3.2rem; }
.parallax h2 { font-size: 2.2rem; }

.countdown {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 20px;
  background: rgba(255,255,255,0.15);
  padding: 12px 28px;
  border-radius: 25px;
  display: inline-block;
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: fadeInUp 1s ease 0.5s;
}

.location-pin { 
  font-size: 1.3rem; 
  margin-top: 15px; 
  color: #ffd700; 
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5); 
}
.location-pin a { 
  color: #ffd700 !important;  
}

.hand-image {
  position: absolute;
  bottom: 0;
  right: -400px;
  width: 600px; 
  height: auto;
  animation: slideInRight 1.5s ease forwards;
  animation-delay: 0.8s; 
  z-index: 1;
}

@keyframes slideInRight {
  from { right: -400px; opacity: 0; }
  to { right: 20px; opacity: 1; }
}

.section { padding: 90px 0; }
.section-light { background: #f9f9f9; }
.section-dark { background: #1a1a1a; color: #fff; }

.section-separator {
  position: relative;
  margin: 60px 0 40px;
}
.section-separator h2 {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  position: relative;
}
.section-separator h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: #e30613;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.partner-grid { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 25px;   
  width: 100%;
  overflow: hidden;
  padding: 10px;
  margin-bottom: 10px;
}
.partner-logo {
  flex: 0 0 200px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.partner-logo img { 
  max-width: 100%; 
  max-height: 100%; 
  object-fit: contain;  
  cursor: pointer; 
}
.partner-logo:hover {
  transform: translateY(-8px) scale(1.07);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.timeline-event {
  background: #fff;
  color: #000;
  border-left: 6px solid #e30613;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform .3s, box-shadow .3s;
}
.timeline-event:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 12px 30px rgba(0,0,0,0.2); 
}
.timeline-event h5 { 
  color: #e30613; 
  font-weight: 700; 
  margin-bottom: 15px; 
}

#lokacija {
  padding: 60px 0;
  background: #f9f9f9;
  position: relative;
}
.map-section {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.map-section iframe {   
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.training-room-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.training-room-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 14px 35px rgba(0,0,0,0.3);
}
.training-room-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.training-room-info {
  padding: 15px;
  text-align: center;
}
.training-room-info h5 {
  margin-bottom: 8px;
  font-weight: 700;
  color: #e30613;
}
.training-room-info p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #333;
}
.training-room-info .partner-logo {
  height: 30px;
  object-fit: contain;
  margin-top: 5px;
}

.controls { margin-bottom: 20px; }

#map {
  width: 100%;
  height: 80vh;
  min-height: 400px;
  position: relative;
}
.leaflet-control-attribution { display: none !important; }
.leaflet-container { transition: transform 0.2s ease-in-out; }



.hover-scale { 
  transition: all 0.3s ease-in-out; 
}
.hover-scale:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.bg-icon {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.1;
  pointer-events: none;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
}
.bg-gradient-success {
  background: linear-gradient(135deg, #198754, rgb(54, 252, 192));
}

.expo-label {
  font-size: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.table-dark tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  cursor: pointer;
}

.trainings-hero {
  background: url('../images/bg_trainings.jpg') center/cover no-repeat fixed;
  color: #fff;
  position: relative;
  background-attachment: fixed;
  padding: 5rem 0;
  min-height: 500px;
}
@media (max-width: 767.98px) {
  .trainings-hero {
    background-attachment: scroll;
    padding: 3rem 1rem;
    min-height: auto;
  }
}
.parallax-content { position: relative; z-index: 2; }

html, body, .mapa-sajma, .map-wrapper {
  height: auto;
  min-height: 100%;
}

.leaflet-marker-icon.custom-marker-wrap {
  background: transparent;
  border: none;
}
.custom-marker {
  background: #fff;
  border-radius: 2px;      
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-marker img { display: block; }
.custom-marker:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

#searchInput {
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  border: 2px solid #007bff;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  min-width: 250px;
}
#searchInput:focus {
  border-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
#searchInput::placeholder {
  color: #888;
  font-style: italic;
}

.leaflet-popup.custom-popup { z-index: 9999 !important; }

.leaflet-popup {z-index: 9999 !important; }

.leaflet-popup-content-wrapper {
  position: relative;
  z-index: 9999;
}

.popup-card {
  min-width: 180px;
  max-width: 250px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
}
.popup-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.popup-img-wrap { 
  text-align: center; 
  margin-bottom: 5px; 
}
.popup-img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.popup-desc {
  font-size: 0.875rem;
  color: #333;
}

.card_dvorana, .card_stand {
  cursor: pointer;
  min-width: 120px;
  font-size: 1.2rem;
  border-radius: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.detail-card {
  background: #f8f9fa;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  text-align: center;
  transition: background 0.2s ease;
}
.detail-card:hover { background: #e9ecef; }
.detail-card strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #333;
}
.detail-card span { color: #555; }
footer {
  margin: 20px 0 0;
  background: #111;
  color: #bbb;
  padding: 30px 0;
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid #222;
}

footer p {
  margin: 5px 0;
  color: #888;
}

footer .social-links {
  margin: 15px 0;
}

footer .social-links a {
  display: inline-block;
  padding: 10px;
  font-size: 1.4rem;
  color: #bbb;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  color: #ff4444;
  transform: translateY(-3px) scale(1.1);
}


.card-title {
  padding:5px;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.card-body {
  position: relative;
  overflow: hidden;  
}
.bg-icon-tickets {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translate(-50%, -50%);
  font-size: 11rem; 
  opacity: 0.2;
  pointer-events: none;
  filter: blur(2px);
}

.agenda-header-text{
  color:#ffffff;
  line-height: 1.2;
  font-size: 1.5rem; 
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom:10px;
  padding:0;

}


.agenda-header-text span {
  font-size: 2rem; 
}