body {
  font-family: Arial, sans-serif;
  color: #666;
  background: #fff;
  line-height: 1.7;
}

h1,
h2 {
  font-family: Georgia, serif;
  font-weight: bold;
  color: #444;
}

/* HERO SLIDER */
.hero {
  position: relative;
  min-height: 420px;
  overflow: visible !important;
}

.hero-slide {
  height: 750px;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (max-width: 768px) {
  .hero-slide {
    height: 450px;
  }
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.carousel,
.carousel-inner,
.carousel-item {
  height: 450px;
}

@media (max-width: 768px) {
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 350px;
  }
}

.carousel-item {
  transition: opacity 1.4s ease-in-out;
}

/* NAVBAR */
.custom-navbar {
  background: #fff;
  min-height: 85px;
  padding: 0;
}

@media (max-width: 991px) {
  .custom-navbar {
    border-radius: 0 !important;
    margin-top: 40px;
  }
}

.logo {
  padding: 15px 20px;
  font-size: 32px;
}

.logo:hover {
  color: #777;
}

.logo span {
  color: #2f9bd8;
  font-weight: bold;
}

.navbar-nav .nav-item {
  border-right: 1px solid #eee;
}

.navbar-nav .nav-link {
  color: #555;
  font-weight: 500;
  padding: 25px 20px;
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 12px 20px;
  }
}

.navbar-nav .nav-link:hover,
.navbar-nav .active .nav-link {
  color: #2f9bd8;
}

.navbar-nav .active {
  border-top: 5px solid #2f9bd8;
}

.dropdown-menu {
  background: rgba(235, 240, 242, 0.95);
  border: none;
  border-radius: 0;
  padding: 0;
  min-width: 280px;
}

@media (max-width: 576px) {
  .dropdown-menu {
    min-width: 100%;
  }
}

.dropdown-item {
  padding: 16px 25px;
  color: #666;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #2f9bd8;
}

/* HOME */
.main-title {
  font-size: 40px;
}

.main-title::before {
  content: "▶";
  color: #2f9bd8;
  font-family: Arial, sans-serif;
  font-size: 26px;
  margin-right: 20px;
}

.main-title::after {
  content: "◀";
  color: #2f9bd8;
  font-family: Arial, sans-serif;
  font-size: 26px;
  margin-left: 20px;
}

.intro-text {
  max-width: 1200px;
  color: #aaa;
  font-weight: 500;
}

.section-title {
  font-size: 31px;
  margin-bottom: 18px;
}

.section-title i {
  font-size: 29px;
  margin-right: 8px;
}

.col-lg-4 p {
  text-align: justify;
  font-size: 15px;
}

.welcome-title {
  font-size: 25px;
  margin-bottom: 18px;
}

.welcome-text {
  font-size: 17px;
}

/* CONTACT */
.contact-box {
  background: #2f97d3;
  color: #fff;
  padding: 32px 36px;
}

.contact-box h2 {
  color: #fff;
  font-size: 25px;
}

.contact-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row i {
  color: #0b3a52;
  font-size: 23px;
  width: 28px;
  text-align: center;
  margin-top: 4px;
}

.contact-row p {
  margin: 0;
  color: #fff;
  line-height: normal;
}

/* FACEBOOK */
.facebook-btn {
  margin-top: 12px;
  display: flex;
  width: 290px;
  max-width: 100%;
  background: #2f97d3;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  overflow: hidden;
  font-weight: bold;
}

.facebook-btn:hover {
  color: #fff;
}

.fb-icon {
  width: 55px;
  padding: 13px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.14);
  font-size: 20px;
}

.fb-text {
  flex: 1;
  text-align: center;
  padding: 13px 10px;
}

/* PAGE TITLE */
.page-title {
  background: #f2f2f2 !important;
  padding: 35px 0 !important;
}

.page-title h1 {
  font-size: 26px;
  color: #777;
}

.breadcrumb-text {
  font-size: 13px;
  color: #aaa;
}

/* TEAM / EXPERTS */
.person-title {
  font-size: 30px;
  color: #444;
  margin-bottom: 20px;
}

.person-title::after,
.team-card h3::after {
  content: "";
  display: block;
  width: 85px;
  height: 2px;
  background: #2f9bd8;
  margin-top: 8px;
}

.team-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.team-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  margin-bottom: 22px;
}

.team-card h3 {
  font-size: 26px;
  font-weight: 600;
  color: #4f4f4f;
  margin-bottom: 8px;
  position: relative;
}

.team-card h3::after {
  content: "";
  display: block;
  width: 55px;
  height: 3px;
  background: #1f78b4;
  margin-top: 10px;
  border-radius: 5px;
}

.team-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.team-card p strong {
  color: #333;
}

.team-card .d-flex {
  margin-top: auto;
  padding-top: 18px;
}

.download-btn,
.small-linkedin {
  height: 46px;
  min-width: 58px;
  padding: 0 18px;
  border-radius: 10px;
  background: #f1f4f8;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.download-btn:hover {
  background: #1f78b4;
  color: #fff;
}

.small-linkedin {
  background: #eef5fb;
  color: #0a66c2;
  font-size: 20px;
}

.small-linkedin:hover {
  background: #0a66c2;
  color: #fff;
}

/* EXPERT ACTIONS */
.expert-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: #f1f1f1;
  color: #777;
  text-decoration: none;
  border-radius: 5px;
  overflow: hidden;
  padding-left: 22px;
  font-size: 14px;
}

.cv-btn i {
  background: #ddd;
  padding: 14px 16px;
}

.cv-btn:hover {
  color: #777;
}

.expert-card {
  max-width: 360px;
}

/* PARTNERI */
.partner-card {
  text-align: center;
}

.partner-img {
  border: 8px solid #f4f4f4;
  padding: 20px;
  background: #fff;
}

.partner-img img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.partner-name {
  margin-top: 20px;
  font-size: 15px;
  color: #777;
}

/* FOOTER */
.site-footer {
  background: #525252;
  color: #ddd;
  padding: 36px 0;
  text-align: center;
}

.site-footer a {
  color: #2f9bd8;
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 26px;
  width: 56px;
  height: 56px;
  background: #eee;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero,
  .hero-slide,
  .carousel,
  .carousel-inner,
  .carousel-item {
    min-height: 300px;
    height: 300px;
  }

  .custom-navbar {
    min-height: auto;
    padding: 10px 15px;
  }

  .logo {
    border-right: none;
    padding: 10px 0;
    font-size: 32px;
  }

  .navbar-nav .nav-item {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .navbar-nav .nav-link {
    padding: 14px 10px;
  }

  .navbar-nav .active {
    border-top: none;
  }

  .main-title {
    font-size: 30px;
  }

  .main-title::before,
  .main-title::after {
    display: none;
  }

  .team-card {
    max-width: 100%;
  }
}

.online-list {
  margin-top: 25px;
  padding-left: 35px;
}

.online-list li {
  font-size: 20px;
  color: #6f7f89;
  margin-bottom: 12px;
}

.online-side-line {
  height: 4px;
  background: #e5e5e5;
  margin-top: 5px;
  width: 100%;
}

.project-list {
  margin-top: 25px;
  padding-left: 35px;
}

.project-list li {
  font-size: 19px;
  color: #6f7f89;
  margin-bottom: 10px;
}

.project-divider {
  border-top: 2px solid #2f9bd8;
}

.project-title {
  font-size: 25px;
  color: #444;
  line-height: 1.4;
}

.publication-item h2 {
  font-size: 26px;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.4;
}

.publication-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

.blue-link {
  color: #2f9bd8;
  text-decoration: none;
  font-weight: 500;
}

.blue-link:hover {
  text-decoration: underline;
}

.link-card {
  display: block;
  text-align: center;
  padding: 25px;
  background: #fff;
  border-radius: 6px;
  transition: 0.3s;
}

.link-card img {
  max-width: 100%;
  height: auto;
}

.link-card:hover {
  transform: scale(1.05);
}

.map-box iframe {
  display: block;
  width: 100%;
}

.contact-info {
  gap: 20px;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: #2f97d3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  border-radius: 5px;
}

.contact-info p {
  margin: 0;
  color: #777;
}

.contact-info h3 {
  font-size: 20px;
  color: #555;
  font-weight: bold;
  margin: 5px 0 0;
}

.contact-title {
  font-size: 28px;
  color: #444;
}

.contact-form label {
  font-size: 13px;
  font-weight: bold;
  color: #666;
  margin-bottom: 6px;
}

.contact-form .form-control {
  border-radius: 0;
  border: 1px solid #e5e5e5;
  box-shadow: none;
}

.send-btn {
  background: #2f97d3;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 5px;
  font-weight: bold;
}

.send-btn:hover {
  background: #237eb2;
}

.education-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  height: 100%;
  transition: 0.3s ease;
}

.education-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.education-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.education-card-body {
  padding: 24px;
}

.education-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.education-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  text-align: left;
}

.education-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 22px;
  background: #0d6efd;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.education-btn:hover {
  background: #084298;
  color: #fff;
}

.training-intro {
  max-width: 950px;
}

.training-intro p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

.training-line {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin-bottom: 30px;
}

.training-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  border: 1px solid #f0f0f0;
}

.training-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 45px rgba(0,0,0,0.12);
}

.training-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.training-card-body {
  padding: 26px;
}

.training-badge {
  display: inline-block;
  background: #eaf3ff;
  color: #0d6efd;
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.training-card h3 {
  font-size: 25px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.3;
}

.training-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 22px;
}

.training-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #0d6efd;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.training-btn:hover {
  background: #084298;
  color: #fff;
}

.gallery-card {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  height: 320px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: end;
  padding: 25px;
}

.gallery-overlay h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.news-item{
    padding:50px 0;
    border-bottom:1px solid #e9e9e9;
}

.news-meta{
    display:flex;
    gap:20px;
    color:#999;
    font-size:15px;
    margin-bottom:18px;
}

.page-btn{
    width:48px;
    height:48px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f4f4f4;
    color:#333;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.page-btn:hover{
    background:#0d6efd;
    color:#fff;
}

.page-btn.active{
    background:#0d6efd;
    color:#fff;
}

.pagination-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:70px;
    flex-wrap:wrap;
}

.news-gallery{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:50px;
}

.gallery-item{
    display:block;
    overflow:hidden;
    border-radius:18px;
    position:relative;
}

.gallery-item img{
    width:100%;
    border-radius:18px;
    display:block;
    transition:0.4s;
}

.gallery-item:hover img{
    transform:scale(1.05);
}

@media(max-width:768px){

    .news-gallery{
        grid-template-columns:1fr;
    }

}

 .single-news {
        background: #ffffff;
        padding: 40px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
    .single-news h1 {
        font-weight: 700;
        color: #1a252f;
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .project-divider {
        height: 4px;
        width: 80px;
        background: #007bff; /* Možeš staviti primarnu boju fakulteta */
        border-radius: 2px;
    }
    .single-news-content {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #4a5568;
    }
    /* Stilovi za slike i poravnanje */
    .single-news-content img.custom-news-img {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        max-width: 100%;
        height: auto;
    }
    .single-news-content img.custom-news-img:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
    /* Ako u tekstu ima više slika sa opisom ([caption]), poređaj ih moderno */
    .wp-custom-caption {
        display: inline-block;
        margin: 15px 15px 15px 0;
        vertical-align: top;
        max-width: 300px; /* Prilagođava se širini tvojih slika iz baze */
        background: #f8f9fa;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        text-align: center;
        font-size: 0.9rem;
        color: #718096;
    }
    .wp-custom-caption img {
        margin-bottom: 8px;
        width: 100%;
    }
    /* Dugme Nazad */
    .btn-back-custom {
        padding: 12px 25px;
        font-weight: 600;
        border-radius: 30px;
        transition: all 0.3s ease;
    }
    .btn-back-custom:hover {
        transform: translateX(-5px);
    }

  .language-switcher {
    position: fixed;
    top: 25px;
    right: 30px;
    z-index: 9999;
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 50px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.25);
}

.language-switcher a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 40px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
}

.language-switcher a img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.language-switcher a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
}

.language-switcher a.active {
    background: #ffffff;
    color: #1a252f;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        padding: 6px;
    }

    .language-switcher a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .language-switcher a span {
        display: none;
    }

    .language-switcher a img {
        width: 20px;
        height: 20px;
    }
}