/* ==========================================
   GLOBAL STYLES
   ========================================== */

:root {
    --primary-color: #0d5196;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}
.bg-primary {background-color: var(--primary-color) !important}
.text-primary {color: #0d5196 !important; font-size:16px;}
.card-title {font-size:18px;}

body {
font-family:  Cantarell, "Helvetica Neue", Arial, sans-serif;

    color: var(--dark-text);
    line-height: 1.6;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.text-justify {
    text-align: justify;
}

/* ==========================================
   CARDS & HOVER EFFECTS
   ========================================== */

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.card {
    border-radius: var(--border-radius);
    border: none;
}

.card-img-top {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.dropdown-menu {
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border: none;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
}

/* ==========================================
   HERO SLIDER
   ========================================== */

.carousel-item {
    position: relative;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0d5196;
    color:#f1f1f1 !important;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn-outline-primary{
border:1px solid #0d5196;
color:#0d5196;
}
.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: #0d5196 !important;
}

/* ==========================================
   FORMS
   ========================================== */

.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ==========================================
   BADGES
   ========================================== */

.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
    border-radius: 6px;
}

/* ==========================================
   ALERTS
   ========================================== */

.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* ==========================================
   BREADCRUMBS
   ========================================== */

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
    margin-top: 2rem;
}

.page-link {
    border-radius: 6px;
    margin: 0 4px;
    color: var(--primary-color);
    border: 1px solid #dee2e6;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.1);
}

/* ==========================================
   BLOG
   ========================================== */

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

/* ==========================================
   STRETCHED LINK
   ========================================== */

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* ==========================================
   UTILITIES
   ========================================== */

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.rounded-3 {
    border-radius: var(--border-radius) !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
  .dropdown-menu {
    max-height: 65vh;
    overflow-y: auto;       
    overscroll-behavior: contain;

  }
}
/* TAB LEVI STUB */
.dropdown-menu .nav-pills {
  border-right: 1px solid #eee;
}

/* TAB BUTTONI */
.dropdown-menu .nav-pills .nav-link {
  border-radius: 0;
  padding: 8px 12px;
  font-size: 14px;
  color: #444;
  background: transparent;
  border-left: 3px solid transparent;
}

.dropdown-menu .nav-pills .nav-link.active {
  background: #f8f9fa;
  border-left-color: #0d6efd; /* bootstrap primary */
  font-weight: 600;
  color: #000;
}


@media (max-width: 768px) {
  .dropdown-menu .col-md-3 {
    flex: 0 0 35%;
    max-width: 35%;
  }

  .dropdown-menu .col-md-9 {
    flex: 0 0 65%;
    max-width: 65%;
  }

  .dropdown-menu .nav-pills .nav-link {
    font-size: 17px;
    padding: 6px 8px;
  }
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.75rem;
    }

    .carousel-caption .lead {
        font-size: 1rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* ==========================================
   LOADING SPINNER
   ========================================== */

.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ==========================================
   SEARCH FORM
   ========================================== */

#searchForm .form-control,
#searchForm .form-select {
    height: 45px;
}

/* ==========================================
   MAP
   ========================================== */

#map {
    border: 2px solid #dee2e6;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .navbar,
    footer,
    .btn,
    .alert {
        display: none !important;
    }
}

.gallery-edit .image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* savršeni kvadrat */
    overflow: hidden;
    border-radius: 10px;
    background: #f1f1f1;
}

.gallery-edit .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-edit .btn-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 1;
    font-size: 18px;
}
