/* main.petrich.css - Custom styles for Petrich Municipality (optimized & Bootstrap-friendly) */

/* ===== VARIABLES ===== */
:root {
  --petrich-primary: #024189;
  --petrich-secondary: #e2001a;
  --petrich-dark: #212529;
  --petrich-light: #f8f9fa;
  --petrich-gray: #6c757d;
  --petrich-border: #dee2e6;
  --petrich-shadow: rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --petrich-primary-dark: #012b5c;
  --petrich-primary-light: #e6f0ff;
  --petrich-accent: #ffc107;
  --petrich-gray-light: #f8f9fa;
  --petrich-text: #333333;
  --petrich-text-light: #555555;
  --white: #ffffff;
  --text-dark: #333;
  --text-light: #666;
  --border-light: #e0e0e0;
  --bg-light: #f5f5f5;   
}

/* ===== BASE STYLES ===== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--petrich-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR STYLES ===== */
.navbar-dark.bg-dark {
  background-color: var(--petrich-primary) !important;
  padding: 0;
  min-height: 70px;
  box-shadow: 0 2px 10px var(--petrich-shadow);
}

.navbar > .container-fluid {
  padding: 0 15px;
}

.navbar-brand {
  margin-right: 1rem;
  margin-left: 1rem;
}

.navbar-logo {
  height: 75px;
  width: auto;
  transition: transform var(--transition-normal);
}

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

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.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='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  flex-grow: 0;
  padding: 0;
}

.navbar-nav {
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.25);
}

.navbar-nav .nav-link.dropdown-toggle {
  padding-right: 2rem !important;
  position: relative;
}
.navbar-nav .nav-item:not(.petrich-download-app-wrapper):not(.language-selector) .nav-link.dropdown-toggle {
  color: #ffffff;
}
.navbar-nav .nav-link.dropdown-toggle::after {
  content: "▾";
  border: none;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}
.nav-search-form-mobile .search-group {
    border-radius: 25px;
    border: 2px solid #034289;
    overflow: hidden;
}

/* ===== SEARCH FORM ===== */
.navbar-petrich .nav-search-form .input-group {
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid var(--petrich-primary);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.navbar-petrich .nav-search-form .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(3, 66, 137, 0.25);
  border-color: #0a58ca;
}

.navbar-petrich .nav-search-form .form-control {
  border: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

.navbar-petrich .nav-search-form .form-control:focus {
  box-shadow: none;
}

.navbar-petrich .nav-search-form .btn {
  background-color: var(--petrich-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  transition: background-color var(--transition-normal);
}

.navbar-petrich .nav-search-form .btn:hover {
  background-color: #0a58ca;
}

/* ===== DROPDOWN MENUS ===== */
.dropdown-menu {
  border: 1px solid var(--petrich-border);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  margin-top: 0.5rem;
  min-width: 250px;
  z-index: 1000;
}

.dropdown-menu.show {
  animation: fadeInDown 0.90s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--petrich-dark);
  border-radius: 4px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f0f7ff;
  color: var(--petrich-primary);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #ddd;
  color: var(--petrich-primary);
}

/* ===== MEGA MENU ===== */
.dropdown-menu.dropdown-menu-horizontal {
  min-width: 800px;
  max-width: 1200px;
  padding: 1.5rem;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 0.75rem;
}

.dropdown-menu.dropdown-menu-horizontal .container-fluid {
  padding: 0;
}

.dropdown-menu.dropdown-menu-horizontal .row {
  margin: 0 -10px;
}

.dropdown-menu.dropdown-menu-horizontal [class*="col-"] {
  padding: 0 10px;
}

.dropdown-menu.dropdown-menu-horizontal .mega-section {
  background: var(--petrich-light);
  border-radius: 6px;
  padding: 1.25rem;
  height: 100%;
  min-height: 250px;
  border-left: 3px solid var(--petrich-primary);
}

.dropdown-menu.dropdown-menu-horizontal ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.dropdown-menu.dropdown-menu-horizontal ul ul {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid #e9ecef;
}

.dropdown-menu.dropdown-menu-horizontal li {
  margin-bottom: 0.5rem;
}

.dropdown-menu.dropdown-menu-horizontal li:last-child {
  margin-bottom: 0;
}

.dropdown-menu.dropdown-menu-horizontal a {
  color: var(--petrich-dark);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

/* Top-level links */
.dropdown-menu.dropdown-menu-horizontal
  > .container-fluid
  > .row
  > [class*="col-"]
  > .div
  > ul
  > li
  > a,
.dropdown-menu.dropdown-menu-horizontal
  > .container-fluid
  > .row
  > [class*="col-"]
  > .mega-section
  > ul
  > li
  > a {
  color: var(--petrich-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.dropdown-menu.dropdown-menu-horizontal
  > .container-fluid
  > .row
  > [class*="col-"]
  > .div
  > ul
  > li
  > a:hover,
.dropdown-menu.dropdown-menu-horizontal
  > .container-fluid
  > .row
  > [class*="col-"]
  > .mega-section
  > ul
  > li
  > a:hover {
  padding-left: 0.5rem;
  border-color: var(--petrich-primary);
}

/* Submenu links */
.dropdown-menu.dropdown-menu-horizontal ul ul li a {
  color: var(--petrich-gray);
  font-size: 0.9rem;
}

.dropdown-menu.dropdown-menu-horizontal ul ul li a:hover {
  color: var(--petrich-primary);
  padding-left: 0.5rem;
}

/* ===== NAV BANNER ===== */
.nav-banner-column {
  padding-right: 1.5rem !important;
}

.nav-banner {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.nav-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.banner-image {
  height: 150px;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.nav-banner:hover .banner-image img {
  transform: scale(1.05);
}

.banner-content {
  background: var(--petrich-primary);
  padding: 1rem;
  color: #fff;
  text-align: center;
  font-weight: 500;
}

.banner-content span {
  font-size: 1rem;
  line-height: 1.4;
}

/* ===== SOCIAL / APP DROPDOWN ===== */
.petrich-download-app-wrapper {
  margin-left: 1rem;
}

.petrich-download-app-wrapper .dropdown-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.petrich-download-app-wrapper .dropdown-toggle:hover,
.petrich-download-app-wrapper .dropdown-toggle:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.petrich-download-app-wrapper .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: background-color .2s ease, color .2s ease;
}

.petrich-download-app-wrapper .dropdown-item i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.facebook-item .dropdown-item i { color: #1877f2; }
.viber-item .dropdown-item i { color: #7360f2; }
.youtube-item .dropdown-item i { color: #ff0000; }

.facebook-item .dropdown-item:hover,
.facebook-item .dropdown-item:focus {
  background-color: #1877f2;
  color: #fff;
}

.viber-item .dropdown-item:hover,
.viber-item .dropdown-item:focus {
  background-color: #7360f2;
  color: #fff;
}

.youtube-item .dropdown-item:hover,
.youtube-item .dropdown-item:focus {
  background-color: #ff0000;
  color: #fff;
}

.facebook-item .dropdown-item:hover i,
.viber-item .dropdown-item:hover i,
.youtube-item .dropdown-item:hover i,
.facebook-item .dropdown-item:focus i,
.viber-item .dropdown-item:focus i,
.youtube-item .dropdown-item:focus i {
  color: #fff;
}

/* ===== UTILITY CLASSES ===== */
.no-border-right { border-right: none !important; }
.border-right { border-right: 1px solid var(--petrich-border) !important; }

/* ===== ACCESSIBILITY ===== */
.sr-only,
.petrich-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-link:focus,
.dropdown-toggle:focus,
.dropdown-item:focus,
.btn:focus-visible,
.accessibility-option-btn:focus-visible,
.accessibility-reset-btn:focus-visible,
.close-panel-btn:focus-visible,
.accessibility-btn:focus-visible {
  outline: 3px solid var(--petrich-primary);
  outline-offset: 3px;
  box-shadow: none;
}

/* ===== SCROLLBAR STYLES ===== */
.dropdown-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
.dropdown-menu::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* ===== LOADING STATES ===== */
.dropdown-menu.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.dropdown-menu.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--petrich-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== DESKTOP DROPDOWN OPEN/CLOSE (no conflict with Bootstrap) ===== */
@media (min-width: 992px) {
  .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
  }

  .dropdown-menu.show {
    top: auto !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-1px);
  }

  .nav-item.dropdown:first-child .dropdown-menu.dropdown-menu-horizontal {
    left: 0 !important;
    transform: none !important;
  }

  .nav-item.dropdown:last-child .dropdown-menu.dropdown-menu-horizontal {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }
}

/* ===== PAGE HEADER STYLES ===== */
.page-header-with-bg {
    color: #2d3748;
    overflow: hidden;
    width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    animation: fadeIn 0.6s ease-out;
}

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

.page-header-with-bg:not(.has-header-image):not(.has-second-header-image) {
    background: #e2e8f0;
    background: linear-gradient(135deg, #e2e8f0 0%, #f7fafc 100%);
}

.page-header-with-bg.has-header-image,
.page-header-with-bg.has-second-header-image {
    background-size: cover !important;
    background-position: center !important;
}

.page-header-with-bg.has-header-image::before,
.page-header-with-bg.has-second-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.page-header-with-bg.has-header-image.municipal-overlay-blue::before,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue::before {
    background: rgba(33, 113, 132, 0.5);
}

.page-header-with-bg.has-header-image.municipal-overlay-blue-transparent::before,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue-transparent::before {
    background: rgba(25, 108, 124, 0.9);
}

.page-header-with-bg.has-header-image.municipal-overlay-white::before,
.page-header-with-bg.has-second-header-image.municipal-overlay-white::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0) 74%);
}

.page-header-with-bg.has-header-image.municipal-overlay-black::before,
.page-header-with-bg.has-second-header-image.municipal-overlay-black::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 39%, rgba(255, 255, 255, 0) 60%);
}

.header-content-wrapper {
    min-height: inherit;
    width: 100%;
    position: relative;
    z-index: 2;
}

.page-header-with-bg.has-header-image.municipal-overlay-blue,
.page-header-with-bg.has-header-image.municipal-overlay-blue-transparent,
.page-header-with-bg.has-header-image.municipal-overlay-black,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue-transparent,
.page-header-with-bg.has-second-header-image.municipal-overlay-black {
    color: #ffffff;
}

.page-header-with-bg.has-header-image.municipal-overlay-white,
.page-header-with-bg.has-second-header-image.municipal-overlay-white {
    color: #212121;
}

.page-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header-with-bg .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
}

.page-header-with-bg .breadcrumb-item + .breadcrumb-item::before {
    opacity: 0.6;
    float: none;
    padding-right: 0.5rem;
    color: inherit;
    content: " ";
    font-family: "Material-Design-Iconic-Font";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-rendering: auto;
}
.breadcrumb>li+li:before {
    padding: 0 5px;
}

.breadcrumb > li:last-child,
.page-header-with-bg .breadcrumb-item.active {
    font-style: italic;
    font-weight: 500;
}

.page-header-with-bg .breadcrumb-item a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-header-with-bg .breadcrumb-item a:hover {
    text-decoration: underline;
    border-bottom: 1px solid currentColor;
}

/* Breadcrumb colors */
.page-header-with-bg.has-header-image.municipal-overlay-black .breadcrumb,
.page-header-with-bg.has-header-image.municipal-overlay-black .breadcrumb-item,
.page-header-with-bg.has-header-image.municipal-overlay-black .breadcrumb-item a,
.page-header-with-bg.has-header-image.municipal-overlay-black .breadcrumb-item.active,
.page-header-with-bg.has-header-image.municipal-overlay-black .breadcrumb-item + .breadcrumb-item::before,
.page-header-with-bg.has-header-image.municipal-overlay-blue .breadcrumb,
.page-header-with-bg.has-header-image.municipal-overlay-blue .breadcrumb-item,
.page-header-with-bg.has-header-image.municipal-overlay-blue .breadcrumb-item a,
.page-header-with-bg.has-header-image.municipal-overlay-blue .breadcrumb-item.active,
.page-header-with-bg.has-header-image.municipal-overlay-blue .breadcrumb-item + .breadcrumb-item::before,
.page-header-with-bg.has-header-image.municipal-overlay-blue-transparent .breadcrumb,
.page-header-with-bg.has-header-image.municipal-overlay-blue-transparent .breadcrumb-item,
.page-header-with-bg.has-header-image.municipal-overlay-blue-transparent .breadcrumb-item a,
.page-header-with-bg.has-header-image.municipal-overlay-blue-transparent .breadcrumb-item.active,
.page-header-with-bg.has-header-image.municipal-overlay-blue-transparent .breadcrumb-item + .breadcrumb-item::before,
.page-header-with-bg.has-second-header-image.municipal-overlay-black .breadcrumb,
.page-header-with-bg.has-second-header-image.municipal-overlay-black .breadcrumb-item,
.page-header-with-bg.has-second-header-image.municipal-overlay-black .breadcrumb-item a,
.page-header-with-bg.has-second-header-image.municipal-overlay-black .breadcrumb-item.active,
.page-header-with-bg.has-second-header-image.municipal-overlay-black .breadcrumb-item + .breadcrumb-item::before,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue .breadcrumb,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue .breadcrumb-item,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue .breadcrumb-item a,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue .breadcrumb-item.active,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue .breadcrumb-item + .breadcrumb-item::before,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue-transparent .breadcrumb,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue-transparent .breadcrumb-item,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue-transparent .breadcrumb-item a,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue-transparent .breadcrumb-item.active,
.page-header-with-bg.has-second-header-image.municipal-overlay-blue-transparent .breadcrumb-item + .breadcrumb-item::before {
    color: #ffffff;
}

.page-header-with-bg.has-header-image.municipal-overlay-white .breadcrumb,
.page-header-with-bg.has-header-image.municipal-overlay-white .breadcrumb-item,
.page-header-with-bg.has-header-image.municipal-overlay-white .breadcrumb-item a,
.page-header-with-bg.has-header-image.municipal-overlay-white .breadcrumb-item.active,
.page-header-with-bg.has-header-image.municipal-overlay-white .breadcrumb-item + .breadcrumb-item::before,
.page-header-with-bg.has-second-header-image.municipal-overlay-white .breadcrumb,
.page-header-with-bg.has-second-header-image.municipal-overlay-white .breadcrumb-item,
.page-header-with-bg.has-second-header-image.municipal-overlay-white .breadcrumb-item a,
.page-header-with-bg.has-second-header-image.municipal-overlay-white .breadcrumb-item.active,
.page-header-with-bg.has-second-header-image.municipal-overlay-white .breadcrumb-item + .breadcrumb-item::before {
    color: #2d3748;
}

/* За тъмни overlay-та (black, blue, blue-transparent) */
.municipal-overlay-black .breadcrumb a,
.municipal-overlay-blue .breadcrumb a,
.municipal-overlay-blue-transparent .breadcrumb a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.municipal-overlay-black .breadcrumb a:hover,
.municipal-overlay-blue .breadcrumb a:hover,
.municipal-overlay-blue-transparent .breadcrumb a:hover {
    color: #ffffff !important;
    opacity: 0.8;
    text-decoration: underline;
}

.page-header-with-bg.has-header-image.municipal-overlay-white .breadcrumb-item a,
.page-header-with-bg.has-second-header-image.municipal-overlay-white .breadcrumb-item a {
    color: #2d3748 !important;
}

.page-header-with-bg.has-header-image.municipal-overlay-white .breadcrumb-item a:hover,
.page-header-with-bg.has-second-header-image.municipal-overlay-white .breadcrumb-item a:hover {
    color: #1a202c !important;
}

.page-header-with-bg.has-header-image {
  background: url('../images/headers/petrich_view.jpg') no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}

.page-header-with-bg.has-second-header-image {
  background: url('../images/headers/petrich_administration.jpg') no-repeat !important;
  background-size: cover !important;
  background-position: 50% 36% !important;
}
/* ===== WEATHER WIDGETS ===== */
.weather-widget-mobile {
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(3, 66, 137, 0.03);
  border: 1px solid rgba(3, 66, 137, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.weather-icon-mobile {
  stroke: #034289;
  stroke-width: 1.5;
  fill: #034289;
}

.weather-temp-mobile {
  color: #034289;
  font-size: 15px;
  font-weight: 700;
}

.weather-air-mobile {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.aqi-dot-mobile {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 4px currentColor;
  margin-right: 3px;
}

.weather-aqi-text-mobile {
  color: #034289;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.weather-temp-group-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.weather-widget {
  background: rgba(3, 66, 137, 0.05);
  padding: 4px 12px;
  border-radius: 30px;
  transition: all 0.2s ease;
  border: 1px solid rgba(3, 66, 137, 0.1);
}

.weather-widget:hover {
  background: rgba(3, 66, 137, 0.1);
  border-color: rgba(3, 66, 137, 0.2);
}

.weather-icon {
  stroke: #034289;
  stroke-width: 1.5;
  fill: #034289;
  margin-right: 4px;
}

.weather-temp {
  color: #034289;
  font-size: 15px;
  font-weight: 700;
}

.weather-divider {
  width: 1px;
  height: 20px;
  background: #034289;
  opacity: 0.2;
  display: inline-block;
}

.weather-aqi-text {
  color: #034289;
  font-size: 13px;
  font-weight: 500;
}

.aqi-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 5px currentColor;
}

/* AQI Colors */
.aqi-1 { background-color: #00c853 !important; box-shadow: 0 0 8px #00c853; }
.aqi-2 { background-color: #ffd600 !important; box-shadow: 0 0 8px #ffd600; }
.aqi-3 { background-color: #ff9100 !important; box-shadow: 0 0 8px #ff9100; }
.aqi-4 { background-color: #ff4444 !important; box-shadow: 0 0 8px #ff4444; }
.aqi-5 { background-color: #d50000 !important; box-shadow: 0 0 8px #d50000; }

.aqi-1-mobile { background-color: #00c853 !important; }
.aqi-2-mobile { background-color: #ffd600 !important; }
.aqi-3-mobile { background-color: #ff9100 !important; }
.aqi-4-mobile { background-color: #ff4444 !important; }
.aqi-5-mobile { background-color: #d50000 !important; }

/* ===== CAROUSEL ===== */
.main-carousel img {
  width:100%;
  height:auto;
  max-height:500px;
  object-fit:cover;
}

/* ===== SITEMAP STYLES ===== */
.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-list > li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sitemap-sublist {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.sitemap-sublist li {
    margin-bottom: 8px;
    text-decoration: underline;
}

.sitemap-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.sitemap-link:hover {
    text-decoration: underline;
}

.sitemap-sublist .sitemap-link {
    font-weight: normal;
    font-size: 14px;
}

/* ===== TABLES & TABS ===== */
.table > :not(caption) > * > * {
    padding: 0.75rem;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* ===== CONTACT ICONS ===== */
.contact-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: #0d6efd;
    vertical-align: middle;
}

.card-title .contact-icon {
    font-size: 1.5rem;
    margin-right: 0.3rem;
}

/* ===== TELEPHONE LINKS ===== */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #0d6efd;
    transition: all 0.2s ease;
}

a[href^="tel"]:hover {
    color: #0d6efd;
    border-bottom: 1px solid #0d6efd;
}

.table td a[href^="tel"] {
    display: inline-block;
    margin: 0.1rem 0;
}

.table td a[href^="tel"] + a[href^="tel"] {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid #dee2e6;
}

/* ===== MAP CONTAINER ===== */
.map-container {
    background: #f8f9fa;
}
.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
}

/* ===== CARDS ===== */
.card-footer .btn-sm {
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.clickable-card {
    transition: all 0.3s ease;
    display: block;
    color: inherit;
}
.clickable-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
}
.clickable-card:hover .card {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}
.clickable-card:hover .card-title {
    color: #0d6efd !important;
}

/* ===== NEWS STYLES ===== */
.news-heading {
    color: var(--petrich-primary);
    border-bottom: 3px solid var(--petrich-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.news-detail-heading {
    color: var(--petrich-primary);
    border-bottom: 3px solid var(--petrich-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}
.news-detail-heading i {
    color: var(--petrich-primary);
}

.news-date {
    color: var(--petrich-primary);
    font-weight: 500;
    background-color: rgba(2, 65, 137, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: inline-block;
}
.news-date i {
    color: var(--petrich-primary);
}

.news-detail-image {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(2, 65, 137, 0.15);
    transition: transform 0.3s ease;
    max-height: 500px;
    width: auto;
}
.news-detail-image:hover {
    transform: scale(1.02);
}

.news-content {
    line-height: 1.8;
    font-size: 1.1rem;
}
.news-content h2, 
.news-content h3, 
.news-content h4 {
    color: var(--petrich-primary);
    margin-top: 1.5rem;
}
.news-content a {
    color: var(--petrich-primary);
    text-decoration: underline;
}
.news-content a:hover {
    color: var(--petrich-primary-dark);
}
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px solid #eee;
}

.btn-news-outline {
    border: 2px solid var(--petrich-primary);
    color: var(--petrich-primary);
    background: transparent;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-news-outline:hover {
    background-color: var(--petrich-primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 65, 137, 0.3);
    text-decoration: none;
}
.btn-news-outline i {
    font-size: 1.2rem;
}

.news-breadcrumb .breadcrumb-item a {
    color: var(--petrich-primary);
    text-decoration: none;
}
.news-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--petrich-primary-dark);
}
.news-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

.news-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(2, 65, 137, 0.15);
}
.news-card .card-img-top {
    height: 160px;
    object-fit: cover;
}
.news-card .card-title a {
    color: var(--petrich-primary);
    text-decoration: none;
    font-weight: 600;
}
.news-card .card-title a:hover {
    text-decoration: underline;
}
.news-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
}
.news-card .btn-sm {
    border-color: var(--petrich-primary);
    color: var(--petrich-primary);
}
.news-card .btn-sm:hover {
    background-color: var(--petrich-primary);
    color: white;
}

/* ===== PRIMARY COLOR UTILITIES ===== */
.text-primary {
    color: var(--petrich-primary) !important;
}

.bg-primary {
    background-color: var(--petrich-primary) !important;
}

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

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

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

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

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

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--petrich-primary) !important;
    border-color: var(--petrich-primary) !important;
    color: #fff;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.table thead.bg-primary {
    background-color: var(--petrich-primary) !important;
}

.table thead.table-dark {
    background-color: #212529 !important;
}

a:not(.btn):not(.nav-link) {
    color: var(--petrich-primary);
    text-decoration: none !important;
}
a:not(.btn):not(.nav-link):hover {
    color: var(--petrich-primary-dark);
    text-decoration: underline;
}

.card-header.bg-primary .contact-icon {
    color: white;
}

/* ===== BANKING STYLES ===== */
.container-banking {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

.section-header {
    background: linear-gradient(135deg, var(--petrich-primary) 0%, var(--petrich-primary-dark) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
}

.section-header i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.bank-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: none;
}

.bank-card .card-body {
    padding: 20px;
}

.account-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--petrich-primary);
}

.account-detail {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    gap: 10px;
}

.account-detail:last-child {
    border-bottom: none;
}

.detail-label {
    min-width: 100px;
    font-weight: 600;
    color: var(--petrich-primary);
    font-size: 0.95rem;
}

.detail-value {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    background: white;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px dashed var(--petrich-primary);
    flex: 1;
    word-break: break-all;
    margin: 0;
}

.copy-btn {
    background: none;
    border: 1px solid var(--petrich-primary);
    color: var(--petrich-primary);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--petrich-primary);
    color: white;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
    padding: 0 15px;
    width: calc(100% + 30px);
}

.code-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.code-table th {
    background-color: var(--petrich-primary);
    color: white;
    padding: 12px 10px;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.code-table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.95rem;
}

.code-table tbody tr:hover {
    background-color: var(--petrich-light-bg);
}

.code-table tbody tr td:first-child {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--petrich-primary);
    white-space: nowrap;
}

.search-box {
    margin-bottom: 20px;
    position: relative;
}

.search-box input {
    padding: 12px 20px;
    padding-right: 45px;
    border: 2px solid #dee2e6;
    border-radius: 30px;
    width: 100%;
    transition: all 0.3s;
    font-size: 16px;
}

.search-box input:focus {
    border-color: var(--petrich-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 65, 137, 0.1);
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--petrich-primary);
    font-size: 1.2rem;
    pointer-events: none;
}

.quick-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.quick-nav .nav-link {
    flex: 1 1 auto;
    display: block;
    padding: 12px 10px;
    text-align: center;
    background: white;
    border-radius: 8px;
    color: var(--petrich-primary);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.quick-nav .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 65, 137, 0.2);
    border-color: var(--petrich-primary);
}

.quick-nav .nav-link i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--petrich-primary);
}

.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--petrich-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 1.7s forwards;
    font-weight: 500;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.info-note {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--petrich-primary);
    font-size: 0.95rem;
}

.info-note i {
    color: var(--petrich-primary);
    margin-right: 10px;
    font-size: 1.2rem;
    vertical-align: middle;
}

h1.display-5 {
    font-size: calc(1.5rem + 1.5vw);
}

.table-responsive::-webkit-scrollbar {
    height: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--petrich-primary);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--petrich-primary-dark);
}

/* ===== DOCUMENTS STYLES ===== */
.container-documents {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.doc-section {
    margin-bottom: 30px;
}

.doc-header {
    background: linear-gradient(135deg, var(--petrich-primary) 0%, var(--petrich-primary-dark) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
}

.doc-header h2, .doc-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.doc-header i {
    margin-right: 10px;
    font-size: 1.6rem;
}

.doc-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    overflow: hidden;
    border: none;
}

.doc-card .card-body {
    padding: 25px;
}

.doc-content {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.doc-content h1 {
    font-size: 2rem;
    color: var(--petrich-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--petrich-primary);
}

.doc-content h2 {
    font-size: 1.5rem;
    color: var(--petrich-primary);
    margin: 25px 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid var(--petrich-primary);
}

.doc-content h3 {
    font-size: 1.2rem;
    color: var(--petrich-primary-dark);
    margin: 20px 0 10px 0;
}

.doc-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.doc-content strong {
    color: var(--petrich-primary);
}

.doc-content ul, .doc-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.doc-content li {
    margin-bottom: 8px;
}

.doc-content li strong {
    color: var(--petrich-primary);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.doc-table th {
    background-color: var(--petrich-primary);
    color: white;
    padding: 12px;
    font-weight: 500;
    text-align: left;
}

.doc-table td {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
}

.doc-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.doc-table tr:hover {
    background-color: var(--petrich-light-bg);
}

.app-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--petrich-primary);
}

.app-title {
    color: var(--petrich-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.app-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--petrich-border);
}

.app-field {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.app-label {
    font-weight: 600;
    color: var(--petrich-primary);
    margin-bottom: 5px;
    display: block;
}

.app-value {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 8px 12px;
    border: 1px dashed var(--petrich-primary);
    border-radius: 5px;
    min-height: 40px;
}

.nav-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: white;
    border: 2px solid var(--petrich-primary);
    border-radius: 8px;
    color: var(--petrich-primary);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--petrich-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 65, 137, 0.2);
}

.nav-btn i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.signature-block {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--petrich-border);
}

.signature-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.signature-name {
    font-weight: 600;
    color: var(--petrich-primary);
}

.signature-position {
    color: #666;
    font-style: italic;
}

/* ===== BLUE ZONE STYLES ===== */
.blue-zone-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.blue-zone-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--petrich-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--petrich-primary);
    position: relative;
}

.blue-zone-content h1:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--petrich-accent);
}

.blue-zone-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--petrich-primary);
    margin: 30px 0 20px 0;
    padding-left: 15px;
    border-left: 5px solid var(--petrich-primary);
}

.blue-zone-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--petrich-primary-dark);
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--petrich-primary-light);
}

.blue-zone-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--petrich-primary);
    margin: 20px 0 10px 0;
}

.blue-zone-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.blue-zone-content a {
    color: var(--petrich-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.blue-zone-content a:hover {
    color: var(--petrich-primary-dark);
}

.blue-zone-content ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.blue-zone-content li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
}

.blue-zone-content li:before {
    content: "•";
    color: var(--petrich-primary);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.blue-zone-content li strong {
    color: var(--petrich-primary);
    font-weight: 600;
}

.map-container {
    margin: 30px 0;
    background: linear-gradient(135deg, var(--petrich-primary-light) 0%, #fff 100%);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(2, 65, 137, 0.2);
    box-shadow: 0 4px 20px rgba(2, 65, 137, 0.15);
}

.map-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.map-link:hover {
    transform: translateY(-5px);
}

.map-icon {
    width: 90px;
    height: 90px;
    background: var(--petrich-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(2, 65, 137, 0.3);
    transition: all 0.3s ease;
}

.map-link:hover .map-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(2, 65, 137, 0.5);
}

.map-icon i {
    color: white;
    font-size: 45px;
}

.map-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 4px solid white;
    margin-bottom: 15px;
}

.map-link:hover .map-thumbnail {
    box-shadow: 0 12px 35px rgba(2, 65, 137, 0.3);
}

.map-link-text {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--petrich-primary);
    padding: 14px 30px;
    border-radius: 50px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    border: 2px solid var(--petrich-primary);
    transition: all 0.3s ease;
}

.map-link-text i {
    font-size: 1.5rem;
}

.map-link-text:hover {
    background: var(--petrich-primary);
    color: white;
    gap: 15px;
    padding: 14px 35px;
}

.map-link-text:after {
    content: "↗";
    font-size: 1.3rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.map-link-text:hover:after {
    opacity: 1;
}

.note {
    background: linear-gradient(135deg, var(--petrich-primary-light) 0%, #fff 100%);
    border-left: 5px solid var(--petrich-primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(2, 65, 137, 0.1);
}

.note strong {
    color: var(--petrich-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.highlight {
    background: linear-gradient(135deg, var(--petrich-primary) 0%, var(--petrich-primary-dark) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    font-size: 1rem;
}

/* ===== BACK TO TOP BUTTON ===== */
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 105px;
  display: none;
  z-index: 9999;
  border: none;
  outline: none;
  cursor: pointer;
  background: transparent;  /* Прозрачен фон */
  padding: 0;
  width: auto;
  height: auto;
  box-shadow: none;
}

#btn-back-to-top i {
  font-size: 36px;  /* По-голяма иконка */
  color: #007bff;  /* Цвят само на иконката */
  transition: all 0.3s ease;
  display: block;
}

#btn-back-to-top:hover i {
  color: #0056b3;  /* Сменя само цвета на иконката при hover */
  transform: scale(1.1);  /* Лек ефект на уголемяване */
}

#btn-back-to-top .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* ===== PRIVACY POLICY STYLES ===== */
.privacy-policy {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--petrich-text);
    background-color: white;
}

.privacy-policy h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--petrich-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--petrich-primary);
    position: relative;
}

.privacy-policy h1:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--petrich-accent);
}

.privacy-policy h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--petrich-primary-dark);
    margin: 30px 0 20px 0;
    padding-left: 15px;
    border-left: 5px solid var(--petrich-primary);
    position: relative;
}

.privacy-policy h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--petrich-primary);
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--petrich-primary-light);
}

.privacy-policy p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--petrich-text);
}

.privacy-policy p strong {
    color: var(--petrich-primary);
    font-weight: 600;
}

.privacy-policy hr {
    margin: 30px 0;
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--petrich-primary-light), var(--petrich-primary), var(--petrich-primary-light), transparent);
}

.privacy-policy a {
    color: var(--petrich-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    position: relative;
}

.privacy-policy a:hover {
    color: var(--petrich-primary-dark);
    border-bottom-color: var(--petrich-primary);
}

.privacy-policy a:after {
    content: '↗';
    font-size: 0.9rem;
    margin-left: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-policy a:hover:after {
    opacity: 1;
}

.privacy-policy ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
    background: var(--petrich-gray-light);
    padding: 20px 25px;
    border-radius: 10px;
    border-left: 4px solid var(--petrich-primary);
    box-shadow: 0 2px 10px rgba(2, 65, 137, 0.05);
}

.privacy-policy li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-size: 1rem;
    color: var(--petrich-text);
}

.privacy-policy li:last-child {
    margin-bottom: 0;
}

.privacy-policy li:before {
    content: "✓";
    color: var(--petrich-primary);
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 0;
}

.privacy-policy table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(2, 65, 137, 0.1);
    border: 1px solid var(--petrich-border);
}

.privacy-policy table td {
    padding: 15px 20px;
    border: 1px solid var(--petrich-border);
    font-size: 1rem;
    color: var(--petrich-text);
}

.privacy-policy table td:first-child {
    font-weight: 600;
    color: var(--petrich-primary);
    background-color: var(--petrich-gray-light);
    width: 220px;
}

.privacy-policy table td:last-child {
    background-color: white;
}

.privacy-policy table tr:hover td {
    background-color: var(--petrich-primary-light);
}

.privacy-policy table tr:hover td:first-child {
    background-color: var(--petrich-primary);
    color: white;
}

.policy-highlight {
    background: linear-gradient(135deg, var(--petrich-primary-light) 0%, #fff 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--petrich-primary);
    margin: 25px 0;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(2, 65, 137, 0.05);
}

.policy-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid var(--petrich-primary);
}

.policy-note strong {
    color: var(--petrich-primary);
}

.contact-info {
    background: linear-gradient(135deg, var(--petrich-primary-light) 0%, #fff 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid var(--petrich-border);
}

.contact-item {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(2, 65, 137, 0.05);
}

.contact-item i {
    color: var(--petrich-primary);
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.contact-item span {
    font-size: 0.95rem;
    color: var(--petrich-text);
}

.contact-item strong {
    color: var(--petrich-primary);
}

.privacy-policy p:first-of-type {
    background: linear-gradient(135deg, var(--petrich-primary-light) 0%, #fff 100%);
    padding: 12px 20px;
    border-radius: 30px;
    display: inline-block;
    margin: 10px 0 20px 0;
    border: 1px solid var(--petrich-primary);
    font-weight: 500;
}

.privacy-policy p:first-of-type strong {
    color: var(--petrich-primary);
    font-weight: 600;
}

/* ===== COOKIE SETTINGS STYLES ===== */
.cookie-settings-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.cookie-header {
    margin-bottom: 30px;
}

.cookie-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #024189;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 4px solid #024189;
    position: relative;
}

.cookie-header h1:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--petrich-accent);;
}

.cookie-intro {
    background: linear-gradient(135deg, #e6f0ff 0%, #fff 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #024189;
    margin-bottom: 30px;
}

.cookie-group-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(2, 65, 137, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.cookie-group-card:hover {
    box-shadow: 0 8px 25px rgba(2, 65, 137, 0.15);
}

.cookie-group-header {
    background: linear-gradient(135deg, #024189 0%, #012b5c 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-group-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-group-header h2 i {
    font-size: 1.6rem;
}

.cookie-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cookie-badge-required {
    background: var(--petrich-accent);;
    color: #333;
}

.cookie-group-body {
    padding: 20px;
}

.cookie-description {
    color: #555;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 15px 0;
}

.btn-cookie {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-cookie-primary {
    background: #024189;
    color: #fff !important;
    border: none;
}

.btn-cookie-primary:hover {
    background: #012b5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 65, 137, 0.3);
}

.btn-cookie-outline {
    background: white;
    color: #024189;
    border: 2px solid #024189;
}

.btn-cookie-outline:hover {
    background: #024189;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-cookie-required {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
    cursor: not-allowed;
    opacity: 0.8;
}

.cookie-list {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.cookie-list h4 {
    color: #024189;
    font-size: 1rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    color: #024189;
}

.cookie-item-desc {
    font-family: 'Arial', sans-serif;
    color: #666;
    font-size: 0.9rem;
    margin-left: 5px;
}

.cookie-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 5px solid #024189;
}

.cookie-note i {
    color: #024189;
    margin-right: 8px;
}

.cookie-footer-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* ===== ACCESSIBILITY BUTTON & PANEL ===== */
.accessibility-button-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.accessibility-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #024189;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(2, 65, 137, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 28px;
}

.accessibility-btn:hover {
    background: #012b5c;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(2, 65, 137, 0.4);
}

.accessibility-panel {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 360px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(-400px);
    transition: transform 0.3s ease;
    border: 1px solid #dee2e6;
}

.accessibility-panel.open {
    transform: translateX(0);
}

.accessibility-panel-header {
    background: linear-gradient(135deg, #024189 0%, #012b5c 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-panel-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.close-panel-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.accessibility-panel-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.accessibility-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.accessibility-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.accessibility-section h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: #024189;
    font-weight: 600;
}

.font-size-controls,
.contrast-controls,
.monochrome-controls,
.zoom-controls,
.link-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.accessibility-option-btn {
    padding: 8px 16px;
    border: 2px solid #024189;
    background: white;
    color: #024189;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: auto;
    min-width: 60px;
}

.accessibility-option-btn:hover {
    background: #024189;
    color: white;
}

.accessibility-option-btn.active {
    background: #024189;
    color: white;
    border-color: #024189;
}

.accessibility-reset-btn {
    width: 100%;
    padding: 12px;
    background: #024189;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.accessibility-reset-btn:hover {
    background: #012b5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 65, 137, 0.3);
}

/* Accessibility Classes */
.contrast-high {
    filter: contrast(150%);
}

.contrast-invert {
    filter: invert(100%) hue-rotate(180deg);
}

.monochrome {
    filter: grayscale(100%);
}

.underline-links a {
    text-decoration: underline !important;
    text-decoration-color: #024189 !important;
    text-decoration-thickness: 2px !important;
}

/* ===== FILTERS ===== */
.filters-container {
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #d0ddee;
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    width: 100%;
}

.filter-label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #0B4F6C;
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #B4C6E7;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'16\' height=\'16\' viewBox=\'0 0 24 24\' fill=\'none\' stroke=\'%230B4F6C\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-linejoin=\'round\'><polyline points=\'6 9 12 15 18 9\'></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #0B4F6C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 79, 108, 0.1);
}

.filter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #B4C6E7;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-input:hover,
.filter-input:focus {
    border-color: #0B4F6C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 79, 108, 0.1);
}

.filter-input::placeholder {
    color: #999;
    font-style: italic;
}

.filter-button {
    width: 100%;
    padding: 14px 15px;
    background-color: #D4A017;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-button:hover {
    background-color: #b8860b;
}

.filter-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.filter-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.3);
}

.filter-info {
    margin-top: 20px;
    font-size: 15px;
    color: #0B4F6C;
    padding: 10px 0;
    border-top: 1px solid #d0ddee;
    text-align: center;
    font-weight: 500;
}

.filter-result-count {
    font-weight: bold;
    background-color: #0B4F6C;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 5px;
    display: inline-block;
}

/* ===== STICKY SIDE NAV ===== */
.sticky-side-nav {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sticky-side-nav .nav-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px 17.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 56px;
    height: 56px;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.05);
}

.sticky-side-nav .nav-item:hover {
    width: 180px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    padding-right: 25px;
}

.sticky-side-nav .nav-icon {
    font-size: 24px;
    min-width: 20px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000 !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.sticky-side-nav .nav-text {
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    color: #000000;
}

.sticky-side-nav .nav-item:hover .nav-text {
    opacity: 1;
}

.sticky-side-nav .nav-item.visit {
    background: #4CAF50;
}

.sticky-side-nav .nav-item.portal {
    background: #2196F3;
}

.sticky-side-nav .nav-item.priem {
    background: #FF9800;
}

.sticky-side-nav .nav-item.visit:hover {
    background: #45a049;
    color: #fff !important;
}

.sticky-side-nav .nav-item.portal:hover {
    background: #1976D2;
}

.sticky-side-nav .nav-item.priem:hover {
    background: #F57C00;
}

.sticky-side-nav .nav-item.visit:hover .nav-icon,
.sticky-side-nav .nav-item.visit:hover .nav-text,
.sticky-side-nav .nav-item.portal:hover .nav-icon,
.sticky-side-nav .nav-item.portal:hover .nav-text,
.sticky-side-nav .nav-item.priem:hover .nav-icon,
.sticky-side-nav .nav-item.priem:hover .nav-text {
    color: #ffffff !important;
}

/* ===== DOCUMENTS LIST ===== */
.documents-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.documents-title {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--petrich-primary);
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}
.doc-search-input {
    width: 100%;
    padding: 12px 40px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.doc-search-input:focus {
    border-color: var(--petrich-primary);
    box-shadow: 0 0 10px rgba(2, 65, 137, 0.2);
    outline: none;
}

.search-info {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 13px;
}

.search-info small {
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 15px;
}

.search-submit-btn {
    background: var(--petrich-primary);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn:hover {
    background: var(--petrich-primary-dark);
}

.search-submit-btn i {
    font-size: 18px;
}

.search-clear-link {
    color: var(--petrich-primary);
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
    white-space: nowrap;
}

.search-clear-link:hover {
    text-decoration: underline;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.search-clear-btn:hover {
    background: #f0f0f0;
    color: #024189;
}

.search-clear-btn:focus {
    outline: none;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}

.document-item-wrapper {
    transition: all 0.3s;
    animation: fadeIn 0.5s ease;
}

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

.document-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-left: none;
    border-right: none;
    transition: all 0.3s;
    gap: 15px;
    color: var(--text-dark);
}

.document-item-wrapper:first-child .document-item {
    border-top: none;
}

.document-item-wrapper:last-child .document-item {
    border-bottom: none;
}

.document-item:hover {
    background-color: var(--bg-light);
    transform: translateX(5px);
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--petrich-primary);
}

.document-content {
    flex: 1;
}

.document-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.document-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.document-title a:hover {
    color: var(--petrich-primary);
    text-decoration: underline;
}

.document-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.document-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.document-actions {
    min-width: 100px;
    text-align: right;
    margin-left: auto;
    color: var(--text-light);
}

.btn-download {
    display: inline-block;
    padding: 8px 16px;
    background: var(--petrich-primary);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    border: 1px solid var(--petrich-primary);
}

.btn-download:hover {
    background: var(--petrich-primary-dark);
    border-color: var(--petrich-primary-dark);
    color: var(--white) !important;
}

.no-documents {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.no-documents p {
    margin: 10px 0;
}

.no-documents i {
    font-size: 48px;
    color: var(--border-light);
    margin-bottom: 15px;
}

.pagination-wrapper {
    margin-top: 30px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 5px;
    justify-content: center;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--petrich-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--petrich-primary);
    color: var(--white);
    border-color: var(--petrich-primary);
}

.page-item.active .page-link {
    background: var(--petrich-primary);
    color: var(--white);
    border-color: var(--petrich-primary);
    font-weight: bold;
}

.page-item.disabled .page-link {
    background: var(--bg-light);
    color: #999;
    border-color: var(--border-light);
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .dropdown-menu,
  .navbar-toggler,
  .quick-nav,
  .btn,
  .no-print,
  .sticky-side-nav,
  .accessibility-button-wrapper,
  #btn-back-to-top {
    display: none !important;
  }

  .page-header-with-bg,
  .privacy-policy,
  .doc-card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: none;
  }

  .privacy-policy h1:after,
  .privacy-policy hr {
    background: black;
  }

  .privacy-policy a {
    color: black;
    text-decoration: underline;
  }

  .privacy-policy a:after {
    display: none;
  }

  .privacy-policy ul {
    background: none;
    border-left: 2px solid black;
    box-shadow: none;
  }

  .privacy-policy table,
  .doc-card {
    box-shadow: none;
  }

  .contact-info,
  .policy-highlight,
  .note {
    background: none;
    border: 1px solid black;
  }

  .map-container {
    break-inside: avoid;
    background: none;
    border: 1px solid black;
  }

  .map-icon, .map-link-text {
    display: none;
  }

  .highlight {
    background: none;
    color: black;
    border: 1px solid black;
  }
}

/* ============================================================
   ========== МЕДИЙНИ ЗАЯВКИ - ГРУПИРАНИ ПО breakpoint ==========
   ============================================================ */

/* === ДО 576px (Много малки телефони) === */
@media (max-width: 575.98px) {
    /* Navbar */
    .navbar-dark.bg-dark {
        min-height: 60px;
    }
    .navbar-brand {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    .navbar-logo {
        height: 45px;
    }
    .navbar-logo-mobile {
        height: 60px !important;
        width: 60px !important;
    }
    .navbar-brand-text-mobile {
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
    .navbar-brand-text-mobile .fw-bold {
        font-size: 1rem !important;
        color: #034289;
    }
    .navbar-brand-text-mobile small {
        font-size: 0.8rem !important;
        color: #4a5568;
    }
    .navbar-toggler {
        padding: 0.375rem 0.5rem;
    }
    /* Page Header */
    .page-header-with-bg {
        min-height: 70px;
        padding: 1rem 0;
    }
    .page-main-title {
        font-size: 1.5rem;
    }
    .page-header-with-bg .breadcrumb {
        font-size: 0.85rem;
    }
    .breadcrumb > li + li:before,
    .page-header-with-bg .breadcrumb-item + .breadcrumb-item::before {
        font-size: 12px;
        padding: 0 0.25rem;
    }
    .page-header-with-bg.has-header-image.municipal-overlay-black::before {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.15) 100%);
    }

    /* Cards & Footer */
    .card-footer .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    .card-footer div:last-child {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .card-footer .btn-sm {
        flex: 1;
    }
    .row-cols-1 > .col {
        margin-bottom: 1rem;
    }

    /* Tables */
    .table td, .table th {
        white-space: normal;
        word-break: break-word;
        font-size: 0.85rem;
    }
    .nav-tabs .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    .contact-icon {
        font-size: 1rem;
    }

    /* Banking */
    .bank-card .card-body {
        padding: 15px;
    }
    .account-detail {
        flex-wrap: wrap;
        padding: 12px 5px;
    }
    .detail-label {
        min-width: 100%;
        margin-bottom: 5px;
        font-size: 0.9rem;
    }
    .detail-value {
        font-size: 0.9rem;
        padding: 8px 10px;
        width: calc(100% - 50px);
        flex: initial;
    }
    .copy-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        width: 40px;
        text-align: center;
    }
    .copy-btn i {
        margin: 0;
    }
    .copy-btn span {
        display: none;
    }
    .table-responsive {
        margin: 0 -20px;
        padding: 0 20px;
        width: calc(100% + 40px);
    }
    .code-table th,
    .code-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
    .quick-nav {
        gap: 8px;
    }
    .quick-nav .nav-link {
        padding: 10px 5px;
        font-size: 0.8rem;
        min-width: calc(33.333% - 6px);
    }
    .quick-nav .nav-link i {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    .info-note {
        padding: 12px;
        font-size: 0.85rem;
    }
    h1.display-5 {
        font-size: 1.5rem;
    }
    .lead {
        font-size: 0.95rem;
    }

    /* Blue Zone */
    .blue-zone-content h1 {
        font-size: 1.5rem;
    }
    .blue-zone-content h3 {
        font-size: 1.2rem;
    }
    .blue-zone-content li {
        font-size: 0.95rem;
        padding-left: 20px;
    }
    .map-container {
        padding: 15px;
    }
    .map-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .map-icon i {
        font-size: 30px;
    }
    .map-link-text {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .map-link-text:hover {
        padding: 10px 25px;
    }
    .highlight {
        font-size: 0.9rem;
        padding: 3px 10px;
    }
    .note {
        padding: 15px;
        font-size: 0.95rem;
    }

    /* Privacy */
    .privacy-policy h1 {
        font-size: 1.6rem;
    }
    .privacy-policy h2 {
        font-size: 1.3rem;
        padding-left: 12px;
    }
    .privacy-policy table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .privacy-policy table td {
        padding: 10px 12px;
        font-size: 0.9rem;
        white-space: normal;
    }
    .privacy-policy table td:first-child {
        width: 130px;
    }
    .privacy-policy li {
        font-size: 0.95rem;
        padding-left: 25px;
    }
    .privacy-policy p:first-of-type {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    /* Cookie */
    .cookie-header h1 {
        font-size: 1.8rem;
    }

    /* Accessibility */
    .accessibility-panel {
        width: 280px;
        left: 10px;
        bottom: 80px;
    }
    .accessibility-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .accessibility-button-wrapper {
        bottom: 14px;
        left: 10px;
    }
    #btn-back-to-top {
        bottom: 84px;
        right: 25px;
    }
    /* Filters */
    .filters-container {
        padding: 15px;
    }
    .filter-label {
        font-size: 13px;
    }
    .filter-info {
        font-size: 14px;
    }
    .filter-select,
    .filter-input,
    .filter-button {
        font-size: 16px !important;
    }
    .filter-select {
        background-position: right 12px center !important;
    }
    .filter-button {
        padding: 16px 15px;
    }

    /* Documents List */
    .search-clear-btn {
        right: 50px;
    }
}

/* === От 576px до 767.98px (Големи телефони, малки таблети) === */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-logo-mobile {
        height: 70px !important;
        width: 70px !important;
    }
    .navbar-brand-text-mobile .fw-bold {
        font-size: 1.3rem !important;
        color: #034289;
    }
    .navbar-brand-text-mobile small {
        font-size: 0.95rem !important;
        color: #4a5568;
    }
}

/* === До 768px (Таблети и телефони - обединени) === */
@media (max-width: 768px) {
    /* Carousel */
    .main-carousel img {
        max-height: 260px;
    }

    /* Sitemap */
    .sitemap-sublist {
        padding-left: 15px;
    }
    .sitemap-link {
        display: block;
        padding: 8px 0;
    }

    /* Display */
    .display-5 {
        font-size: 1.8rem;
    }
    .table {
        font-size: 0.9rem;
    }

    /* Documents Container */
    .container-documents {
        padding: 10px;
    }
    .doc-header h2 {
        font-size: 1.2rem;
    }
    .doc-content h1 {
        font-size: 1.5rem;
    }
    .doc-content h2 {
        font-size: 1.2rem;
    }
    .nav-btn {
        min-width: 100%;
    }
    .doc-card .card-body {
        padding: 15px;
    }
    .signature-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Blue Zone */
    .blue-zone-content {
        padding: 15px;
    }
    .blue-zone-content h1 {
        font-size: 1.8rem;
    }
    .blue-zone-content h2 {
        font-size: 1.5rem;
    }
    .blue-zone-content h3 {
        font-size: 1.3rem;
    }
    .map-icon {
        width: 70px;
        height: 70px;
    }
    .map-icon i {
        font-size: 35px;
    }
    .map-link-text {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    /* Cookie */
    .cookie-group-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
    .cookie-footer-actions {
        flex-direction: column;
    }

    /* Sticky Nav (Mobile) */
    .sticky-side-nav {
        right: auto;
        left: 0;
        top: auto;
        bottom: 0;
        transform: translateY(0);
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 12px 10px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
    }

    .sticky-side-nav.nav-hidden {
        transform: translateY(100%);
    }

    .sticky-side-nav .nav-item {
        padding: 12px 14px;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        margin: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .sticky-side-nav .nav-item:hover {
        width: 55px;
        transform: scale(1.1);
    }

    .sticky-side-nav .nav-text {
        display: none;
    }

    .sticky-side-nav .nav-icon {
        margin-right: 0;
        font-size: 24px;
    }

    /* Documents List */
    .document-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .document-content {
        width: calc(100% - 55px);
    }
    .document-actions {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    .btn-download {
        width: 100%;
    }
    .document-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* === До 992px (Таблети) === */
@media (max-width: 991.98px) {
    /* Navbar */
    .navbar-dark.bg-dark {
        padding: 0.5rem 0;
    }
    .navbar-collapse {
        background: #fff;
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--petrich-border);
    }
    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    .navbar-nav .nav-link {
        color: var(--petrich-dark) !important;
        padding: 0.75rem !important;
        border-radius: 6px;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: var(--petrich-light);
        color: var(--petrich-primary) !important;
    }
    .navbar-nav .nav-link.active {
        background-color: var(--petrich-primary);
        color: #fff !important;
    }
    .dropdown-menu.dropdown-menu-horizontal {
        position: static !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0.5rem 0 !important;
        box-shadow: none;
        border: 1px solid var(--petrich-border);
    }
    .dropdown-menu.dropdown-menu-horizontal .row {
        flex-direction: column;
        margin: 0;
    }
    .dropdown-menu.dropdown-menu-horizontal [class*="col-"] {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }
    .dropdown-menu.dropdown-menu-horizontal [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    .dropdown-menu.dropdown-menu-horizontal .div,
    .dropdown-menu.dropdown-menu-horizontal .mega-section {
        min-height: auto;
    }
    .nav-banner-column {
        order: -1;
        padding-right: 0 !important;
        margin-bottom: 1.5rem;
    }
    .nav-banner .banner-image {
        height: 120px;
    }
    .petrich-download-app-wrapper {
        margin: 1rem 0 0 0;
        width: 100%;
    }
    .petrich-download-app-wrapper .dropdown-toggle {
        width: 100%;
        background: var(--petrich-primary);
        border: none;
    }

    /* Page Header */
    .page-header-with-bg {
        min-height: 100px;
        padding: 1.5rem 0;
    }
    .page-main-title {
        font-size: 2rem;
    }

    /* Weather */
    .desktop-weather {
        display: none !important;
    }
    .mobile-weather {
        display: flex !important;
    }
}

/* === От 992px нагоре (Десктоп) === */
@media (min-width: 992px) {
    /* Navbar Centering */
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-grow: 1;
        justify-content: center;
    }
    .navbar-expand-lg .navbar-nav {
        margin: 0 !important;
    }
    .navbar-expand-lg .navbar-nav.ms-auto,
    .navbar-expand-lg .navbar-nav.me-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Mega Menu Full Width */
    .dropdown-menu.mega-menu > .row {
        max-width: 1100px;
        width: 100%;
        margin-inline: auto;
    }
    .navbar .nav-item.dropdown {
        position: static;
    }
    .navbar .dropdown-menu.mega-menu {
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        min-width: 0 !important;
        transform: translateY(0px) !important;
        margin-top: 0px !important;
        border-radius: 0;
    }

    /* Weather */
    .mobile-weather {
        display: none !important;
    }
    .desktop-weather {
        display: flex !important;
    }

    /* Filters (Desktop) */
    .filters-wrapper {
        flex-direction: row;
        align-items: flex-end;
    }
    .filter-group-select {
        flex: 2;
    }
    .filter-group-search {
        flex: 3;
    }
    .filter-group-button {
        flex: 0.8;
    }
}

/* === До 1140px (По-малък десктоп) === */
@media (max-width: 1140px) {
    .weather-air-group,
    .weather-divider {
        display: none !important;
    }
    .desktop-weather .weather-widget {
        padding: 4px 10px;
    }
}

/* === До 1199.98px (Десктоп) === */
@media (max-width: 1199.98px) {
    .dropdown-menu.dropdown-menu-horizontal {
        min-width: 700px;
        max-width: 90%;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem;
    }
}

/* === От 768px до 991px (Таблети - филтри) === */
@media (min-width: 768px) and (max-width: 991px) {
    .filter-group-select {
        flex: 1.5;
    }
    .filter-group-search {
        flex: 2;
    }
    .filter-group-button {
        flex: 0.6;
    }
}

/* === От 769px до 1024px (Таблети - документи) === */
@media (min-width: 769px) and (max-width: 1024px) {
    .documents-wrapper {
        padding: 15px;
    }
    .document-item {
        padding: 12px;
    }
}
/* Контейнер за целия чат компонент */
#chat-popup-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: sans-serif;
}

/* Бутон за отваряне с робот иконка */
#chat-toggle-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
#chat-toggle-button i {
    font-size: 20px;
}
#chat-toggle-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,123,255,0.5);
}

/* Обвивка на iframe-а (попъп прозорец) */
#chat-iframe-wrapper {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

/* Хедър на попъп прозореца с робот иконка */
#chat-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#chat-header div {
    display: flex;
    align-items: center;
}
#chat-header i {
    font-size: 18px;
    animation: robotWave 2s infinite;
}

/* Анимация за роботчето */
@keyframes robotWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

#chat-close-button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
#chat-close-button:hover {
    background: rgba(255,255,255,0.3);
}

/* Самият iframe */
#chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Мобилна версия */
@media (max-width: 480px) {
    #chat-iframe-wrapper {
        width: 90%;
        height: 80vh;
        bottom: 80px;
        right: 5%;
    }
    
    #chat-toggle-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}