@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

#pageContainer {
  width: 95%;
  margin-inline: auto;
  max-width: 1800px;
}

body,
html {
  overflow-x: hidden !important;
  background-color: #fff !important;
}
header {
  background-color: #fff;
  z-index: 999;
  width: 100%;
  padding-top: var(--header-padding, 28px);
  position: relative; /* promenjeno sa fixed na relative */
  transition: none;
  will-change: box-shadow, border-bottom, padding;
  box-shadow: var(--header-shadow, 0 0 0 rgba(0, 0, 0, 0));
  border-bottom: var(--header-border, 0px solid #e0e0e0);
}

header nav {
  width: 95%;
  margin-inline: auto;
  max-width: 1600px;
}
header ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo-c {
  text-align: center;
  cursor: pointer;
}
header .logo-c h1 {
  font-size: 1.1rem;
  color: #1e3759;
}
header img {
  width: 100px;
  padding-left: 12px;
}
header .href-list {
  display: flex;
  align-items: center;
  position: relative;
}
/* Sliding bar for hover effect */
header .href-list .hover-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 38px;
  background: #1e3759;
  border-radius: 10px;
  z-index: 0;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  opacity: 0.15;
}

/* Links above the bar */
header .href-list li {
  list-style-type: none;
  position: relative;
  z-index: 1;
}
header .href-list li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-inline: 20px;
  border-radius: 10px;
  position: relative;
  z-index: 2;
  transition: color 0.2s;
}

/* Active link styling */
header .active-c {
  color: #f0f0f0 !important;
  font-weight: 700;
  /* background removed, handled by bar */
}

/* On hover, active loses color */
header .href-list:hover .active-c {
  color: #333 !important;
  transition: color 0.2s;
}

/* On hover/focus, hovered link gets white text, except active */
header .href-list li a:hover:not(.active-c),
header .href-list li a:focus:not(.active-c) {
  color: #fff !important;
}

/* Prevent active link from changing color on hover/focus */
header .href-list li a.active-c:hover,
header .href-list li a.active-c:focus {
  color: #f0f0f0 !important;
}

/* Remove old ::before hover effect */
header .href-list li a::before {
  display: none !important;
}
header .social-media {
  display: flex;
  align-items: center;
}
header .social-media a {
  place-content: center;
  display: grid;
  color: #f0f0f0;
  background-color: #1e3759;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  margin-inline: 5px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s;
}
header .social-media a:hover {
  transform: translateY(-5px);
  background-color: #1e3759e7;
}

/* Footer Styles */
footer {
  background-color: #ffffff;
  color: #333;
  position: relative;
  margin-top: 100px;
}

.footer-wave {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%231e3759' d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25'%3E%3C/path%3E%3Cpath fill='%231e3759' d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5'%3E%3C/path%3E%3Cpath fill='%231e3759' d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.footer-container {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e3759;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #1e3759;
  border-radius: 2px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand img {
  width: 80px;
  margin-bottom: 15px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1e3759;
}

/* Add styling for SZR Mijović subtitle */
.szr-subtitle {
  font-size: 0.95rem;
  color: #1e3759;
  margin-top: -5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 8px 0;
}

.szr-subtitle::before,
.szr-subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background-color: #1e3759;
}

.szr-subtitle::before {
  left: -25px;
}

.szr-subtitle::after {
  right: -25px;
}

header .logo-c .szr-subtitle {
  font-size: 0.85rem;
  margin-top: -2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.footer-brand .szr-subtitle {
  margin-top: -8px;
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-brand .szr-subtitle::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background-color: #1e3759;
  left: -25px;
}

.footer-brand .szr-subtitle::after {
  display: none;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: #1e3759;
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: #1e3759;
  font-size: 1.1rem;
  width: 20px;
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
}

.footer-social .social-icons a {
  display: grid;
  place-content: center;
  background-color: #1e3759;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-social .social-icons a:hover {
  transform: translateY(-5px);
  background-color: #1e3759e7;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 55, 89, 0.2);
  color: #666;
}

/* Mobile Navigation Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #1e3759;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  z-index: 1000;
  transition: right 0.4s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 60px 20px 40px; /* Reduced top padding to make room for close button */
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav .logo-c {
  margin-bottom: 30px;
  text-align: left; /* Changed from center to left */
}

.mobile-nav .logo-c img {
  width: 80px;
}

.mobile-nav .logo-c h1 {
  font-size: 1.1rem;
  margin-top: 10px;
}

.mobile-nav .logo-c .szr-subtitle::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background-color: #1e3759;
  left: -25px;
}

.mobile-nav .logo-c .szr-subtitle::after {
  display: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  padding-left: 0; /* Removing the left padding */
}

.mobile-nav-links li {
  list-style: none;
  margin: 0; /* Ensure no margin on list items */
}

.mobile-nav-links a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 1.1rem;
  text-align: left; /* Ensure text is left-aligned */
}

.mobile-nav-links a.active-c {
  background-color: #1e3759;
  color: #fff;
}

.mobile-nav-links a:hover:not(.active-c) {
  background-color: rgba(30, 55, 89, 0.1);
}

/* Close button */
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f1f1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background-color: #e0e0e0;
}

.mobile-nav-close span {
  position: relative;
  width: 20px;
  height: 20px;
}

.mobile-nav-close span::before,
.mobile-nav-close span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #1e3759;
  top: 50%;
  left: 0;
}

.mobile-nav-close span::before {
  transform: rotate(45deg);
}

.mobile-nav-close span::after {
  transform: rotate(-45deg);
}

.mobile-nav .social-media {
  margin-top: auto;
  display: flex;
  justify-content: flex-start; /* Changed from center to flex-start */
  gap: 15px;
  padding: 30px 0 30px 0; /* Removed left padding */
  border-top: 1px solid rgba(30, 55, 89, 0.1);
  margin-top: 20px;
}

.mobile-nav .social-media a {
  display: grid;
  place-content: center;
  background-color: #1e3759;
  color: #fff;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(30, 55, 89, 0.2);
}

.mobile-nav .social-media a:hover {
  transform: translateY(-5px);
  background-color: #1e3759e7;
  box-shadow: 0 5px 15px rgba(30, 55, 89, 0.3);
}

/* Media Queries */
@media (max-width: 1024px) {


  header .href-list,
  header .social-media {
    display: none;
  }

  header {
    padding-top: 5px; /* Set padding-top to 5px for mobile */
  }

  .hamburger-menu {
    display: flex;
    margin-left: auto; /* Push to the right */
    margin-right: 10px; /* Add some space from the right edge */
  }

  header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header ul {
    align-items: center;
    width: 100%; /* Make it full width */
    padding: 0 15px; /* Add some horizontal padding */
    margin-bottom: 0px !important; /* Ensure no bottom margin on mobile */
  }

  header .logo-c {
    display: flex;
    flex-direction: column; /* Stack logo and text vertically */
    align-items: center;
    margin-right: auto; /* Push away from hamburger */
  }

  header .logo-c img {
    padding-left: 0; /* Remove padding */
    margin-bottom: 5px; /* Add some space below the image */
    width: 80px; /* Change logo size for mobile */
  }

  header .logo-c h1 {
    font-size: 0.9rem; /* Smaller font size for mobile */
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 30px;
  }
}
@media (max-width: 499px) {
  header .logo-c img {
    width: 70px;
  }
  header .logo-c h1 {
    font-size: 0.8rem;
  }
  .hamburger-menu {
    width: 22px;
    height: 16px;
  }
  .szr-subtitle {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }
  
  header .logo-c .szr-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.8px;
  }

  .szr-subtitle::before,
  .szr-subtitle::after {
    width: 15px;
  }

  .szr-subtitle::before {
    left: -18px;
  }

  .szr-subtitle::after {
    right: -18px;
  }

  .footer-brand .szr-subtitle::before {
    width: 15px;
    left: -18px;
  }

  .footer-brand .szr-subtitle::after {
    display: none;
  }
}