/* assets/css/custom.css - Custom stilovi i utility klase */

/* === KRITIČNI FIX - Slojevi === */
.navbar-toggler {
  pointer-events: auto !important;
  z-index: 10000 !important;
  position: relative !important;
}

/* Dozvoli Bootstrapu da upravlja animacijom bez prisile */
.navbar-collapse {
  pointer-events: auto !important;
  /* Uklonjen display !important koji je kočio animaciju */
}

/* === ROOT VARIABLES === */
:root {
  /* Glavne boje */
  --primary-color: #005b96;
  --primary-hover: #0074c2;
  --secondary-color: #659999;
  --secondary-hover: #43a047;

  /* Trust/Header boje */
  --trust-color: #005b96;
  --trust-light: #0074c2;

  /* Neutralne */
  --text-color: #333333;
  --text-light: #666666;
  --bg-white: #ffffff;
  --bg-alt: #f5f7fa;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;

  --transition-speed: 0.3s;
}

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === TYPOGRAPHY === */
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--trust-color);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

/* === LINKS === */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-hover);
  text-decoration: none;
}

/* === HEADER & NAVIGATION === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

.top-bar {
  background-color: var(--trust-color) !important;
}

.top-bar small {
  font-size: 1rem;
}

.top-bar a:hover {
  text-decoration: underline !important;
}

.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 91, 150, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.25rem;
  color: var(--trust-color) !important;
  padding: 0.1rem 0;
}

.navbar-brand img {
  height: 30px;
  width: auto;
  transition: transform var(--transition-speed);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-speed);
  color: var(--text-color) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--trust-light) !important;
}

/* === DESKTOP DROPDOWN === */
@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 91, 150, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .navbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.navbar .dropdown-item {
  padding: 0.6rem 1.5rem;
  transition: all 0.2s ease;
  color: var(--text-color);
  font-size: 0.95rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(0, 91, 150, 0.08);
  color: var(--primary-color);
  padding-left: 2rem;
}

.navbar .dropdown-header {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.5rem 0.25rem;
}

.navbar .dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(0, 91, 150, 0.15);
}

.navbar .dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.15em;
  transition: transform 0.2s ease;
}

.navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* === MOBILNI DROPDOWN === */
@media (max-width: 991px) {
  .top-bar small {
    font-size: 1rem;
  }

  .navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .navbar .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .navbar-brand img {
    height: 25px;
  }

  /* Hamburger - secondary color */
  .navbar-toggler {
    border-color: #659999 !important;
    pointer-events: auto !important;
    z-index: 10000 !important;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23659999' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  .navbar-toggler:hover {
    background-color: rgba(101, 153, 153, 0.1);
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(101, 153, 153, 0.25);
  }

  /* Navbar collapse scrollable */
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Dropdown menu styling */
  .navbar .dropdown-menu {
    border: none;
    box-shadow: none;
    background: rgba(0, 91, 150, 0.02);
    margin-top: 0;
    padding-left: 1rem;
    transition: none;
    position: relative;
    transform: none;
  }

  .navbar .dropdown-menu.show {
    display: block;
  }

  .navbar .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .navbar .dropdown-item:hover {
    padding-left: 1.5rem;
  }

  .navbar .dropdown-header {
    padding-left: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    height: 25px;
  }

  .navbar .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* === BUTTONS === */
.btn {
  border-radius: 4px;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
}

.btn-outline-primary {
  border: 2px solid var(--trust-color);
  color: var(--trust-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--trust-light);
  border-color: var(--trust-light);
  color: white;
}

/* === HERO VIDEO SECTION === */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 80svh;
  min-height: 500px;
  overflow: hidden;
  background-color: #000;
}

.hero-video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #002855 0%, #001428 100%);
  z-index: 0;
}

.hero-video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 1s ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 40, 85, 0.3) 0%,
    rgba(0, 20, 50, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 65%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  color: white;
  padding: 20px;
}

.hero-content .container {
  background: rgba(0, 40, 70, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-shadow:
    0 2px 15px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 2rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 1.2s ease-out;
  max-width: 900px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease-out;
}

.hero-buttons .btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #1a5490 !important;
  font-weight: 700;
  transition: all 0.3s ease;
}

.hero-buttons .btn-light:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  color: var(--primary-hover) !important;
}

.hero-buttons .btn-outline-light {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: white !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === HERO RESPONSIVE === */
@media (min-width: 992px) and (max-width: 1440px) {
  .hero-video-section {
    height: 55svh !important;
    min-height: 500px;
  }

  .hero-video-container {
    height: 75% !important;
  }

  .hero-overlay {
    height: 100% !important;
  }

  .hero-content {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .hero-content .container {
    padding: 2rem 1.5rem !important;
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .hero-subtitle {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-video-section {
    height: 70vh;
    min-height: 450px;
  }
}

@media (max-width: 768px) {
  .hero-video-section {
    height: 65vh;
    min-height: 450px;
  }

  .hero-content {
    top: 60% !important;
  }

  .hero-content .container {
    padding: 1.5rem 1rem !important;
  }

  .hero-subtitle {
    padding: 0.75rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4;
  }

  .hero-buttons {
    gap: 1rem !important;
    margin-top: 0.5rem;
  }

  .hero-buttons .btn {
    padding: 12px 30px !important;
    font-size: 1rem !important;
  }

  .hero-content .container,
  .navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@media (max-width: 576px) {
  .hero-video-section {
    height: 65vh;
    min-height: 420px;
  }

  .hero-content {
    top: 52% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .hero-content .container {
    padding: 1.25rem 0.75rem !important;
    max-width: 100% !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
    padding: 0.75rem 1rem;
  }

  .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
  }

  .navbar .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-width: 400px) {
  .hero-video-section {
    min-height: 380px;
  }

  .hero-title {
    font-size: 1.5rem !important;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }
}

/* Video play button */
.video-play-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 10;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  opacity: 0.7 !important;
  pointer-events: auto !important;
}

.video-play-btn:hover {
  transform: scale(1.2);
}

.video-play-btn svg {
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .video-play-btn {
    top: 20px;
    right: 20px;
  }

  .video-play-btn svg {
    width: 40px;
    height: 40px;
  }
}

/* Sakrij tekst iz video fajla */
#heroMediaSection::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(
    to top,
    rgba(0, 40, 70, 0.95) 0%,
    transparent 100%
  );
  z-index: 2;
}

/* === CARDS === */
.card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition:
    transform var(--transition-speed),
    box-shadow var(--transition-speed);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 91, 150, 0.15);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
  color: var(--text-color);
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 91, 150, 0.25);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-img-top {
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  height: 200px;
}

.card img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* === DOCTOR CARDS === */
.doctor-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(0, 91, 150, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.25);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 91, 150, 0.3);
}

.doctor-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid rgba(101, 153, 153, 0.6);
  box-shadow:
    0 0 20px rgba(101, 153, 153, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.doctor-card:hover img.rounded-circle {
  border-color: rgba(101, 153, 153, 0.9);
  box-shadow:
    0 0 30px rgba(101, 153, 153, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.doctor-card .card-body {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 20px 20px;
}

.doctor-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(101, 153, 153, 0.3),
    rgba(0, 91, 150, 0.3),
    rgba(101, 153, 153, 0.3)
  );
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.doctor-card:hover::before {
  opacity: 1;
}

img.rounded-circle {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* === SECTIONS === */
.section {
  padding: 4rem 0;
  clear: both;
  overflow-x: hidden;
}

.section.bg-light {
  background-color: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--trust-color);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  margin: 1rem auto 0;
}

/* === CTA SECTION === */
.section.bg-primary {
  position: relative;
  overflow: hidden;
}

.section.bg-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 91, 150, 0.9) 0%,
    rgba(0, 116, 194, 0.85) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}

.section.bg-primary .container {
  position: relative;
  z-index: 1;
}

.section.bg-primary h2 {
  color: #ffffff !important;
}

.section.bg-primary .btn-light {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 1) !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section.bg-primary .btn-light:hover {
  background: rgba(255, 255, 255, 1) !important;
  color: var(--primary-hover) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.section.bg-primary .btn-outline-light {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.section.bg-primary .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 1) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
}

/* === TRUST BADGES === */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.trust-badge {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(0, 91, 150, 0.1);
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 91, 150, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.15);
}

.trust-badge i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* === FAQ === */
.faq-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(0, 91, 150, 0.15);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(101, 153, 153, 0.3),
    rgba(0, 91, 150, 0.3),
    rgba(101, 153, 153, 0.3)
  );
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 91, 150, 0.25);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
  transform: translateY(-2px);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 91, 150, 0.3);
  box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.2);
  transform: translateY(-5px);
}

.faq-item.active::before {
  opacity: 1;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  cursor: pointer;
  background: rgba(0, 91, 150, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  z-index: 1;
}

.faq-question:hover {
  background: rgba(0, 91, 150, 0.08);
}

.faq-item.active .faq-question {
  background: rgba(101, 153, 153, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-question span:first-child {
  font-weight: 700;
  color: var(--trust-color);
  flex: 1;
  padding-right: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question span:first-child {
  color: var(--secondary-color);
}

.faq-question span:last-child {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 91, 150, 0.15);
}

.faq-item:hover .faq-question span:last-child {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 91, 150, 0.25);
}

.faq-item.active .faq-question span:last-child {
  transform: rotate(45deg);
  color: var(--secondary-color);
  background: rgba(101, 153, 153, 0.15);
  box-shadow: 0 4px 15px rgba(101, 153, 153, 0.3);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease,
    opacity 0.3s ease;
  padding: 0 1.75rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 1.5rem 1.75rem 1.75rem;
  opacity: 1;
}

.faq-answer p {
  margin-bottom: 0;
  line-height: 1.8;
  color: var(--text-color);
  font-size: 1rem;
}

.faq-answer strong {
  color: var(--primary-color);
  font-weight: 600;
}

.section:has(.faq-item) {
  background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 50%, #f5f7fa 100%);
  position: relative;
}

.section:has(.faq-item)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(101, 153, 153, 0.08) 0%,
    transparent 50%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 1.25rem;
  }

  .faq-question span:first-child {
    font-size: 1rem;
    padding-right: 1rem;
  }

  .faq-question span:last-child {
    width: 28px;
    height: 28px;
    font-size: 1.5rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-answer {
    padding: 1.25rem;
  }
}

/* === BLOG === */
.blog-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section:has(.blog-excerpt) {
  background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%) !important;
}

.section:has(.blog-excerpt) .card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(0, 91, 150, 0.2);
}

.section:has(.blog-excerpt) .card:hover {
  border-color: rgba(0, 91, 150, 0.4);
  transform: translateY(-8px);
}

.section:has(.blog-excerpt) .section-title {
  color: var(--primary-color) !important;
}

.section:has(.blog-excerpt) .section-title::after {
  background: var(--primary-color) !important;
}

.section:has(.blog-excerpt) .card-title a {
  color: var(--primary-color) !important;
}

.section:has(.blog-excerpt) .card-title a:hover {
  color: var(--primary-hover) !important;
}

.section:has(.blog-excerpt) .blog-meta {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.section:has(.blog-excerpt) .btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.section:has(.blog-excerpt) .card-img-top {
  height: 220px;
  border-radius: 12px 12px 0 0;
}

/* === VRSTE RAKA SECTION === */
.bolesti-raka-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  padding: 5rem 0;
  position: relative;
}

.bolesti-raka-section a {
  font-weight: 500;
  transition: color var(--transition-speed);
  color: var(--text-color);
}

.bolesti-raka-section a:hover {
  color: var(--secondary-color) !important;
}

.bolesti-raka-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  text-align: center;
  margin-bottom: 1rem;
}

.bolesti-raka-section .section-title::after {
  background: var(--secondary-color) !important;
  width: 100px;
  height: 4px;
}

.bolesti-raka-section .text-center.text-muted {
  font-size: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.bolesti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px);
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.bolest-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(101, 153, 153, 0.15) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--trust-color);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  min-height: 140px;
  cursor: pointer;
  animation: pulseIn 0.5s ease-out;
  animation-fill-mode: backwards;
}

.bolest-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(101, 153, 153, 0.2));
}

.bolest-naziv {
  display: block;
  line-height: 1.4;
  color: var(--trust-color);
  transition: color 0.3s ease;
}

.bolest-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.2);
  border-color: rgba(101, 153, 153, 0.4) !important;
}

.bolest-card:hover .bolest-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 6px 12px rgba(101, 153, 153, 0.4));
}

.bolest-card:hover .bolest-naziv {
  color: var(--secondary-color);
}

.bolest-card:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 4px;
}

.bolest-card:active {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px 0 rgba(31, 38, 135, 0.15);
}

.bolest-card:nth-child(1) {
  animation-delay: 0.05s;
}
.bolest-card:nth-child(2) {
  animation-delay: 0.1s;
}
.bolest-card:nth-child(3) {
  animation-delay: 0.15s;
}
.bolest-card:nth-child(4) {
  animation-delay: 0.2s;
}
.bolest-card:nth-child(5) {
  animation-delay: 0.25s;
}
.bolest-card:nth-child(6) {
  animation-delay: 0.3s;
}
.bolest-card:nth-child(7) {
  animation-delay: 0.35s;
}
.bolest-card:nth-child(8) {
  animation-delay: 0.4s;
}

@keyframes pulseIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 992px) {
  .bolesti-raka-section {
    padding: 4rem 0;
  }

  .bolesti-raka-section .section-title {
    font-size: 2rem;
  }

  .bolesti-raka-section .text-center.text-muted {
    font-size: 1.1rem;
  }

  .bolesti-grid {
    grid-template-columns: repeat(auto-fit, 200px);
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .bolesti-raka-section {
    padding: 3rem 0;
  }

  .bolesti-raka-section .section-title {
    font-size: 1.75rem;
  }

  .bolest-card {
    padding: 1.5rem 1rem;
    min-height: 120px;
    font-size: 1.05rem;
  }

  .bolest-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .bolesti-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .bolesti-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bolest-card {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    min-height: auto;
    padding: 1.25rem 1.5rem;
  }

  .bolest-icon {
    font-size: 1.8rem;
    margin-bottom: 0;
    margin-right: 1rem;
  }

  .bolest-naziv {
    text-align: left;
  }
}

/* === CONTACT FORM === */
.form-control:focus {
  border-color: var(--trust-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 91, 150, 0.25);
}

/* === FOOTER === */
.site-footer {
  margin-top: 4rem;
  background-color: var(--trust-color) !important;
}

.site-footer a {
  color: white;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--trust-light) !important;
}

/* === UTILITY CLASSES === */
.text-primary {
  color: var(--primary-color) !important;
}
.text-secondary {
  color: var(--secondary-color) !important;
}
.text-trust {
  color: var(--trust-color) !important;
}
.text-muted,
.text-light {
  color: var(--text-light) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
}
.bg-trust {
  background-color: var(--trust-color) !important;
}
.bg-white {
  background-color: var(--bg-white) !important;
}
.bg-alt {
  background-color: var(--bg-alt) !important;
}
.bg-light {
  background-color: var(--bg-light) !important;
}

.border-color {
  border-color: var(--border-color) !important;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.shadow-sm-hover {
  transition: box-shadow var(--transition-speed);
}

.shadow-sm-hover:hover {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15) !important;
}

.custom-list i {
  width: 25px;
}

/* === BREADCRUMBS === */
.breadcrumb-nav {
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  background: transparent;
  padding: 0;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === CLEARFIX === */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* === BROWSER FALLBACKS === */
@supports not (backdrop-filter: blur(10px)) {
  .hero-content .container {
    background: rgba(0, 91, 150, 0.85);
  }

  .doctor-card,
  .card {
    background: rgba(255, 255, 255, 0.95);
  }

  .navbar {
    background: rgba(255, 255, 255, 0.98) !important;
  }
}

/* === PRINT STYLES === */
@media print {
  .site-header,
  .site-footer,
  .bolesti-raka-section,
  .breadcrumb-nav {
    display: none;
  }

  .hero-content .container,
  .doctor-card,
  .card,
  .trust-badge,
  .faq-item,
  .bolest-card {
    background: white !important;
    backdrop-filter: none !important;
    border: 1px solid #ddd !important;
  }

  .bolest-icon {
    filter: none;
  }
}

/* === ACCESSIBILITY - REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .bolest-card {
    animation: none;
  }
}
