* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333333;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #f40009;
  color: #ffffff;
  padding: 20px 0;
}

.logo-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.logo {
  max-width: 150px;
  height: auto;
  width: 100%;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Main content */
main {
  padding: 40px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f40009;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Float slike */
.float-right {
  float: right;
  margin: 0 0 15px 15px;
  max-width: 200px;
}

.float-left {
  float: left;
  margin: 0 15px 15px 0;
  max-width: 200px;
}

/* Video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 30px 0;
}

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

.video-container p {
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
}

/* Vremenska lenta */
.cd-timeline {
  padding: 60px 0;
  position: relative;
}

.cd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 4px;
  background: #f40009;
  transform: translateX(-50%);
}

.timeline-title {
  text-align: center;
  margin-bottom: 40px;
  color: #f40009;
}

.cd-timeline__container {
  padding: 0 20px;
}

.cd-timeline__block {
  display: flex;
  position: relative;
  margin: 40px 0;
}

.cd-timeline__img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f40009;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.cd-timeline__img img {
  width: 24px;
  height: 24px;
}

.cd-timeline__content {
  width: calc(50% - 40px);
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
}

.cd-timeline__content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.cd-timeline__block:nth-child(odd) .cd-timeline__content {
  margin-left: auto;
}

.cd-timeline__block:nth-child(odd) .cd-timeline__content::before {
  right: 100%;
  border-width: 8px 16px 8px 0;
  border-color: transparent #ffffff transparent transparent;
}

.cd-timeline__block:nth-child(even) .cd-timeline__content {
  margin-right: auto;
}

.cd-timeline__block:nth-child(even) .cd-timeline__content::before {
  left: 100%;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent #ffffff;
}

.cd-timeline__date {
  color: #f40009;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.timeline-img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 4px;
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .cd-timeline::before {
    left: 20px;
  }

  .cd-timeline__block {
    flex-direction: column;
  }

  .cd-timeline__img {
    position: absolute;
    left: 20px;
    transform: none;
    top: 0;
  }

  .cd-timeline__content {
    width: calc(100% - 80px);
    margin-left: 60px !important;
  }

  .cd-timeline__content::before {
    display: none;
  }

  .float-right, .float-left {
    float: none;
    display: block;
    margin: 15px auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}