/* Add here all your CSS customizations */
.page-header-custom {
    position: relative;
    background-image: url('../img/cover.jpg');
    background-size: cover;
    background-position: 50% 65%;
    z-index: 1;
}

.page-header-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(227, 28, 25, 0.7); /* Red overlay with 50% opacity */
    z-index: 2; /* Ensure the overlay is on top of the background image */
}

.page-header-custom .container, 
.page-header-custom .row {
    position: relative;
    z-index: 3; /* Keep the text above the overlay */
}



/*Image zoom*/
.image-zoom-container {
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: center; /* horizontalno */
    align-items: center;     /* vertikalno */
}

.image-zoom {
    width: 60%;
    height: 100%;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-zoom-container:hover .image-zoom {
    transform: scale(1.5); /* Adjust the scale for desired zoom level */
    transform-origin: center; /* Center the zoom effect on hover */
}

/*Slider in tabs on page*/
.custom-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.custom-slide {
    display: none;
    width: 100%;
}

.custom-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.custom-slide.active {
    display: block;
}

.custom-prev, .custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 10;
}

.custom-prev { left: 10px; }
.custom-next { right: 10px; }

.custom-dots {
    text-align: center;
    margin-top: 10px;
}

.custom-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.custom-dot.active {
    background-color: #717171;
}


/*Make tabs full width*/
/* TAB WRAPPER */
.nav-tabs {
    display: flex !important;
    flex-direction: row !important; /* <-- KLJUČNO */
    flex-wrap: wrap !important;
    gap: 0;
    border-bottom: none;
}

/* TAB ITEM – desktop */
.nav-tabs .nav-item {
    flex: 0 0 207px;
}

/* TAB LINK */
.nav-tabs .nav-link {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: normal;
    padding: 8px;
    box-sizing: border-box;
}

/* ===== RESPONSIVE ===== */

/* Tablet – 3 u redu */
@media (max-width: 992px) {
    .nav-tabs {
        flex-direction: row !important;
    }

    .nav-tabs .nav-item {
        flex: 0 0 33.3333%;
    }
}

/* Mobile – 2 u redu */
@media (max-width: 576px) {
    .nav-tabs {
        flex-direction: row !important;
    }

    .nav-tabs .nav-item {
        flex: 0 0 50%;
    }

    .nav-tabs .nav-link {
        height: 56px;
        font-size: 14px;
    }
}

/* SITE LOADER */
.page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff; /* promeni po potrebi */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  color: rgb(0, 0, 0);
  font-family: Arial, sans-serif;
}

/* Pulsiranje logoa */
.loader-logo {
  width: 120px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Animacija scale */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Tačkice */
.loading-dots {
  margin-top: 20px;
  font-size: 18px;
  letter-spacing: 2px;
}

.loading-dots span::after {
  content: "";
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0%   { content: ""; }
  33%  { content: "."; }
  66%  { content: ".."; }
  100% { content: "..."; }
}

#increaseFont {
    margin-right: 8px; /* prilagodi po želji */
}

/*Image modal*/
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/*OWL Slider na pocetnoj*/
.owl-carousel .item-center {
    height: 400px;          /* visina slidera */
    display: flex;
    align-items: center;    /* vertikalno centriranje */
    justify-content: center;/* horizontalno centriranje */
}

.owl-carousel .item-center img {
    max-height: 100%;
    width: auto;
}

/* Modal za saznaj vise content type image_text */
#largeModal .modal-dialog{
	max-width:800px;
	height:calc(100vh - 3.5rem);
	margin-top:1.75rem;
	margin-bottom:1.75rem;
}

#largeModal .modal-content{
	height:100%;
	display:flex;
	flex-direction:column;
}

#largeModal .modal-body{
	overflow-y:auto;
}

#largeModal #modalImage{
	max-width:100%;
	max-height:320px;
	object-fit:contain;
	display:block;
	margin:0 auto 20px auto;
}

/*Pocetna strana pravougaonici u headeru*/
.box-two h4 a {
    display: flex !important;
    align-items: center !important;
}

.box-two h4 i {
    margin-left: 8px !important;
    position: relative !important;
    top: 0 !important;
}

/*PAGINACIJA NA TABELAMA*/
/* Pagination container */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

/* Sva dugmad */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;
    color: #333 !important;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: all .2s ease;

    text-decoration: none !important;
}

/* Hover */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e63946;
    border-color: #e63946;
    color: #fff !important;
}

/* Aktivna stranica */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #e63946 !important;
    border-color: #e63946 !important;
    color: #fff !important;
}

/* Disabled (Prethodna kada nema prethodne strane) */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: .5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999 !important;
}

/* Hover ne radi na disabled */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

/* Razmak između brojeva */
.dataTables_wrapper .dataTables_paginate span {
    display: flex;
    gap: 6px;
}

/*Obelezavanje selektovanog jezika*/
.header-nav-top a {
    color: #666;
    text-decoration: none;
    padding: 4px 8px;
}

.header-nav-top a.active {
    color: #000;
    font-weight: 700;
    border-bottom: 2px solid #e63946;
}