/*
 * ProPEGE Interactive Catalogue styles.
 * Loaded after the Equal Leadership WordPress theme CSS, so it restores the parts of the
 * theme that are no longer available remotely and styles the catalogue components.
 */
:root {
  --pg-blue: #003399;
  --pg-blue-dark: #002266;
  --pg-yellow: #ffcc00;
  --pg-text: #444444;
  --pg-heading: #161616;
  --pg-muted: #6b7280;
  --pg-border: #d9dee7;
  --pg-surface: #f2f4f6;
  --pg-radius: 8px;
  --pg-focus: 0 0 0 3px rgba(0, 51, 153, 0.35);
}

/* ---------- WordPress theme repairs ---------- */

/* Elementor icon font (eicons) is not served with CORS headers; map the icons we use to Font Awesome */
.eicon-menu-bar::before, .eicon-close::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
}
.eicon-menu-bar::before { content: "\f0c9"; }
.eicon-close::before { content: "\f00d"; }
.elementor-menu-toggle { font-size: 22px; color: var(--pg-blue); }

/* Hero banner (its page CSS, post-733.css, is gone from the WordPress site) */
.elementor-element-cd4e89f {
  position: relative;
  background-color: var(--pg-blue);
  padding: 90px 50px 40px;
}
.elementor-element-cd4e89f > .elementor-container { min-height: 220px; }
.elementor-element-cd4e89f > .elementor-background-overlay {
  position: absolute;
  inset: 0;
  background: url(https://equalleadership.eu/wp-content/uploads/logotipo-vector-white.svg) no-repeat bottom right / 250px auto;
  opacity: 0.25;
  pointer-events: none;
}
.elementor-element-cd4e89f .elementor-heading-title {
  color: #ffffff;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}
.elementor-element-cd4e89f .elementor-widget-divider { --divider-color: var(--pg-yellow); }
.elementor-element-cd4e89f .elementor-spacer-inner { height: 0; }
@media (max-width: 1024px) {
  .elementor-element-cd4e89f { padding: 90px 30px 40px; }
  .elementor-element-cd4e89f > .elementor-container { min-height: 0; }
  .elementor-element-cd4e89f > .elementor-background-overlay { background-size: 160px auto; }
}
@media (max-width: 767px) {
  .elementor-element-cd4e89f { padding: 90px 16px 36px; }
  .elementor-element-cd4e89f > .elementor-background-overlay { background-size: 100px auto; }
}

/* Keep the main menu on one row on small laptops */
@media (min-width: 1025px) and (max-width: 1300px) {
  .elementor-182 .elementor-element.elementor-element-34ffa3d .elementor-nav-menu--main .elementor-item { padding-left: 12px; padding-right: 12px; }
}

/* Header logo sizing (the image was stuck on a lazy-load placeholder before) */
.elementor-element-29ce141 img { width: 160px; height: auto; }

/* ---------- General ---------- */

.site-main .section { padding: 24px 0 48px; color: var(--pg-text); }
.site-main .section a:not(.elementor-button) { color: var(--pg-blue); }
.site-main .section a:not(.elementor-button):hover { color: var(--pg-blue-dark); }
.site-main .section :focus-visible { outline: none; box-shadow: var(--pg-focus); border-radius: 4px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.pg-translate {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 8px; font-size: 14px; color: var(--pg-muted); margin-bottom: 16px;
}
.pg-translate select.goog-te-combo {
  padding: 6px 10px; border: 1px solid var(--pg-border); border-radius: 6px; background: #fff;
}

.pg-page-title { color: var(--pg-heading); margin: 0 0 12px; font-size: 1.6rem; }
.pg-intro { max-width: 860px; margin-bottom: 20px; line-height: 1.6; }
.pg-intro p { margin-bottom: 10px; }
.pg-help-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pg-help-links a { font-weight: 600; text-decoration: none; }
.pg-help-links a:hover { text-decoration: underline; }
.pg-help-links i { margin-right: 4px; }

/* ---------- Filters ---------- */

.pg-filters {
  border: 1px solid var(--pg-border);
  border-top: 4px solid var(--pg-blue);
  border-radius: var(--pg-radius);
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.pg-search { display: flex; gap: 10px; }
.pg-search input {
  flex: 1; min-width: 0;
  padding: 10px 14px; font-size: 16px;
  border: 1px solid var(--pg-border); border-radius: 6px; background: var(--pg-surface);
}
.pg-search input:focus { outline: none; border-color: var(--pg-blue); box-shadow: var(--pg-focus); background: #fff; }
.pg-search button {
  padding: 10px 22px; font-weight: 600; border: 0; border-radius: 6px;
  background: var(--pg-blue); color: #fff; cursor: pointer; white-space: nowrap;
}
.pg-search button:hover { background: var(--pg-blue-dark); }
.pg-filters-title { margin: 18px 0 8px; font-size: 1.1rem; color: var(--pg-heading); }
.pg-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.pg-filter-row--bottom { justify-content: space-between; margin-top: 12px; }
.pg-type-filter, .pg-country-filter {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0;
}
.pg-type-filter { padding: 4px 12px 4px 6px; border-radius: 40px; transition: background .15s; }
.pg-type-filter:hover { background: var(--pg-surface); }
.pg-type-filter input { width: 18px; height: 18px; accent-color: var(--pg-blue); cursor: pointer; }
.pg-type-filter img, .pg-country-filter img { width: 48px; height: 48px; }
.pg-type-filter span { font-weight: 600; }
.pg-country-filter select {
  padding: 8px 12px; min-width: 200px; border: 1px solid var(--pg-border); border-radius: 6px; background: #fff;
}

.pg-view-modes { display: flex; gap: 10px; }
.pg-view-modes a {
  display: block; padding: 4px; border-radius: 8px; border: 2px solid transparent;
  opacity: .65; transition: opacity .15s, border-color .15s;
}
.pg-view-modes a:hover { opacity: 1; }
.pg-view-modes a.is-active { opacity: 1; border-color: var(--pg-yellow); }
.pg-view-modes img { height: 64px; width: auto; display: block; }

.pg-result-summary {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin: 18px 0 8px; color: var(--pg-muted); font-size: 15px;
}
.pg-result-summary strong { color: var(--pg-heading); }

/* ---------- Results (list & cards) ---------- */

.pg-list, .pg-cards { list-style: none; margin: 0; padding: 0; }
.pg-list-item, .pg-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 0;
}
.pg-list-item { border-bottom: 1px solid var(--pg-border); }
.pg-item-icon img { width: 72px; height: 72px; display: block; }
.pg-item-body { flex: 1; min-width: 0; }
.pg-item-title {
  font-size: 1.05rem; margin: 0 0 6px; line-height: 1.35;
  /* Some imported titles are paragraph-length; the full title is on the detail page */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.site-main .section .pg-item-title a { color: var(--pg-heading); text-decoration: none; }
.site-main .section .pg-item-title a:hover { color: var(--pg-blue); text-decoration: underline; }
.pg-item-meta {
  list-style: none; margin: 6px 0 8px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 14px; color: var(--pg-text);
}
.pg-item-meta span { color: var(--pg-muted); }
.pg-type-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
}
.pg-type-tag--gp { background: #e6ecf8; color: var(--pg-blue); }
.pg-type-tag--li { background: #fff6cc; color: #6b5300; }
.pg-details-link { font-weight: 600; font-size: 14px; text-decoration: none; }
.pg-details-link:hover { text-decoration: underline; }

.pg-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 10px;
}
.pg-card {
  padding: 18px; border: 1px solid var(--pg-border); border-radius: var(--pg-radius); background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.pg-card:hover { border-color: var(--pg-blue); box-shadow: 0 4px 14px rgba(0, 51, 153, 0.1); }
.pg-card .pg-item-icon img { width: 110px; height: 110px; }

.pg-empty {
  text-align: center; padding: 40px 20px; margin: 20px 0;
  background: var(--pg-surface); border-radius: var(--pg-radius);
}
.pg-empty i { font-size: 32px; color: var(--pg-muted); margin-bottom: 10px; }
.pg-empty p { margin-bottom: 6px; }

/* ---------- Pagination ---------- */

.pg-pagination {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 28px 0 8px;
}
.pg-pagination a, .pg-pagination span {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--pg-border); font-size: 15px; text-decoration: none;
}
.pg-pagination a:hover { background: var(--pg-blue); border-color: var(--pg-blue); color: #fff !important; }
.pg-pagination .current { border-color: var(--pg-blue); background: var(--pg-blue); color: #fff; font-weight: 600; }
.pg-pagination .is-disabled { color: #b4bac4; }

/* ---------- Detail page ---------- */

.pg-back-link { display: inline-block; margin-bottom: 16px; font-weight: 600; text-decoration: none; }
.pg-detail::after { content: ""; display: table; clear: both; }
.pg-detail-title { color: var(--pg-heading); font-size: 1.8rem; line-height: 1.25; margin-bottom: 20px; }
.pg-detail-badge { float: right; width: 200px; margin: 0 0 20px 30px; text-align: center; }
.pg-detail-badge img { width: 200px; height: auto; }
.pg-detail-badge h4 { margin-top: 8px; font-size: 1.1rem; }
.pg-detail-badge small { font-weight: 400; color: var(--pg-muted); }
.pg-detail h4 { font-size: 1.1rem; color: var(--pg-heading); margin: 0 0 8px; }
.pg-detail-contact { list-style: none; margin: 0 0 24px; padding: 0; line-height: 1.8; }
.pg-detail-contact span, .pg-detail-fields dt { color: var(--pg-muted); }
.pg-detail-contact a { word-break: break-word; }
.pg-detail-fields { margin: 0; }
.pg-detail-fields dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 18px; }
.pg-detail-fields dd { margin: 4px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.pg-detail-fields .pg-abstract { font-size: 1.05rem; color: var(--pg-heading); }

.pg-share {
  clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--pg-border);
}
.pg-share span { font-weight: 600; margin-right: 4px; }
.pg-share a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--pg-blue); color: #fff !important; text-decoration: none;
}
.pg-share a:hover { background: var(--pg-blue-dark); }
.pg-copy-link {
  padding: 8px 14px; border-radius: 20px; border: 1px solid var(--pg-border); background: #fff; cursor: pointer; font-size: 14px;
}
.pg-copy-link:hover { border-color: var(--pg-blue); color: var(--pg-blue); }

/* ---------- Map view ---------- */

.pg-map-header { margin-top: 0; }
.pg-map { height: 520px; width: 100%; border-radius: var(--pg-radius); border: 1px solid var(--pg-border); z-index: 0; }
.pg-map-marker span {
  display: block; text-align: center; border-radius: 50%;
  background: var(--pg-blue); color: #fff; font-weight: 700; font-size: 13px;
  border: 2px solid var(--pg-yellow); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: pointer;
}
.pg-map-marker:hover span { background: var(--pg-blue-dark); }
.pg-country-table { margin-top: 16px; }
.pg-country-table summary { cursor: pointer; font-weight: 600; color: var(--pg-blue); }
.pg-country-table ul { columns: 3 200px; list-style: none; padding: 10px 0 0; margin: 0; }
.pg-country-table li { display: flex; justify-content: space-between; max-width: 260px; padding: 3px 0; break-inside: avoid; }
.pg-country-table li span { color: var(--pg-muted); }

/* ---------- Newsletter call to action ---------- */

.pg-newsletter-cta p { color: #fff; margin-bottom: 14px; }
.pg-newsletter-cta .elementor-button { width: 100%; text-align: center; }

/* ---------- Splash video ---------- */

#splash-screen {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.88); padding: 16px;
}
#splash-screen[hidden] { display: none; }
.pg-splash-inner { position: relative; width: min(900px, 100%); text-align: center; }
.pg-splash-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pg-splash-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg-splash-close {
  position: absolute; top: -44px; right: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: #fff; color: #161616; font-size: 26px; line-height: 1; cursor: pointer;
}
#close-button {
  margin-top: 14px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 20px;
  background: transparent; color: #fff; font-weight: 700; cursor: pointer;
}
#close-button:hover, .pg-splash-close:hover { background: var(--pg-yellow); color: #161616; border-color: var(--pg-yellow); }
body.pg-no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .pg-search { flex-direction: column; }
  .pg-filter-row { gap: 8px 16px; }
  .pg-filter-row--bottom { flex-direction: column; align-items: flex-start; }
  .pg-country-filter { flex-wrap: wrap; }
  .pg-country-filter select { min-width: 0; flex: 1; }
  .pg-view-modes img { height: 52px; }
  .pg-cards { grid-template-columns: 1fr; }
  .pg-item-icon img { width: 52px; height: 52px; }
  .pg-card .pg-item-icon img { width: 72px; height: 72px; }
  .pg-detail-badge { float: none; width: auto; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; text-align: left; }
  .pg-detail-badge img { width: 90px; }
  .pg-detail-title { font-size: 1.45rem; }
  .pg-map { height: 380px; }
  .pg-pagination a[aria-label], .pg-pagination .is-disabled { display: none; }
}

/* Mobile menu dropdown: opaque so page content does not show through */
.elementor-nav-menu--dropdown.elementor-nav-menu__container { background-color: #ffffff; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12); }
