*{
    margin: 0;
    padding: 0;
    font-family: 'times new roman', serif;
    scroll-behavior: smooth;
}
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(Slike/zgrada.webp);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 150px;
}
.nav-links{
    flex: 1;
    text-align: right;

}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
nav .fa{
    display: none;
}
@media(max-width: 700px){
        
        .header{
            background-size: 100% 100%;
        }

        .text-box h1{
            font-size: 20px;
        }
        .nav-links ul li{
            display: block;
        }
        .nav-links{
            position: absolute;
            background: #f44336;
            height: 100vh;
            width: 200px;
            top: 0;
            right: -200px;
            text-align: left;
            z-index: 2;
            transition: 1s;
        }
        nav .fa{
            display: block;
            color: #fff;
            margin: 10px;
            font-size: 22px;
            cursor: pointer;
        }
        .nav-links ul{
            padding: 30px;
        }
    }

/*---- course ----*/

.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h2{
    font-size: 36px;
    font-weight: 600;
}
p{
    margin-bottom: 11%;
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.card {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-out;
    cursor: pointer;
  }

  .card:hover {
    transform: scale(1.05);
    border: 2px solid #f44336;
  }

  .card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
  }

  .card-body {
    padding: 20px;
  }
  .container h1{
    font-size: 25px;
  }
  .container{
    margin-bottom: 1%;
  }

  @media(max-width: 700px){
    .row{
        margin-top: 5%;
        display: block;
        margin: -5%;
    }
    .card {
        margin-top: 12%;
        width: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-out;
      }
    
      .card:hover {
        transform: scale(1.05);
        border: 2px solid #f44336;
      }
    
      .card img {
        max-width: 100%;
        height: auto;
        width: auto;
        border-radius: 10px 10px 0 0;
      }
    
      .card-body {
        height: 70px;
        padding: 1px 1px;
  }
      .card-text{
        font-size: 12.5px;
      }
      .container{
        margin-top:5%;
        margin-bottom: 7%;
      }
      .container h1{
        font-size: 13px;
      }
}

/*--------Footer-------*/

.footer{
    height: 50px;
    width: 100%;
    text-align: center;
    padding: 30px 0;
}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}
.icons .fa{
    color: #f44336;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
    font-size: 1.6em;
}
.icons .fa:hover{
    transform: scale(1.05);
}
.footer{
    color: #f44336
}

/*--------------about us -----------*/


.sub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(Slike/pozadina.webp);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}   
.sub-header h1{
    margin-top: 100px;
}
.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}
.about-col{
    flex-basis: 48%;
    padding: 30px 2px;
}
.about-col img{
    width: 100%;
    cursor: pointer;
    transition: transform 0.5s;
}
.about-col img:hover{
    transform: translateY(-10px);
}
.about-col h1{
    padding-top: 0;
}
.about-col p{
    padding: 15px 0 25px ;
}
.red-btn{
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
}
.red-btn:hover{
    color: #fff;
}
@media(max-width: 700px){
    
    .red-btn{
        border: 1px solid #f44336;
        background: transparent;
        color: #f44336;
        margin-left: 77px;
    }
    .about-col h1{
        margin-left: 30px;
    }
}

/*-----Biologija------*/

.s-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/biologija.webp);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}
.s-header h1{
    margin-top: 100px;
}
.text p{
    padding: 30px 2px;
    text-align: center;
    font-size: 17px;
    margin-top: 2%;
    margin-right: 2.5%;
}
.biologija img{
    cursor:pointer;
    width: 80vw;
    height: 70vh;
    margin-top: 2%; 
    margin-left: 10%;
    transition: transform 0.5s;
}
.biologija img:hover{
    transform: translateY(-10px);
}

@media(max-width: 700px){
    .s-header{
        height: 50vh;
        width: 100%;
        background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/biologija.webp);
        background-position: center;
        background-size: cover;
        text-align: center;
        color: #fff;
        margin-bottom: 4%;
    }
    .s-header h1{
        margin-top: 100px;
    }
    .text pre{
        text-align: center;
        font-size: 7px;
        margin-right: 200px;
    }
    .biologija img{
        max-width: 100%;
        width: 346px;
        height: auto;
        margin: 0;
        margin-right: 1%;
        margin-left: 2%;
    }
    .su-header{
        height: 50vh;
        width: 100%;
        background-position: center;
        background-size: cover;
        text-align: center;
        color: #fff;
        margin-bottom: 4%;
    }
    .subb-header{
        height: 50vh;
        width: 100%;
        background-position: center;
        background-size: cover;
        text-align: center;
        color: #fff;
        margin-bottom: 4%;
    }
    .subbb-header{
        height: 50vh;
        width: 100%;
        background-position: center;
        background-size: cover;
        text-align: center;
        color: #fff;
        margin-bottom: 4%;
    }
}
    @media(min-width: 701px) and (max-width: 767px) {
        .header{
            background-size: 100% 100%;
        }
    }
    @media(min-width: 768px) and (max-width: 1200px){
        .header{
            background-size: 100% 100%;
        }
        .s-header{
            height: 50vh;
            width: 100%;
            background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/biologija.webp);
            background-position: center;
            background-size: cover;
            text-align: center;
            color: #fff;
            margin-bottom: 4%;
        }
        .s-header h1{
            margin-top: 100px;
        }
        .text pre{
            text-align: center;
            font-size: 7px;
            margin-right: 200px;
        }
        .biologija img{
            max-width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            height: auto;
            margin: 0;
            margin-right: 1%;
            margin-left: 2%;
        }
        .su-header{
            height: 50vh;
            width: 100%;
            background-position: center;
            background-size: cover;
            text-align: center;
            color: #fff;
            margin-bottom: 4%;
        }
        .subb-header{
            height: 50vh;
            width: 100%;
            background-position: center;
            background-size: cover;
            text-align: center;
            color: #fff;
            margin-bottom: 4%;
        }
        .subbb-header{
            height: 50vh;
            width: 100%;
            background-position: center;
            background-size: cover;
            text-align: center;
            color: #fff;
            margin-bottom: 4%;
        }
    }

.su-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/banner2.webp);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}
.subb-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/math.webp);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}
.subbb-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/chemistry.webp);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

/*kontakt*/

.container h1{
    color: #f44336;
    margin-bottom: 30px;
    margin-top: 2%;
    text-align: center;
    font-size: 20px;
}
iframe{
    margin-left: 10vw;
    height: 40vh;
    width: 80vw;
}
.fakultet p{
    font-size: 20px;
    color: white;
}
@media (min-width: 701px) and (max-width: 1200px){
    .row{
        margin-top: 5%;
        display: block;
        margin: -5%;
    }
    .card {
        margin-top: 4%;
        width: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-out;
      }
    
      .card:hover {
        transform: scale(1.05);
        border: 2px solid #f44336;
      }
    
      .card img {
        max-width: 100%;
        height: auto;
        width: auto;
        border-radius: 10px 10px 0 0;
      }
    
      .card-body {
        height: 70px;
        padding: 1px 1px;
      }
      .card-text{
        font-size: 12.5px;
      }
      .container{
        margin-top:5%;
        margin-bottom: 7%;
      }
      .container h1{
        font-size: 13px;
      }
    }
    /*---------upis2024------------*/

    .sheader{
        height: 50vh;
        width: 100%;
        background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/upis.webp);
        background-position: center;
        background-size: cover;
        text-align: center;
        color: #fff;
    }
    .sheader h1{
        margin-top: 100px;
    }
    .text p{
        padding: 30px 2px;
        text-align: center;
        font-size: 17px;
        margin-top: 2%;
        margin-right: 2.5%;
    }
    