:root {
  --mig-green: #3d6636;
  --mig-green-light: #5a8a52;
  --mig-green-nav: #3b6f3a;
  --mig-text: #1a1a1a;
  --mig-muted: #6c757d;
  --mig-line: #dee2e6;
  --font-heading: "Raleway", system-ui, sans-serif;
  --font-body: "Roboto Condensed", system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--mig-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-mig .nav-link,
.site-section-title,
.news-card-title {
  font-family: var(--font-heading);
}

/* ——— Top bar ——— */
.top-bar {
  background: #fff;
  border-bottom: 1px solid var(--mig-line);
  font-size: 0.75rem;
}

.top-bar .logos-wrap {
  align-items: center;
  flex-wrap: wrap;
}

.top-bar__logo {
  text-decoration: none;
  color: inherit;
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.top-bar__logo:hover {
  opacity: 0.9;
}

.top-bar__logo img {
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: top;
  max-width: 100%;
}

/* EU лента – широка, ниска */
.top-bar__logo--eu img {
  max-height: 2.1rem;
}

@media (min-width: 576px) {
  .top-bar__logo--eu img {
    max-height: 2.75rem;
  }
}

/* Стратегически план (графика) */
.top-bar__logo--plan {
  max-width: 18rem;
}

.top-bar__logo--plan img {
  max-height: 2.6rem;
}

@media (min-width: 992px) {
  .top-bar__logo--plan {
    max-width: 22rem;
  }

  .top-bar__logo--plan img {
    max-height: 3rem;
  }
}

/* МИГ – кръгъл */
.top-bar__logo--mig img {
  width: 2.5rem;
  height: 2.5rem;
  max-height: 4rem;
  max-width: 4rem;
}

@media (min-width: 768px) {
  .top-bar__logo--mig img {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* ПРСР – ивици */
.top-bar__logo--prsr img {
  max-height: 2.2rem;
}

@media (min-width: 768px) {
  .top-bar__logo--prsr img {
    max-height: 2.5rem;
  }
}

/* Флаг (език / локал) */
.top-bar__flag {
  display: block;
  width: auto;
  height: auto;
  max-height: 1.2rem;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

@media (min-width: 576px) {
  .top-bar__flag {
    max-height: 1.4rem;
  }
}

.utility-links {
  font-size: 0.8rem;
}

.utility-links a {
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.utility-links a:hover {
  text-decoration: underline;
  color: var(--mig-green);
}

.utility-sep,
.lang-sep {
  color: #999;
  margin: 0 0.25rem;
}

.lang-switch .active {
  font-weight: 600;
  color: var(--mig-green);
}

/* ——— Main nav ——— */
.navbar-mig {
  background-color: var(--mig-green-nav) !important;
  font-family: var(--font-body);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar-mig .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-mig .navbar-toggler-icon {
  filter: invert(1);
}

.navbar-mig .nav-link {
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  white-space: nowrap;
}

.navbar-mig .nav-item.nav-sep {
  display: flex;
  align-items: stretch;
  padding: 0 0.1rem;
}

.navbar-mig .nav-item.nav-sep::before {
  content: "";
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
  align-self: center;
  min-height: 1.1rem;
}

@media (max-width: 991.98px) {
  .navbar-mig .nav-item.nav-sep::before {
    display: none;
  }

  .navbar-mig .nav-sep {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(50vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}

.hero__bg-half {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__logo {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 1rem 4rem;
}

.hero__logo-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(200px, 40vw);
  height: min(200px, 40vw);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border: 3px solid rgba(61, 102, 54, 0.35);
}

.hero__mig-figures {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.15rem;
}

.hero__figure {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 4px 4px 12px 4px;
  transform: rotate(-8deg);
}

.hero__mig-top {
  font-size: 1.35rem;
  font-weight: 800;
  color: #333;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
}

.hero__mig-arc {
  font-size: 0.6rem;
  line-height: 1.1;
  color: #444;
  max-width: 7rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.2rem;
}

@media (min-width: 768px) {
  .hero__logo-circle {
    width: 220px;
    height: 220px;
  }

  .hero__figure {
    width: 1.6rem;
    height: 1.6rem;
  }

  .hero__mig-arc {
    font-size: 0.7rem;
  }
}

/* Вълна под hero */
.hero-wave-wrap {
  position: relative;
  z-index: 3;
  margin-top: -3rem;
  line-height: 0;
  pointer-events: none;
}

.hero-wave {
  display: block;
  width: 100%;
  height: 3.5rem;
}

/* ——— Logos / мерки ——— */
.logos-section {
  padding: 2rem 0 2.5rem;
}

.logos-section .col-partner {
  border-right: 1px solid var(--mig-line);
  padding: 0.5rem 1rem 1rem;
}

.logos-section .col-partner:last-child {
  border-right: none;
}

@media (max-width: 767.98px) {
  .logos-section .col-partner {
    border-right: none;
    border-bottom: 1px solid var(--mig-line);
  }

  .logos-section .col-partner:last-child {
    border-bottom: none;
  }
}

.partner-tile {
  text-align: center;
}

.partner-tile__img {
  max-height: 4rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.partner-tile__title {
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.eu-badge {
  display: block;
  margin: 0.75rem auto 0;
  max-width: 7rem;
  font-size: 0.5rem;
  line-height: 1.1;
  color: #666;
  border: 1px solid #c7c7c7;
  padding: 0.35rem 0.25rem;
  text-align: center;
}

/* ——— News ——— */
.section-news {
  padding: 2rem 0 3.5rem;
  background: #FFF;
}

.site-section-title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: #333;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-section-title::before,
.site-section-title::after {
  content: "";
  display: block;
  height: 2px;
  width: 3rem;
  background: linear-gradient(90deg, transparent, var(--mig-green));
}

.site-section-title::after {
  background: linear-gradient(90deg, var(--mig-green), transparent);
}

.deco-icon {
  color: var(--mig-green);
  font-size: 1.25rem;
  opacity: 0.9;
}

#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
  width: 2.5rem;
  color: var(--mig-green);
  opacity: 0.9;
}

#newsCarousel .carousel-control-prev {
  left: -0.5rem;
}

#newsCarousel .carousel-control-next {
  right: -0.5rem;
}

#newsCarousel .carousel-control-prev-icon,
#newsCarousel .carousel-control-next-icon {
  background-color: #fff;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  background-size: 50% 50%;
  filter: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#newsCarousel .carousel-indicators {
  position: static;
  margin: 0.5rem 0 0;
}

#newsCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  border: 0;
  margin: 0 4px;
}

#newsCarousel .carousel-indicators .active {
  background-color: var(--mig-green);
}

.news-card {
  border: 0;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
}

.news-card__img {
  min-height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .news-card__img {
    min-height: 100%;
  }
}

.news-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.badge-nova {
  display: inline-block;
  background: var(--mig-green) !important;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35em 0.6em;
  text-transform: uppercase;
  width: max-content;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.news-date {
  color: var(--mig-muted);
  font-size: 0.85rem;
  margin: 0.5rem 0 0.35rem;
}

.news-card-title {
  font-size: 0.95rem;
  line-height: 1.3;
  text-transform: uppercase;
  color: #111;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #444;
  flex: 1;
  margin-bottom: 1rem;
}

.btn-mig-outline {
  border: 2px solid var(--mig-green) !important;
  color: var(--mig-green) !important;
  background: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  width: max-content;
  font-family: var(--font-body);
}

.btn-mig-outline:hover {
  background: var(--mig-green) !important;
  color: #fff !important;
}

/* ——— Footer ——— */
.site-footer {
  position: relative;
  background: #2e5e2b;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.5;
  padding: 2rem 0;
}

.site-footer p {
  margin: 0;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  opacity: 0.95;
}
.site-footer p::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/footer.png');
  background-repeat: no-repeat;
  display: block;
  width: 165px;
  height: 165px;
  left: 0;
  top: 0;
  z-index: -1;
}
.site-footer p::after {
  content: "";
  position: absolute;
  background-image: url('../img/footer.png');
  background-repeat: no-repeat;
  transform: scaleX(-1);
  display: block;
  width: 165px;
  height: 165px;
  right: 0;
  top: 0;
  z-index: -1;
}


.dropdown-hover-all .dropdown-menu, .dropdown-hover > .dropdown-menu.dropend { margin-left:-1px !important }

@media (max-width: 575.98px) { 
  .flag_eu {
    max-height: 2.1rem;
  }
  .flag_plan {
    max-height: 1.7rem;
  }
  .flag_prsr {
    max-height: 1.7rem;
  }
  .flag_bulgaria {
    max-height: 1.7rem;
  }
  .site-footer p::before {
    display: none;
  }
  .site-footer p::after {
    display: none;
  }
}
@media (max-width: 767.98px) {
  .flag_eu {
    max-height: 2.1rem;
  }
  .flag_plan {
    max-height: 1.7rem;
  }
  .flag_prsr {
    max-height: 1.7rem;
  }
  .flag_bulgaria {
    max-height: 1.7rem;
  }
}
@media (max-width: 991.98px) {
  .flag_eu {
    max-height: 2.1rem;
  }
  .flag_plan {
    max-height: 1.7rem;
  }
  .flag_prsr {
    max-height: 1.7rem;
  }
  .flag_bulgaria {
    max-height: 1.7rem;
  }
}