/**
 * EFP Journal - Complete Modern Redesign
 * Primary: #d94d38 | Background: images/bg.jpg
 * Loads LAST to override all conflicts
 */

:root {
  --efp-red: #d94d38;
  --efp-red-dark: #b83d2b;
  --efp-red-soft: rgba(217, 77, 56, 0.15);
  --efp-bg: url(../images/bg.jpg);
  --efp-radius: 12px;
  --efp-radius-lg: 20px;
  --efp-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --efp-shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --efp-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== KILL CONFLICTS ========== */
.btn-effect::after,
.btn-effect:hover::after {
  display: none !important;
  opacity: 0 !important;
  height: 0 !important;
}

.send_article_modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

/* ========== PAGINATION (GridView / Bootstrap 3) ========== */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  background-color: var(--efp-red) !important;
  color: #fff !important;
  border-color: var(--efp-red-dark) !important;
  cursor: default;
}

.pagination > .active > a .icon,
.pagination > .active > span .icon {
  color: #fff !important;
}

.pagination > li:not(.disabled):not(.active) > a:hover,
.pagination > li:not(.disabled):not(.active) > span:hover,
.pagination > li:not(.disabled):not(.active) > a:focus,
.pagination > li:not(.disabled):not(.active) > span:focus,
.pagination > li:first-child:not(.disabled):not(.active) > a:hover,
.pagination > li:first-child:not(.disabled):not(.active) > a:focus,
.pagination > li:last-child:not(.disabled):not(.active) > a:hover,
.pagination > li:last-child:not(.disabled):not(.active) > a:focus {
  background-color: var(--efp-red) !important;
  color: #fff !important;
  border-color: var(--efp-red-dark) !important;
}

.pagination > li:not(.disabled):not(.active) > a:hover .icon,
.pagination > li:not(.disabled):not(.active) > a:focus .icon {
  color: #fff !important;
}

/* ========== ПОДАТИ СТАТТЮ MODAL ========== */
.efp-write-modal__header {
  position: relative;
  border: none;
  padding: 12px 16px 12px 20px;
  min-height: auto;
  flex-shrink: 0;
  z-index: 10;
}

.efp-write-modal__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #999;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  border-radius: 50%;
  z-index: 11;
  pointer-events: auto;
}

.efp-write-modal__close:hover {
  color: var(--efp-red);
  background: var(--efp-red-soft);
}

.efp-write-modal__close:focus {
  outline: none;
}

/* Mobile: scrollable modal */
@media (max-width: 767px) {
  .write-modal .modal-dialog {
    margin: 16px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
  }

  .write-modal .modal-content {
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .write-modal .modal-content .efp-write-modal__header {
    flex-shrink: 0;
  }

  .efp-write-modal__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    padding: 16px;
    position: relative;
    z-index: 1;
  }
}

/* ========== BODY & LAYOUT ========== */
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: var(--efp-bg) repeat fixed !important;
  min-height: 100vh;
}

.layout-theme {
  background: #fff !important;
}

/* Hide title-page__media - removed per design */
.title-page__media {
  display: none !important;
}

.efp-layout [data-canvas="container"] {
  background: #faf9f8 !important;
}

/* ========== NEW HEADER ========== */
.efp-header {
  background: var(--efp-bg) repeat !important;
  position: relative;
  overflow: visible;
  z-index: 200;
}

.efp-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.04) 50%, transparent 100%);
  pointer-events: none;
}

.efp-header__main {
  padding: 20px 0;
  position: relative;
  z-index: 100;
}

.efp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.efp-header__block {
  display: flex;
  align-items: center;
}

.efp-header__block--logo {
  flex-shrink: 0;
}

/* Центр: меню (включно з пошуком біля CTA), мова справа (до ISSN) */
.efp-header__block--center {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: nowrap;
  width: 100%;
  padding-left: 20px;
}

/* Nav не flex:1 — інакше пункти «плавають» у широкому порожньому полі */
.efp-header__block--center .efp-nav {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  justify-content: center;
}

.efp-header__block--center .efp-nav .efp-nav__list.nav.navbar-nav {
  width: max-content !important;
  max-width: 100%;
}

.efp-header__tools {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

/* Ghost CTA — «Подати статтю»: у наві ті самі відступи/рядок, що й пункти меню */
.efp-header__submit-btn {
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0;
  padding: 8px 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: normal !important;
  letter-spacing: 0.04em !important;
  text-transform: none;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: var(--efp-radius) !important;
  box-shadow: none !important;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.efp-header__submit-btn:hover,
.efp-header__submit-btn:focus {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  border-color: #fff !important;
  outline: none;
}

.efp-nav__list > li .efp-header__submit-btn,
.efp-nav__list > li .efp-header__search-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.efp-header__search-btn {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: normal !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: var(--efp-radius) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.efp-header__search-btn:hover,
.efp-header__search-btn:focus,
.efp-header__search-btn.search-open:hover,
.efp-header__search-btn.search-open:focus {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  border-color: #fff !important;
  outline: none;
}

/* theme.css .search-open */
.efp-header__search-btn.search-open {
  padding: 11px 11px !important;
  color: #fff !important;
}

.efp-header__search-btn .fa {
  display: block;
  line-height: 1;
  font-size: inherit;
}

.efp-hidden-menu__submit-item {
  list-style: none;
  margin: 12px 0 8px;
  padding: 0 12px;
}

.efp-hidden-menu__submit-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--efp-radius);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Mobile drawer: same tone as desktop header (jeans texture) */
.efp-hidden-menu__submit-btn--jeans {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 16px 18px !important;
  color: #fff !important;
  background: var(--efp-bg) repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.efp-hidden-menu__submit-btn--jeans:hover,
.efp-hidden-menu__submit-btn--jeans:focus {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  filter: brightness(1.05);
  outline: none;
}

@media (min-width: 992px) {
  .efp-nav__list {
    flex-wrap: nowrap !important;
  }
}

@media (min-width: 992px) and (max-width: 1280px) {
  .efp-nav__list > li > a {
    padding: 7px 10px !important;
    font-size: 13px !important;
  }

  .efp-nav__current-issue {
    padding: 7px 10px !important;
    font-size: 13px !important;
  }

  .efp-header__submit-btn {
    padding: 7px 10px !important;
    font-size: 13px !important;
  }

  .efp-header__search-btn {
    padding: 7px 10px !important;
    font-size: 13px !important;
  }
}

.efp-header__block--issn {
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.95) !important;
  line-height: 1.35 !important;
  flex-shrink: 0;
}

/* Залогінений користувач: замість ISSN — компактні дії справа */
.efp-header__block--issn.efp-header__block--user-rail {
  font-size: inherit !important;
  line-height: normal !important;
  gap: 12px;
}

.efp-header__user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.efp-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  border-radius: var(--efp-radius);
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.efp-header__action--admin {
  color: #fff8ed !important;
  background: linear-gradient(145deg, rgba(255, 193, 120, 0.35) 0%, rgba(217, 77, 56, 0.45) 100%);
  border: 1px solid rgba(255, 220, 180, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  min-width: 40px;
  min-height: 36px;
  padding: 8px 11px !important;
}

.efp-header__action--admin .fa {
  font-size: 16px;
  line-height: 1;
  display: block;
}

.efp-header__action--admin:hover,
.efp-header__action--admin:focus {
  color: #fff !important;
  border-color: rgba(255, 235, 210, 0.85);
  background: linear-gradient(145deg, rgba(255, 210, 150, 0.5) 0%, rgba(230, 90, 70, 0.55) 100%);
  outline: none;
}

.efp-header__action--logout {
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.42);
  min-width: 40px;
  min-height: 36px;
  padding: 8px 11px !important;
}

.efp-header__action--logout .fa {
  font-size: 16px;
  line-height: 1;
  display: block;
}

.efp-header__action--logout:hover,
.efp-header__action--logout:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.65);
  outline: none;
}

@media (min-width: 992px) and (max-width: 1280px) {
  .efp-header__action {
    padding: 7px 11px !important;
    font-size: 12px !important;
  }
}

.efp-header__current-issue-mobile {
  display: none !important;
}

.efp-logo {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 14px;
}

.efp-logo:hover,
.efp-logo:focus,
.efp-logo:focus-visible,
.efp-logo:active {
  text-decoration: none !important;
}

.efp-logo__img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.efp-logo__text {
  display: flex;
  flex-direction: column;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  line-height: 1.2;
  text-align: start;
  transition: text-shadow 0.35s var(--efp-ease);
}

.efp-logo__text span {
  display: block;
  text-transform: uppercase;
}

.efp-logo:focus-visible .efp-logo__text {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.28),
    0 0 6px rgba(217, 77, 56, 0.55),
    0 0 14px rgba(217, 77, 56, 0.28);
}

@media (hover: hover) {
  .efp-logo:hover .efp-logo__text {
    text-shadow:
      0 2px 12px rgba(0, 0, 0, 0.28),
      0 0 6px rgba(217, 77, 56, 0.55),
      0 0 14px rgba(217, 77, 56, 0.28);
  }
}

/* Nav in center block */
.efp-nav {
  display: flex;
  margin: 0 -12px;
}

.efp-header__lang {
  flex-shrink: 0;
}

.efp-lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

.efp-lang-current {
  font-weight: 700 !important;
  color: #fff !important;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}

.efp-lang-link {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.efp-lang-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
}

/* Orange stripe - bottom of header */
.efp-header__bottom-bar {
  height: 6px;
  background: var(--efp-red) !important;
  position: relative;
  z-index: 1;
}

.efp-header__mobile-title {
  font-size: 1rem !important;
  color: #fff !important;
}

/* ========== NEW NAV (in header, no orange bar - stripe is top/bottom) ========== */
.efp-nav {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.efp-nav__list {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.efp-nav__list > li {
  float: none !important;
  display: inline-block !important;
}

.efp-nav__list > li.dropdown {
  position: relative;
}

.efp-nav__list > li > a {
  display: block !important;
  padding: 8px 12px !important;
  color: rgba(255,255,255,0.95) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  transition: color 0.3s var(--efp-ease), background 0.3s var(--efp-ease) !important;
  border: none !important;
  border-radius: 8px;
}

.efp-nav__list > li > a:hover,
.efp-nav__list > li > a:focus {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

.efp-nav__list .dropdown-menu {
  z-index: 1100 !important;
  background: #fff !important;
  border: 1px solid #e8e6e3 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px !important;
  margin-top: 4px !important;
}

.efp-nav__list .dropdown-menu li a {
  padding: 8px 14px !important;
  color: #333 !important;
  border-radius: 8px !important;
  transition: all 0.25s var(--efp-ease) !important;
}

.efp-nav__list .dropdown-menu li a:hover {
  background: var(--efp-red-soft) !important;
  color: var(--efp-red) !important;
}

/* Поточний випуск (pill) + «Подати статтю» (ghost .efp-header__submit-btn) */
.efp-nav__current-issue-wrap {
  margin-left: 12px;
}

.efp-nav__submit-wrap,
.efp-nav__search-wrap {
  margin-left: 12px;
}

.efp-nav__submit-article-btn {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

/* Та сама «коробка», що у пунктів меню (як при hover): padding + прозора рамка 1px + flex */
.efp-nav__list > li > a.efp-nav__current-issue {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  border: 1px solid transparent !important;
}

.efp-nav__current-issue {
  background: var(--efp-red) !important;
  color: #fff !important;
  padding: 8px 12px !important;
  border-radius: var(--efp-radius) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: normal !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 2px 12px rgba(217, 77, 56, 0.4) !important;
}

.efp-nav__list > li > a.efp-nav__current-issue:hover,
.efp-nav__list > li > a.efp-nav__current-issue:focus {
  background: #fff !important;
  color: var(--efp-red) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 16px rgba(217, 77, 56, 0.5) !important;
}

.efp-header__block--mobile {
  display: none;
}

.efp-header__lang--mobile {
  display: none;
}

.efp-header__menu-btn {
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: #fff;
  cursor: pointer;
}

.efp-header__menu-btn .toggle-menu-button-icon span {
  background: #fff !important;
}

@media (max-width: 991px) {
  .mobile-hidden {
    display: none !important;
  }
  .efp-header__inner {
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .efp-header__block--logo {
    order: 1;
    flex-shrink: 0;
  }
  .efp-header__block--issn {
    order: 2;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .efp-header__block--user-rail .efp-header__user-actions {
    justify-content: center;
    width: 100%;
  }
  .efp-header__issn-desktop {
    display: none !important;
  }
  .efp-header__current-issue-mobile {
    display: block !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    padding: 8px 16px;
    background: var(--efp-red);
    border-radius: var(--efp-radius);
    transition: background 0.2s, color 0.2s;
  }
  .efp-header__current-issue-mobile:hover {
    background: #fff !important;
    color: var(--efp-red) !important;
  }
  .efp-header__block--mobile {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .efp-header__lang--mobile {
    display: flex !important;
  }
  .efp-header__lang--mobile .efp-lang-switcher {
    color: #fff;
  }
  .efp-header__lang--mobile .efp-lang-link,
  .efp-header__lang--mobile .efp-lang-current {
    color: rgba(255,255,255,0.9) !important;
  }
  .efp-header__lang--mobile .efp-lang-current {
    color: #fff !important;
  }
  .efp-header__block--center {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .efp-header__block--mobile {
    display: none !important;
  }
  .efp-header__lang--mobile {
    display: none !important;
  }
}

/* Body scroll lock when mobile slidebar is open (JS adds .efp-mobile-menu-open on html/body) */
html.efp-mobile-menu-open {
  overflow: hidden !important;
  height: 100%;
  overscroll-behavior: none;
  position: relative;
}
body.efp-mobile-menu-open {
  overflow: hidden !important;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
/* Main canvas (slidebars) must not capture scroll behind the overlay */
body.efp-mobile-menu-open [data-canvas="container"],
body.efp-mobile-menu-open .layout-theme {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
/* Off-canvas menu panel keeps vertical scrolling */
body.efp-mobile-menu-open .efp-hidden-menu {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Hidden menu (slide-out) - new UI - only on mobile */
@media (max-width: 991px) {
.efp-hidden-menu,
.hidden-menu.efp-hidden-menu,
[data-off-canvas="mobile-slidebar left overlay"].efp-hidden-menu,
body .hidden-menu.efp-hidden-menu {
  background: rgba(217, 77, 56, 0.6) !important;
  color: #fff !important;
  padding: 24px 20px 32px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.hidden-menu.efp-hidden-menu {
  display: none !important;
}

.hidden-menu.efp-hidden-menu.open {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  min-height: 0;
  /* Висота не більше екрана + внутрішній скрол (інакше при overflow:hidden на body меню не прокручується) */
  max-height: 100vh;
  max-height: 100dvh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.efp-hidden-menu__top-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 0;
  position: relative;
  z-index: 100;
}

.efp-hidden-menu__issn--header {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  padding-top: 2px;
  text-align: left;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.efp-hidden-menu__issn--header span {
  display: block;
  width: 100%;
  white-space: normal;
}

.efp-hidden-menu__user-rail {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.efp-hidden-menu__user-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border-radius: var(--efp-radius);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.efp-hidden-menu__user-action--admin {
  color: #fff8ed !important;
  background: linear-gradient(145deg, rgba(255, 193, 120, 0.35) 0%, rgba(217, 77, 56, 0.45) 100%);
  border: 1px solid rgba(255, 220, 180, 0.5);
  min-width: 40px;
  min-height: 40px;
  padding: 10px !important;
}

.efp-hidden-menu__user-action--admin .fa {
  font-size: 17px;
  line-height: 1;
  display: block;
}

.efp-hidden-menu__user-action--admin:hover,
.efp-hidden-menu__user-action--admin:focus {
  color: #fff !important;
  border-color: rgba(255, 235, 210, 0.85);
  outline: none;
}

.efp-hidden-menu__user-action--logout {
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.38);
  min-width: 40px;
  min-height: 40px;
  padding: 10px !important;
}

.efp-hidden-menu__user-action--logout .fa {
  font-size: 17px;
  line-height: 1;
  display: block;
}

.efp-hidden-menu__user-action--logout:hover,
.efp-hidden-menu__user-action--logout:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.efp-hidden-menu__search-form {
  margin-top: auto;
  padding-top: 24px;
}

.efp-hidden-menu__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2.25rem;
  cursor: pointer;
  opacity: 0.95;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.efp-hidden-menu__close i {
  font-weight: 200;
  font-size: 2.25rem;
}

.efp-hidden-menu__close:hover {
  opacity: 1;
}

.efp-hidden-menu__search-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  background: transparent;
}

.efp-hidden-menu__search-form .form-control {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 36px 12px 0 !important;
  font-size: 15px !important;
  width: 100% !important;
  color: #fff !important;
}

.efp-hidden-menu__search-form .form-control::placeholder {
  color: rgba(255,255,255,0.6);
}

.efp-hidden-menu__search-form .form-control:focus {
  box-shadow: none !important;
  outline: none;
}

.efp-hidden-menu__search-form .efp-hidden-menu__search-wrap:focus-within {
  border-bottom-color: rgba(255,255,255,0.9);
}

.efp-hidden-menu__search-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.efp-hidden-menu__search-icon:hover,
.efp-hidden-menu__search-icon:active,
.efp-hidden-menu__search-icon:focus {
  color: #fff;
  transform: translateY(-50%);
  outline: none;
}

.efp-hidden-menu__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.efp-hidden-menu__nav > li {
  margin: 0;
  padding: 0;
  border: none;
}

.efp-hidden-menu__nav > li > a {
  display: block;
  padding: 16px 0 !important;
  color: rgba(255,255,255,0.95) !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.efp-hidden-menu__nav > li > a:hover {
  color: #fff !important;
}

.efp-hidden-menu__nav .dropdown-toggle .caret {
  margin-left: 6px;
  border-top-color: rgba(255,255,255,0.9);
}

.efp-hidden-menu__nav .dropdown-menu {
  display: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 0 12px 16px !important;
  margin: 6px 0 0 16px !important;
  position: static !important;
  float: none !important;
  box-shadow: none !important;
}

/* Always show "Про журнал" dropdown; also when user toggles .open */
.efp-hidden-menu__nav li.efp-dropdown--always-open .dropdown-menu,
.efp-hidden-menu__nav .dropdown.open .dropdown-menu {
  display: block !important;
}

.efp-hidden-menu__nav .dropdown-menu li a {
  padding: 12px 0 !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6 !important;
  margin-left: 16px !important;
}

.efp-hidden-menu__nav .dropdown-menu li a:hover {
  color: #fff !important;
}
}

/* Desktop: пошук розгортається поверх меню (jeans strip + поле + червона кнопка + ✕) */
@media (min-width: 992px) {
  .efp-header-search-inline {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scaleX(0.96);
    transform-origin: center;
    transition: opacity 0.28s var(--efp-ease), transform 0.28s var(--efp-ease), visibility 0s linear 0.28s;
  }

  .efp-header-search-inline--open {
    z-index: 30;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleX(1);
    transition: opacity 0.28s var(--efp-ease), transform 0.28s var(--efp-ease), visibility 0s linear 0s;
  }

  .efp-header__block--center.efp-header-search-expanded .efp-nav,
  .efp-header__block--center.efp-header-search-expanded .efp-header__tools {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .efp-header-search-inline__form {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-radius: var(--efp-radius);
    background: var(--efp-bg) repeat;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
  }

  .efp-header-search-inline__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.97);
    color: #222;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  }

  .efp-header-search-inline__input::placeholder {
    color: rgba(0, 0, 0, 0.45);
  }

  .efp-header-search-inline__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  }

  .efp-header-search-inline__submit {
    flex-shrink: 0;
    padding: 2px 28px !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff !important;
    background: var(--efp-red) !important;
    border: 1px solid var(--efp-red-dark) !important;
    border-radius: var(--efp-radius);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .efp-header-search-inline__submit:hover,
  .efp-header-search-inline__submit:focus {
    background: var(--efp-red-dark) !important;
    color: #fff !important;
    outline: none;
  }

  .efp-header-search-inline__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: var(--efp-radius);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .efp-header-search-inline__close:hover,
  .efp-header-search-inline__close:focus {
    background: rgba(255, 255, 255, 0.24) !important;
    outline: none;
  }
}

@media (max-width: 991px) {
  .efp-header-search-inline {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .efp-nav__list {
    flex-direction: column;
  }
  .efp-nav__list > li > a {
    padding: 10px 16px;
  }
  .efp-header__inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left;
  }
  .efp-header__block {
    justify-content: flex-start;
  }
  .efp-header__block--logo {
    justify-content: flex-start;
  }
  .efp-header__block--issn {
    justify-content: center;
    align-items: center;
  }
  .efp-header__block--mobile {
    justify-content: flex-end;
  }
  .efp-header__block--center {
    flex-direction: column;
    width: 100%;
  }
  .efp-logo__text {
    font-size: 1.1rem;
  }
}

/* ========== NEW FOOTER ========== */
.efp-footer {
  background: linear-gradient(135deg, var(--efp-red) 0%, var(--efp-red-dark) 100%) !important;
  color: #fff;
  margin-top: 0;
}

.efp-footer__inner {
  padding: 28px 0 20px;
}

.efp-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px 48px;
  align-items: start;
}

.efp-footer__col--left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.efp-footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.efp-footer__logo-text {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  text-align: start;
  transition: text-shadow 0.35s var(--efp-ease);
}

.efp-footer__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.efp-footer__logo-text span {
  display: block;
  text-transform: uppercase;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.2;
}

.efp-footer__logo:focus-visible .efp-footer__logo-text {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.28),
    0 0 6px rgba(217, 77, 56, 0.55),
    0 0 14px rgba(217, 77, 56, 0.28);
}

@media (hover: hover) {
  .efp-footer__logo:hover .efp-footer__logo-text {
    text-shadow:
      0 2px 12px rgba(0, 0, 0, 0.28),
      0 0 6px rgba(217, 77, 56, 0.55),
      0 0 14px rgba(217, 77, 56, 0.28);
  }
}

.efp-footer__address {
  align-self: flex-start;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.efp-footer__address span {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255,255,255,0.95) !important;
}

.efp-footer__address a {
  color: rgba(255,255,255,0.95) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.efp-footer__address a:hover {
  color: #fff !important;
}

.efp-footer__col--menu .efp-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 24px;
}

.efp-footer__col--menu .efp-footer__nav a {
  color: rgba(255,255,255,0.95) !important;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

@media (hover: hover) {
  .efp-footer__col--menu .efp-footer__nav a:hover {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.efp-footer__title {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  margin: 0 0 8px !important;
  color: #fff !important;
}

.efp-footer__col--right {
  text-align: right;
}

.efp-footer__col--right .footer-form label,
.efp-footer__col--right .footer-form .form-group label,
.efp-footer .footer-form label,
.efp-footer .footer-form .checkbox label {
  color: rgba(255,255,255,0.9) !important;
}

.efp-footer .footer-form a {
  color: rgba(255,255,255,0.95) !important;
}

.efp-footer .footer-form a:hover {
  color: #fff !important;
}

.efp-footer .footer-form .help-block,
.efp-footer .footer-form .help-block-error,
.efp-footer .footer-form .has-error .help-block {
  color: rgba(255,255,255,0.95) !important;
}

.efp-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.efp-footer__copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.95) !important;
}

.efp-footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.9) !important;
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.efp-footer__privacy {
  color: rgba(255,255,255,0.95) !important;
  text-decoration: underline !important;
  font-size: 13px;
}

.efp-footer__privacy:hover {
  color: #fff !important;
}

.efp-footer .footer-form {
  margin-top: 8px;
}

.efp-footer .footer-form .form-group {
  width: 100%;
  max-width: 280px;
}

.efp-footer .footer-form .footer-form-container {
  width: 100%;
}

.efp-footer .footer-form .form-control {
  background: rgba(255,255,255,0.95);
  border-radius: 4px;
  border: none;
  width: 100% !important;
  padding: 6px 40px 6px 12px !important;
  font-size: 13px !important;
}

.efp-footer .footer-form .form-control:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

.efp-footer .footer-form .form-group label {
  display: block;
  max-width: 280px;
  margin-top: 6px;
}

.efp-footer .footer-form .form-control-feedback::before {
  display: none !important;
  content: none !important;
}

.efp-footer .footer-form .form-control-feedback,
.efp-footer .footer-form button[type="submit"] {
  background: var(--efp-red) !important;
  color: #fff !important;
  border: none !important;
  transform: none !important;
  transition: background 0.2s !important;
}

.efp-footer .footer-form .form-control-feedback .icon,
.efp-footer .footer-form .form-control-feedback i,
.efp-footer .footer-form .form-control-feedback .fa,
.efp-footer .footer-form button.form-control-feedback .icon,
.efp-footer .footer-form button.form-control-feedback i,
.efp-footer .footer-form button.form-control-feedback .fa {
  color: #fff !important;
  opacity: 1 !important;
}

.efp-footer .footer-form .form-control-feedback:hover,
.efp-footer .footer-form button[type="submit"]:hover {
  background: var(--efp-red-dark) !important;
  transform: none !important;
}

@media (max-width: 991px) {
  .efp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .efp-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center !important;
  }
  .efp-footer__col--left {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
  }
  .efp-footer__col--left .efp-footer__address {
    text-align: left;
    align-self: flex-start;
  }
  .efp-footer__logo,
  .efp-footer__logo-text {
    text-align: start !important;
  }
  .efp-footer__col--menu .efp-footer__nav {
    align-items: center;
  }
  .efp-footer__col--right {
    text-align: center !important;
  }
  .efp-footer__col--right .footer-form {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .efp-footer__col--right .footer-form .form-group,
  .efp-footer__col--right .footer-form .form-group label {
    max-width: none;
  }
  .efp-footer__col--menu {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
  }
  .efp-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== MAIN CONTENT - swap sidebar/main order ========== */
/* Main content left, sidebar right (swap from default sidebar|main) */
.row.efp-content-row,
.row:has(.col-md-3.seide) {
  display: flex;
  flex-wrap: wrap;
}
.row.efp-content-row .col-md-9,
.row:has(.col-md-3.seide) .col-md-9 {
  order: 1;
}
.row.efp-content-row .col-md-3.seide,
.row:has(.col-md-3.seide) .col-md-3.seide {
  order: 2;
}

.efp-main {
  padding-bottom: 32px !important;
}

.main-content {
  padding: 40px 0 60px !important;
}

/* ========== PAGE TITLES - normal h1 in content, hide on home ========== */
body.page-home .section-title__inner {
  display: none !important;
}

/* Match efp-editorial__header from editorial-team-index */
.section-title__inner {
  text-align: center !important;
  margin: 0 !important;
  padding: 48px 0 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
  top: auto !important;
}

/* Page titles - match editorial-team-index h1 style */
.efp-page-title,
.section-title__inner .ui-title-page,
.section-title__inner h1,
.efp-search__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  color: #222 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  letter-spacing: 0.02em !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 1.3 !important;
}

/* ========== BUTTONS - Smooth, no conflicts ========== */
.btn,
.btn-primary,
.btn-info,
.btn-success,
.ui-form__btn,
button[type="submit"] {
  background: var(--efp-red) !important;
  border: none !important;
  border-radius: var(--efp-radius) !important;
  padding: 12px 28px;
  font-weight: 600 !important;
  color: #fff !important;
  transition: background-color 0.35s var(--efp-ease), box-shadow 0.35s var(--efp-ease) !important;
  box-shadow: 0 4px 16px rgba(217, 77, 56, 0.3);
}

.btn:hover,
.btn-primary:hover,
.btn-info:hover,
.ui-form__btn:hover,
button[type="submit"]:hover {
  background: var(--efp-red-dark) !important;
  color: #fff !important;
  transform: none;
  box-shadow: 0 4px 20px rgba(217, 77, 56, 0.35);
}

.btn-info,
.ui-form__btn.btn-info {
  background: var(--efp-red) !important;
}

.btn-info:hover,
.ui-form__btn.btn-info:hover {
  background: var(--efp-red-dark) !important;
}

/* ========== CARDS & POSTS - no box shadows ========== */
.post-1,
.post {
  background: #fff !important;
  border-radius: 0 !important;
  padding: 40px !important;
  margin-bottom: 28px !important;
  box-shadow: none !important;
  border: none !important;
}

/* ========== SIDEBAR - no box shadows ========== */
.sidebar-2 .widget,
.widget {
  background: #fff !important;
  border-radius: 0 !important;
  padding: 28px !important;
  margin-bottom: 24px !important;
  box-shadow: none !important;
  border: none !important;
}

/* ========== FORMS ========== */
.form-control {
  border-radius: var(--efp-radius) !important;
  border: 1px solid #e0ddd9 !important;
  padding: 12px 18px !important;
  transition: all 0.3s var(--efp-ease) !important;
}

.form-control:focus {
  border-color: var(--efp-red) !important;
  box-shadow: 0 0 0 3px var(--efp-red-soft) !important;
  outline: none !important;
}

/* Admin forms (editorial team, journals): theme/bootstrap often leave too little vertical space — text clips at top */
.journals-form .form-control:not(textarea) {
  box-sizing: border-box !important;
  min-height: 44px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.45 !important;
}

.journals-form textarea.form-control {
  min-height: 140px;
  height: auto !important;
  line-height: 1.45 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.form-container {
  border-radius: 0 !important;
  padding: 36px !important;
  border: none !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* ui-title-page - minimal, no box shadows */
.ui-title-page {
  box-shadow: none !important;
  border: none !important;
}

@media (max-width: 767px) {
  .ui-title-page {
    background: transparent !important;
    color: inherit !important;
  }
  body.page-home .post.post-1.post-full {
    padding: 0 !important;
  }
  .post.post-1.clearfix.wow {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  body.page-author-guide .post.post-1.post-full.clearfix {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

.ui-title-block:after {
  border-bottom: 3px solid var(--efp-red) !important;
  width: 48px;
}

/* ========== AUTHOR GUIDE (+ static info pages: declaration-ai, subscription, ethics, proclamation) ========== */
body.page-author-guide .main-content,
body.page-declaration-ai .main-content,
body.page-subscription .main-content,
body.page-ethics .main-content,
body.page-proclamation .main-content {
  padding: 32px 0 56px !important;
}

body.page-author-guide .post.post-1.post-full.clearfix {
  max-width: 980px;
  margin: 0 auto 28px !important;
  padding: 40px 48px !important;
}

body.page-author-guide .entry-content,
body.page-declaration-ai .entry-content,
body.page-subscription .entry-content,
body.page-ethics .entry-content,
body.page-proclamation .entry-content {
  max-width: 860px;
  margin: 0 auto;
  color: #333;
  font-size: 16px;
  line-height: 1.75;
}

/* First-line indent (абзац) — author guide + static info pages */
body.page-author-guide .entry-content p,
body.page-declaration-ai .entry-content p,
body.page-subscription .entry-content p,
body.page-ethics .entry-content p,
body.page-proclamation .entry-content p {
  margin: 0 0 16px;
  text-indent: 2em !important;
}

/* Undo theme.css #article .post p + p { margin: 0 } — ID selector beats .entry-content p above */
body.page-author-guide #article .post p + p,
body.page-declaration-ai #article .post p + p,
body.page-subscription #article .post p + p,
body.page-ethics #article .post p + p,
body.page-proclamation #article .post p + p {
  margin: 0 0 16px;
}

body.page-author-guide .entry-content ul,
body.page-author-guide .entry-content ol,
body.page-declaration-ai .entry-content ul,
body.page-declaration-ai .entry-content ol,
body.page-subscription .entry-content ul,
body.page-subscription .entry-content ol,
body.page-ethics .entry-content ul,
body.page-ethics .entry-content ol,
body.page-proclamation .entry-content ul,
body.page-proclamation .entry-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

body.page-author-guide .entry-content li,
body.page-declaration-ai .entry-content li,
body.page-subscription .entry-content li,
body.page-ethics .entry-content li,
body.page-proclamation .entry-content li {
  margin-bottom: 10px;
  line-height: 1.75;
}

body.page-author-guide .entry-content ul ul,
body.page-author-guide .entry-content ol ul,
body.page-author-guide .entry-content ol ol,
body.page-author-guide .entry-content ul ol,
body.page-declaration-ai .entry-content ul ul,
body.page-declaration-ai .entry-content ol ul,
body.page-declaration-ai .entry-content ol ol,
body.page-declaration-ai .entry-content ul ol,
body.page-subscription .entry-content ul ul,
body.page-subscription .entry-content ol ul,
body.page-subscription .entry-content ol ol,
body.page-subscription .entry-content ul ol,
body.page-ethics .entry-content ul ul,
body.page-ethics .entry-content ol ul,
body.page-ethics .entry-content ol ol,
body.page-ethics .entry-content ul ol,
body.page-proclamation .entry-content ul ul,
body.page-proclamation .entry-content ol ul,
body.page-proclamation .entry-content ol ol,
body.page-proclamation .entry-content ul ol {
  margin-top: 12px;
  margin-bottom: 0;
}

body.page-author-guide .entry-content a,
body.page-declaration-ai .entry-content a,
body.page-subscription .entry-content a,
body.page-ethics .entry-content a,
body.page-proclamation .entry-content a {
  color: var(--efp-red) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.page-author-guide .entry-content a:hover,
body.page-declaration-ai .entry-content a:hover,
body.page-subscription .entry-content a:hover,
body.page-ethics .entry-content a:hover,
body.page-proclamation .entry-content a:hover {
  color: var(--efp-red-dark) !important;
  border-bottom-color: currentColor;
}

body.page-author-guide .entry-content h2,
body.page-declaration-ai .entry-content h2,
body.page-subscription .entry-content h2,
body.page-ethics .entry-content h2,
body.page-proclamation .entry-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #222 !important;
  margin: 40px 0 20px !important;
  text-indent: 0 !important;
}

/* Author guide + static pages — section h3: bold intro line (left, slightly above body copy) */
body.page-author-guide .entry-content h3,
body.page-declaration-ai .entry-content h3,
body.page-subscription .entry-content h3,
body.page-ethics .entry-content h3,
body.page-proclamation .entry-content h3 {
  font-size: 1.725rem;
  font-weight: 600;
  font-style: normal !important;
  color: #222;
  line-height: 1.55;
  text-align: center;
  margin: 1.25rem 0 0.65rem;
  text-indent: 0 !important;
}

body.page-author-guide .entry-content h3:empty,
body.page-declaration-ai .entry-content h3:empty,
body.page-subscription .entry-content h3:empty,
body.page-ethics .entry-content h3:empty,
body.page-proclamation .entry-content h3:empty {
  display: none;
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

body.page-author-guide .entry-content strong,
body.page-declaration-ai .entry-content strong,
body.page-subscription .entry-content strong,
body.page-ethics .entry-content strong,
body.page-proclamation .entry-content strong {
  color: #222;
}

body.page-author-guide .entry-content .efp-author-guide-note,
body.page-author-guide .entry-content p strong:first-child:last-child {
  text-indent: 0 !important;
}

body.page-author-guide .efp-author-guide-tech-append {
  margin-top: 40px;
  padding-top: 8px;
}

body.page-author-guide .efp-author-guide-tech-append p,
body.page-author-guide .efp-author-guide-tech-append li,
body.page-author-guide .entry-content li p,
body.page-declaration-ai .entry-content li p,
body.page-subscription .entry-content li p,
body.page-ethics .entry-content li p,
body.page-proclamation .entry-content li p {
  text-indent: 0 !important;
}

body.page-author-guide .entry-content .efp-author-guide-doi-cta {
  display: block;
  margin: 40px 0 0;
  padding: 18px 22px;
  text-align: center;
  text-indent: 0 !important;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #7a2f22;
  border-radius: var(--efp-radius);
  border: 1px solid rgba(217, 77, 56, 0.35);
  background: rgba(217, 77, 56, 0.08);
}

body.page-author-guide .entry-content .efp-author-guide-doi-cta strong {
  font-weight: 700;
  color: inherit;
}

/* Author guide: value proposition — match homepage (entry-content `p` rules otherwise override .efp-hp-value-proposition__text) */
body.page-author-guide .entry-content .efp-author-guide-value-block.efp-hp-value-proposition-block {
  margin-top: 36px;
}

body.page-author-guide .entry-content .efp-author-guide-value-block p.efp-hp-value-proposition__text {
  margin: 0 !important;
  text-indent: 0 !important;
  text-align: center !important;
  font-size: 1.3rem;
  line-height: 1.72;
  color: #444;
}

body.page-author-guide .entry-content .efp-author-guide-value-block p.efp-hp-value-proposition__text:not(:last-child) {
  margin-bottom: 1rem !important;
}

body.page-author-guide .entry-content .efp-author-guide-value-block .efp-hp-value-proposition__text strong {
  color: #1a1a1a;
  font-weight: 700;
}

@media (max-width: 767px) {
  body.page-author-guide .post.post-1.post-full.clearfix {
    padding: 24px 18px !important;
  }

  body.page-author-guide .entry-content,
  body.page-declaration-ai .entry-content,
  body.page-subscription .entry-content,
  body.page-ethics .entry-content,
  body.page-proclamation .entry-content {
    font-size: 15px;
    line-height: 1.7;
  }

  body.page-author-guide .entry-content h2,
  body.page-declaration-ai .entry-content h2,
  body.page-subscription .entry-content h2,
  body.page-ethics .entry-content h2,
  body.page-proclamation .entry-content h2 {
    font-size: 1.65rem !important;
    margin: 32px 0 16px !important;
  }

  body.page-author-guide .entry-content h3,
  body.page-declaration-ai .entry-content h3,
  body.page-subscription .entry-content h3,
  body.page-ethics .entry-content h3,
  body.page-proclamation .entry-content h3 {
    font-size: 1.5rem;
    line-height: 1.45;
    margin: 1.1rem 0 0.55rem !important;
  }

  body.page-author-guide .entry-content .efp-author-guide-doi-cta {
    font-size: 1.28rem;
    line-height: 1.52;
    padding: 18px 16px;
  }
}

/* News (Новини) */
body.page-news .main-content,
body.page-news .entry-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

body.page-news .entry-content,
body.page-news .efp-news-body {
  color: #333;
  font-size: 16px;
  line-height: 1.75;
}

body.page-news .efp-news-body p {
  margin: 0 0 16px;
  text-indent: 2em !important;
}

body.page-news .efp-news-body img {
  max-width: 100%;
  height: auto;
}

body.page-news .efp-news-body table {
  max-width: 100%;
}

body.page-news .efp-news-meta {
  text-align: center;
  margin-top: -8px;
}

body.page-news .efp-news-back {
  margin-top: 28px !important;
  text-indent: 0 !important;
}

body.page-news .efp-news-list__item {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eceae8;
}

body.page-news .efp-news-list__item:last-child {
  border-bottom: none;
}

body.page-news .efp-news-list__title {
  font-family: var(--efp-font-heading, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
}

body.page-news .efp-news-list__title a {
  color: #1a1a1a;
  text-decoration: none;
}

body.page-news .efp-news-list__title a:hover {
  color: var(--efp-red);
}

body.page-news .efp-news-list__date {
  display: block;
  font-size: 0.92rem;
}

body.page-news .efp-news-pager {
  margin-top: 24px;
}

@media (max-width: 767px) {
  body.page-news .entry-content,
  body.page-news .efp-news-body {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* AI policy (declaration-ai) */
body.page-declaration-ai .efp-declaration-ai .efp-declaration-ai__sections {
  margin: 0;
  padding-left: 1.25rem;
  list-style-position: outside;
}

body.page-declaration-ai .efp-declaration-ai .efp-declaration-ai__sections > li {
  margin-bottom: 1.75rem;
}

body.page-declaration-ai .efp-declaration-ai .efp-declaration-ai__sections ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

body.page-declaration-ai .efp-declaration-ai .efp-declaration-ai__sections > li > p {
  margin-bottom: 0.5rem;
}

/* ========== HOME PAGE - layout and overlap fix ========== */
body.page-home .entry-content h3 {
  margin: 1em 0;
}
/* Only the announcement h3 clears to prevent overlap; "Про журнал" flows beside image */
body.page-home .entry-content h3.efp-announcement {
  position: relative;
  z-index: 1;
  clear: both;
}
/* Homepage full width: remove sidebar-style margin when no sidebar */
body.page-home .main-content.main-content_mod-b {
  margin-left: 0 !important;
}

/* ========== HOME BLOCKS (legacy) ========== */
.home-block {
  border: none !important;
  border-radius: 0 !important;
  padding: 28px !important;
  box-shadow: none !important;
}

.about-plate {
  background: var(--efp-red) !important;
  border-radius: var(--efp-radius) !important;
  padding: 16px 32px !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 24px rgba(217, 77, 56, 0.35);
}

/* ============================================================
   HOMEPAGE — Modern Section Layout
   ============================================================ */

/* — General section — */
.efp-hp-section {
  padding: 56px 0;
}

.efp-hp-section--alt {
  background: #f9f8f7;
}

.efp-hp-section__title {
  font-size: 2.625rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.efp-hp-section__subtitle {
  font-size: 1.35rem;
  color: #555;
  line-height: 1.75;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  text-align: center;
}

/* — Section 3: centered heading — */
.efp-hp-section--accreditation .efp-hp-section__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.efp-hp-section--accreditation .efp-hp-section__subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
}

/* «Фахове видання»: CTA — orange line on top, then copy (sits under clusters) */
.efp-hp-value-proposition-block {
  margin-top: 40px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.efp-hp-value-proposition {
  margin: 0;
}

.efp-hp-value-proposition__text {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.72;
  color: #444;
  text-indent: 0 !important;
  text-align: center;
}

.efp-hp-value-proposition__text strong {
  color: #1a1a1a;
  font-weight: 700;
}

.efp-hp-divider-accent {
  width: 48px;
  height: 3px;
  margin: 0 auto 22px;
  background: var(--efp-red);
  border-radius: 2px;
}

/* — HERO (Section 1) — */
.efp-hp-hero {
  padding: 56px 0 48px;
  background: #fff;
}

.efp-hp-hero__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.efp-hp-hero__cover {
  flex-shrink: 0;
  width: 260px;
}

.efp-hp-hero__cover img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.efp-hp-hero__text {
  flex: 1;
  min-width: 0;
}

.efp-hp-hero__title {
  font-size: 2.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.efp-hp-hero__lead {
  font-size: 1.35rem;
  line-height: 1.75;
  color: #333;
}

.efp-hp-hero__lead a {
  color: var(--efp-red) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.efp-hp-hero__text p {
  font-size: 1.35rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 16px;
}

.efp-hp-hero__cta {
  margin-top: 24px;
  padding: 18px 24px 18px 10px;
  background: var(--efp-red-soft);
  border-left: 4px solid var(--efp-red);
  border-radius: 0 var(--efp-radius) var(--efp-radius) 0;
}

.efp-hp-hero__cta-inner {
  margin: 0 !important;
  color: #1a1a1a !important;
  font-size: 1.35rem !important;
  line-height: 1.65 !important;
}

.efp-hp-hero__cta strong {
  display: flex;
  align-items: flex-start;
  gap: 1.25em;
  font-weight: 700;
  line-height: 1.65;
  font-size: inherit;
}

/* Icon height ≈ two line boxes of the CTA copy (line-height 1.65); em = parent text size */
.efp-hp-hero__cta-icon {
  flex-shrink: 0;
  align-self: flex-start;
  margin: 0;
  padding: 0;
  color: var(--efp-red);
  line-height: 1;
  font-size: calc(2 * 1.65em / 1.12);
}

.efp-hp-hero__cta-copy {
  flex: 1;
  min-width: 0;
  padding-left: 0;
  margin: 0;
  text-indent: 0;
}

.efp-hp-hero__cta-mail {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.efp-hp-card__head .efp-hp-card__icon .fa {
  color: var(--efp-red);
}

/* — Cards grid — */
.efp-hp-grid {
  display: grid;
  gap: 24px;
}

.efp-hp-grid--2col {
  grid-template-columns: 1fr 1fr;
}

.efp-hp-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Section 2: entity line above the three plates */
.efp-hp-plates__heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.45;
  max-width: 960px;
  margin: 0 auto 36px;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .efp-hp-plates__heading {
    font-size: 1.35rem;
    margin-bottom: 28px;
  }
}

.efp-hp-card {
  background: #fff;
  border-radius: var(--efp-radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0eeec;
  transition: box-shadow 0.3s var(--efp-ease), transform 0.3s var(--efp-ease);
}

.efp-hp-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.efp-hp-card--large {
  grid-column: 1 / -1;
}

/* Icon + title on one row (section 2 cards) */
.efp-hp-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.efp-hp-card__head .efp-hp-card__icon {
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 2rem;
  line-height: 1;
}

.efp-hp-card__head .efp-hp-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.efp-hp-card__icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.efp-hp-card__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.efp-hp-card p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 8px;
}

/* Section 2 (three plates): body copy size */
.efp-hp-section--plates .efp-hp-card p,
.efp-hp-section--plates .efp-hp-card__line {
  font-size: 1.35rem;
  line-height: 1.68;
  color: #3a3a3a;
  margin-bottom: 0.85rem;
}

.efp-hp-section--plates .efp-hp-card p:last-child,
.efp-hp-section--plates .efp-hp-card__line:last-child {
  margin-bottom: 0;
}

.efp-hp-card p:last-child {
  margin-bottom: 0;
}

/* — Accreditation (Section 3) — */
.efp-hp-accreditation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.efp-hp-accreditation__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border-radius: var(--efp-radius);
  border: 1px solid #f0eeec;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.efp-hp-accreditation__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--efp-red);
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 700;
}

.efp-hp-accreditation__badge .fa {
  font-size: 1.15rem;
  font-weight: normal;
}

.efp-hp-accreditation__item strong {
  display: block;
  font-size: 1.35rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.efp-hp-accreditation__item p {
  font-size: 1.35rem;
  line-height: 1.68;
  color: #444;
  margin: 0;
  text-indent: 0 !important;
  text-align: left;
}

/* — Clusters (homepage only) — */
body.page-home .efp-hp-clusters {
  padding: 32px;
  background: #f9f8f7;
  border-radius: var(--efp-radius);
}

body.page-home .efp-hp-clusters h4 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0 0 20px;
  line-height: 1.65;
}

body.page-home .efp-hp-clusters__list {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

body.page-home .efp-hp-clusters__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--efp-radius);
  border: 1px solid #e8e4df;
  font-size: 1.35rem;
  color: #333;
}

body.page-home .efp-hp-clusters__item--accent {
  border-color: var(--efp-red);
  background: var(--efp-red-soft);
}

body.page-home .efp-hp-clusters__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--efp-red);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
}

body.page-home .efp-hp-clusters__note {
  font-size: 1.35rem;
  color: #666;
  margin: 0;
}

/* — Section 4: open access (no card title) — */
body.page-home .efp-hp-card--openaccess {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 24px 8px;
}

body.page-home .efp-hp-card--openaccess:hover {
  transform: none;
  box-shadow: none;
}

body.page-home .efp-hp-card--openaccess p {
  font-size: 1.35rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 1.25rem;
  text-indent: 2.25em !important;
  text-align: left;
}

body.page-home .efp-hp-card--openaccess p:last-child {
  margin-bottom: 0;
}

/* — Mission section (Section 5) — */
.efp-hp-section--mission {
  background: #fff;
}

.efp-hp-section--mission .efp-hp-section__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.efp-hp-mission__text {
  font-size: 1.35rem;
  line-height: 1.75;
  color: #444;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  text-indent: 0 !important;
  text-align: center;
}

.efp-hp-goals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

.efp-hp-goals__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px 22px 16px;
  background: #f9f8f7;
  border-radius: var(--efp-radius);
  transition: box-shadow 0.3s var(--efp-ease);
}

.efp-hp-goals__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.efp-hp-goals__icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--efp-radius);
  background: rgba(217, 77, 56, 0.1);
  line-height: 1;
}

.efp-hp-goals__icon-wrap .fa {
  font-size: 1.85rem;
  color: var(--efp-red);
}

.efp-hp-goals__text {
  flex: 1;
  min-width: 0;
  font-size: 1.35rem;
  line-height: 1.68;
  color: #333;
  margin: 0;
  padding: 0;
  /* theme.css sets global `p { text-indent: 25px }` — only first line, breaks alignment next to icon */
  text-indent: 0 !important;
  text-align: left;
}

.efp-hp-mission__quote {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--efp-red);
  text-align: center;
  margin: 0;
  padding: 28px 24px;
  border-top: none;
  background: linear-gradient(180deg, rgba(217, 77, 56, 0.08) 0%, rgba(217, 77, 56, 0.02) 100%);
  border-radius: var(--efp-radius);
  border: 1px solid rgba(217, 77, 56, 0.25);
  box-shadow: 0 6px 24px rgba(217, 77, 56, 0.1);
}

.efp-hp-mission__quote strong {
  color: var(--efp-red) !important;
  font-weight: 800 !important;
  font-size: inherit;
}

/* Laptop / large notebook (e.g. 14-inch MacBook at default scale, viewport ≥1200px): slightly larger homepage body copy */
@media (min-width: 1200px) {
  body.page-home .efp-hp-hero__lead,
  body.page-home .efp-hp-hero__text p {
    font-size: 1.45rem;
    line-height: 1.72;
  }

  body.page-home .efp-hp-hero__cta-inner {
    font-size: 1.45rem !important;
    line-height: 1.68 !important;
  }

  body.page-home .efp-hp-section__subtitle {
    font-size: 1.45rem;
    line-height: 1.72;
  }

  body.page-home .efp-hp-value-proposition__text,
  body.page-author-guide .entry-content .efp-author-guide-value-block p.efp-hp-value-proposition__text {
    font-size: 1.42rem;
    line-height: 1.74;
  }

  body.page-home .efp-hp-accreditation__item strong {
    font-size: 1.45rem;
  }

  body.page-home .efp-hp-accreditation__item p {
    font-size: 1.45rem;
    line-height: 1.7;
  }

  body.page-home .efp-hp-clusters h4 {
    font-size: 1.45rem;
  }

  body.page-home .efp-hp-clusters__item {
    font-size: 1.45rem;
  }

  body.page-home .efp-hp-clusters__note {
    font-size: 1.45rem;
  }

  body.page-home .efp-hp-card--openaccess p {
    font-size: 1.45rem;
    line-height: 1.78;
  }

  body.page-home .efp-hp-mission__text {
    font-size: 1.5rem;
    line-height: 1.72;
  }

  body.page-home .efp-hp-goals__text {
    font-size: 1.48rem;
    line-height: 1.7;
  }

  body.page-home .efp-hp-mission__quote {
    font-size: 1.9rem;
  }

  body.page-home .efp-hp-section--plates .efp-hp-card p,
  body.page-home .efp-hp-section--plates .efp-hp-card__line {
    font-size: 1.45rem;
    line-height: 1.72;
  }

  body.page-home .efp-hp-plates__heading {
    font-size: 1.85rem;
  }
}

/* — Steps section (Section 6) — */
.efp-hp-section--steps {
  background: #f9f8f7;
  padding: 48px 0 56px;
}

.efp-hp-section--steps .efp-hp-section__title {
  text-align: center;
  margin-bottom: 36px;
}

.efp-hp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none !important;
}

.efp-hp-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: #fff;
  border-radius: var(--efp-radius);
  border: 1px solid #f0eeec;
  min-width: 130px;
  text-align: center;
  transition: all 0.3s var(--efp-ease);
}

.efp-hp-steps:hover .efp-hp-steps__item {
  border-color: rgba(217, 77, 56, 0.25);
  box-shadow: 0 4px 16px rgba(217, 77, 56, 0.08);
}

.efp-hp-steps__icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.efp-hp-steps__icon-wrap img {
  max-width: 100%;
  max-height: 100%;
}

.efp-hp-steps__label {
  font-size: 1rem;
  font-weight: 600;
  color: #333 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.efp-hp-steps__arrow {
  color: var(--efp-red) !important;
  font-size: 1.25rem;
  opacity: 0.5;
}

/* — Homepage responsive — */
@media (max-width: 991px) {
  .efp-hp-hero__inner {
    gap: 32px;
  }

  .efp-hp-hero__cover {
    width: 200px;
  }

  .efp-hp-grid--2col {
    grid-template-columns: 1fr;
  }

  .efp-hp-grid--3col {
    grid-template-columns: 1fr;
  }

  body.page-home .efp-hp-clusters__list {
    flex-direction: column;
  }

  .efp-hp-goals {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 920px;
  }
}

@media (max-width: 767px) {
  .efp-hp-hero {
    padding: 32px 0 28px;
  }

  .efp-hp-hero__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .efp-hp-hero__cover {
    width: 180px;
  }

  .efp-hp-hero__cta {
    text-align: left;
  }

  .efp-hp-section {
    padding: 36px 0;
  }

  .efp-hp-section__title {
    font-size: 1.85rem;
  }

  .efp-hp-hero__title {
    font-size: 2.1rem;
  }

  /* Домашня: основний текст 15px / 1.7 як на /ethics */
  body.page-home .efp-hp-hero__lead,
  body.page-home .efp-hp-hero__text p,
  body.page-home .efp-hp-hero__cta-inner,
  body.page-home .efp-hp-section__subtitle,
  body.page-home .efp-hp-value-proposition__text,
  body.page-author-guide .entry-content .efp-author-guide-value-block p.efp-hp-value-proposition__text,
  body.page-home .efp-hp-card p,
  body.page-home .efp-hp-section--plates .efp-hp-card p,
  body.page-home .efp-hp-section--plates .efp-hp-card__line,
  body.page-home .efp-hp-accreditation__item strong,
  body.page-home .efp-hp-accreditation__item p,
  body.page-home .efp-hp-clusters h4,
  body.page-home .efp-hp-clusters__item,
  body.page-home .efp-hp-clusters__note,
  body.page-home .efp-hp-card--openaccess p,
  body.page-home .efp-hp-mission__text,
  body.page-home .efp-hp-goals__text,
  body.page-home .efp-hp-mission__quote,
  body.page-home .efp-hp-steps__label {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .efp-hp-mission__quote {
    padding: 20px 16px;
  }

  .efp-hp-steps {
    flex-direction: column;
    gap: 8px;
  }

  .efp-hp-steps__arrow {
    transform: rotate(90deg);
  }

  .efp-hp-steps__item {
    width: 100%;
    flex-direction: row;
    min-width: 0;
    padding: 16px 20px;
  }

  .efp-hp-steps__icon-wrap {
    width: 40px;
    height: 40px;
  }

  .efp-hp-goals__item {
    gap: 10px;
    padding: 18px 16px 18px 12px;
  }

  .efp-hp-accreditation__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ========== LINKS ========== */
a {
  color: var(--efp-red) !important;
  transition: color 0.3s var(--efp-ease);
}

a:hover {
  color: var(--efp-red-dark) !important;
}

.list-widget__link a {
  color: var(--efp-red) !important;
}

/* ========== SCROLL TOP ========== */
.scroll-top {
  background: var(--efp-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  width: 48px !important;
  height: 48px !important;
  box-shadow: 0 4px 20px rgba(217, 77, 56, 0.4);
}

.scroll-top .icon {
  color: #fff !important;
}

/* ========== EDITORIAL TEAM ========== */
.efp-editorial {
  padding: 48px 0 64px;
  background: #fff;
}

.efp-editorial__header {
  text-align: center;
  margin-bottom: 48px;
}

.efp-editorial__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.efp-editorial__subtitle {
  display: none !important;
}

.efp-editorial__section {
  margin-bottom: 56px;
}

.efp-editorial__section:last-child {
  margin-bottom: 0;
}

.efp-editorial__section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--efp-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--efp-red-soft);
}

.efp-editorial__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

@media (min-width: 576px) {
  .efp-editorial__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .efp-editorial__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
  }
}

.efp-editorial__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  padding: 24px 16px;
  border-radius: var(--efp-radius);
  background: #faf9f8;
  transition: transform 0.3s var(--efp-ease), box-shadow 0.3s var(--efp-ease);
}

.efp-editorial__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--efp-shadow-lg);
  color: inherit;
}

.efp-editorial__avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.efp-editorial__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.efp-editorial__name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222 !important;
  margin: 0 0 6px;
  line-height: 1.3;
}

.efp-editorial__card:hover .efp-editorial__name {
  color: var(--efp-red) !important;
}

.efp-editorial__position {
  font-size: 1.125rem;
  color: #666 !important;
  margin: 0;
  line-height: 1.4;
  font-style: italic;
  display: block;
}

/* ========== EDITORIAL TEAM MEMBER (info page, research-portal style) ========== */
.efp-editorial-member {
  padding: 32px 0 64px;
  background: #fff;
}

@media (min-width: 992px) {
  .efp-editorial-member {
    min-height: 600px;
  }
}

.efp-editorial-member__nav {
  font-size: 1.125rem;
  margin-bottom: 28px;
  line-height: 1.5;
  color: #666;
}

@media (min-width: 768px) {
  .efp-editorial-member__nav {
    font-size: 1.1875rem;
  }
}

.efp-editorial-member__nav-link {
  color: var(--efp-red);
  text-decoration: none;
  font-weight: 500;
}

.efp-editorial-member__nav-link:hover {
  text-decoration: underline;
  color: #c73d2e;
}

.efp-editorial-member__nav-sep {
  margin: 0 0.35em;
  color: #bbb;
}

.efp-editorial-member__nav-current {
  color: #444;
}

.efp-editorial-member__hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 28px;
  margin-bottom: 40px;
  background: linear-gradient(165deg, #f7f6f4 0%, #faf9f8 45%, #fff 100%);
  border-radius: var(--efp-radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--efp-shadow);
}

@media (min-width: 768px) {
  .efp-editorial-member__hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 44px;
  }
}

.efp-editorial-member__photo-wrap {
  flex-shrink: 0;
  width: 200px;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .efp-editorial-member__photo-wrap {
    margin: 0;
    width: 220px;
  }
}

.efp-editorial-member__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.efp-editorial-member__intro {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding-top: 0;
}

@media (min-width: 768px) {
  .efp-editorial-member__intro {
    padding-top: 4px;
  }
}

.efp-editorial-member__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .efp-editorial-member__name {
    font-size: 2.75rem;
  }
}

.efp-editorial-member .efp-editorial-member__position {
  font-size: 1.25rem;
  line-height: 1.55;
  color: #444;
  font-style: italic;
  margin: 0 0 1.25em !important;
  padding: 0 !important;
  max-width: none;
  width: 100%;
  text-align: left;
  text-indent: 0;
  box-sizing: border-box;
}

.efp-editorial-member__meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 1.1875rem;
  color: #555;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .efp-editorial-member__meta {
    font-size: 1.25rem;
  }
}

.efp-editorial-member__meta li {
  position: relative;
  padding-left: 1.1em;
}

.efp-editorial-member__meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--efp-red-soft);
}

.efp-editorial-member__bio {
  margin: 0;
  padding: 0;
  max-width: 65ch;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.efp-editorial-member__intro .efp-editorial-member__bio {
  margin-top: 0;
  text-align: left;
}

.efp-editorial-member__bio p,
.efp-editorial-member__bio li {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: #333;
  margin: 0 0 1em;
  padding: 0;
  text-indent: 0;
  text-align: left;
}

@media (min-width: 768px) {
  .efp-editorial-member__bio p,
  .efp-editorial-member__bio li {
    font-size: 1.25rem;
  }
}

.efp-editorial-member__bio p:last-child,
.efp-editorial-member__bio li:last-child {
  margin-bottom: 0;
}

.efp-editorial-member__bio ul,
.efp-editorial-member__bio ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.efp-editorial-member__bio h4,
.efp-editorial-member__bio h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin: 1.35em 0 0.5em;
}

@media (min-width: 768px) {
  .efp-editorial-member__bio h4,
  .efp-editorial-member__bio h5 {
    font-size: 1.3125rem;
  }
}

.efp-editorial-member__bio h4:first-child,
.efp-editorial-member__bio h5:first-child {
  margin-top: 0;
}

/* ========== SEARCH PAGE ========== */
body.page-search .layout-theme {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-search .efp-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.page-search .efp-layout > .container:last-of-type,
body.page-search #search_page {
  flex: 1;
}

.efp-search {
  padding: 40px 0 64px;
  min-height: calc(100vh - 280px);
  background: #fff;
}

@media (min-width: 992px) {
  .efp-search {
    min-height: calc(100vh - 320px);
  }
}

.efp-search__header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.efp-search__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 28px;
}

.efp-search__form {
  width: 100%;
}

.efp-search__form .form-control,
.efp-search__form input {
  border: none !important;
  box-shadow: none !important;
}

.efp-search__input-wrap {
  position: relative;
  border: none !important;
  border-radius: var(--efp-radius);
  background: #fff;
  box-shadow: none !important;
  outline: none !important;
}

.efp-search__input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  font-size: 1rem;
  border: none !important;
  background: transparent;
  color: #333;
  border-radius: var(--efp-radius);
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.efp-search__input::placeholder {
  color: #999;
}

.efp-search__input:focus {
  outline: none;
}

.efp-search__btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  background: transparent !important;
  color: var(--efp-red) !important;
  font-size: 1.25rem;
  font-weight: 500 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: color 0.2s;
}

.efp-search__btn:hover {
  color: var(--efp-red-dark) !important;
  background: transparent !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
}

.efp-search__results {
  margin-top: 0;
}

.efp-search__query {
  font-size: 2.25rem;
  font-weight: 600;
  color: #666;
  margin: 0 0 32px;
}

.efp-search__grid {
  display: flex;
  flex-direction: column;
  gap: 48px 0;
}

.efp-search__section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--efp-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}

.efp-search__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 576px) {
  .efp-search__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .efp-search__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.efp-search__card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #faf9f8;
  border-radius: var(--efp-radius);
  text-decoration: none !important;
  transition: transform 0.2s var(--efp-ease), box-shadow 0.2s var(--efp-ease);
}

.efp-search__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--efp-shadow);
  color: inherit;
}

.efp-search__card-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--efp-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.efp-search__card-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: #222 !important;
  line-height: 1.4;
}

.efp-search__card:hover .efp-search__card-title {
  color: var(--efp-red) !important;
}

.efp-search__empty {
  font-size: 1.875rem;
  color: #999;
  margin: 0;
  font-style: italic;
}

.efp-search__card--hidden {
  display: none !important;
}

.efp-search__load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

.efp-search__load-more {
  display: inline-block;
  margin-top: 0;
  padding: 12px 28px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--efp-red);
  background: transparent;
  border: 2px solid var(--efp-red);
  border-radius: var(--efp-radius);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.efp-search__load-more:hover {
  background: var(--efp-red);
  color: #fff;
}

/* Journal issue page: full-width main column on small screens (override float + 190px margin from blog.css) */
@media (max-width: 991px) {
  #journal #article .post-1 .entry-category,
  #journal .post-1 .entry-category {
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 16px;
    text-align: center;
  }
  #journal #article .post-1 .entry-main,
  #journal .post-1 .entry-main {
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both;
    overflow-x: visible !important;
  }
  #journal .post-1 .entry-main .entry-content {
    font-size: 1.0625rem;
    line-height: 1.55;
    max-width: 100%;
  }
  #journal .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Journal issue page: mobile PDF preview + Download / Read as text links */
#article .efp-journal-issue__links {
  margin-bottom: 12px;
}
#article .efp-journal-issue__links-sep {
  display: inline-block;
  margin: 0 0.35em;
  color: #999;
  user-select: none;
}
#article .efp-journal-issue__link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#article .efp-journal-issue__link:hover,
#article .efp-journal-issue__link:focus {
  text-decoration: underline;
}
#article .efp-journal-issue__preview {
  width: 100%;
  margin: 0 0 24px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--efp-radius);
  overflow: hidden;
  background: #f5f5f5;
  min-height: 50vh;
}
@media (max-width: 991px) {
  #article .efp-journal-issue__preview {
    min-height: 55vh;
  }
}
#article .efp-journal-issue__iframe--mobile {
  display: block;
  width: 100% !important;
  min-height: 75vh;
  height: 75vh;
  border: none;
}
@media (max-width: 991px) {
  #article .efp-journal-issue__iframe--mobile {
    min-height: 80vh;
    height: 80vh;
    max-height: none;
  }
}

/* ========== JOURNAL ISSUE — full-width masthead (orange bar) above 9+3 columns ========== */
.efp-journal-item__masthead .journal-name {
  text-align: center;
}

.efp-journal-item__masthead .journal-name h1 {
  margin: 0;
  font-size: 1.75rem;
}

/* Tight layout under orange bar: issue title aligns with first archive year */
#journal.efp-journal-issue-page .section-title__inner {
  padding: 12px 0 0 !important;
}

#journal.efp-journal-issue-page .efp-content-row {
  margin-top: 0;
  align-items: flex-start;
}

#journal.efp-journal-issue-page #article > .main-content {
  padding-top: 0 !important;
}

/* Restore default post padding; PDF iframe scales to entry-main width (wider than fixed 627px) */
#journal.efp-journal-issue-page #article .post.post-1.post-full {
  padding: 10px 40px 40px !important;
  margin-top: 0 !important;
}

#journal.efp-journal-issue-page #article .post-1 .entry-main {
  overflow-x: hidden !important;
  box-sizing: border-box;
}

#journal.efp-journal-issue-page #article .post-1 .entry-main .entry-content {
  box-sizing: border-box;
}

#journal.efp-journal-issue-page .efp-journal-issue__desktop {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#journal.efp-journal-issue-page .efp-journal-issue__iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  height: 800px;
  border: 0;
  vertical-align: top;
}

#journal.efp-journal-issue-page #article .entry-header {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  padding-top: 0 !important;
}

#journal.efp-journal-issue-page #article .entry-title.entry-title_spacing {
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 1.25 !important;
}

#journal.efp-journal-issue-page .efp-journal-sidebar-wrap {
  padding-top: 0 !important;
}

#journal.efp-journal-issue-page .efp-journal-sidebar .widget.efp-journal-archive-widget {
  padding: 10px 20px 24px !important;
  margin-top: 0 !important;
}

#journal.efp-journal-issue-page .efp-journal-item__masthead .journal-name {
  padding: 16px 12px !important;
}

/* ========== JOURNAL / ARTICLE — archive sidebar (years → issues) ========== */
.efp-journal-sidebar-wrap {
  padding-bottom: 32px;
}

.efp-journal-archive__list {
  padding-top: 2px;
}

.efp-archive-year {
  border: 1px solid #e0ddd9;
  border-radius: var(--efp-radius);
  margin-bottom: 10px;
  background: #fafafa;
}

.efp-archive-year__summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.725rem;
  line-height: 1.3;
  padding: 10px 14px;
  color: #222;
  user-select: none;
  gap: 10px;
}

.efp-archive-year__summary::-webkit-details-marker {
  display: none;
}

.efp-archive-year__summary::marker {
  display: none;
}

.efp-archive-year__summary::before {
  content: '\25B6';
  flex-shrink: 0;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.2s var(--efp-ease);
  color: var(--efp-red);
}

.efp-archive-year[open] .efp-archive-year__summary::before {
  transform: rotate(90deg);
}

.efp-archive-year__summary:hover,
.efp-archive-year__summary:focus {
  outline: none;
  background: rgba(217, 77, 56, 0.06);
}

.efp-archive-year__summary:focus-visible {
  outline: 2px solid var(--efp-red);
  outline-offset: -2px;
}

.efp-archive-year__issues {
  margin: 0;
  padding: 0 12px 12px 28px;
}

.efp-archive-year__issues li {
  margin: 0;
  padding: 4px 0;
  line-height: 1.35;
}

a.efp-journal-archive__link {
  color: #23527c;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1.4;
}

a.efp-journal-archive__link:hover {
  color: var(--efp-red);
  text-decoration: underline;
}

a.efp-journal-archive__link.is-active {
  color: var(--efp-red);
  font-weight: 700;
}

@media (max-width: 991px) {
  .efp-journal-sidebar-wrap {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e8e4df;
  }
}
