/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* COLORS */
:root {
  --main-red: #a52b2a;
  --dark-gray: #2b3743;
  --white-text: #fff;
  --white-border: #fff;
  --white-background: #fff;
  --gray-border: #818181;
  --gray-text: #818181;
  --light-gray-background: #eee;
}

/* GLOBAL CSS */
html {
  font-size: 62.5%;
}
body {
  font-family: 'Open Sans', sans-serif;
}
a:hover {
  text-decoration: none;
}

/* FIXING MAX WIDTH FOR BOOTSTRAP CONTAINER */
@media only screen and (min-width: 1200px) {
  .container { max-width: 1440px; }
}

/* LOADER */
#loader_ {
  position: fixed;
  width: 100%;
  height: 100%;
  color: transparent;
  top: 0;
  left: 0;
  z-index: 99999999999;
  border-radius: 0;
  background: #dbdbdb;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader,
.loader:after {
  border-radius: 50%;
  width: 10em;
  height: 10em;
}
.loader {
  font-size: 5px;
  position: relative;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid var(--main-red);
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* HEADER */

.main-header-top {
  background-color: var(--dark-gray);
}

.main-header-top > div > div > div {
  margin: 0 1rem;
  font-size: 1.6rem;
  border-right: 1px solid var(--gray-border);
  padding: 1rem 2rem 1rem 0;
}

.main-header-top > div > div > div:last-child {
  margin: 0 0 0 1rem;
  border-right: none;
  padding: 1rem 0;
}

.main-header-top > div > div > div a {
  color: var(--white-text);
}

.main-header-bottom {
  min-height: 11rem;
  background-color: var(--main-red);
  position: relative;
  z-index: 9999;
}

.main-header-bottom .menu-item-search {
  display: none;
}

.main-header-bottom .navbar {
  height: 100%;
  background-color: transparent !important;
  color: var(--white-text) !important;
  padding-bottom: 0;
  z-index: 10000;
}

.main-header-bottom .navbar a {
  color: var(--white-text) !important;
  font-size: 1.6rem;
  cursor: pointer;
}

.main-header-bottom .navbar a.dropdown-item {
  color: #000 !important;
}

.dropdown-menu {
  z-index: 10001 !important;
}

.main-header-bottom > div > div > div > nav > div > ul > li {
  margin: 0 3rem 0;
}

.main-header-bottom > div > div ul li:last-child {
  margin: 0;
}

.navbar > div,
.navbar > div > ul {
  height: 100%;
}

.navbar li {
  height: 100%;
  vertical-align: middle;
  display: flex;
  align-items: center;
}

.navbar li.active-menu-item {
  border-bottom: 0.4rem solid var(--white-border);
  height: 100%;
  vertical-align: middle;
  display: flex;
  align-items: center;
}

.navbar {
  height: 100%;
  background-color: #fff !important;
  padding-bottom: 0;
}

.navbar li a {
  padding: 0.5rem 2rem;
}

.navbar li li a.dropdown-toggle {
  padding-right: 3rem;
}

.dropdown-submenu a::after {
  top: 1em !important;
}

.dropdown-toggle::after {
  vertical-align: 0.155em !important;
}

/* MAIN CONTENT */

.main-content {
  background-image: url(../images/main-background.jpg);
  background-size: cover;
  padding: 0rem;
  position: relative;
  z-index: 1;
}

/* HOVER EFEKAT ZA NOVOSTI */
.novost {
  cursor: pointer;
  transition: transform 0.3s ease; 
}

.novost:hover {
  transform: scale(1.03); 
}

.novost .novost-text h3 {
  transition: color 0.3s ease;
}

.novost:hover .novost-text h3 {
  color: var(--main-red) !important;
}

.novost-image img {
  width: 100%;
  border-radius: 0.5rem;
  filter: drop-shadow(0, 0, 2px #eee);
}

#news-four-homepage {
  border-top: 1rem solid var(--main-red);
  border-radius: 0.5rem;
  background-color: var(--white-background);
  margin: 3rem 0;
}

#news-four-homepage .four-news-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

#news-four-homepage .large-headline {
  color: var(--main-red);
}

#news-four-homepage .see-all-news {
  display: flex;
  align-items: flex-end;
  font-size: 1.2rem;
  cursor: pointer;
}

#news-four-homepage .see-all-news a {
  color: var(--gray-text);
}

#news-four-homepage .see-all-news a:hover {
  text-decoration: none;
}

.novost .novost-datum {
  color: var(--gray-text);
  display: flex;
  align-items: stretch;
  margin: 1rem 0 1rem 0;
}

.novost .novost-datum i {
  color: var(--main-red);
  font-size: 1.6rem;
  margin-right: 0.5rem;
}

.novost .novost-datum p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.novost .novost-text a {
  color: #000 !important;
}

.novost .novost-text h3 {
  color: #000 !important;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 2rem 0;
}

#search-bar {
  border-top: 1rem solid var(--main-red);
  border-radius: 0.5rem;
  background-color: var(--white-background);
  margin: 3rem 0;
}

#search-bar input {
  border: 0;
  outline: 0;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  flex-grow: 1;
  border-radius: 0.5rem;
}

#search-bar button {
  background-color: transparent;
  color: var(--gray-text);
  border: 0;
  outline: none;
  font-size: 1.6rem;
  margin: 0 0.5rem;
}

.about-school {
  border-top: 1rem solid var(--main-red);
  border-radius: 0.5rem;
  background-color: var(--white-background);
  margin: 3rem 0;
}

.edukom-links {
  border-top: 1rem solid var(--main-red);
  border-radius: 0.5rem;
  background-color: var(--white-background);
  margin: 3rem 0;
}

.edukom-links > div > a {
  display: block;
  width: 100%;
  height: 100%;
}

.edukom-links > div > a:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
}

.edukom-links > div > a:hover {
  background: var(--light-gray-background);
  cursor: pointer;
}

.edukom-links > div > a > img {
  max-width: 13rem;
  margin: 1.6rem 3rem;
}

.edukom-links > div > a > span {
  font-size: 1.8rem;
  color: #05a5b7;
}

.about-school > div > div > div:first-child {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.about-school > div > div > div > div > h1 {
  color: var(--main-red);
}

.about-school .about-image img {
  max-width: 100%;
  margin: 1rem 0;
  border-radius: 5px;
}

.about-school > div > div > div h5 {
  color: var(--main-red);
  font-size: 2rem;
  margin: 2rem 0;
}

.about-school > div > div > div p {
  font-size: 1.6rem;
  text-align: justify;
  margin-right: 1rem;
}

/* FOOTER */

.footer-main {
  background-color: var(--dark-gray);
  color: var(--white-text);
  min-height: 5rem;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-main p {
  padding: 0;
  margin: 0;
}

/* KONTAKT */

.contact-form {
  background: rgba(250, 246, 237, 0.95);
}

.contact-form h3 {
  font-size: 3.2rem;
  margin-top: 5rem;
}

.headline-bottom {
  width: 160px;
  height: 5px;
  background-color: var(--main-red);
  margin: 1.5rem 0 3rem 0;
}

.contact-form > div > div > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form > div > div > div > p {
  font-size: 1.4rem;
}

.contact-form form {
  width: 100%;
  padding: 2rem 0;
}

.contact-form form input,
.contact-form form textarea {
  font-size: 1.4rem;
  padding: 2rem;
}

.contact-form input[name="submit"] {
  background-color: var(--main-red);
  color: var(--white-text);
  padding: 1rem 3rem;
  margin-bottom: 5rem;
}

.contact-form input[name="submit"]:hover {
  box-shadow: 1px 1px 15px var(--dark-gray);
}

/* NOVOSTI */

.novosti-sve {
  display: flex;
  background-color: rgba(250, 246, 237, 0.95);
  padding-top: 1rem;
}

.novosti-sve > div > div > div > h1 {
  margin: 0rem 0 0;
  font-size: 3.6rem;
  text-align: left;
}

.centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.single-news-full-width {
  box-shadow: 0px 0px 2px #ccc;
  background-color: #f7f7f7;
  padding: 1.5rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  display: flex;
  border-left: 1rem solid var(--main-red);
  border-radius: 5px 0 0 5px;
}

.single-news-full-width > .single-news-image-part > img {
  width: 100%;
  max-width: 100%;
  height: 250px;
  margin-right: 1rem;
  object-fit: cover;
}

.single-news-text-part {
  font-size: 1.6rem;
}

.single-news-text-headline {
  margin: 1rem 0;
}

.single-news-text-headline h3 {
  color: #000 !important;
  font-weight: bold;
  margin: 0 0 2rem 0;
}

.single-news-text-part p {
  font-size: 1.6rem;
  text-align: justify;
}

.article-button {
  text-align: center;
  border: 1px solid var(--main-red);
  padding: 1rem 4rem;
  font-size: 2rem;
  width: auto;
  max-width: 15rem;
  color: var(--main-red);
  float: right;
  margin-top: 2rem;
  background-color: var(--white-background);
}

.special-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.special-flex > p {
  padding: 1rem 1.5rem;
  border: 1px solid #eee;
  margin: 1rem 0.5rem;
  background-color: var(--main-red);
  color: #fff;
  font-size: 1.8rem;
}

.special-flex > a {
  padding: 1rem 1.5rem;
  border: 1px solid #eee;
  margin: 1rem 0.5rem;
  color: var(--main-red);
  background: var(--white-background);
  font-size: 1.6rem;
}

.single-news-content {
  text-align: center;
  margin: 5rem 0 3rem;
}

.single-news-content p {
  font-size: 1.4rem;
  text-align: left;
}

.single-news-text {
  margin: 0 0 5rem 0;
  text-align: justify;
  font-size: 1.6rem;
}

/* RESPONSIVE NEWS */

@media screen and (max-width: 991px) {
  .single-news-full-width {
    display: initial;
    text-align: center;
  }
}

/* OGLASI */

.single-oglas {
  border: 1.5px solid #eee;
  padding: 5rem 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  background: url(../images/info.png), #fff;
  background-size: 100px;
  background-position: right -30px bottom -20px;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 3rem;
  border-radius: 1rem;
  min-height: 420px;
  height: auto;
}

.pin-oglasi-top {
  width: 30px;
  position: absolute;
  top: 0px;
  left: 53%;
  right: 50%;
  transform: translateX(-50%);
}

.single-oglas p {
  font-size: 1.6rem;
}

.single-oglas p.small-text {
  font-size: 1.2rem;
}

.single-oglas .oglas-text {
  text-align: justify;
  padding-top: 1rem;
  font-size: 1.6rem;
}

.single-oglas a {
  font-size: 1.6rem;
  color: var(--main-red);
}

.oglas-sve {
  background-color: rgba(250, 246, 237, 0.95);
  padding-top: 5rem;
}

.oglas-sve h5 {
  font-size: 1.8rem;
}

.oglas-sve .small-text {
  font-size: 1.4rem;
}

.large-headline {
  font-size: 3.8rem;
  font-weight: 700;
}

/* GALERIJA */

.galerija-sve {
  padding: 5rem 0 10rem;
  background-color: rgba(255, 255, 255, 0.75);
}

.galerija-sve a:hover {
  text-decoration: none;
}

.singleAlbumFront {
  margin: 50px 0 0;
  margin-bottom: 30px;
  text-align: center;
  cursor: pointer;
  padding: 0.5rem;
  background: var(--white-background);
  border-top: 1rem solid var(--main-red);
  border-radius: 0.5rem 0.5rem 0 0;
}

.singleAlbumFront:hover .singleAlbum-imagePart > img {
  opacity: 1;
}

.singleAlbum-imagePart {
  position: relative;
  background-color: #000;
}

.singleAlbum-imagePart > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.singleAlbum-headlinePart > p {
  margin: 0;
  padding: 10px;
  background: var(--white-background);
  color: var(--main-red);
  text-transform: uppercase;
  font-size: 1.6rem;
}

.album-sve {
  padding: 5rem 0;
  background-color: rgba(255, 255, 255, 0.75);
}

.album-sve > div > div > div > img {
  height: 240px;
  object-fit: cover;
}

div#lightboxed--content .lightboxed--frame .lightboxed--caption {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
}

.album-sve .col-lg-3, .album-sve .col-md-4, .album-sve .col-sm-6 {
  margin-bottom: 25px;
}

/* CLANCI */

.o-skoli-sve {
  background-color: rgba(250, 246, 237, 0.95);
}

.single-clanak {
  margin: 5rem 0;
}

.single-clanak h1 {
  font-size: 3.6rem;
  margin: 2rem 0;
  text-align: center;
}

.single-clanak .headline-bottom {
  margin: 0 auto;
}

.single-clanak p.autor-date {
  text-align: center;
  margin: 1rem 0 3rem;
  font-size: 1.4rem;
}

.single-clanak p {
  font-size: 1.6rem;
  text-align: justify;
}

.single-clanak img {
  width: 100%;
  margin: 2rem 0;
  box-shadow: 1px 1px 5px #ccc;
  border-radius: 5px;
}

/* ZAPOSLENI */

.zaposleni-all {
  background-color: rgba(250, 246, 237, 0.95);
}

.zaposleni-all h4, .zaposleni-all h4:hover {
  color: var(--main-red) !important;
}

.color-main-var {
  color: var(--main-red);
}

/* PRETRAGA / 404 */

.no-results-page, .message-404 {
  background-color: rgba(250, 246, 237, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
}

.no-results-page h3, .message-404 h3 {
  font-size: 2.4rem;
  max-width: 120rem;
}

.btn.btn-main {
  background-color: var(--main-red);
  color: var(--white-text);
  font-size: 1.6rem;
  margin: 1rem;
  padding: 1rem;
}

.btn.btn-main2 {
  background-color: var(--dark-gray);
  color: var(--white-text);
  font-size: 1.6rem;
  margin: 1rem;
  padding: 1rem;
}

/* MOBILE FIXES & HEADER */

.main-header-top-mobile {
  display: none;
  background-color: var(--dark-gray);
}

.main-header-top-mobile > div > div > div {
  margin: 0 1rem;
  font-size: 1.6rem;
  padding: 1rem 2rem 1rem 0;
}

.main-header-top-mobile > div > div > div a {
  color: var(--white-text);
}

@media screen and (max-width: 767px) {
  .main-header-top { display: none; }
  .main-header-top-mobile { display: block; }
}

.header-mobile-menu {
  display: none;
  color: var(--white-text);
  font-size: 3.2rem;
}

@media screen and (max-width: 991px) {
  .main-header-bottom > .container > .row {
    flex-direction: column;
    align-items: center;
  }
  #navbarNavDropdown {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    max-height: 0;
    overflow-y: hidden;
    -webkit-transition: max-height 0.2s ease-in-out;
    -moz-transition: max-height 0.2s ease-in-out;
    -o-transition: max-height 0.2s ease-in-out;
    -ms-transition: max-height 0.2s ease-in-out;
    transition: max-height 0.2s ease-in-out;
  }
  #navbarNavDropdown > ul.navbar-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }
  #navbarNavDropdown > ul.navbar-nav > .nav-item.dropdown {
    display: flex;
    flex-direction: column;
  }
  #navbarNavDropdown > ul.navbar-nav > .nav-item.dropdown > .dropdown-menu > .dropdown-submenu {
    flex-direction: column;
  }
  .header-mobile-menu {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 3rem;
  }
  .dropdown-menu {
    background-color: var(--main-red);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .main-header-bottom .navbar a.dropdown-item {
    color: var(--white-text) !important;
  }
  .dropdown-item.active,
  .dropdown-item:active,
  .dropdown-item:focus,
  .dropdown-item:hover {
    background-color: var(--main-red);
  }
}

/* SLIDER */

#slider {
  width: 100%;
  margin: 0rem auto 3rem;
  max-height: 50rem;
  background-color: #2b3743;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.carousel-inner {
  max-height: 50rem;
  border-bottom: 5px solid var(--main-red);
}

.carousel-item img {
  max-height: 50rem;
  width: 100%;
  object-fit: cover;
  opacity: 0.45;
  animation: kenburns 20s infinite alternate linear;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}

.carousel-caption {
  position: absolute;
  left: 10%;
  top: 20px;
  z-index: 10;
  padding-top: 20px;
  text-align: left;
  max-width: 80%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.carousel-caption div.slider-middle-small-title {
  font-size: 3.2rem;
  padding: 0rem 2rem;
  text-transform: uppercase;
  font-weight: 900;
}

.carousel-caption div.slider-middle-large-title {
  font-size: 6.4rem;
  padding: 0rem 2rem;
  text-transform: uppercase;
  font-weight: 900;
}

.carousel-caption div.slider-middle-description-text {
  font-size: 1.8rem;
  padding: 1rem 2rem;
  color: #fff;
}

/* RESPONSIVE SLIDER */
@media screen and (max-width: 767px) {
  /* Glavni slajder na naslovnoj - max smanjenje i sirenje prostora */
  #slider .carousel-caption {
    left: 2%; 
    max-width: 96%;
    top: 10px;
  }
  #slider .carousel-caption div.slider-middle-small-title {
    font-size: 1.2rem !important; 
    padding: 0 0.5rem !important;
  }
  #slider .carousel-caption div.slider-middle-large-title {
    font-size: 1.7rem !important; 
    padding: 0 0.5rem !important;
    line-height: 1.1;
  }
  #slider .carousel-caption div.slider-middle-description-text {
    font-size: 1.1rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* Mali slajder na unutrašnjim stranicama na mobilnom */
  #slider-small .slider-middle-small-title {
    font-size: 2rem !important;
  }
  #slider-small .slider-middle-large-title {
    font-size: 2.8rem !important;
  }
}

/* MALI SLAJDER DESKTOP I GLOBAL */
#slider-small {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to right, rgba(43,55,67,0.8), rgba(43,55,67,0.6)), url(../images/slider2.jpg) center repeat;
  background-size: cover;
  color: #f7f7f7;
  border-bottom: 5px solid var(--main-red);
  position: relative;
  z-index: 1;
}

/* Osiguranje da su fontovi na malom slajderu na desktopu veliki */
#slider-small .slider-middle-small-title {
  font-size: 3.2rem;
  font-weight: 900;
  text-transform: uppercase;
}
#slider-small .slider-middle-large-title {
  font-size: 6.4rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* TABELE */

.takmicenje-table {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
}
.takmicenje-table th, .takmicenje-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.takmicenje-table th {
  background-color: #3f51b5;
  color: var(--white-text);
  text-transform: uppercase;
  font-weight: 700;
}
