@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    --rob:"Roboto", sans-serif;
    --outfit:"Outfit", serif;
    --primary:#0071CE;
    --secondary:#0971CE;
    --light:#878F57;
    --textwhite:#F6F8EB;
    --landing-width:66.25vw;
    --landing-width-mobile:86vw;
    --d12:0.63vw;
    --d13:0.68vw;
    --d14:0.73vw;
    --d15:0.78vw;
    --d16:0.89vw;
    --d18:0.94vw;
    --d20:1.04vw;
    --d22:1.15vw;
    --d24:1.25vw;
    --d25:1.3vw;
    --d30:1.56vw;
    --d40:2.08vw;
    --d48:2.5vw;
    --d64:3.33vw;
    --d80:4.17vw;
    --d120:6.25vw;


    --m10:2.78vw;
    --m11:3.06vw;
    --m12:3.33vw;
    --m13:3.61vw;
    --m14:3.89vw;
    --m15:4.17vw;
    --m16:4.44vw;
    --m18:5vw;
    --m20:5.56vw;
    --m24:6.67vw;
    --m25:6.94vw;
    --m32:8.89vw;
    --m36:10vw;
    --m40:11.11vw;
    --m48:13.33vw;
    --m64:17.78vw;

    
 





   

}

body{
  margin: 0;
  padding: 0;
}

 @media screen and (min-width:900px){

header{
  background-color: var(--primary);
  display: flex;
  justify-content: space-between;
  width: 93vw;
  padding-left: 3.5vw;
  padding-right: 3.5vw;
  height: 6.25vw;
  place-items: center;
}

header .left-header img{
  width:11.09vw;

}
header .center-header nav{
  display: flex;
  gap: 2.55vw;
}

.mobile-header, .mobilex{
  display: none;
}


header .center-header nav a ,.subdropdown li a{
  text-decoration: none;
  color: white;
  font-family: var(--rob);
  font-weight: 500;
  font-size: var(--d13);
  border: none;
 
padding: 0;
width: 7.04vw;
  position: relative;
  line-height: var(--d18);
  white-space: normal;
}

.subdropdown li{
  height: 2.76vw;
  align-content: center;
}




header .center-header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;

  transform: translateX(-50%);
}

header .center-header nav a:hover::after,
header .center-header nav a.active::after {
  width: 100%;
  left: 50%;
}


header .right-header {
  display: flex;
  gap: 1.5vw;
  

}

header .right-header img{
  width: 1.61vw;

}

.left-header img,
.right-header img {
  height: 40px;
}

.center-header nav ul.main-menu {
  list-style: none;
  display: flex;
  gap: 0px;
  position: relative;
}

.center-header nav ul.main-menu > li {
  position: relative;
}

.center-header nav ul.main-menu > li > a {
  color: white;
  text-decoration: none;
  padding: 0;
  display: block;
}

/* Dropdown */

.dropdown {
  display: none;
  position: absolute;
  top: 100%; /* direktno ispod glavne stavke */
  left: -20%;
  background-color: var(--primary);
  width: 9.80vw;
 
  z-index: 1000;
  list-style-type: none;
  padding:0;
  border-top: 1px solid white;
}

.dropdown li a {

  padding: 0;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  width: 8.80vw;
  margin-left: 1vw;
}



/* Hover aktivacija dropdowna */
.has-dropdown:hover .dropdown {
  display: block;
}



.has-dropdown > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
}

.arrow-icon {
  width: 0.63vw;       
  height: 0.63vw;
  transition: transform 0.3s ease;
  transform-origin: center;
  transform: rotate(0deg);
  margin-left: 0.5vw;
}

.has-dropdown:hover .arrow-icon {
  transform: rotate(180deg);
}



/* Desni dropdown koji se pojavljuje sa strane */
.has-subdropdown {
  position: relative;
   height: 2.76vw;
       align-content: center;
}

.subdropdown li{
    display: none;
}

.has-subdropdown .subdropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  
  background-color: var(--primary);
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 999;
}

.subdropdown  li{
 
    width: 8.8vw;
    align-content: center;
    height: 2vw;
    padding-top: 0.5vw;
    padding-bottom: 0.5vw;
    line-height: 1vw;
    padding-right: 1vw;
    
}

.subdropdown li:hover ,.has-subdropdown:hover{
  background: #FFFFFF1A;

}

.has-subdropdown:hover .subdropdown {
  display: block;
}

.has-subdropdown:hover .subdropdown li{
  display: inline-grid;
}

/* Link sa strelicom desno */
.has-subdropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  text-decoration: none;
  color: white;
}

.arrow-right-icon {
  width: 0.26vw;
  height: 0.52vw;
  transform: rotate(0deg);
}


header .center-header nav .mainlink{
  text-decoration: none;
  color: white;
  font-family: var(--rob);
  font-weight:500;
  font-size: var(--d16);
  padding-bottom:7px ;
  padding-left: 7px;
  padding-right: 7px;
  text-align: center;
      height: 3vw;
    align-content: center;
  
}

.has-dropdown{
  margin-right: 2vw;
}
 }

 @media screen and (max-width:900px){
  header{
    width: 73.17vw;
    display: block;
    text-align: left;
    margin: 0;
    height: auto;
    place-items: unset;
    background-color: var(--primary);
    position: absolute;
    z-index: 2;
    display: none;
  }

  header .left-header img {
    width: 37.78vw;
    margin-left: var(--m24);
    margin-top: var(--m36);
}


header .center-header nav {
    display: block;
    gap: 2.55vw;
}


.center-header nav ul.main-menu {
    list-style: none;
    display: block;
    gap: 0px;
    position: relative;
}


header .center-header nav .mainlink {
    text-decoration: none;
        color: white;
        font-family: var(--rob);
        font-weight: 600;
        font-size: var(--m13);
      
        text-align: left;
        height: 16.94vw;
        align-content: center;
        white-space: normal;
        line-height: 9vw;
        border-bottom: 1px solid white;
        width: 59.72vw;
        display: block;
        
        margin: auto;
}




.has-subdropdown a{
   text-decoration: none;
        color: white;
        font-family: var(--rob);
        font-weight: 400;
        font-size: var(--m13);
      
        text-align: left;
        height: 13.94vw;
        align-content: center;
        white-space: normal;
        line-height: 5vw;
       
        width: 59.72vw;
        display: block;
        
        margin: auto;
}

.subdropdown li a{
  text-decoration: none;
        color: white;
        font-family: var(--rob);
        font-weight: 300;
        font-size: var(--m11);
      
        text-align: left;
        height: 4.94vw;
        align-content: center;
        white-space: normal;
        line-height: 5vw;
       
        width: 50.72vw;
        display: block;
        
        margin: auto;

}

.arrow-right-icon{
  display: none;
}

.arrow-icon{
height: 7.39vw;
        width: 2.50vw;
        float: right;
        transition: transform 0.3s ease;
  transform-origin: center;
  transform: rotate(-90deg);
  margin-left: 0.5vw;

}

.arrow-icon.rotate {
  transform: rotate(-360deg);
}

/* Glavni dropdownovi */
.dropdown,
.subdropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Kad se otvori */
.dropdown.open,
.subdropdown.open {
  max-height: 1000px; /* dovoljno visoko za sadržaj */
  
}

/* Reset liste */
ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}






/* Sakrij dropdownove po defaultu */
.main-menu .dropdown,
.main-menu .subdropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Kad je aktivan */
.main-menu .dropdown.open,
.main-menu .subdropdown.open {
  max-height: 1000px; /* dovoljno visoko da obuhvati sve stavke */
}

.right-header{
  width: 29.72vw;
  display: flex;
  justify-content: space-between;
  margin-left: var(--m24);
  margin-top: 12.22vw;
  padding-bottom: 25.56vw;
}

.right-header img{
  width: 5.56vw;
}

.mobile-header{
  display: flex;
  position: absolute;
  justify-content: space-between;
  z-index: 1;
  top: 0;
  left: 0;
  height: 27.78vw;
  background-color: var(--primary);
  width: 100vw;
}

     .mobile-header .logo-mobile {
        width: 37.78vw;
        margin-left: var(--m24);
        
    }
    .mobile-header .hamburger-mobile {
        width: 7.5vw;
        margin-right: var(--m24);
        
    }

    .mobilex{
      position: absolute;
      width: var(--m13);
      top: 12.50vw;
      left: 62.78vw;
      z-index: 2;
      cursor: pointer;
      

    }

    #mobileMenu {
 
  left: -100%; /* sakriven izvan ekrana */
 
 
  transition: left 0.3s ease-in-out;

}

#mobileMenu.active {
  left: 0;
  display: block;
  top: 0;
}

    









    

    
  }

  