
    :root {
    --primarna: #0a192f; 
    --akcentna: #17a2b8; 
    --svijetla: #f4f7f6;
    --tekst: #333;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--tekst);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--primarna);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

header.skupni-nav {
    height: 100px;
    background: rgba(10, 25, 47, 0.98);
}

.logo-img {
    height: 110px;
    width: auto;
    margin: 0 30px;
    animation: pulse 3s infinite ease-in-out;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
}

header.skupni-nav .logo-img {
    height: 60px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 40px;
    transition: all 0.4s ease;
}
.brand-central {
    text-align: center;
    flex-grow: 1;
}

.brand-central h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--akcentna);
    letter-spacing: 2px;
    transition: font-size 0.4s ease;
}

.brand-central p {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.9;
}


header.skupni-nav .brand-central h1 {
    font-size: 1.2rem;
}

header.skupni-nav .brand-central p {
    display: none;
}

nav {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
    padding-top: 5px;
    transition: all 0.4s ease;
}

header.skupni-nav nav {
    margin-top: 5px;
    border-top: none;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.3s;
}

nav a:hover { color: var(--akcentna); }

.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.75)), 
                url('herobg.png'); 
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    color: white;
    text-align: center;
    padding: 152px 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.5rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }

.section { padding: 60px 0; }
.light { background: var(--svijetla); }
#predavaci {
    background: #0a192f;
    padding: 100px 20px;
    box-sizing: border-box;
}


#predavaci h2 {
    color: white;
}

#predavaci h2::after {
    background: var(--akcentna);
}

h2 { text-align: center; margin-bottom: 50px; font-size: 2.2rem; color: var(--primarna); position: relative; }
h2::after { content: ''; width: 60px; height: 3px; background: var(--akcentna); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }

.bio-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}

.bio-modal-box {
  position: relative;
  background: white;
  margin: 10vh auto;
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  padding: 40px;
  max-height: 75vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

.bio-modal-box h3 {
  color: var(--primarna);
  margin: 0 0 5px 0;
}

.bio-modal-box .inst {
  display: block;
  margin-bottom: 15px;
}

.bio-modal-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

.bio-modal-close {
  position: absolute;
  right: 16px;
  top: 8px;
  font-size: 40px;
  cursor: pointer;
  color: #333;
  line-height: 1;
}
.img-box { width: 100%; height: 320px; overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.info-box { padding: 25px; text-align: center; }
.info-box h3 { margin: 0 0 10px 0; color: var(--primarna); }
.inst { display: block; color: var(--akcentna); font-weight: bold; margin-bottom: 15px; }

.bio-tekst {
    text-align: left;
    font-size: 0.95rem;
    color: #555;
    margin: 15px 0;
    min-height: 60px;
}

.read-more-btn {
    background: transparent;
    border: 1.5px solid white;
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.read-more-btn:hover {
    background: var(--primarna);
    color: white;
}

.map-section {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.map-wrapper {
  width: 50%;
  height: 400px; /* kvadratni oblik - podesi po potrebi */
  border: 3px solid #17a2b8; /* zamijeni sa bojom tvog navbara */
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 110px;
}

.contact-info {
  flex: 1;
  padding-top: 10px;
}

.contact-info h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.contact-info p {
  margin-bottom: 10px;
}

.map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* 3. Posebno pravilo za modalnu formu (da se ne mešaju) */
.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer { background: var(--primarna); color: white; padding: 30px 0; text-align: center; }

@media (max-width: 900px) {
    .header-top { flex-direction: column; gap: 20px; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .logo-img { height: 80px; margin: 0; }
    .speakers-grid { grid-template-columns: 1fr; }
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2vh auto;
    width: 90%;
    max-width: 1000px;
    height: 95vh;
    border-radius: 15px;
    overflow: hidden;
    
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #333;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
/* Registracija sa pozadinskom slikom */
#registracija {
    background: linear-gradient(rgba(10, 25, 47, 0.72), rgba(10, 25, 47, 0.72)),
                url('medicinski-fakultet-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

#registracija h2 {
    color: white;
}

#registracija h2::after {
    background: var(--akcentna);
}

#registracija .read-more-btn {
    border-color: white;
    color: white;
}

#registracija .read-more-btn:hover {
    background: var(--primarna);
    color: var(--primarna);
}
/* --- POKRETNA TRAKA --- */
.ticker-wrap {
    width: 100%;
    background: #112240;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #112240, transparent);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #112240, transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 30px;
    white-space: nowrap;
}

.ticker-logo {
    height: 52px;
    width: auto;
    opacity: 1;
}

.ticker-text {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ticker-divider {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
#agenda {
    background: var(--primarna);
    position: relative;
    overflow: hidden;
}

#agenda .container {
    position: relative;
    z-index: 1;
}
#rafting {
    position: relative;
    overflow: hidden;
}


.rafting-btn {
  padding: 14px 35px;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid white;
  color: white;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  background: linear-gradient(to top, var(--akcentna) 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: top;
  transition: background-position 0.4s ease, color 0.4s ease;
}

.rafting-btn:hover {
  background-position: bottom;
  color: white;
}

#rafting .container {
    position: relative;
    z-index: 1;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    header {
        height: auto !important;
        padding-bottom: 10px;
    }

    header.skupni-nav {
        height: auto !important;
    }
}
.fly-in {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1.8s ease;
}

.fly-in.animate {
  opacity: 1;
  transform: translateX(0);
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 20px 30px;
  min-width: 90px;
}

.countdown-item span {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--svijetla);
  line-height: 1;
}

.countdown-item label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.speaker-card {
    background: #d9d6ce;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.4s;
}
@media (max-width: 900px) {
    .bio-modal-box {
        margin: 5vh auto;
        padding: 50px 20px 20px 20px;
        max-height: 85vh;
        width: 88%;
    }

    .bio-modal-close {
        position: sticky;
        top: 0;
        right: 0;
        display: block;
        text-align: right;
        font-size: 35px;
    }
}
@media (max-width: 600px) {
    .countdown {
        gap: 10px;
    }

    .countdown-item {
        padding: 12px 15px;
        min-width: 60px;
    }

    .countdown-item span {
        font-size: 1.8rem;
    }

    .countdown-item label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
}
@media (max-width: 768px) {
    .map-section {
        flex-direction: column;
    }

    .map-wrapper {
        width: 100%;
        margin-right: 0;
        height: 300px;
    }

    .contact-info {
        width: 100%;
        padding-top: 20px;
    }

    footer {
        padding: 20px 10px;
        font-size: 0.85rem;
    }
}
a.read-more-btn {
    text-decoration: none;
}
.carousel-outer { padding: 20px 0; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.pcard {
   min-width: 280px;
  max-width: 280px;
  background: white;
  border: 1px solid var(--primarna);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.5s, filter 0.5s, opacity 0.5s;
}
.pcard.active {
  transform: scale(1.08);
  filter: none;
  opacity: 1;
  border: 2px solid var(--primarna);
  box-shadow: 2px 8px 8px var(--akcentna);
}
.pcard.side {
  filter: blur(2px);
  opacity: 0.45;
  transform: scale(0.93);
}
.pcard.far {
  filter: blur(4px);
  opacity: 0.2;
  transform: scale(0.87);
}
.pcard-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 2.5px solid var(--primarna);
}
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primarna);
  margin-bottom: 4px;
}
.pcard-spec {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.pcard-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f0ede6;
  color: #666;
  margin-bottom: 14px;
}
.pcard.active .pcard-tag {
  background: #f5e9cc;
  color: #7a5a10;
}
.pcard-btn {
  display: block;
  margin-top: 10px;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid var(--primarna);
  color: var(--primarna);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pcard-btn:hover {
  background: var(--primarna);
  color: white;
}
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 1.5rem;
}
.carousel-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 18px;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}
.carousel-arrow:hover { color: var(--primarna); }
.carousel-arrow:hover { background: white; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--akcentna);
  transform: scale(1.3);
}
#lokacija .contact-info p,
#lokacija .contact-info h3,
#lokacija .contact-info h4 {
  color: white;
}

#lokacija h2 {
  color: white;
}

#lokacija h2::after {
  background: var(--akcentna);
}
.section {
  min-height: 100vh;
  padding: 60px 0;
  box-sizing: border-box;
}
a:hover .hover-overlay {
  opacity: 1 !important;
}

a:hover img {
  filter: blur(3px);
}

@media (max-width: 768px) {
  .section-smjestaj {
    background-attachment: scroll !important;
    padding: 120px 20px !important;
  }
}
@media (max-width: 900px) {
  .radionice-grid {
    grid-template-columns: 1fr !important;
  }

  .radionice-grid .logo-sredina {
    display: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .radionice-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
    .radionice-red {
        grid-template-columns: 1fr !important;
    }
    .logo-sredina {
        display: none !important;
    }
}
