/* ==================== BASE RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Sofia Sans", sans-serif;
  font-size: 16px;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}



/* Youtube video */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- Animations ---- */
.slide {
  animation: slide 1s cubic-bezier(0.2, 0.6, 0.2, 1);
  animation-fill-mode: backwards;
}

.delay01 { animation-delay: .15s; }
.delay02 { animation-delay: .30s; }

@keyframes slide {
  0% {
    opacity: 0;
    transform: translateY(8vh);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}


/* ==================== GLOBAL ELEMENTS ==================== */

/* === Page container === */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.page {
    padding: 160px 0;
}

@media (max-width: 768px) {
  .page {
      padding: 100px 0;
  }
}

/* === Red banner === */
.banner {
  display: flex;
  padding: 12px 0;
  background-color: #DD1616;
  color: #FFFFFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.banner-inner {
  display: flex;
  justify-content: space-between;
  width: 1240px;
}

.banner-contact span {
  margin: 0 4px;
}

@media screen and (max-width: 767px) {
  .banner {
    display: none;
  }
}

/* --- Navigation header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.header.hide {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 24px;
  color: #00012E;
  text-decoration: none;
}

.logo img {
  height: 40px;
}

/* --- Navigation destkop --- */
.navigation ul {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.navigation a {
  text-decoration: none;
  color: #00012E;
  font-size: 14px;
  font-weight: 500;
}

.navigation a:hover {
  color: #DD1616;
  cursor: pointer;
}

/* --- Hide mobile elements on desktop --- */
.menu-toggle,
.mobile-nav,
.backdrop {
  display: none;
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .header-inner {
    justify-content: space-between;
    position: relative;
  }
  .logo {
    position: relative; 
    transform: none;    
    left: auto;         
  }
  .navigation {
    display: none;
  }
/* Menu toggle */
  .menu-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #00012E;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
    position: absolute;
  }
  .menu-toggle span:first-child {
    transform: translateY(-5px);
  }
  .menu-toggle span:last-child {
    transform: translateY(5px);
  }
  .menu-toggle.open span:first-child {
    transform: rotate(45deg);
  }
  .menu-toggle.open span:last-child {
    transform: rotate(-45deg);
  }
  /* --- Nav dropdown --- */
  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 999;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  }
  .mobile-nav.active {
    display: block;
  }
  .mobile-nav ul {
    list-style: none;
    padding: 32px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .mobile-nav a {
    color: #00012E;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
  }
  /* -- Black background -- */
  .backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  .backdrop.active {
    display: block;
    opacity: 1;
  }
}



/* ============================== HOMEAPGE ============================== */


/* ---- Homepage hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  padding: 200px 0 120px 0;
  align-items: flex-start;
  gap: 24px;
}

h1 {
  color: #00012E;
  font-size: 80px;
  font-weight: 800;
  line-height: 110%;
  max-width: 70%;
}

.hero p {
  color: #00012E;
  font-size: 20px;
  font-weight: 400;
  line-height: 140%;
  max-width: 50%;
}


@media (min-width: 768px) and (max-width: 1023px) {
  h1 {
    max-width: 100%;
  }
  .hero p {
    max-width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .hero {
    padding: 120px 0 64px;
  }
  h1 {
    font-size: 40px;
    max-width: 100%;
  }
  .hero p {
    font-size: 18px;
    max-width: 100%;
  }
}


h2 {
  color: #00012E;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 40px;
}

h3 {
  color: #00012E;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}


@media (max-width: 768px) {
  h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }
}


/* ---- 3 slike hero ---- */
.photo-wrapper {
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  height: 340px;
}

.photo-track {
  display: flex;
  gap: 12px;
}

.photo-track img {
  width: 392px;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease-in-out;
}

@media (max-width: 768px) {
  .photo-wrapper {
    height: 240px;
  }
  .photo-track {
    animation: autoScrollMobile 20s linear infinite;
    width: max-content;
  }
  .photo-track img {
    width: 292px;
    height: 240px;
  }
  @keyframes autoScrollMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}


/* ---- Content ---- */

.call-112 {
  padding: 80px 0;
}

.call-112 h3 {
  margin-bottom: 40px;
  text-align: center;
}

.call-112 p {
  color: #00012E;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 28.8px */
  max-width: 800px;
  margin: 0 auto;
}

/*  Mobile  */
@media (max-width: 768px) {
  .call-112 {
    padding: 64px 0 40px 0;
  }
  .call-112 h3 {
    margin-bottom: 20px;
  }
}


/* ---- O nas ---- */

.about-trio {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 0px;
  text-align: center;
}

.about-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-icon {
  background-color: #DD1616;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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


.about-box h3 {
  text-align: center;
}

.about-box p {
  color: #00012E;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 28.8px */
  max-width: 400px;
}

/*  Mobile  */
@media (max-width: 768px) {
  .about-trio {
    flex-direction: column;
    align-items: center;
    gap:60px;
    padding: 64px 0px;
  }
  .about-box {
    max-width: 100%;
  }
  .about-box p {
    max-width: 100%;
  }
}


/* ---- DOGODKI ----- */

.events {
  padding: 80px 0;
}

.events h3 {
  margin-bottom: 40px;
  text-align: center;
}

.event-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid #c2c2d2;
  border-radius: 12px;
  margin-bottom: 20px;
}

.event-meta {
  display: flex;
  gap: 12px;
}

.event-date,
.event-time {
  font-weight: 600;
  font-size: 24px;
  color: #00012E;
  white-space: nowrap;
  text-align: left;
  width: 200px;
}

.event-content {
  flex: 1;
}

.event-title {
  font-weight: 600;
  font-size: 24px;
  color: #00012E;
  margin-bottom: 8px;
}

.event-description {
  color: #00012E;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 28.8px */
}

/*  Mobile */
@media (max-width: 768px) {
  .events {
    padding: 64px 0;
  }
  .event-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }
  .event-meta {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .event-date,
  .event-time,
  .event-title {
    font-weight: 600;
    font-size: 20px;
  }
  .event-date {
    text-align: left;
  }
  .event-time {
    text-align: right;
  }
  .event-title {
    margin-bottom: 0px;
  }
}

/* -- Sponzorji -- */
.sponsors {
  padding: 80px 0;
}

.sponsors h3 {
  margin-bottom: 40px;
  text-align: center;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  align-items: center;
  gap: 0;
}

.sponsor {
  width: 100%;
  max-width: 300px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sponsor img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


/*  MOBILE  */
@media (max-width: 768px) {
  .sponsors {
    padding: 64px 0;
  }
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
    place-items: center; 
  }

  .sponsor {
    max-width: 100%;
    height: 140px;
  }

  .sponsor img {
    max-width: 80%;
    max-height: 100%;
  }
}






/* ============================== O NAS ============================== */

.content-wrapper {
  max-width: 960px;
}

.text-block {
  margin: 48px 0;
}

.text-block h3 {
  margin: 64px 0 40px 0;
}

.text-block p {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 28.8px */
  color: #00012E;
  margin: 24px 0;
}

.text-block a {
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.content-photo {
  padding: 20px 0;
}

.content-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.photo-caption {
  margin-top: 16px;
  font-size: 14px;
  color: #787884;
}


.povezave {
  padding: 0 20px;
  margin: 0;
}

.povezave li {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: #00012E;
}

.povezave li a {
  color: #DD1616;
}



/* ============================== DRUSTVO ============================== */


.milestones ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.milestones li {
  padding: 12px 0;
  font-size: 18px;
  color: #00012E;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
}

.milestones li strong {
  width: 60px;
  display: inline-block;
  color: #00012E;
}




.members {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.member {
  flex: 1 1 calc(33.333% - 32px);
  max-width: 300px;
  text-align: center;
}

.member img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.member h4 {
  font-size: 18px;
  font-weight: 600;
  color: #00012E;
  margin: 20px 0 2px 0;
}

.member .role {
  font-size: 16px;
  font-weight: 400;
  color: #767787;
  margin: 0;
}

/*  Mobile  */
@media (max-width: 768px) {
  .member {
    flex: 1 1 100%;
    max-width: 100%;
  }
}



/* ============================== ZA KRAJANE ============================== */


.emergency-call {
  padding: 0 20px;
  margin: 0;
}

.emergency-call li {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: #00012E;
}


.emergency-call li strong {
  display: inline-block;
  color: #DD1616;
}




/* ============================== GALERIJA ============================== */


.gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr); /* 3 v vrstici */
  gap: 20px;

  grid-template-columns: repeat(auto-fit, minmax(clamp(360px, 45%, 500px), 1fr)); /* 2 v vrstici */
  gap: 32px;



}

.gallery-grid a {
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.gallery-cover {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

.gallery-grid h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.gallery-grid .date {
  font-size: 16px;
  font-weight: 400;
  color: #767787;
  margin: 4px 0 12px 0;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid h3 {
  margin-top: 8px;
  }
  .gallery-grid .date {
    margin: 0;
  }
}



/* ============================== GALERIJA PAGE ============================== */

.album-info {
  max-width: 720px;
  margin-bottom: 64px;
}

.album-text {
  margin-bottom: 40px;
}
.album-text p {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: #00012E;
  margin-bottom: 20px;

  Xmax-width: 720px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 20px;
}

.album-grid img {
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 20;
  }
}





/* ============================== KONTAKT ============================== */


.map-container {
  position: relative;
  padding-bottom: 40%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .map-container {
    height: 320px;
  }
}

.form {
	max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.form h2 {
  margin-top: 100px;
}


form label {
	font-style: normal;
	font-weight: 600;
	font-size: 14px;
	line-height: 32px;
  color: #00012E;
}

.required {
  color: #DD1616; 
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 32px;
	margin-left: 4px;
}
.optional {
  color: #aaaaaa; 
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 32px;
	margin-left: 4px;
}


input[type="text"],
input[type="email"],
textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 0px;
	box-sizing: border-box;
	font-style: normal;
	font-weight: 300;
	font-size: 16px;
	line-height: 22px;
  color: #00012E;
}

input:focus, textarea:focus {
  border-color: #141414; 
  box-shadow: none;
	outline: none;
}

input[type="text"].error,
input[type="email"].error,
textarea.error {
	border: 1px solid #DD1616; 
}

.error-message {
	color:  #DD1616;
	font-style: normal;
	font-weight: 300;
	font-size: 14px;
	line-height: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
}

div:has(#phone) {
  margin-bottom: 24px;
}

textarea {
  min-height: 120px; 
  resize: vertical;
	display: block;
}

button[type="submit"] {
	font-weight: 500;
	padding: 16px 32px;
	color: #ffffff;
	background: #00012E;;
	text-align: center;
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
	display: inline-block;
	border:none;
	cursor: pointer;
	margin-top: 20px;
}
button[type="submit"]:hover {
	background: #14144a;
}


@media (max-width: 767px) {
	.error-message,
	.optional,
	input[type="text"],
	input[type="email"],
	textarea {
		font-weight: 500;
	}
	.form {
		width: 100%;
		box-sizing: border-box;
		order: 2;
	}
  .form h2 {
    margin-top: 40px;
  }
	button[type="submit"] {
		width: 100%;
	}
}







/* ============================== FOOTER ============================== */



/* ---- Slogan - NA POMOC ---- */
.slogan {
  display: flex;
  padding: 20px 0;
  justify-content: center;
  align-items: center;
  background-color: #DD1616;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 768px) {
  .slogan {
    font-size: 20px;
  }
}


/* ---- Footer ---- */
.footer {
  background-color: #000249;
  color: #ffffff;
  padding: 80px 0;
  font-size: 18px;
  line-height: 160%;
}

.footer h3 {
    color: #ffffff;
    text-align: left;
}

.footer p {
  margin-bottom: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: self-start;
}

.footer-logo-col {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 50%;
}

.footer-logo-col h3 {
  max-width: 60%;
}

@media (max-width: 768px) {
  .footer-logo-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}


.footer-logo-col img {
  height: 172px;
}

.footer-kontakt-col,
.footer-drustvo-col {
  flex: 1;
  max-width: 25%;
}

.footer-kontakt-col h3,
.footer-drustvo-col h3 {
  margin-bottom: 24px;
}

.footer-follow-us {
  margin-top: 64px;
}


.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  margin-top: 120px;
  font-size: 14px;
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 60px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .footer-follow-us {
  margin-top: 40px;
  }
  .footer-logo-col img {
    height: 140px;
  }
  .footer-logo-col h3 {
  max-width: 100%;
  }
  .footer-logo-col,
  .footer-kontakt-col,
  .footer-drustvo-col {
    max-width: 100%;
    width: 100%;
  }
  .footer-logo-col {
    order: 1;
  }
  .footer-drustvo-col {
    order: 2;
  }
  .footer-kontakt-col {
    order: 3;
  }
  .footer-copyright {
    margin-top: 100px;
  }
}



/* ============================== LIGHTBOX FIX ============================== */

body.glightbox-scroll-lock {
  position: fixed;
  width: 100%;
}