/* GENERAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9fafb;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.header {
    background: #264653;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e9c46a;
}

.hero {
    position: relative;
    background: url("https://i0.wp.com/www.yesmagazine.org/wp-content/uploads/imports/306009e1b96645c98f6e9253a39cc136.jpg?resize=1950%2C1016&quality=90&ssl=1") no-repeat center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(38, 70, 83, 0.65);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeInUp 1s ease forwards;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centrira dugmad */
    gap: 1rem; /* razmak između dugmadi */
    margin-top: 2rem; /* prostor između paragrafa i dugmadi */
}

.hero-buttons .btn {
    transition: transform 0.3s, background 0.3s;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    background: #f4a261; /* lagano promeni boju na hover */
}

.btn {
    background: #e9c46a;
    color: #264653;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #f4a261;
}

/* ABOUT */
.about {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #264653;
}

.about p {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    color: #444;
}

.about-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: #f0f4f5;
    padding: 1.5rem;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card h3 {
    margin-bottom: 0.8rem;
    color: #2a9d8f;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
footer {
    background: #264653;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SEARCH BAR */
.search-bar {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.search-bar input {
    padding: 0.4rem 0.8rem;
    border-radius: 4px 0 0 4px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.search-bar button {
    padding: 0.4rem 0.8rem;
    border: none;
    background: #e9c46a;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.search-bar button:hover {
    background: #f4a261;
}

/* NEWS BAR */
.news-bar {
    background: #2a9d8f;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.6rem 0;
    position: relative;
}

.news-track {
    display: inline-block;
    padding-left: 100%;
    animation: scrollNews 25s linear infinite;
}

.news-bar p {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes scrollNews {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* razmak između slike i teksta */
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.logo-img {
    width: 50px;  /* možeš menjati po želji */
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}
/* ABOUT LIST - BULLETPOINTS */
.about-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding: 1.2rem 1.5rem;
    background: #ffffff;
    border-left: 6px solid #2a9d8f;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    animation: fadeSlideZoom 0.8s forwards;
}

.about-list li:nth-child(1) {
    animation-delay: 0.2s;
}
.about-list li:nth-child(2) {
    animation-delay: 0.5s;
}
.about-list li:nth-child(3) {
    animation-delay: 0.8s;
}

.about-list .bullet {
    font-size: 2rem;
    line-height: 1;
    color: #2a9d8f;
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
}

.about-list h3 {
    margin-bottom: 0.3rem;
    color: #264653;
    font-size: 1.3rem;
}

.about-list p {
    color: #555;
    font-size: 1rem;
}

/* ANIMATIONS */
@keyframes fadeSlideZoom {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/* OUR PEOPLE SECTION */
.our-people {
    padding: 4rem 0;
    background: #f0f4f5;
    text-align: center;
}

.our-people h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #264653;
}

.our-people .intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #444;
    font-size: 1.1rem;
}

.people-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.person-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.person-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.person-card h3 {
    margin: 1rem 0 0.5rem 0;
    color: #2a9d8f;
    font-size: 1.2rem;
}

.person-card p {
    padding: 0 1rem 1.5rem;
    color: #555;
    font-size: 0.95rem;
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}
person-card {
    outline: none;
}

.person-card.selected {
    border: 2px solid #4CAF50; /* zelena ivica oko selektovanog */
    border-radius: 8px;
}
.lazy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* pokriva celu hero/sekciju početno */
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeOutOverlay 2s forwards;
}

.lazy-overlay img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

@keyframes fadeOutOverlay {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
/* LAZY-LOADING OVERLAY - OUR PEOPLE */
.our-people {
    position: relative;
    padding: 4rem 0;
    background: #f0f4f5;
}

.lazy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* ne blokira interakciju */
}

.lazy-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.boss-card {
    width: 500px; /* veća od ostalih kartica */
    margin: 0 auto 3rem auto; /* centrira i razmak do ostalih kartica */
}

/* slider container */
.boss-card {
    width: 500px; /* veća od ostalih kartica */
    margin: 0 auto 3rem auto; /* centrira i razmak do ostalih kartica */
}

/* slider container */
.boss-slider {
  position: relative;
  width: 500px;   /* šire */
  height: 500px;  /* više */
  margin: 0 auto 15px;
  overflow: hidden;
  border-radius: 10px;
}

/* slajdovi */
.boss-slider .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 200%; /* 2 slike */
}

/* pojedinačne slike */
.boss-slider img {
  width: 500px;
  height: 500px;
  object-fit: cover;
}

/* strelice */
.boss-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.boss-slider .prev { left: 15px; }
.boss-slider .next { right: 15px; }

#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;
  z-index: 9999;
}

#popupFrame {
  width: 100%;
  height: 100%;
  border: none;
}

#closeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: red;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 12px;
}
