*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/pozadina_konacna.jpeg);
    background-position: center;
    background-size: cover;
    position: relative;
}


nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0;
}

.nav-links {
    margin-right: 10px;
    display: flex;
    align-items: center;
    z-index: 99;
}



nav img {
    width: auto;
    height: 120px;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
}


nav .fa-solid {
    display: none;
}


.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a{
    color: goldenrod;
    text-decoration: none;
    font-size: 15px;
}

.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background-color: white;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after{
    width: 100%;
}

nav .fa-bars{
  margin-right: 30px;
}

nav .fa-xmark{
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 15px;
}


@media(max-width: 700px){
    .text-box h1{
        font-size: 30px;
    }
    .nav-links{
      margin-right: 0px;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links ul{
      margin-top: 20px;
      padding-left: 20px;
      padding-top: 20px;
    }
    .nav-links{
        display: flex;
        flex-direction: column;
        position: fixed;
        background: white;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    nav .fa-solid{
        display: block;
        color: goldenrod;
        font-size: 25px;
        cursor: pointer;
    }
}





.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.text-box h1{
    font-size: 50px;
}

.text-box p{
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 15px;
    color: white;
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 12px 25px;
    font-size: 15px;
    background: transparent;
    position: relative;
    cursor: pointer;
    border-radius: 2px;
}

.hero-btn:hover{
    border: 1px solid goldenrod;
    background: goldenrod;
    transition: 1s;
}



.course{
    width: 80%;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 150px;
    text-align: center;
    padding-top: 100px;
}

h1{
    font-size: 36px;
    font-weight: 600;
}

p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

.course-col{
    flex-basis: 31%;
    background: #a1bcee;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}

h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.course-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.5);
}

@media(max-width: 700px) {
    .row{
        flex-direction: column;
    }
}



.study-row {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.study-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 70, 0.7); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.overlay-text {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}




.study-card {
  position: relative;
  width: 330px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 1;
  will-change: transform;
  backface-visibility: hidden;
}

.study-card:hover {
  transform: scale(1.03);
}

.study-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 280px;
  background-color: rgba(0, 30, 70, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.overlay-text {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  z-index: 3;
  text-shadow: none;
  filter: none;
  transform: none;
  transition: none;
  will-change: auto;
  backface-visibility: hidden;
}

.study-label {
  background-color: #002e5b;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 18px;
  font-weight: bold;
}

@media(max-width: 700px) {
  .study-row {
    flex-direction: column;
    align-items: center;
  }
}




.study-row,
.course,
.campus,
.cta,
.footer {
  position: relative;
  z-index: 1;
}





.campus{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
    margin-bottom: 120px;
}

.campus-col{
    flex-basis: 23%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.campus-col img{
    width: 100%;
    height: 100%;
    display: block;
}


.layer {
    background: rgba(0, 0, 0, 0.4); 
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: background 0.5s ease;
}


.layer:hover{
    background: rgba(237, 152, 14, 0.7);

}


.layer h3 {
    width: 100%;
    font-weight: 500;
    color: white;
    font-size: 26px;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 1;
    transition: 0.5s;
}



.layer:hover h3 {
    bottom: 45%;
}



.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/banner2.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1{
    color: white;
    padding: 0;
}

.cta p{
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
}

@media(max-width: 700px){
    .cta h1{
        font-size: 24px;
    }
}



.ftr-btm h3{
    color: white;
    text-align: left;
}

.ftr-btm .fa-solid{
    color: white !important;
}

.ftr-btm ul li{
    list-style: none;
    /*color: #555;*/
    color: gray;
}


.ftr-left{
    flex-basis: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ftr-left p{
    margin: 0;
    padding: 0;
    margin-top: 5px;
}

.icons{
    flex-basis: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.footer img{
    height: 120px;
}

.footer h4{
    color: white;
    font-weight: 600;
}


.icons .fa-brands {
    color: white;
    margin: 0 23px;
    cursor: pointer;
    padding: 18px 0;
    font-size: 30px;
}


.footer {
    width: 80%;
    margin: auto;
    padding: 30px 10%;
    box-sizing: border-box;
    background-color: #002e5b;
    border-radius: 2px;
    overflow: hidden;
}



.ftr-top{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ftr-btm {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}



.footer-contact{
    flex-basis: 48%;
    display: flex;
    flex-direction: column;
}


.footer-uni{
    flex-basis: 48%;
    display: flex;
    flex-direction: column;
}

.footer-uni h3, ul{
    margin-left: 120px;
    width: 100%;
}



.section-title::after,
.footer-uni h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: goldenrod;
    margin-top: 8px;
}


@media (max-width: 868px){
    .footer-uni h3, ul{
    margin-left: 0px;
    }
} 

@media (max-width: 768px) {

    .ftr-left{
        flex-basis: 100%;
    }

    .ftr-btm {
        flex-direction: column;
    }

    .footer-contact, .footer-uni {
        flex: 1 1 100%;
    }

    .footer-contact i{
        font-size: 20px !important;
    }

    .footer-contact h5{
        font-size: 17.5px !important;
    }
    
}

.footer-uni ul li {
    margin-bottom: 50px;
}

.footer-uni ul li a {
    text-decoration: none;
    /*color: #555;*/
    color: gray;
    font-size: 20px;
    transition: color 0.3s ease;
}

.footer-uni ul li a:hover {
    color: goldenrod;
}



/* about page */
.sub-header{
    height: 55vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(viu_slike/kape.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.sub-header h1{
    margin-top: 100px;
}

.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.col1{
    flex-basis: 58%;
    padding: 30px 2px;
    text-align: left;
}

.col2{
    flex-basis: 38%;
    padding: 30px 2px;
}

.about-col p{
    font-size: 20px;
}

.about-col img{
    width: 100%;
    height: 80%;
}

.about-col h1{
    padding: 0;
}

.about-col p{
    padding: 15px 0 25px;
}

.gold-btn{
    border: 1px solid goldenrod;
    background: transparent;
    color: goldenrod;
}

.gold-btn:hover{
    color: white;
}

.about-btn{
    border: 1px solid gray;
    background: transparent;
    color: gray;
}

.about-btn:hover{
    color: white;
    background-color: gray;
    border: 1px solid gray;
}



/* contact page*/

.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}

.location iframe{
    width: 100%;
}

.contact-us{
    width: 80%;
    margin: auto;
}

.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-col div .fa-solid{
    font-size: 28px;
    color: goldenrod;
    margin: 10px;
    margin-right: 30px;
}


.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    /*color: #555;*/
    color: gray;
    font-weight: 400;
}

.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #a49e9e;
    box-sizing: border-box;
    font-weight: 500;
    border-radius: 2px;
}

.contact-col .hero-btn{
    margin-bottom: 50px;
    border: 1px solid goldenrod;
}


.campus p, .course p{
    font-size: 20px;
}


/* UNI */

.pre-text p{
    width: 80%;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 22px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}


/* EKONOMSKE STUDIJE */

.sub-header2{
    height: 55vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(viu_slike/eco5.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}


.sub-header2 h1 {
    margin-top: 100px !important;
    font-size: 28px;
    margin-top: 60px;
    padding: 0 10px;
  }


.eco{
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
    margin-top: 100px;
}

.eco-text{
    flex-basis: 50%;
    display: flex;
}

.eco-text p{
    font-size: 20px;
}

.eco-text h2,.eco-text ul,.eco-text p{
    padding: 20px;
    text-align: left;
}


.eco-text ul{
    margin-left: 20px;
    color: rgb(35, 35, 103);
    font-weight: bold;
}

.eco-text ul li{
    padding: 10px;
}


.eco-images{
    flex-basis: 50%;
    display: flex; 
    flex-wrap: wrap;
}

.eco-images img{
    height: 200px;
    width: 300px;
    padding: 20px;
}



.eco-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}

.eco-card {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  vertical-align: top;
  font-size: 0; 
  margin: 20px;
  box-sizing: border-box;
  line-height: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.eco-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  padding: 0;
  margin: 0;
  border: 0;
}





.eco-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 30, 70, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
  transition: background-color 0.3s ease; 
}


.eco-card-text {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 90%;
  height: auto;
  text-align: center;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.2;
  text-shadow: 1px 1px 2px black;
}



.eco-card:hover img {
  transform: scale(1.05);
  transition: 0.5s;
}


@media (max-width: 768px) {
  .eco {
    flex-direction: column;
  }

  .eco-text,
  .eco-images {
    flex-basis: 100%;
    width: 100%;
  }

  .eco-text h2,
  .eco-text p,
  .eco-text ul {
    padding: 10px 15px;
  }

  .eco-images {
    justify-content: center;
  }

  .eco-card {
    width: 90%;
    height: auto;
    margin: 10px 0;
  }

  .eco-card img {
    height: auto;
  }

  .eco-card-text {
    font-size: 16px;
    padding: 8px;
  }

  .pom {
    flex-direction: column;
    gap: 20px;
  }

  .pom2 {
    width: 100%;
    flex-basis: 100% !important;
  }

  nav img {
    width: 120px;
    height: auto;
  }
}

 /* ZA OSTALE FAKULTETE */

.sub-header3{
    height: 55vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(viu_slike/med5.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.sub-header3 h1{
    margin-top: 100px;
}

.sub-header4{
    height: 55vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(viu_slike/law5.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.sub-header4 h1{
    margin-top: 100px;
}

.sub-header5{
    height: 55vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(viu_slike/saob7.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
}

.sub-header5 h1{
    margin-top: 100px;
}


 /* DODATAK ZA PORAVNAJNE KARTICA */

.eco-images {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
  row-gap: 20px;
  column-gap: 20px;
}
  .eco-heading {
    flex-basis: 100%;   
    margin: 0;
    padding-left: 20px;
    color: goldenrod;
    font-size: 24px;
    line-height: 1.2;
  }

  .eco-card {
    margin: 0;
    padding: 0;
    margin-left: 20px;
  }



/* SMER - POSLOVNI MENADZMENT */


.sekcija-o-smeru{
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    margin-bottom: 100px;
}

.sos-col-left{
    display: flex;
    flex-direction: column;
    flex-basis: 68%;
    padding: 20px;
}


.sos-col-left p{
    font-size: 19px;
    line-height: 1.3;
}

#uvodni-tekst{
    font-size: 24px;
    line-height: 1.3;
}





.sos-col-right{
    display: flex;
    flex-direction: column;
    flex-basis: 28%;
    background-color:  white;
    -webkit-box-shadow: 0px 0px 9px -3px rgba(0, 0, 0, 1);
    -moz-box-shadow: 0px 0px 9px -3px rgba(0, 0, 0, 1);
    box-shadow: 0px 0px 9px -3px rgba(0, 0, 0, 1);
    height: 100%;
    border-radius: 2px;
}

.naslov{
    background-color: goldenrod;
    margin: 0;
    padding: 0;
    height: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.smerovi-lista{
    padding: 30px;
}

.smerovi-lista ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 30px;
    margin-bottom: 50px;
}

.smerovi-lista ul li {
    margin: 10px 0;
    font-size: 18px;
}

.smerovi-lista ul li a {
    color: goldenrod;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 1px;
    transition: background-color 0.5s linear;
}

.smerovi-lista ul li a:hover {
    background-color: goldenrod;
    transition: background-color 0.5s linear;
    color: white;

}

.active-smer {
    background-color: goldenrod;
    padding: 8px 12px;
    border-radius: 1px;
    display: inline-block;
    font-weight: bold;
    color: white;
}





.sos-col-left h2{
    margin-top: 50px;
    color: #002e5b;
}

.sos-col-left span{
    color: goldenrod;
}

.sos-col-left hr{
    margin-top: 10px;
    width: 45%; 
    height: 2px; 
    background-color: goldenrod; 
    border: none;
}

.fa-chevron-down, .fa-chevron-up{
    color: goldenrod;
    margin-left: 5px;
    height: 20px;
    font-size: 20px;
}

/* TABELA */

table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 30px;
}

th, td {
      border: 1px solid #ccc;
      padding: 8px;
      text-align: center;
}

th {
      background-color: #f2c200;
}

.year-header {
      background-color: #ffdb4d;
      font-weight: bold;
      text-align: left;
}

.semester-header {
      background-color: #ffff66;
      font-weight: bold;
      text-align: left;
}


.bold {
      font-weight: bold;
}

.totals {
      font-weight: bold;
      background-color: #f0f0f0;
    }

 



@media (max-width: 768px) {
  .sekcija-o-smeru {
    display: flex;
    flex-direction: column;
  }
}





 .table-container {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
}


 .table-container.open {
  max-height: 2000px;
  opacity: 1;
  pointer-events: auto;
  margin-bottom: 30px;
  scrollbar-gutter: stable both-edges;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WebKit ugao između dva skrola */
.table-container.open::-webkit-scrollbar-corner {
  background-color: #fff;
}

/* ——— Desktop (≥769px): vertikalni skrol + sticky header ——— */
@media (min-width: 769px) {
  .table-container.open {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .table-container.open th {
    position: sticky;
    top: 0;
    background-color: #f2c200;
    z-index: 2;
  }
}

/* ——— Mobile (≤768px): oba skrola + kompaktne ćelije ——— */
@media (max-width: 768px) {
  .table-container.open {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-container.open table {
    display: block;
    min-width: 700px;
  }
  .table-container.open th,
  .table-container.open td {
    font-size: 12px;
    padding: 4px 6px;
    line-height: 1.2;
  }
}





@media (max-width: 700px) {
  html, body {
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    position: relative;
  }
}









@media (max-width: 700px) {
  .study-card {
    width: 90%;
    max-width: 330px;
    margin: 0 auto;
  }

  .study-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }

  .card-overlay {
    height: auto;
    aspect-ratio: 4/3;
  }

  .overlay-text {
    font-size: 16px;
    padding: 15px;
  }
}







@media (max-width: 768px) {
  .eco-text {
    display: block;
    width: 100%;
  }

  .eco-text ul {
    list-style: none;
    margin: 0;
    padding: 0; 
    text-align: left;

  }

  .eco-text ul li {
    text-align: left;
    width: 100%;
    word-break: break-word;
    font-size: 16px;
    padding: 10px 10px;
    line-height: 1.5;
  }
}

  .error-message {
    color: red;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
  }


a[href^="tel:"] {
  /*color: #555;*/
  color: gray;
  text-decoration: none;
}



.study-plan-header h3 span {
  white-space: nowrap;
} 




#preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    #loader-logo {
      width: 300px;
      height: auto;
      animation: flipLeft 2s linear infinite;
    }

    @keyframes flipLeft {
      0% {
        transform: rotateY(0deg);
      }
      100% {
        transform: rotateY(-360deg);
      }
    }


 


@media (max-width: 700px) {
  .sub-header2 h1,
  .sub-header3 h1,
  .sub-header4 h1,
  .sub-header5 h1 {
    font-size: 21px;
    line-height: 1.3;
    word-break: break-word;
    text-align: center;
    margin-top: 100px;
  }
}



input,
textarea,
button,
select {
  font-size: 16px !important; /* minimum da izbegneš zoom */
}





