/* RE:KONSTRUKCIJA - stilovi */
:root {
  --dark: #09121b;
  --navy: #094b56;
  --navy2: #0a4256;
  --yellow: #fdcd00;
  --white: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Albert Sans", Arial, sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 64px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 64px;
  flex-wrap: wrap;
  gap: 20px;
}
.logo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-size: 28px;
  color: var(--yellow);
}
nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
nav a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #c6d3d6;
  padding: 8px 14px;
  border-radius: 100px;
  transition: 0.2s;
}
nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
nav a.cta {
  color: var(--yellow);
}
nav a.cta:hover {
  background: rgba(253, 205, 0, 0.15);
}

/* HERO */
.hero {
  position: relative;
  min-height: 900px;
  background: url("img/hero_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 120px 64px 100px;
  overflow: hidden;
}
.hero .container {
  max-width: none;
  margin: 0;
  padding-left: 64px;
  padding-right: 64px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin-left: 0;
  margin-right: auto;
}
.hero-eyebrow {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
  font-family: "Albert Sans", sans-serif;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.92;
  color: var(--yellow);
  letter-spacing: -2px;
  margin-bottom: 22px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hero-sub {
  font-size: 26px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.3;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-date {
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 44px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 20px;
  padding: 20px 46px;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.25s;
}
.btn:hover {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn-yellow {
  border: 2px solid var(--yellow);
  color: var(--yellow);
}
.btn-yellow:hover {
  background: var(--yellow);
  color: var(--navy);
}
/* SECTION TITLES */
.section-title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(42px, 5vw, 64px);
  color: var(--yellow);
  margin-bottom: 50px;
}

/* SUDIONICI */
.sudionici {
  background: #fff;
  color: var(--navy2);
  padding: 90px 0;
}
.sudionici .section-title {
  color: var(--navy2);
}
.sudionici-slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sudionici-track-viewport {
  overflow: hidden;
  flex: 1;
}

.sudionici-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.sudionik-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3); /* 3 kartice vidljive, 2 gapa od 24px */
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  background-color: lightgray;
  border: 1px solid #094b56;
  box-sizing: border-box;
}

.sudionik-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sudionik-label {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(10, 66, 86, 0.73);
  padding: 18px 18px 12px;
}

.sudionik-label .ime {
  display: block;
  color: #fff;
  text-align: center;
  font-family: "Albert Sans";
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  text-transform: uppercase;
}

.sudionik-label .titula {
  display: block;
  color: #fdcd00;
  text-align: center;
  font-family: "Albert Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
  margin-top: 4px;
}

.slider-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--navy2);
  background: #fff;
  color: var(--navy2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.slider-arrow:hover {
  background: var(--navy2);
  color: #fff;
}
.slider-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.slider-arrow:disabled:hover {
  background: #fff;
  color: var(--navy2);
}

.paginacija {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-top: 40px;
}
.paginacija span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(10, 66, 86, 0.3);
  cursor: pointer;
  transition: 0.2s;
}
.paginacija span.active {
  background: var(--navy2);
  transform: scale(1.3);
}
.paginacija span.active {
  background: var(--navy2);
  opacity: 1;
}

/* PROGRAM */
.program {
  background: var(--navy);
  padding: 100px 0;
}
.program-item {
  display: flex;
  gap: 80px;
  padding: 30px 0;
  border-bottom: 0;
  max-width: 1245px;
  margin: 0 auto;
}
.program-time {
  flex: 0 0 354px;
  text-align: right;
  font-size: 26px;
  text-transform: uppercase;
  font-family: "Afacad", sans-serif;
  position: relative;
  padding-top: 8px;
  color: var(--yellow);
}
.program-divider {
  width: 1px;
  background: var(--yellow);
  flex-shrink: 0;
}
.program-detail {
  flex: 1;
  padding-top: 8px;
}
.program-detail h3 {
  font-family: "Afacad", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--yellow);
  margin-bottom: 14px;
  line-height: 1.2;
}
.program-detail p {
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
}
.program-detail p b {
  color: var(--yellow);
}
.program-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.program-break .program-detail h3 {
  color: var(--yellow);
}

/* TEME */
.teme {
  background: #fff;
  color: var(--navy2);
  padding: 100px 0;
}
.teme .section-title {
  color: var(--navy2);
}
.teme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 60px;
}
.tema-card h3 {
  font-family: "Afacad", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--navy2);
}
.tema-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy2);
}

/* CTA banda */
.cta-band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 946px;
  background:
    linear-gradient(rgba(10, 10, 10, 0.55), rgba(80, 80, 80, 0.55)),
    url("img/prijava_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
}
.cta-band h2 {
  font-family: "Koulen", "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--yellow);
  letter-spacing: 4px;
  margin-bottom: 30px;
}
.cta-band p {
  font-size: 22px;
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.4;
}
.cta-band .btn {
  font-size: 24px;
  padding: 24px 56px;
}

/* FOOTER */
footer {
  background: var(--navy2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px 53px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1800px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.footer-logo {
  flex-shrink: 0;
  color: var(--yellow);
  font-size: clamp(28px, 2.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  text-transform: uppercase;
}

.footer-orgs {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.org-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.org-block span,
.footer-partners > span {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.org-block img {
  display: block;
  width: auto;
  height: 46px;
  max-width: 190px;
  object-fit: contain;
}

.org-divider {
  width: 1px;
  height: 58px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.5);
}

.footer-partners {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}

.partners-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.partners-logos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 260px;
  object-fit: contain;
  object-position: left center;
}

/* HGK */
.partners-logos img:nth-child(1) {
  max-height: 38px;
}

/* Za bok */
.partners-logos img:nth-child(2) {
  max-height: 48px;
}

/* DGIZ */
.partners-logos img:nth-child(3) {
  max-height: 34px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--yellow);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer {
    padding: 34px 24px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  /* RE:KONSTRUKCIJA */
  .footer-logo {
    text-align: center;
  }

  /* 24sata i Njuškalo ostaju u istom retku */
  .footer-orgs {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .org-block {
    align-items: center;
    gap: 6px;
  }

  .org-block img {
    height: 38px;
    max-width: 135px;
  }

  .org-divider {
    height: 52px;
  }
  .footer-partners {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .partners-logos {
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }

  .partners-logos img {
    display: block;
    width: auto;
    max-width: 85%;
    object-fit: contain;
    object-position: center;
  }
}

/* MODAL PRIJAVA */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(
    --navy
  ); /* puna neprozirna boja, BEZ blur/prozirnosti prema fotki iza */
  backdrop-filter: none;
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: transparent;
  padding: 100px 64px 80px;
  border-radius: 0;
  max-width: 900px;
  width: 100%;
  max-height: none;
  overflow-y: visible;
  position: relative;
  box-shadow: none;
}
.modal-close {
  position: fixed;
  top: 40px;
  right: 60px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--yellow);
  border: none;
  font-size: 36px;
  font-weight: 700;
  cursor: pointer;
}
.modal h2 {
  display: none; /* Figma dizajn nema naslov "PRIJAVA NA KONFERENCIJU" unutar ovog frame-a */
}
.form-group {
  margin-bottom: 30px;
}
.form-group label {
  display: block;
  color: var(--yellow);
  font-family: "Albert Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}
.form-group input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(246, 246, 246, 0.6);
  color: #fff;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  padding: 8px 0 12px;
  outline: none;
}
.form-group input::placeholder {
  color: rgba(246, 246, 246, 0.55);
}
.checkbox-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 32px 0;
  font-size: 14px;
  color: #f6f6f6;
  line-height: 1.55;
  font-family: "Albert Sans", sans-serif;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--yellow);
  flex-shrink: 0;
}
.checkbox-row a {
  color: var(--yellow);
  text-decoration: underline;
}
.modal .btn {
  width: 100%;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(6px);
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.25);
  color: var(--yellow);
}
.modal .btn:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  color: var(--yellow);
}
.form-success {
  display: none !important;
  position: relative;
  z-index: 10;
  margin-top: 22px;
  padding: 18px 24px;
  background: rgba(253, 205, 0, 0.12);
  border: 1.5px solid var(--yellow);
  border-radius: 14px;
  color: var(--yellow);
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}
.form-success.active {
  display: block !important;
  animation: fadeInUp 0.4s ease;
}

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

@media (max-width: 900px) {
  .container,
  .header-inner {
    padding: 0 24px;
  }
  .sudionici-grid {
    grid-template-columns: 1fr;
  }
  .teme-grid {
    grid-template-columns: 1fr;
  }
  .program-item {
    flex-direction: column;
    gap: 16px;
  }
  .program-time {
    text-align: left;
    flex: none;
  }
  .program-divider {
    display: none;
  }
  nav {
    gap: 16px;
  }
  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    gap: 12px;
  }
  .logo {
    font-size: 22px;
    text-align: center;
  }
  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  nav a {
    font-size: 11px;
    padding: 6px 10px;
  }

  /* Hero: fotka kropana na zgradu, tekst ODMAH ispod na navy pozadini */
  .hero {
    position: relative;
    display: block;
    min-height: auto;
    padding: 0;
    padding-top: 380px;
    background: url("img/hero_mob_bg.png");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    overflow: visible;
  }
  .hero .container {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .hero-content {
    max-width: 100%;
    padding: 36px 24px 44px;
    background: var(--navy);
    position: relative;
    margin-top: 0;
  }
  .hero-content::before {
    content: none;
  }

  .hero-eyebrow {
    font-size: 17px;
  }
  .hero-title {
    font-size: 9vw;
    white-space: nowrap;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 18px;
  }
  .hero-sub {
    font-size: 18px;
    line-height: 1.35;
  }
  .hero-date {
    font-size: 16px;
    margin-bottom: 26px;
  }
  .btn {
    font-size: 16px;
    padding: 16px 32px;
  }
  .sudionici-slider-wrap {
    flex-direction: column;
  }
  .slider-arrow {
    display: none;
  }
  .sudionici-track-viewport {
    overflow: visible;
    width: 100%;
  }
  .sudionici-track {
    flex-direction: column;
    transform: none !important;
    gap: 20px;
  }
  .sudionik-card {
    flex: none;
    width: 100%;
  }
  .paginacija {
    display: none;
  }
}

@media (max-width: 420px) {
  nav {
    width: 100%;
    justify-content: flex-start;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: 8.5vw;
  }
}
@media (max-width: 900px) {
  .hero .hero-content {
    padding: 36px 24px 44px !important;
    background: var(--navy);
    max-width: 100%;
    position: relative;
    margin-top: 0;
  }
}
