/*
Theme Name: UEF България
Theme URI: https://federalists.eu
Description: Тема за Съюза на европейските федералисти - дизайн като federalists.eu
Author: UEF Bulgaria
Author URI: https://federalists.eu
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uef-bulgaria
*/

/* ===== Gill Sans – шрифт като federalists.eu ===== */
@font-face {
  font-family: "Gill Sans";
  font-weight: 300;
  font-style: italic;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Light%20Italic.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 300;
  font-style: normal;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Light.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 400;
  font-style: italic;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Italic.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 400;
  font-style: normal;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 500;
  font-style: italic;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Medium%20Italic.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 500;
  font-style: normal;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Medium.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 700;
  font-style: italic;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Bold%20Italic.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 700;
  font-style: normal;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Bold.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 900;
  font-style: italic;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Heavy%20Italic.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "Gill Sans";
  font-weight: 900;
  font-style: normal;
  src: url("https://federalists.eu/wp-content/uploads/fonts/Gill%20Sans%20Heavy.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "GillSans Condensed";
  font-weight: 400;
  font-style: normal;
  src: url("https://federalists.eu/wp-content/uploads/fonts/GillSans%20Condensed.otf") format("opentype");
  font-display: block;
}
@font-face {
  font-family: "GillSans Condensed";
  font-weight: 700;
  font-style: normal;
  src: url("https://federalists.eu/wp-content/uploads/fonts/GillSans%20Condensed%20Bold.otf") format("opentype");
  font-display: block;
}

/* ===== CSS Variables - UEF Brand (като federalists.eu) ===== */
:root {
  --uef-green: #19874a;
  --uef-green-dark: #146b3a;
  --uef-eu-blue: #003399;
  --uef-eu-yellow: #FFCC00;
  --uef-black: #191919;
  --uef-white: #ffffff;
  --uef-gray-bg: #f6f6f6;
  --uef-gray: #666666;
  --uef-border: 1px solid #191919;
  --uef-border-thick: 3px solid #191919;
  --uef-font: 'Gill Sans', 'Helvetica Neue', Arial, sans-serif;
  --uef-transition: 0.3s ease;
  --uef-container: 1200px;
  --uef-section: 5rem;
  --uef-space-56: 3.5rem;
  --uef-space-80: 5rem;
  --uef-header-height: 288px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--uef-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--uef-black);
  background: var(--uef-white);
}

body.uef-menu-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  body.uef-menu-open {
    overflow: auto;
  }
}

a {
  color: var(--uef-black);
  text-decoration: none;
  transition: color var(--uef-transition);
}

a:hover {
  color: var(--uef-green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Layout ===== */
.uef-container {
  max-width: var(--uef-container);
  margin: 0 auto;
  padding: 0 var(--uef-space-56);
}

/* ===== Header - като federalists.eu ===== */
.uef-header {
  background: var(--uef-white);
  border-bottom: var(--uef-border-thick);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.uef-header__half {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
}

@media (min-width: 769px) {
  .uef-header__half {
    padding: 0.5rem var(--uef-space-56);
    gap: 1rem;
  }
}

.uef-header__half--right {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-left: auto;
}

.uef-header__half--right .uef-header__menu-wrap {
  border-left: var(--uef-border-thick);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

@media (min-width: 769px) {
  .uef-header__half--right .uef-header__menu-wrap {
    padding: 0.5rem 1.25rem;
  }
}

.uef-header__half--right .uef-header-search {
  border-left: var(--uef-border-thick);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uef-header__half--right .uef-header__socials {
  border-left: var(--uef-border-thick);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 769px) {
  .uef-header__half--right .uef-header-search,
  .uef-header__half--right .uef-header__socials {
    padding: 0.5rem 1.25rem;
  }
}

/* Лого в header - фиксиран размер (custom logo и fallback) */
.uef-header__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.uef-header__logo-wrap img,
.uef-header__logo-wrap .custom-logo-link img,
.uef-header__logo-link img,
.uef-header img.custom-logo {
  max-width: 264px !important;
  max-height: 264px !important;
  width: auto !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

.uef-header__logo-wrap .custom-logo-link {
  display: flex;
  align-items: center;
}

/* Лого 80 години - компактно в header */
.uef-header__logo-80 {
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  background: var(--uef-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
}

.uef-header__logo-80__years {
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--uef-white);
  line-height: 1;
}

.uef-header__logo-80__num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--uef-white);
  line-height: 1;
}

.uef-header__title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--uef-black);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

@media (min-width: 769px) {
  .uef-header__title {
    font-size: 0.95rem;
  }
}

.uef-header__menu-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0;
  color: var(--uef-black);
}

.uef-burger {
  width: 1.5rem;
  height: 0.75rem;
  position: relative;
}

.uef-burger span {
  display: block;
  background-color: var(--uef-black);
  height: 2px;
  width: 100%;
  position: absolute;
  transition: var(--uef-transition);
}

.uef-burger span:nth-child(1) { top: 0; }
.uef-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.uef-burger span:nth-child(3) { bottom: 0; }

.uef-burger--active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.uef-burger--active span:nth-child(2) {
  opacity: 0;
}
.uef-burger--active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.uef-header__menu-wrap {
  position: relative;
}

.uef-icon {
  fill: currentColor;
  width: 1em;
  height: 1em;
}

/* Search overlay */
.uef-header-search {
  position: relative;
}

.uef-header-search__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uef-header-search__toggle .uef-icon--search {
  width: 24px;
  height: 24px;
}

.uef-header-search__form {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f3f3f3;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.uef-header-search__form.visible {
  opacity: 1;
  visibility: visible;
}

.uef-header-search__inner {
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 600px;
  gap: 1rem;
}

.uef-header-search__field {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  border: none;
  background: transparent;
}

.uef-header-search__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.uef-socials-label {
  font-family: var(--uef-font);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.4rem;
}

.uef-header__socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.uef-header__socials .uef-socials-label {
  margin-bottom: 0;
}

.uef-socials-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.uef-header__socials a {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Hero - Image Comparison (before/after) като federalists.eu ===== */
.uef-hero {
  position: relative;
  min-height: 450px;
  overflow: hidden;
}

.uef-img-compare {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  cursor: col-resize;
}

.uef-img-compare__before,
.uef-img-compare__after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.uef-img-compare__after {
  clip-path: inset(0 0 0 50%);
}

.uef-img-compare__handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--uef-white);
  cursor: col-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.uef-img-compare__handle {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  background: var(--uef-white);
  border: var(--uef-border);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uef-img-compare__handle::before {
  display: none;
}

.uef-img-compare__handle::after {
  content: '⟷';
  font-size: 1.25rem;
  color: var(--uef-black);
  font-weight: bold;
}

/* Hero overlay - бяла кутия с черна рамка като на снимките */
.uef-img-compare__overlay {
  position: absolute;
  bottom: 50%;
  left: var(--uef-space-56);
  transform: translateY(50%);
  padding: 1.5rem 2rem;
  background: var(--uef-white);
  border: var(--uef-border-thick);
  z-index: 5;
  pointer-events: none;
  max-width: 400px;
}

.uef-hero-badge {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--uef-green);
  margin-bottom: 0.5rem;
}

.uef-hero-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--uef-black);
  margin: 0;
  line-height: 1.3;
}

.uef-hero-subtitle {
  font-size: 1rem;
  margin: 0.2rem 0 0;
  color: var(--uef-black);
}

/* Fallback hero без image comparison */
.uef-hero-fallback {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--uef-green) 0%, var(--uef-green-dark) 100%);
}

.uef-hero-overlay {
  position: relative;
  z-index: 2;
  padding: var(--uef-space-80) var(--uef-space-56);
  width: 100%;
}

.uef-hero-overlay-box {
  background: var(--uef-white);
  border: var(--uef-border-thick);
  padding: 1.5rem 2rem;
  max-width: 400px;
}

/* ===== Home Block - двуколонен layout като federalists.eu ===== */
.uef-home-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--uef-border-thick);
  min-height: 400px;
}

.uef-home-block__row:nth-child(even) .uef-home-block__half--img {
  order: 2;
}

.uef-home-block__row:nth-child(even) .uef-home-block__half--content {
  order: 1;
}

.uef-home-block__row {
  display: contents;
}

.uef-home-block__half {
  padding: var(--uef-space-56);
  display: flex;
  flex-direction: column;
}

.uef-home-block__half--img {
  background: var(--uef-gray-bg);
  padding: var(--uef-space-56);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uef-home-block__half--img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.uef-home-block__half--img .uef-home-block__img {
  object-fit: contain;
  max-height: 400px;
}

/* Голямо зелено E - като на снимките */
.uef-big-e {
  font-size: clamp(8rem, 25vw, 18rem);
  font-weight: 700;
  color: var(--uef-green);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-family: var(--uef-font);
}

.uef-home-block__half--img .uef-wave-svg {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.uef-home-block__half--img .uef-wave-svg path {
  fill: var(--uef-green);
}

/* EU декларация - синя колона с жълта рамка като на снимките */
.uef-declaration-box {
  width: 100%;
  min-height: 350px;
  background: var(--uef-eu-blue);
  border: 3px solid var(--uef-eu-yellow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.uef-declaration-stars {
  color: var(--uef-eu-yellow);
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  margin-bottom: 1rem;
}

.uef-declaration-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--uef-white);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
}

.uef-declaration-small {
  font-size: 0.8em;
  font-weight: 400;
}

.uef-declaration-yellow {
  color: var(--uef-eu-yellow);
  font-size: 1.2em;
}

.uef-declaration-committee {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}

.uef-home-block__half--content {
  justify-content: center;
}

.uef-home-block__header h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--uef-black);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.uef-home-block__header h2 .uef-bold {
  font-weight: 700;
  display: block;
  font-size: 1.1em;
}

.uef-home-block__header::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--uef-black);
  margin-bottom: 1rem;
}

.uef-home-block__content {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.uef-home-block__content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.uef-home-block__content li {
  margin-bottom: 0.5rem;
}

.uef-home-block__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

/* ===== Buttons - като federalists.eu ===== */
.uef-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  transition: all var(--uef-transition);
  cursor: pointer;
  border: var(--uef-border-thick);
}

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

.uef-btn--green:hover {
  background: var(--uef-green-dark);
  border-color: var(--uef-green-dark);
  color: var(--uef-white);
}

.uef-btn--gray {
  background: #f0f0f0;
  color: var(--uef-black);
  border-color: var(--uef-black);
}

.uef-btn--gray:hover {
  background: var(--uef-black);
  color: var(--uef-white);
}

/* ===== Learn More Overlay ===== */
.uef-overlay {
  padding: var(--uef-space-56);
  border: var(--uef-border-thick);
}

.uef-overlay__title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.uef-overlay__link {
  display: block;
  padding: 0.5rem 0;
  font-size: 1.1rem;
  border-bottom: var(--uef-border-thick);
}

.uef-overlay__link:last-child {
  border-bottom: none;
}

/* ===== Home Dynamic - Publications, News, Events ===== */
.uef-home-dynamic {
  padding: var(--uef-space-80) var(--uef-space-56);
  background: var(--uef-gray-bg);
}

.uef-home-dynamic__content {
  background: var(--uef-white);
  border: var(--uef-border-thick);
  padding: 2rem;
  margin-top: 1rem;
}

.uef-home-link-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.uef-home-link-header__title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uef-home-link-header__title img,
.uef-section-icon,
.uef-section-e {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: var(--uef-green);
  color: var(--uef-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.uef-home-link-header__title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.uef-home-link-header__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--uef-black);
  font-weight: 500;
}

.uef-home-link-header__link:hover {
  color: var(--uef-green);
  text-decoration: underline;
}

.uef-home-link-header__link svg {
  width: 24px;
  height: 24px;
  fill: var(--uef-green);
}

/* Publications - list format */
.uef-publications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uef-publications-list__item {
  padding: 1rem 0;
  border-bottom: var(--uef-border-thick);
}

.uef-publications-list__item:last-child {
  border-bottom: none;
}

.uef-publications-list__item__category {
  font-size: 0.875rem;
  color: var(--uef-gray);
  margin-bottom: 0.25rem;
}

.uef-publications-list__item__title {
  font-weight: 600;
  color: var(--uef-black);
}

.uef-publications-list__item__title:hover {
  color: var(--uef-green);
}

/* News/Events grid */
.uef-dynamic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.uef-post-card {
  border: var(--uef-border-thick);
}

.uef-post-card__link {
  display: block;
  overflow: hidden;
}

.uef-post-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform var(--uef-transition);
}

.uef-post-card__link:hover .uef-post-card__img {
  transform: scale(1.05);
}

.uef-post-card__title {
  padding: 1rem;
}

.uef-post-card__title h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.uef-post-card__title h3 a {
  color: var(--uef-black);
}

.uef-post-card__title h3 a:hover {
  color: var(--uef-green);
}

.uef-post-card__category {
  font-size: 0.7rem;
  color: var(--uef-gray);
  margin-bottom: 0.25rem;
}

.uef-post-card__meta {
  font-size: 0.75rem;
  color: var(--uef-gray);
}

.uef-post-card--event .uef-post-card__link {
  position: relative;
}

.uef-post-card__report {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--uef-black);
  color: var(--uef-white);
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

/* ===== Newsletter ===== */
.uef-newsletter-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: var(--uef-space-80) var(--uef-space-56);
  background: var(--uef-green-dark);
  text-decoration: none;
  color: var(--uef-white);
  transition: background var(--uef-transition);
}

.uef-newsletter-trigger:hover {
  background: var(--uef-green);
  color: var(--uef-white);
}

.uef-newsletter-trigger img {
  max-width: 120px;
  height: auto;
}

.uef-newsletter-text {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== Companies ===== */
.uef-companies {
  padding: var(--uef-space-80) var(--uef-space-56);
  background: var(--uef-white);
  border: var(--uef-border-thick);
  margin: 0 var(--uef-space-56) var(--uef-space-80);
}

.uef-companies__header {
  border-bottom: var(--uef-border-thick);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.uef-companies__header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.uef-companies__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

.uef-companies__item {
  border: var(--uef-border-thick);
  border-left: none;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uef-companies__item:first-child {
  border-left: var(--uef-border-thick);
}

.uef-companies__item img {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
}

/* ===== Footer - като federalists.eu ===== */
.uef-footer {
  display: grid;
  grid-template-columns: 1fr 2fr auto 1fr;
  gap: 2rem;
  padding: var(--uef-space-80) var(--uef-space-56);
  border-top: var(--uef-border-thick);
  align-items: start;
}

.uef-footer__logo img {
  max-width: 300px;
}

.uef-footer__logo-80 {
  width: 120px;
  height: 120px;
  background: var(--uef-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.uef-footer__logo-80__years {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--uef-white);
  line-height: 1;
}

.uef-footer__logo-80__num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--uef-white);
  line-height: 1;
}

.uef-footer__central {
  display: flex;
  flex-direction: column;
}

.uef-footer__address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 0.5rem;
}

.uef-footer__address,
.uef-footer__contacts {
  font-family: var(--uef-font);
  font-size: 1rem;
  line-height: 1.6;
}

.uef-footer__central b {
  font-size: 1.1rem;
}

.uef-footer__central a {
  color: var(--uef-black);
}

.uef-footer__central a:hover {
  color: var(--uef-green);
}

.uef-footer-link {
  color: var(--uef-green) !important;
}

.uef-footer-link:hover {
  color: var(--uef-green-dark) !important;
}

.uef-footer__socials {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
}

.uef-footer__socials .uef-socials-label {
  margin-bottom: 0;
}

.uef-footer__socials a {
  color: var(--uef-black);
  display: flex;
}

.uef-footer__socials a:hover {
  color: var(--uef-green);
}

.uef-footer__right {
  text-align: right;
}

.uef-footer__right img {
  margin-left: auto;
  max-width: 250px;
}

.uef-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: var(--uef-border-thick);
  margin-top: 1rem;
  cursor: pointer;
  transition: all var(--uef-transition);
}

.uef-back-to-top:hover {
  background: var(--uef-black);
  color: var(--uef-white);
}

.uef-footer-eu-logo {
  max-width: 250px;
  margin-bottom: 1rem;
}

.uef-footer-credits-inline {
  font-size: 0.9rem;
  color: var(--uef-black);
  margin-top: 0.5rem;
}

/* ===== Submenu / Mega menu ===== */
.uef-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--uef-white);
  padding: 2rem var(--uef-space-56);
  z-index: 999;
  margin-top: -1px;
  max-height: 95vh;
  overflow-y: auto;
}

/* Desktop и планшет: dropdown под хедъра/бутона, пълна ширина и височина, като federalists.eu */
@media (min-width: 769px) {
  .uef-submenu {
    position: fixed;
    top: var(--uef-header-height);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80vh;
    margin: 0;
    padding: 2.5rem var(--uef-space-56);
    border: none;
    border-top: var(--uef-border-thick);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

}

.uef-submenu.active {
  display: block;
}

/* Заглавна лента на менюто – скрита на desktop, видима на мобилни */
.uef-submenu__header {
  display: none;
}

/* Само мобилни: пълноекранно меню */
@media (max-width: 768px) {
  .uef-submenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border: none;
    padding: 0;
    max-height: none;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  .uef-submenu.active {
    display: flex;
  }

  .uef-submenu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: var(--uef-border-thick);
    background: var(--uef-white);
    flex-shrink: 0;
  }

  .uef-submenu__header-title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
  }

  .uef-submenu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .uef-submenu__close:hover {
    color: var(--uef-green);
  }

  .uef-submenu__body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
  }

}

/* ===== Нова навигация – структура (дизайн по-късно) ===== */
.uef-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uef-nav__item {
  margin: 0;
  padding: 0;
  border-bottom: var(--uef-border-thick);
}

.uef-nav__item:last-child {
  border-bottom: none;
}

.uef-nav__title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 1rem 0 0.5rem;
  color: var(--uef-black);
}

.uef-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem 0;
}

.uef-nav__submenu li {
  margin: 0;
  padding: 0;
}

.uef-nav__link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--uef-black);
  text-decoration: none;
  transition: color var(--uef-transition);
}

.uef-nav__link:hover {
  color: var(--uef-green);
}

.uef-nav__item--no-sub .uef-nav__link--main {
  padding: 1rem 0;
  font-weight: 700;
}

/* ===== Page Content ===== */
.uef-content {
  padding: var(--uef-space-80) var(--uef-space-56);
}

.uef-content h1, .uef-content h2, .uef-content h3 {
  color: var(--uef-black);
  font-weight: 700;
}

.uef-content h1 { font-size: 2rem; }
.uef-content h2 { font-size: 1.5rem; }
.uef-content h3 { font-size: 1.25rem; }

/* ===== Cards (archive, index) ===== */
.uef-card {
  border: var(--uef-border-thick);
}

.uef-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.uef-card-body {
  padding: 1rem;
}

.uef-card-date {
  font-size: 0.875rem;
  color: var(--uef-gray);
  margin-bottom: 0.5rem;
}

.uef-card-title a:hover {
  color: var(--uef-green);
}

/* ===== Pagination ===== */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.nav-links a, .nav-links span {
  padding: 0.5rem 1rem;
  border: var(--uef-border-thick);
}

.nav-links .current {
  background: var(--uef-green);
  color: var(--uef-white);
  border-color: var(--uef-green);
}

/* ===== Search ===== */
.uef-search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.uef-search-form .search-field {
  padding: 0.75rem 1rem;
  border: var(--uef-border-thick);
  min-width: 200px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1120px) {
  .uef-home-block {
    grid-template-columns: 1fr;
  }

  .uef-home-block__row:nth-child(even) .uef-home-block__half--img,
  .uef-home-block__row:nth-child(even) .uef-home-block__half--content {
    order: unset;
  }

  .uef-dynamic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .uef-companies__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .uef-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .uef-container,
  .uef-hero-overlay,
  .uef-home-block__half {
    padding: 1.5rem;
  }

  .uef-header {
    padding: 0;
  }

  .uef-header__half {
    padding: 0.5rem 1rem;
  }

  /* Менюто остава видимо; скриваме само търсене и социални иконки */
  .uef-header__half--right .uef-header-search,
  .uef-header__half--right .uef-header__socials {
    display: none;
  }

  .uef-hero {
    min-height: 300px;
  }

  .uef-home-block__half--img .uef-wave-svg {
    min-height: 200px;
  }

  .uef-dynamic-grid {
    grid-template-columns: 1fr;
  }

  .uef-companies__grid {
    grid-template-columns: 1fr;
  }

  .uef-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .uef-footer__logo img {
    margin: 0 auto;
  }

  .uef-footer__right {
    text-align: center;
  }

  .uef-footer__right img {
    margin: 0 auto;
  }

  .uef-footer__address-row {
    justify-content: center;
  }

  .uef-footer__socials {
    justify-content: center;
  }

  .uef-home-link-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .uef-hero-overlay {
    padding: 1rem;
  }

  .uef-header__half {
    padding: 0.5rem 0.75rem;
  }

  .uef-header__title {
    font-size: 0.8rem;
  }
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
