/**
 * Aspectul Brizy al paginii "Egalitate de gen" (import/import_egalitate.php), editabil in CKEditor.
 * Se incarca dupa igm-servicii.css, igm-brizy.css si igm-integrare.css (igm-cards, igm-card--wide, igm-list,
 * igm-sec-title). Totul e sub div.igm-eg: nu schimba alte pagini.
 *
 *   p.igm-eg__quote + p.igm-eg__cite                 citatul centrat (negru, bold) si sursa lui (gri)
 *   p.igm-eg__lead                                   paragraful mare de sub citat
 *   p.igm-eg__key                                    paragraf cu cuvintele bold albastre
 *   div.igm-cards.igm-eg__cards > div.igm-card       carduri gri (#f3f3f3) fara chenar, 2 pe rand; --wide pe tot randul
 *   div.igm-card.igm-eg__guide                       coperta ghidului (link la PDF) + "Acceseaza ghidul" portocaliu, ondulat
 *   div.igm-card.igm-eg__def                         definitia, text mai mare
 *   p.igm-eg__help + h3.igm-sec-title.igm-eg__title  "Ai nevoie de ajutor?" + titlul albastru cu linie dedesubt
 *   ul.igm-list.igm-eg__contacts > li.igm-eg-ico--phone|headset|doc   iconitele mari albastre din Brizy
 *   p.igm-eg__tel                                    telefon albastru (dupa el, spatiu; --tight: fara spatiu)
 *   p.igm-eg__small | p.igm-eg__line | .igm-eg__gap  text mic / randuri fara spatiu / spatiu deasupra
 *   p.igm-eg__blue                                   bold albastru in lista de contacte (EN)
 *   div.igm-eg__commit                               "Our commitment" centrat, fara card (EN)
 */

:is(.text-formatted, .ck-content) .igm-eg {
  --igm-eg-blue: #3279ca;
  --igm-eg-gray: #6a6c6e;
  color: var(--igm-eg-gray);
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}

:is(.text-formatted, .ck-content) .igm-eg :is(p, li, h3) {
  text-align: left;
}

:is(.text-formatted, .ck-content) .igm-eg a:not(.igm-btn) {
  color: var(--igm-eg-blue);
}

:is(.text-formatted, .ck-content) .igm-eg a[href^="tel:"] {
  text-decoration: none;
}

/* Citatul si sursa */
:is(.text-formatted, .ck-content) .igm-eg > p.igm-eg__quote {
  margin: 0;
  color: #000;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 25px);
  line-height: 1.3;
  text-align: center;
}

:is(.text-formatted, .ck-content) .igm-eg > p.igm-eg__cite {
  margin: 0.15rem 0 2.5rem;
  font-size: 15px;
  text-align: center;
}

:is(.text-formatted, .ck-content) .igm-eg > p.igm-eg__lead {
  margin: 0 0 2.25rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 24px);
  line-height: 1.3;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-eg__key strong,
:is(.text-formatted, .ck-content) .igm-eg .igm-eg__blue strong {
  color: var(--igm-eg-blue);
}

/* Carduri gri */
:is(.text-formatted, .ck-content) .igm-eg .igm-cards.igm-eg__cards {
  gap: 22px;
  margin: 1.5rem 0;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-cards > .igm-card {
  padding: 30px;
  border: 0;
  border-radius: 10px;
  background: #f3f3f3;
  font-size: 17px;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > h3 {
  margin: 0 0 1.25rem;
  color: var(--igm-eg-blue);
  font-size: clamp(1.1rem, 1rem + 0.3vw, 20px);
  font-weight: 700;
  line-height: 1.5;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > h3.igm-eg__gap {
  margin-top: 1.5rem;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > p {
  margin: 0 0 0.25rem;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > p.igm-eg__key {
  margin-bottom: 1.25rem;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 18px);
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > p.igm-eg__key + p.igm-eg__key {
  margin-top: 0;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > p.igm-eg__line {
  margin: 0;
  font-size: 15px;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  font-size: 15px;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > ul > li {
  margin: 0 0 0.2rem;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card > :last-child {
  margin-bottom: 0;
}

/* Definitia: text mai mare */
:is(.text-formatted, .ck-content) .igm-eg .igm-card.igm-eg__def {
  padding: 22px 30px;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-card.igm-eg__def > p {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 22px);
}

/* Ghidul: coperta + text portocaliu ondulat, fara fundal */
:is(.text-formatted, .ck-content) .igm-eg .igm-cards > .igm-card.igm-eg__guide {
  padding: 0;
  background: none;
  text-align: center;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-eg__guide > p {
  margin: 0;
  text-align: center;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-eg__guide img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-eg__guide > p.igm-eg__guide-link {
  margin-top: 0.5rem;
}

:is(.text-formatted, .ck-content) .igm-eg .igm-eg__guide-link a {
  display: inline-block;
  padding-bottom: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4q5-4 10 0t10 0 10 0 10 0' fill='none' stroke='%233279ca' stroke-width='2'/%3E%3C/svg%3E") repeat-x left bottom / 40px 8px;
  color: #f3a900;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

/* "Ai nevoie de ajutor?" + titlu */
:is(.text-formatted, .ck-content) .igm-eg > p.igm-eg__help {
  margin: 2.5rem 0 0;
  color: #696969;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 23px);
  text-align: center;
}

:is(.text-formatted, .ck-content) .igm-eg > h3.igm-sec-title.igm-eg__title {
  margin: 0 0 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e6e6e6;
  color: var(--igm-eg-blue);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 31px);
  text-align: center;
}

/* Contacte cu iconite mari */
:is(.text-formatted, .ck-content) .igm-eg ul.igm-list.igm-eg__contacts {
  margin: 0 0 2.5rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 20px);
}

:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts > li {
  margin: 0 0 2.75rem;
  padding-left: 64px;
  text-align: left;
}

.igm-eg ul.igm-eg__contacts > li::before {
  top: 0;
  width: 42px;
  height: 42px;
  background-color: var(--igm-eg-blue, #3279ca);
}

:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts > li > p {
  margin: 0;
}

:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts p.igm-eg__tel,
:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts p.igm-eg__tel strong {
  color: var(--igm-eg-blue);
}

:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts > li > p.igm-eg__tel:not(.igm-eg__tel--tight) + p,
:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts > li > .igm-eg__gap,
:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts > li > p:not(.igm-eg__small) + p.igm-eg__small {
  margin-top: 1.5rem;
}

:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts > li > p.igm-eg__small + p.igm-eg__small:has(> strong:only-child) {
  margin-top: 1.25rem;
}

:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts .igm-eg__small {
  font-size: 15px;
}

:is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts > li > ul {
  margin: 0;
  padding-left: 1.25rem;
}

.igm-eg li.igm-eg-ico--phone {
  --igm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.igm-eg li.igm-eg-ico--headset {
  --igm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17v-5a9 9 0 0 1 18 0v5'/%3E%3Cpath d='M21 18a2 2 0 0 1-2 2h-1v-7h3zM3 18a2 2 0 0 0 2 2h1v-7H3z'/%3E%3Cpath d='M18 20c0 1.7-2.3 3-5 3'/%3E%3C/svg%3E");
}

.igm-eg li.igm-eg-ico--doc {
  --igm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l6 6v14H6z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E");
}

/* "Our commitment" (EN): centrat, fara card */
:is(.text-formatted, .ck-content) .igm-eg > .igm-eg__commit {
  margin: 2rem 0 1rem;
}

:is(.text-formatted, .ck-content) .igm-eg > .igm-eg__commit > :is(h3, p) {
  margin: 0;
  text-align: center;
}

:is(.text-formatted, .ck-content) .igm-eg > .igm-eg__commit > h3 {
  color: var(--igm-eg-blue);
  font-size: 17px;
  font-weight: 700;
}

:is(.text-formatted, .ck-content) .igm-eg > .igm-eg__commit > p {
  font-size: 18px;
}

@media (max-width: 767.98px) {
  :is(.text-formatted, .ck-content) .igm-eg {
    font-size: 16px;
  }

  :is(.text-formatted, .ck-content) .igm-eg .igm-cards > .igm-card {
    padding: 20px;
  }

  :is(.text-formatted, .ck-content) .igm-eg ul.igm-eg__contacts > li {
    padding-left: 48px;
  }

  .igm-eg ul.igm-eg__contacts > li::before {
    width: 32px;
    height: 32px;
  }

  /* Adresele lungi (https://..., e-mail) nu ies din coloana */
  :is(.text-formatted, .ck-content) .igm-eg {
    overflow-wrap: anywhere;
  }
}
