body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 30px;
}

nav .logo {
  height: 70px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  margin-right: 80px;
  cursor: pointer;
}

nav .logo img {
  height: 100%;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}

nav .logo img:hover {
  transform: scale(1.02);
}

nav .nav-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  min-width: 0;
}

nav .nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 30px;
}

nav .nav-links li {
  margin: 0;
}

nav .nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 10px 5px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}

nav .nav-links a:hover {
  color: rgb(194, 144, 45);
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgb(194, 144, 45);
  transition: width 0.3s ease;
}

nav .nav-links a:hover::after {
  width: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.slide-1 {
  background-image: url('../images/wallpaper.jpg');
}

.slide-2 {
  background-image: url('../images/wallpaper2.jpg');
}

.slide-3 {
  background-image: url('../images/wallpaper3.jpg');
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.hero-title {
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero-button {
  display: inline-block;
  background-color: rgb(194, 144, 45);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-button:hover {
  background-color: rgb(165, 120, 35);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.about-section h2 {
  margin-bottom: 40px;
  color: #000000;
  font-size: 36px;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

.philosophy-container {
  max-width: 900px;
  margin: 0 auto 50px auto;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.philosophy-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.philosophy-container h3 {
  color: rgb(194, 144, 45);
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: center;
}

.philosophy-container ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.philosophy-container li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

.philosophy-container li:before {
  content: "•";
  color: rgb(194, 144, 45);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 18px;
}

.team-title {
  color: rgb(194, 144, 45);
  font-size: 28px;
  margin: 30px 0 40px 0;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.about-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-column {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.about-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.about-column h4 {
  color: rgb(194, 144, 45);
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
}

.about-column ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.about-column li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.about-column li:before {
  content: "•";
  color: rgb(194, 144, 45);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 18px;
}

/* Područja Prava Section */
.podrucjaPrava-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}

.podrucjaPrava-section h2 {
  margin-bottom: 40px;
  color: #000000;
  font-size: 36px;
  font-weight: 700;
}

.centered-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
  gap: 25px;
}

.centered-list li {
  width: 280px;
  text-align: center;
  font-size: 18px;
  color: #333;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.centered-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  background-color: #000000;
  color: white;
}

.contact-info-section {
  padding: 30px 15px 50px;
  text-align: center;
  background-color: #f9f9f9;
}

.main-title {
  font-size: 36px;
  margin-bottom: 12px;
  color: #000000;
  font-weight: 700;
  width: 100%;
}

.location-description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
  line-height: 1.8;
}

.info-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.location, .contact {
  flex: 1;
  min-width: 380px;
  text-align: center;
}

.location {
  display: flex;
  flex-direction: column;
}

.location iframe {
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border: 2px solid #e9ecef;
  flex-grow: 1;
  height: 100%;
  min-height: 380px;
}

.contact {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  color: white;
  gap: 15px;
  min-width: 420px;
  box-sizing: border-box;
}

.contact-persons {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.contact-person {
  flex: 1;
  text-align: center;
  padding: 18px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 230px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-person:hover {
  background-color: rgba(194, 144, 45, 0.2);
  transform: translateY(-3px);
}

.contact-person h3 {
  color: rgb(194, 144, 45);
  font-size: 22px;
  margin-bottom: 18px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.contact-info-item {
  margin: 10px 0;
  width: 100%;
}

.contact-info-item strong {
  display: block;
  color: rgb(194, 144, 45);
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
}

.contact-info-item span {
  display: block;
  font-size: 17px;
  color: white;
  text-align: center;
  word-break: break-word;
  line-height: 1.5;
}

.contact-address {
  text-align: center;
  padding: 18px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 3px;
}

.contact-address h3 {
  color: rgb(194, 144, 45);
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-address p {
  margin: 6px 0;
  font-size: 17px;
  color: white;
  line-height: 1.5;
}

.contact strong {
  color: rgb(194, 144, 45);
  font-weight: 600;
}

footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 0;
}

footer p {
  margin: 8px 0;
  font-size: 16px;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .contact-persons {
    flex-wrap: wrap;
  }
  
  .contact-person {
    min-width: 260px;
  }
}

@media (max-width: 768px) {
  nav .nav-links {
    display: none;
  }
  
  nav {
    justify-content: center;
  }
  
  nav .logo {
    margin-right: 0;
  }
  
  .location, .contact {
    min-width: 330px;
  }
  
  .info-container {
    gap: 30px;
  }
  
  nav .nav-container {
    padding: 0 20px;
  }
  
  nav .logo img {
    max-width: 220px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-button {
    padding: 12px 25px;
    font-size: 1.1rem;
  }
  
  .about-container {
    flex-direction: column;
    align-items: center;
  }
  
  .about-column {
    min-width: 280px;
  }
  
  .philosophy-container {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .philosophy-container h3 {
    font-size: 24px;
  }
  
  .team-title {
    font-size: 24px;
    margin: 20px 0 30px 0;
  }
  
  .about-column h4 {
    font-size: 20px;
  }
  
  .contact-info-section {
    padding: 25px 15px 35px;
  }
  
  .contact {
    min-width: 100%;
    padding: 18px;
    gap: 12px;
    box-sizing: border-box;
  }
  
  .contact-persons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
  }
  
  .contact-person {
    min-width: 100%;
    margin-bottom: 0;
    padding: 15px;
  }
  
  .contact-info-item {
    margin: 8px 0;
  }
  
  .contact-address {
    padding: 15px;
  }
  
  .contact-person h3, .contact-address h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .info-container {
    flex-direction: column;
  }
  
  .location, .contact {
    width: 100%;
  }
  
  .location iframe {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .contact-info-item span {
    font-size: 16px;
  }
  
  .contact-person {
    padding: 15px 10px;
  }
  
  .contact-person h3 {
    font-size: 20px;
  }
  
  .contact {
    min-width: 100%;
    margin: 0 10px;
  }
  
  .location, .contact {
    min-width: calc(100% - 30px);
  }
}

.nav-links a:hover,
.centered-list li:hover {
  transition: all 0.3s ease;
}

.logo-loading {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}