  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --primary-blue: #003d7a;
    --dark-blue: #003d7a;
    --light-gray: #f5f5f5;
    --text-dark: #333;
    --font-small: 12px;
    --font-base: 16px;
    --font-large: 20px;
    --font-xlarge: 28px;
    --font-xxlarge: 40px;
  }

  body {
    font-family: "Oswald", sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
  }

  body.font-small {
    --font-base: 14px;
    --font-large: 16px;
    --font-xlarge: 18px;
  }

  body.font-large {
    --font-base: 18px;
    --font-large: 20px;
    --font-xlarge: 22px;
  }

  body.font-xlarge {
    --font-base: 20px;
    --font-large: 22px;
    --font-xlarge: 24px;
  }


  /* Navbar */
  .navbar {

    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
    transition: all 0.3s ease-in;
  }
  .close-nav{
    cursor: pointer;
  }



  .navbar:hover {
    background: #fff;

  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    height: 100px;
  }

  .logo-container {
    width: 220px;
    display: flex;
    justify-content: start;
    align-items: center;
  }

  .logo {
    font-size: var(--font-xlarge);
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
  }

  .logo img {
    width: 70px;
    height: auto;
  }

  .nav-links {
    font-family: "Oswald", sans-serif !important;
    display: flex;
    gap: 50px;
    list-style: none;
    height: 100%;
  }

  .nav-links li {
    position: relative;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--font-large);
    padding: 35px 0;
    display: block;
    transition: color 0.3s;
    text-transform: uppercase;
    font-weight: bold;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary-blue);
  }

  .nav-links a::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 5px;
    background: var(--primary-blue);
    transition: width 0.4s ease;
  }

  .nav-links a:hover::before,
  .nav-links a.active::before {
    width: 100%;
  }

  .nav-right {
    display: flex;
    align-items: center;
    justify-content: end;
    width: 220px;
    gap: 20px;
    font-family: 'Oswald', sans-serif !important;
  }

  .language-selector {
    position: relative;

  }

  .language-btn{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  

  .accessibility-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
  }

  .accessibility-btn:hover {
    background: var(--dark-blue);
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: #003d7a;
    transition: all 0.3s;
    border-radius: 3px;
  }

  /* .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  } */

  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    bottom: 0;
    padding-top: 110px;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    padding: 30px;

    overflow-y: auto;
    z-index: 999;
  }


  .mobile-nav.active {
    right: 0;
  }

  html.no-scroll {
    overflow-y: hidden;
  }

  .mobile-nav ul {
    list-style: none;
  }

  /* .mobile-nav ul li {
    margin-bottom: 20px;
  } */

  .mobile-nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: var(--font-base);

    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    transition: color 0.3s;
  }

  .mobile-nav ul li a:hover,
  .mobile-nav ul li a.active {
    color: var(--primary-blue);
  }

  /* Sub Navigation */
  .sub-nav {
    font-family: "Oswald", sans-serif !important;
    width: 100%;
    background: var(--light-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 0 5%;
    display: none;
    /* position: absolute;
    top: 100px;
    left: 0;
    z-index: 998; */
    background: #eee;

  }

  .sub-nav.active {
    display: block;
  }

  .sub-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .sub-nav-group {
    width: fit-content;
  }

  .sub-nav-title {
    display: inline-flex;
    width: 100%;
    /* NOVO: da se ne rastegne preko cijele širine */
    align-items: center;
    justify-content: flex-start;
    /* NOVO: umjesto space-between */
    gap: 6px;
    /* NOVO: stabilan razmak tekst ↔ strelica */
    font-weight: 700;
    color: var(--dark-blue);
    font-size: var(--font-base);
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px 0;
  }
 /*  .sub-nav-title span{
    margin-left: auto;
  } */

  .sub-nav-title:hover {
    color: var(--primary-blue);
  }

  .sub-nav-title .arrow {
    transition: transform 0.3s ease;
    font-size: var(--font-small);
  }

  .sub-nav-title.expanded .arrow {
    transform: rotate(180deg);
  }

  .sub-nav-list {
    list-style: none;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .sub-nav-list.expanded {
    max-height: fit-content;
  }

  .sub-nav-list li {
    margin-bottom: 8px;
    width: 100px;
  }

  .sub-nav-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: var(--font-base);
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
  }

  .sub-nav-list a:hover {
    color: var(--primary-blue);

  }

  /* Font Size Modal */
  .font-modal {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    display: none;
    z-index: 1001;
    min-width: 200px;
  }

  .font-modal.active {
    display: block;
  }

  .font-modal h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
  }

  .font-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .font-option-btn {
    background: var(--light-gray);
    border: 2px solid transparent;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
  }

  .font-option-btn:hover,
  .font-option-btn.active {
    border-color: var(--primary-blue);
    background: white;
    color: var(--primary-blue);
  }

  .weather {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: var(--primary-blue);
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    color: #fff;
  }

  .no-scroll {
    overflow: hidden;
    height: calc(100vh - 100px);
  }

  /* Primjer CSS-a za mobilnu navigaciju */

  /* Osnovno skrivanje dropdowna */
  .mobile-dropdown-options {
    display: none;
    /* Dodajte stilove za uvlačenje, npr. padding-left ili margin-left */
    list-style: none;
    /* Ukloni točke */
    padding-left: 15px;
  }

  /* Prikaz kada je aktivan */
  .mobile-dropdown-options.active {
    display: block;
  }

  /* Stil za strelicu u dropdownu */
  .mobile-dropdown-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
  }

  /* Rotacija strelice kada je dropdown otvoren */
  .mobile-dropdown-arrow.rotated {
    transform: rotate(180deg);
  }

  /*   //Opcionalno, stiliziranje uvlačenja za ul/li elemente 
  #mobileNav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  #mobileNav .mobile-sub-ul {
    padding-left: 15px;
    // Uvlačenje podlinkova
  }

  // Stilizirajte a tagove po želji 
  #mobileNav a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    // Ostali stilovi (boja, font...)
  } */

  /* Glavni container */
  #mobileNav {
    background: #ffffff;
    padding: 20px;
    padding-top: 110px;

  }

  /* Glavni UL */
  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Glavni linkovi */
  .main-link {
    display: block;
    padding: 14px 0;
    font-size: var(--font-large);
    font-weight: 700;
    color: #003d7a;
    border-bottom: 1px solid #eaeaea;
    transition: 0.2s;
  }

  .main-link:hover {
    color: #005bb5;
  }

  /* Podlinkovi */
  .subnav-list {
    list-style: none;
    padding-left: 15px;
    margin: 10px 0;

  }

  .sub-link {
    display: block;
    padding: 10px 0;
    color: #555;
    font-weight: 500;
    transition: 0.2s;
  }

  .sub-link:hover {
    color: #003d7a;
  }

  /* Dropdown naslov */
  .dropdown-title {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #444;
    font-weight: 600;
    cursor: pointer;
  }

  .dropdown-arrow {
    transition: 0.3s;
  }

  .dropdown.show+.dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Dropdown ul */
  .dropdown {
    display: none;
    list-style: none;
    margin-left: 10px;
    padding-left: 10px;
    /* border-left: 2px solid #003d7a30; */
    /* animation: fadeIn 0.3s ease; */
  }

  .dropdown.show {
    display: block;
  }

  /* Dropdown item */
  .dropdown-item {
    padding: 8px 0;
    display: block;
    color: #666;
    font-size: var(--font-base);
    /* transition: 0.2s; */
  }

  .dropdown-item:hover {
    color: #003d7a;
    padding-left: 4px;
  }

  .mobile-nav-header {

    display: flex;
    justify-content: end;
    align-items: center;
    z-index: 1000;
  }

  .mobile-logo img {
    width: 50px;
    height: auto;
  }

  /* Animacija */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  /* Responsive */

  @media screen and (min-width: 969px) {
    .mobile-nav {
      display: none;

    }
  }


  @media (max-width: 968px) {
    .mobile-sub a {
      font-size: var(--font-base) !important;
    }

    html {
      overflow-x: hidden;
    }


    .nav-links {
      display: none;
    }

    .logo-container {
      width: fit-content;
    }

    .nav-right {
      width: fit-content;
      display: flex;
      justify-content: end;
    }

    .hamburger {
      display: flex;
    }

    .sub-nav-container {
      display: none;
      flex-direction: column;
      gap: 20px;
    }

    .sub-nav-group {
      min-width: 100%;
    }

    .mobile-link {
      font-weight: 600;
    }

    .mobile-nav {
      top: 0;
    }

  }

  @media(max-width: 769px) {
    .mobile-nav {
      top: 0;
      
    }
    #mobileNav{
      padding-top: 85px;
    }
  }

  @media (max-width: 576px) {
    .nav-container {
      height: 70px;
    }

    .mobile-nav {
      top: 0;
      
    }

    .weather,
    .language-btn {
      padding: 2px 5px;
      font-size: var(--font-small);
    }

    .nav-right {
      gap: 10px;
    }

    .logo img {
      width: 50px;
      height: auto;
    }


  }
  @media(max-width: 420px){
    #mobileNav{
      padding-top: 50px;
    }
  }

  