/*===========================================
  TPŠ Sjenica - Responsive poboljšanja
===========================================*/

/* ===========================
   1. HEADER TOP BAR
   Sakriveno na mobilnom
=========================== */

@media all and (max-width: 992px) {
  .header-top {
    display: none !important;
  }
}


/* ===========================
   2. NAVBAR
=========================== */

@media all and (max-width: 991px) {
  /* header-top je sakriven na mobilnom, pa navbar može biti fixed
     i uvijek ostaje vidljiv pri skrolovanju. */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
  }

  .navbar-collapse {
    max-height: 320px !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
  }
}

@media all and (max-width: 575px) {
  .navbar-brand img {
    width: 110px !important;
  }
}


/* ===========================
   3. HERO SEKCIJA
=========================== */

@media all and (max-width: 991px) {
  .hero-single {
    padding-top: 120px;
    padding-bottom: 160px;
  }

  .hero-single .hero-content .hero-title {
    font-size: 36px !important;
    margin: 12px 0;
  }

  .hero-single .hero-content .hero-sub-title {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .hero-single .hero-content p {
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 15px;
  }

  .hero-single .hero-content .hero-btn {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media all and (max-width: 767px) {
  .hero-single {
    padding-top: 100px;
    padding-bottom: 120px;
  }

  .hero-single .hero-content .hero-title {
    font-size: 28px !important;
    margin: 10px 0;
  }

  .hero-single .hero-content .hero-sub-title {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .hero-single .hero-content p {
    font-size: 14px;
    line-height: 24px;
  }

  .hero-single .hero-content .hero-btn a {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Sakrij slider strelice na malim ekranima */
  .hero-slider.owl-theme .owl-nav {
    display: none !important;
  }
}

@media all and (max-width: 480px) {
  .hero-single {
    padding-top: 85px;
    padding-bottom: 100px;
  }

  .hero-single .hero-content .hero-title {
    font-size: 24px !important;
  }

  .hero-single .hero-content .hero-sub-title {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .hero-single .hero-content .hero-btn {
    flex-direction: column;
  }

  .hero-single .hero-content .hero-btn a {
    width: 100%;
    text-align: center;
  }
}


/* ===========================
   4. BREADCRUMB (unutrašnje stranice)
=========================== */

@media all and (max-width: 991px) {
  .site-breadcrumb {
    padding-top: 170px !important;
    padding-bottom: 100px !important;
  }

  .breadcrumb-title {
    font-size: 28px !important;
  }
}

@media all and (max-width: 767px) {
  .site-breadcrumb {
    padding-top: 140px !important;
    padding-bottom: 80px !important;
  }

  .breadcrumb-title {
    font-size: 22px !important;
  }

  .site-breadcrumb .breadcrumb {
    font-size: 13px;
  }
}

@media all and (max-width: 480px) {
  .site-breadcrumb {
    padding-top: 120px !important;
    padding-bottom: 60px !important;
  }

  .breadcrumb-title {
    font-size: 20px !important;
  }
}


/* ===========================
   5. MEGA MENI na mobilnom
=========================== */

@media all and (max-width: 991px) {
  .navbar .nav-item.mega-menu .dropdown-menu {
    width: 100%;
    left: 0 !important;
    right: 0;
    overflow-y: auto;
  }

  .mega-menu .mega-content {
    padding: 10px 15px;
  }

  .mega-menu .mega-content h5 {
    font-size: 15px;
    margin: 10px 0 5px 0;
    color: var(--theme-color);
  }

  .mega-menu .mega-content .col-12,
  .mega-menu .mega-content .col-sm-4,
  .mega-menu .mega-content .col-md-3 {
    min-width: 100%;
    margin-bottom: 5px;
  }

  .mega-menu-item li a {
    font-size: 13px;
    padding: 3px 0;
  }
}


/* ===========================
   6. SEKCIJE - padding na mobilnom
=========================== */

@media all and (max-width: 767px) {
  .section-padding {
    padding: 50px 0 !important;
  }

  .section-title h2 {
    font-size: 24px !important;
  }

  .section-title .section-tag {
    font-size: 13px;
  }
}

@media all and (max-width: 480px) {
  .section-padding {
    padding: 40px 0 !important;
  }

  .section-title h2 {
    font-size: 20px !important;
  }
}


/* ===========================
   7. FOOTER na mobilnom
=========================== */

@media all and (max-width: 575px) {
  .footer-logo img {
    width: 160px;
  }

  .footer-widget-box p {
    padding-right: 0;
    font-size: 14px;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-social a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
  }

  .copyright {
    text-align: center;
  }

  .copyright .footer-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .copyright .footer-menu li {
    margin-left: 0;
  }
}


/* ===========================
   8. TABELE na mobilnom
=========================== */

@media all and (max-width: 767px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table th,
  table td {
    font-size: 13px;
    padding: 6px 8px !important;
    white-space: nowrap;
  }
}


/* ===========================
   9. KARTICE i GRID na mobilnom
=========================== */

@media all and (max-width: 575px) {
  .course-item,
  .teacher-item,
  .event-item {
    margin-bottom: 20px;
  }

  .course-item .course-img img,
  .teacher-item img {
    width: 100%;
    height: auto;
  }
}


/* ===========================
   10. KONTAKT FORMA na mobilnom
=========================== */

@media all and (max-width: 767px) {
  .contact-form .form-control {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .contact-form .theme-btn {
    width: 100%;
    text-align: center;
  }
}


/* ===========================
   11. SLIKE - spriječi overflow
=========================== */

img {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}
