/* FIMSA — DESIGN GLOBAL
   Înlocuiește blocul FIMSA Mobil Compact adăugat anterior cu acest fișier.
   Adaugă la final în Aspect > Personalizare > CSS suplimentar, fără <style>.
   Acoperă pagini, articole, categorii, arhive și căutare, pe desktop și telefon.
   Nu depinde de ID-ul sau data publicării unui articol/pagini. */


/* Fontul folosit în codurile FIMSA recente. */
body {
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Texte, titluri, meniuri, formulare și widgeturi. */
body :is(
  h1, h2, h3, h4, h5, h6,
  p, li, dt, dd, td, th, blockquote, figcaption,
  a, button, input, textarea, select, label, summary,
  .elementor-heading-title, .widget-title,
  .site-title, .site-description
):not(.elementor-icon, .fa, .fas, .far, .fab, .dashicons, [class*="eicon-"], [class*="fa-"]) {
  font-family: "Segoe UI", Arial, sans-serif !important;
}

/* Texte din spanuri, inclusiv cele cu font stabilit în editor. */
body span:not(
  .elementor-icon, .elementor-icon-list-icon,
  .fa, .fas, .far, .fab, .dashicons,
  [class*="eicon-"], [class*="fa-"],
  .material-icons, .material-symbols-outlined
) {
  font-family: "Segoe UI", Arial, sans-serif !important;
}


/* FIMSA — Antet și meniu. Se păstrează meniul și funcțiile temei Newsup. */
.fimsa-footer-modern-active header.mg-headwidget {
  --fh-navy: #172d4d;
  --fh-blue: #2563eb;
  --fh-text: #17243b;
  --fh-line: #e2e8f0;
  font-family: "Segoe UI", Arial, sans-serif;
  position: relative;
  background: #fff;
  border: 0;
}

/* Bara cu data, ceasul și legăturile sociale. */
.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail {
  display: block !important;
  padding: 5px 0;
  background: var(--fh-navy);
  border: 0;
  color: #dce6f4;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .row {
  flex-wrap: nowrap;
  align-items: center;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .info-left {
  float: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .info-left li {
  margin: 0;
  color: #dce6f4;
  font: 400 11px/26px "Segoe UI", Arial, sans-serif;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .info-left li span.time {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .mg-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  float: none;
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .mg-social li {
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .icon-soci {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #fff;
  line-height: 1;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .icon-soci i {
  padding: 0;
  font-size: 12px;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .mg-social a:hover .icon-soci {
  background: rgba(255, 255, 255, .2) !important;
}

/* Universitate în stânga, denumirea facultății în centru, FIMSA în dreapta. */
.fimsa-footer-modern-active header.mg-headwidget .mg-nav-widget-area-back {
  background: linear-gradient(120deg, #fff 55%, #f2f6fd) !important;
  border-bottom: 1px solid var(--fh-line);
}

.fimsa-footer-modern-active header.mg-headwidget .mg-nav-widget-area-back .overlay,
.fimsa-footer-modern-active header.mg-headwidget .mg-nav-widget-area-back .inner {
  background: transparent !important;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-nav-widget-area-back .inner {
  padding: 23px 0;
}

.fimsa-footer-modern-active header.mg-headwidget .mg-nav-widget-area {
  padding: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-header {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 156px;
  align-items: center;
  gap: 25px;
  width: 100%;
  min-height: 75px;
  float: none;
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .fimsa-university-logo {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 205px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .fimsa-university-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-header .site-logo {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  float: none;
  width: 156px;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-header .navbar-brand {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
  text-shadow: none;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-header .custom-logo {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-header .site-branding-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
}

.fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-title,
.fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-title a {
  margin: 0;
  padding: 0;
  color: var(--fh-text);
  font: 700 25px/1.3 "Segoe UI", Arial, sans-serif !important;
  letter-spacing: -.4px;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
  overflow-wrap: break-word;
}

.fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-description {
  display: block !important;
  margin: 7px 0 0;
  padding: 0;
  color: #60718a;
  font: 400 11px/1.5 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
}

/* Meniul existent, inclusiv toate submeniurile și comenzile. */
.fimsa-footer-modern-active header.mg-headwidget .mg-menu-full,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp {
  background: var(--fh-navy) !important;
  border: 0;
  box-shadow: 0 3px 8px rgba(23, 45, 77, .08);
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp {
  padding: 6px 0;
  transition: none;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp > .container-fluid {
  align-items: center;
  column-gap: 12px;
}

.fimsa-footer-modern-active header.mg-headwidget #navbar-wp {
  min-width: 0;
}

.fimsa-footer-modern-active header.mg-headwidget #navbar-wp > div {
  width: 100%;
}

.fimsa-footer-modern-active header.mg-headwidget #navbar-wp .navbar-nav {
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  color: #e7edf7 !important;
  background: transparent;
  font: 600 13px/1.5 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a:hover,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a:focus,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li.show > a {
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li.current-menu-item > a,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li.current-menu-ancestor > a,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li.active > a {
  background: #2563eb !important;
  color: #fff !important;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a.homebtn {
  min-width: 38px;
  padding: 10px;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a.homebtn span {
  font-size: 15px;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .dropdown-menu {
  padding: 6px;
  border: 1px solid var(--fh-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 45, 77, .16);
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu {
  min-width: 260px !important;
  max-width: 345px !important;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu > li {
  margin: 0;
  padding: 0;
  border: 0;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu > li > a {
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  background: #fff !important;
  color: #334155 !important;
  font: 500 13px/1.45 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  white-space: normal !important;
  overflow-wrap: break-word;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu > li > a:hover,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu > li > a:focus {
  background: #edf3ff !important;
  color: #1d4ed8 !important;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu > li.current-menu-item > a {
  background: #edf3ff !important;
  color: #1d4ed8 !important;
  font-weight: 600;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-nav:not(.sm-collapsible) .nav-link .sub-arrow {
  margin-left: 7px;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .desk-header {
  gap: 6px;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .mg-search-box {
  padding: 0 !important;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .msearch,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .btn-bell,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .mobilehomebtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 !important;
  padding: 0;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  color: #fff !important;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .msearch::after {
  display: none;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .msearch:hover,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .btn-bell:hover,
.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .mobilehomebtn:hover {
  background: rgba(255, 255, 255, .18) !important;
}

.fimsa-footer-modern-active header.mg-headwidget .navbar-wp .dropdown-menu.searchinner {
  width: 300px;
  min-width: 260px;
  max-width: calc(100vw - 30px);
  padding: 12px;
}

.fimsa-footer-modern-active header.mg-headwidget .searchinner .form-control {
  min-width: 0;
  height: 40px;
  border: 1px solid #dce4ef;
  border-radius: 6px 0 0 6px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}

.fimsa-footer-modern-active header.mg-headwidget .searchinner .btn {
  border-radius: 0 6px 6px 0;
  background: #2563eb;
  color: #fff;
}

.fimsa-footer-modern-active header.mg-headwidget a:focus-visible,
.fimsa-footer-modern-active header.mg-headwidget button:focus-visible {
  outline: 3px solid #93b4f5;
  outline-offset: 3px;
}

@media (min-width: 992px) {
  .fimsa-footer-modern-active header.mg-headwidget .container-fluid {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp > .container-fluid {
    flex-wrap: nowrap;
  }

  .fimsa-footer-modern-active header.mg-headwidget #navbar-wp .navbar-nav {
    flex-wrap: wrap;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .fimsa-footer-modern-active header.mg-headwidget .navbar-header {
    grid-template-columns: 180px minmax(0, 1fr) 140px;
    gap: 20px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 12px;
  }
}

@media (max-width: 991.98px) {
  .fimsa-footer-modern-active header.mg-headwidget .navbar-header {
    grid-template-columns: 160px minmax(0, 1fr) 125px;
    gap: 18px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-title,
  .fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-title a {
    font-size: 21px !important;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp > .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp .m-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px 36px;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .fimsa-footer-modern-active header.mg-headwidget .m-header .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-height: 36px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 7px;
    color: #fff;
    box-shadow: none;
  }

  .fimsa-footer-modern-active header.mg-headwidget .m-header .navbar-toggler::after {
    content: "Meniu";
    color: #fff;
    font: 600 13px/1 "Segoe UI", Arial, sans-serif;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-toggler .burger {
    width: 20px;
    height: 18px;
    margin: 0;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-toggler .burger-line {
    height: 2px;
    background: #fff;
  }

  .fimsa-footer-modern-active header.mg-headwidget #navbar-wp {
    max-height: 75vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .fimsa-footer-modern-active header.mg-headwidget #navbar-wp .navbar-nav {
    align-items: stretch;
    gap: 3px;
    padding: 9px 0 3px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a {
    justify-content: flex-start;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a.has-submenu {
    padding-right: 52px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-nav.sm-collapsible .sub-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    margin: -14px 0 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(147, 180, 245, .14);
    color: #fff;
    font-size: 19px;
    line-height: 1;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 6px 0 7px 10px;
    padding: 5px;
    border-radius: 7px;
    box-shadow: none;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu > li > a {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 13px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav .dropdown-menu > li > a.has-submenu {
    padding-right: 48px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-nav.sm-collapsible .dropdown-menu .sub-arrow {
    background: #edf3ff;
    color: #2563eb;
  }

  .fimsa-footer-modern-active header.mg-headwidget .m-header .searchinner {
    right: -44px !important;
  }
}

@media (max-width: 767px) {
  .fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .row > div:first-child {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }

  .fimsa-footer-modern-active header.mg-headwidget .mg-head-detail .row > div:last-child {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }

  .fimsa-footer-modern-active header.mg-headwidget .mg-nav-widget-area-back .inner {
    padding: 17px 0;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-header {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px 22px;
    min-height: 0;
  }

  .fimsa-footer-modern-active header.mg-headwidget .fimsa-university-logo {
    grid-column: 1;
    grid-row: 1;
    width: 170px;
    justify-self: start;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-header .site-logo {
    grid-column: 2;
    grid-row: 1;
    width: 118px;
    justify-self: end;
  }

  .fimsa-footer-modern-active header.mg-headwidget .navbar-header .site-branding-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-title,
  .fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-title a {
    font-size: 19px !important;
    line-height: 1.35 !important;
    letter-spacing: -.2px;
  }

  .fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-description {
    max-width: 440px;
    margin: 6px auto 0;
    font-size: 10px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fimsa-footer-modern-active header.mg-headwidget .navbar-wp .navbar-nav > li > a {
    transition: none;
  }
}


/* FIMSA: articole compacte, identitate vizuală și copyright. */
.fimsa-footer-modern-active .missed-section,
.fimsa-footer-modern-active .fimsa-footer-articles,
.fimsa-footer-modern-active .fimsa-footer-articles * {
  box-sizing: border-box;
}

.fimsa-footer-modern-active .missed-section {
  padding: 0 15px;
  margin: 20px auto 24px;
}

.fimsa-footer-modern-active .fimsa-footer-articles {
  padding: 20px;
  background: #f6f9fd;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #17243b;
  font-family: "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.fimsa-footer-modern-active .fimsa-fa-heading {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid #2563eb;
}

.fimsa-footer-modern-active .fimsa-fa-heading h2 {
  margin: 0 0 3px;
  padding: 0;
  font: 700 21px/1.3 "Segoe UI", Arial, sans-serif;
  color: #17243b;
  letter-spacing: normal;
  text-transform: none;
}

.fimsa-footer-modern-active .fimsa-fa-heading p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #60718a;
}

.fimsa-footer-modern-active .fimsa-fa-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.fimsa-footer-modern-active .fimsa-fa-item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active a.fimsa-fa-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 10px;
  color: #17243b;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(23, 36, 59, .03);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.fimsa-footer-modern-active a.fimsa-fa-card:hover {
  border-color: #96b5ef;
  color: #1d4ed8;
  box-shadow: 0 5px 14px rgba(23, 36, 59, .08);
  text-decoration: none;
}

.fimsa-footer-modern-active .fimsa-fa-image {
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eaf0fa;
  color: #5475a6;
}

.fimsa-footer-modern-active .fimsa-fa-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
}

.fimsa-footer-modern-active .fimsa-fa-placeholder {
  width: 48px;
  height: 48px;
}

.fimsa-footer-modern-active .fimsa-fa-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 11px 12px 12px;
}

.fimsa-footer-modern-active .fimsa-fa-category {
  display: block;
  max-width: 100%;
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .3px;
  overflow-wrap: anywhere;
}

.fimsa-footer-modern-active .fimsa-fa-content h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: inherit;
  font: 650 14px/1.4 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}

.fimsa-footer-modern-active .fimsa-fa-content time {
  margin-top: auto;
  padding-top: 3px;
  color: #68778d;
  font-size: 11px;
  line-height: 1.3;
}

.fimsa-footer-modern-active footer.footer {
  margin: 0;
  background: linear-gradient(120deg, #152b49, #244777) !important;
  background-image: linear-gradient(120deg, #152b49, #244777) !important;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  border-top: 0;
}

.fimsa-footer-modern-active footer.footer > .overlay {
  background: transparent !important;
  padding: 0;
}

.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area {
  padding: 26px 0;
}

.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .divide-line {
  margin-bottom: 22px;
  height: 1px;
  background: rgba(255, 255, 255, .15);
}

.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row {
  align-items: center;
  row-gap: 16px;
}

.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:first-child {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 80%;
  max-width: 80%;
}

.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:last-child {
  flex: 0 0 20%;
  max-width: 20%;
}

.fimsa-footer-modern-active footer.footer .site-logo {
  flex: 0 0 auto;
  float: none;
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active footer.footer .site-logo .navbar-brand {
  display: block;
  width: auto;
  margin: 0;
  padding: 9px 12px;
  background: #fff;
  border-radius: 9px;
  line-height: 0;
}

.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .custom-logo {
  display: block;
  width: 110px;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active footer.footer .site-branding-text {
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
}

.fimsa-footer-modern-active footer.footer .site-title-footer,
.fimsa-footer-modern-active footer.footer .site-title-footer a {
  margin: 0;
  padding: 0;
  color: #fff;
  font: 650 19px/1.4 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  overflow-wrap: break-word;
}

.fimsa-footer-modern-active footer.footer .mg-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.fimsa-footer-modern-active footer.footer .mg-social li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fimsa-footer-modern-active footer.footer .mg-social a {
  display: block;
  padding: 0;
}

.fimsa-footer-modern-active footer.footer .mg-social .icon-soci {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  float: none;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff;
}

.fimsa-footer-modern-active footer.footer .mg-social a:hover .icon-soci {
  background: rgba(255, 255, 255, .2) !important;
}

.fimsa-footer-modern-active footer.footer .mg-footer-copyright {
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(4, 15, 33, .22) !important;
}

.fimsa-footer-modern-active footer.footer .fimsa-footer-credits p,
.fimsa-footer-modern-active footer.footer .fimsa-footer-credits a {
  margin: 0;
  padding: 0;
  font: 400 12px/1.7 "Segoe UI", Arial, sans-serif;
  color: #d4dfef;
  text-align: center;
  text-decoration: none;
}

.fimsa-footer-modern-active footer.footer .fimsa-footer-credits strong {
  font-weight: 600;
  color: #fff;
}

.fimsa-footer-modern-active footer.footer .fimsa-footer-credits a:hover {
  color: #fff;
  text-decoration: underline;
}

.fimsa-footer-modern-active .fimsa-fa-card:focus-visible,
.fimsa-footer-modern-active footer.footer a:focus-visible {
  outline: 3px solid #93b4f5;
  outline-offset: 3px;
}

.fimsa-footer-modern-active .fimsa-footer-menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 992px) {
  .fimsa-footer-modern-active .missed-section,
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area > .container-fluid,
  .fimsa-footer-modern-active footer.footer .fimsa-footer-credits {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991px) {
  .fimsa-footer-modern-active .fimsa-fa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:first-child,
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:last-child {
    flex-basis: 100%;
    max-width: 100%;
  }

  .fimsa-footer-modern-active footer.footer .site-title-footer,
  .fimsa-footer-modern-active footer.footer .site-title-footer a {
    font-size: 17px;
  }

  .fimsa-footer-modern-active footer.footer .mg-social {
    justify-content: flex-start;
  }
}

@media (max-width: 599px) {
  .fimsa-footer-modern-active .missed-section {
    margin-top: 16px;
    margin-bottom: 18px;
    padding: 0 12px;
  }

  .fimsa-footer-modern-active .fimsa-footer-articles {
    padding: 14px;
  }

  .fimsa-footer-modern-active .fimsa-fa-heading h2 {
    font-size: 19px;
  }

  .fimsa-footer-modern-active .fimsa-fa-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .fimsa-footer-modern-active a.fimsa-fa-card {
    flex-direction: row;
    min-height: 98px;
  }

  .fimsa-footer-modern-active .fimsa-fa-image {
    flex: 0 0 88px;
    width: 88px;
    height: auto;
    min-height: 98px;
  }

  .fimsa-footer-modern-active .fimsa-fa-image img {
    min-height: 98px;
    align-self: stretch;
  }

  .fimsa-footer-modern-active .fimsa-fa-content {
    gap: 4px;
    padding: 10px;
  }

  .fimsa-footer-modern-active .fimsa-fa-content h3 {
    font-size: 13px;
  }

  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area {
    padding: 22px 0;
  }

  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:first-child {
    gap: 13px;
  }

  .fimsa-footer-modern-active footer.footer .site-logo .navbar-brand {
    padding: 7px 9px;
  }

  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .custom-logo {
    width: 83px;
  }

  .fimsa-footer-modern-active footer.footer .site-title-footer,
  .fimsa-footer-modern-active footer.footer .site-title-footer a {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fimsa-footer-modern-active a.fimsa-fa-card {
    transition: none;
  }
}


/* FIMSA — Design comun pentru toate articolele WordPress, vechi și viitoare. */
body #content {
  --fam-navy: #142b4c;
  --fam-blue: #2563eb;
  --fam-text: #334155;
  --fam-muted: #60718a;
  --fam-line: #e2e8f0;
  padding-top: 24px;
  padding-bottom: 24px;
  font-family: "Segoe UI", Arial, sans-serif;
}

body #content > .container-fluid {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
}

body #content .mg-blog-post-box {
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--fam-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(23, 36, 59, .035);
}

body #content .mg-blog-post-box > .mg-header {
  margin: 0 0 22px;
  padding: 24px 26px;
  border: 0;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(120deg, #142b4c, #244d83);
}

body #content .mg-blog-post-box > .mg-header h1.title,
body #content .mg-blog-post-box > .mg-header h1.title a {
  margin: 0;
  padding: 0;
  color: #fff !important;
  font: 700 clamp(24px, 2.65vw, 34px)/1.25 "Segoe UI", Arial, sans-serif !important;
  letter-spacing: -.35px;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
  overflow-wrap: break-word;
}

body #content .fam-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 0;
}

body #content a.fam-category {
  display: inline-block;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #e1edff;
  font: 600 11px/1.4 "Segoe UI", Arial, sans-serif;
  text-decoration: none;
}

body #content a.fam-category:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

body #content .fam-date {
  color: #c6dbfa;
  font: 400 11px/1.5 "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

body #content .mg-blog-post-box > .single-featured-image {
  width: calc(100% - 52px);
  max-width: calc(100% - 52px);
  height: auto;
  max-height: 380px;
  margin: 0 26px 22px;
  padding: 0;
  border: 1px solid #e7edf5;
  border-radius: 10px;
  background: #f6f9fd;
  object-fit: contain;
}

body #content .page-content-single {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--fam-text);
  font: 400 15px/1.75 "Segoe UI", Arial, sans-serif;
  text-align: left;
  overflow-wrap: break-word;
}

body #content .page-content-single .elementor-widget-text-editor {
  color: var(--fam-text);
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

body #content .page-content-single :is(p, li, td, th, blockquote, figcaption, label) {
  font-family: "Segoe UI", Arial, sans-serif !important;
}

body #content .page-content-single p {
  margin: 0 0 14px;
}

body #content .page-content-single > p,
body #content .page-content-single .elementor-widget-text-editor p,
body #content .page-content-single .wp-block-group > p,
body #content .page-content-single .wp-block-column > p {
  font-size: 15px !important;
  line-height: 1.75 !important;
}

body #content .page-content-single p[style*="justify"],
body #content .page-content-single .elementor-widget-text-editor p {
  text-align: left;
}

body #content .page-content-single .elementor-widget-text-editor :is(span, font):not(.fa):not([class*="fa-"]):not([class*="eicon"]) {
  font-family: inherit !important;
}

body #content .page-content-single > :is(h1, h2, h3, h4, h5, h6),
body #content .page-content-single .elementor-widget-text-editor :is(h1, h2, h3, h4, h5, h6) {
  margin: 24px 0 10px;
  padding: 0;
  color: var(--fam-navy);
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

body #content .page-content-single > :is(h1, h2),
body #content .page-content-single .elementor-widget-text-editor :is(h1, h2) {
  font-size: 23px;
}

body #content .page-content-single > h3,
body #content .page-content-single .elementor-widget-text-editor h3 {
  font-size: 20px;
}

body #content .page-content-single > :is(h4, h5, h6),
body #content .page-content-single .elementor-widget-text-editor :is(h4, h5, h6) {
  font-size: 17px;
}

body #content .page-content-single > :is(ul, ol),
body #content .page-content-single .elementor-widget-text-editor :is(ul, ol) {
  margin: 0 0 18px;
  padding-left: 22px;
}

body #content .page-content-single li {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.65;
}

body #content .page-content-single li::marker {
  color: #2563eb;
  font-weight: 700;
}

body #content .page-content-single > a,
body #content .page-content-single p a,
body #content .page-content-single .elementor-widget-text-editor a:not(.btn):not(.button) {
  color: #1d4ed8;
  text-decoration: underline;
  text-decoration-color: #b5c9ef;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

body #content .page-content-single p a:hover {
  color: #153eaa;
  text-decoration-color: currentColor;
}

body #content .page-content-single :is(strong, b) {
  font-weight: 700;
}

body #content .page-content-single hr {
  margin: 20px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--fam-line);
  background: none;
  height: 0;
}

body #content .page-content-single blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border: 0;
  border-left: 3px solid #2563eb;
  border-radius: 0 9px 9px 0;
  background: #edf3ff;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

body #content .page-content-single blockquote p:last-child {
  margin-bottom: 0;
}

body #content .page-content-single blockquote::before,
body #content .page-content-single blockquote::after {
  content: none;
}

/* Imagini întregi; se păstrează proporțiile fotografiilor. */
body #content .page-content-single img {
  max-width: 100% !important;
  height: auto;
  border-radius: 9px;
}

body #content .page-content-single :is(figure, .wp-caption) {
  max-width: 100%;
}

body #content .page-content-single :is(figcaption, .wp-caption-text) {
  margin: 7px 0 0;
  color: var(--fam-muted);
  font-size: 12px;
  line-height: 1.5;
}

body #content .page-content-single :is(.alignwide, .alignfull) {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  left: auto;
}

/* Galerii WordPress clasice și Elementor. */
body #content .page-content-single .gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 0;
}

body #content .page-content-single .gallery.gallery-columns-1 {
  grid-template-columns: minmax(0, 1fr);
}

body #content .page-content-single .gallery.gallery-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body #content .page-content-single .gallery:is(.gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .gallery-columns-7, .gallery-columns-8, .gallery-columns-9) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body #content .page-content-single .gallery .gallery-item {
  float: none;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  border: 0;
}

body #content .page-content-single .gallery .gallery-icon {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 9px;
  background: #f6f9fd;
}

body #content .page-content-single .gallery .gallery-icon > a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

body #content .page-content-single .gallery .gallery-icon img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  object-fit: contain;
}

body #content .page-content-single .gallery > br {
  display: none;
}

body #content .page-content-single .wp-block-gallery {
  gap: 12px;
}

body #content .page-content-single .wp-block-gallery .wp-block-image {
  overflow: hidden;
  border: 1px solid var(--fam-line);
  border-radius: 9px;
  background: #f6f9fd;
}

body #content .page-content-single .wp-block-gallery .wp-block-image img {
  object-fit: contain !important;
}

body #content .page-content-single .wp-block-gallery .wp-block-image figcaption {
  position: static;
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  color: var(--fam-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Nu se modifică structura coloanelor Elementor sau componentele HTML FIMSA. */
body #content .page-content-single > .elementor > .elementor-top-section > .elementor-container {
  max-width: 100%;
}

body #content .page-content-single > .elementor > .elementor-top-section > .elementor-container > .elementor-top-column > .elementor-widget-wrap {
  padding: 0;
}

body #content .page-content-single .elementor-widget-image-gallery {
  width: 100%;
}

/* Documente ușor de găsit, cu aceleași adrese și etichete. */
body #content .page-content-single a.fam-document-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 4px 0;
  padding: 9px 12px;
  border: 1px solid #d9e5f7;
  border-radius: 7px;
  background: #f1f6ff;
  color: #1d4ed8;
  font: 600 13px/1.5 "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body #content .page-content-single a.fam-document-link::after {
  content: "";
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

body #content .page-content-single a.fam-document-link:hover {
  border-color: #9bbbed;
  background: #e8f0ff;
}

body #content .page-content-single .wp-block-button__link {
  border-radius: 7px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
}

/* Tabelele mari rămân complete și pot fi derulate orizontal. */
body #content .page-content-single :is(.fam-table-scroll, .wp-block-table) {
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--fam-line);
  border-radius: 9px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body #content .page-content-single table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  color: var(--fam-text);
  font-size: 14px;
  line-height: 1.5;
}

body #content .page-content-single :is(th, td) {
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--fam-line);
  vertical-align: top;
}

body #content .page-content-single th {
  background: #edf3ff;
  color: var(--fam-navy);
  font-weight: 700;
}

body #content .page-content-single tbody tr:nth-child(even) {
  background: #f8fafc;
}

body #content .page-content-single tbody tr:last-child td {
  border-bottom: 0;
}

body #content .page-content-single :is(video, iframe, pre) {
  max-width: 100%;
}

body #content .page-content-single pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--fam-line);
  border-radius: 8px;
  background: #f6f9fd;
  color: #334155;
}

/* Navigarea între articole. */
body #content .post-navigation {
  margin: 24px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--fam-line);
}

body #content .post-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body #content .post-navigation .nav-links > div {
  float: none;
  flex: 1 1 240px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body #content .post-navigation .nav-links a {
  display: block;
  height: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--fam-line);
  border-radius: 8px;
  background: #f6f9fd;
  color: #1d4ed8;
  font: 600 13px/1.5 "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body #content .post-navigation .nav-links a:hover {
  background: #edf3ff;
  border-color: #9bbbed;
}

/* Articole similare: imagini compacte și titluri proporționate. */
body #content .mg-featured-slider {
  border: 1px solid var(--fam-line);
  border-radius: 11px;
  background: #f6f9fd;
  box-shadow: none;
}

body #content .mg-featured-slider .mg-sec-title {
  margin-bottom: 12px;
  border: 0;
  background: transparent;
}

body #content .mg-featured-slider .mg-sec-title h4 {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--fam-navy);
  font: 700 18px/1.4 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

body #content .mg-featured-slider .mg-sec-title h4::before,
body #content .mg-featured-slider .mg-sec-title h4::after {
  content: none;
}

body #content .mg-featured-slider .mg-blog-post-3 {
  min-height: 190px;
  height: 190px;
  overflow: hidden;
  border-radius: 9px;
  background-position: center;
  background-size: cover;
}

body #content .mg-featured-slider .mg-blog-post-3 .mg-blog-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, rgba(12, 29, 52, .03), rgba(12, 29, 52, .88));
}

body #content .mg-featured-slider .title,
body #content .mg-featured-slider .title a {
  margin: 0;
  color: #fff;
  font: 650 14px/1.45 "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

body #content .mg-featured-slider .title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body #content .mg-featured-slider .mg-blog-meta {
  margin-top: 5px;
  font-size: 10px;
}

body #content .mg-featured-slider .mg-blog-meta:empty {
  margin: 0;
}

body #content a:focus-visible,
body #content button:focus-visible,
body #content .fam-table-scroll:focus-visible {
  outline: 3px solid #93b4f5;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  body #content > .container-fluid > .row > .col-lg-9.col-md-8,
  body #content > .container-fluid > .row > aside.col-lg-3.col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  body #content {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  body #content .mg-blog-post-box > .mg-header {
    margin-bottom: 17px;
    padding: 20px 18px;
  }

  body #content .mg-blog-post-box > .mg-header h1.title,
  body #content .mg-blog-post-box > .mg-header h1.title a {
    font-size: 24px !important;
    line-height: 1.3 !important;
    letter-spacing: -.2px;
  }

  body #content .mg-blog-post-box > .single-featured-image {
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
    max-height: 300px;
    margin: 0 18px 18px;
  }

  body #content .page-content-single {
    padding: 0 18px 18px;
    font-size: 14px;
  }

  body #content .page-content-single > p,
  body #content .page-content-single .elementor-widget-text-editor p,
  body #content .page-content-single .wp-block-group > p,
  body #content .page-content-single .wp-block-column > p,
  body #content .page-content-single .elementor-widget-text-editor {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  body #content .page-content-single li {
    font-size: 14px;
  }

  body #content .page-content-single .gallery:not(.gallery-columns-1) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body #content .page-content-single .gallery.gallery-columns-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  body #content .page-content-single :is(.alignleft, .alignright) {
    float: none;
    max-width: 100%;
    margin: 16px auto;
  }

  body #content .mg-featured-slider .mg-blog-post-3 {
    min-height: 110px;
    height: 110px;
    border: 1px solid var(--fam-line);
    background-color: #edf2fa;
    background-size: 90px auto;
    background-position: left center;
    background-repeat: no-repeat;
  }

  body #content .mg-featured-slider .mg-blog-post-3 .mg-blog-inner {
    width: calc(100% - 90px);
    margin-left: 90px;
    padding: 11px;
    justify-content: center;
    background: #fff;
  }

  body #content .mg-featured-slider .title,
  body #content .mg-featured-slider .title a {
    color: #17243b;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #content .page-content-single a {
    transition: none;
  }
}


/* FIMSA — reguli globale pentru tema Newsup, editor clasic, Gutenberg și Elementor. */
body {
  background-color: #f4f7fc;
  color: #334155;
  font-family: "Segoe UI", Arial, sans-serif;
}
body #content {
  --fam-navy: #142b4c;
  --fam-blue: #2563eb;
  --fam-line: #e2e8f0;
  --fam-text: #334155;
  --fam-muted: #60718a;
  padding-top: 22px;
  padding-bottom: 22px;
}
body #content > .container-fluid,
body #content.archive-class {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
body #content .mg-card-box {
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(23,36,59,.035);
}
body #content :is(.entry-content, .page-content, .page-content-single, .elementor-widget-text-editor) {
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}
body #content :is(p, li, td, th, address) {
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.65;
}
body #content :is(.elementor-widget-text-editor, .entry-content, .page-content) p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  margin-bottom: 12px !important;
}
body #content :is(.elementor-widget-text-editor, .entry-content, .page-content) li {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 7px;
}
body #content :is(h1,h2,h3,h4,h5,h6) {
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  overflow-wrap: break-word;
}
body #content h1 { font-size: 30px !important; }
body #content h2 { font-size: 23px !important; }
body #content h3 { font-size: 20px !important; }
body #content :is(h4,h5,h6) { font-size: 17px !important; }
body #content :is(h1,h2,h3,h4,h5,h6) :is(a,span,strong) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
body #content :is(.fn-header,.fa-hero,.fc-header,.fd-header,.fe-header,.fp-header,.fr-hero,.fs-header,.fo-hero,.pi-header) :is(h1,h2) { color: #fff !important; }
body #content :is(.page-content, .page-content-single, .entry-content, .elementor-widget-text-editor) a:not(:is([class*="button"], [class*="-cta"], .btn, .fc-email)) {
  color: #1d4ed8;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
body #content .elementor-widget-text-editor a:not(:is([class*="button"], [class*="-cta"], .btn, .fc-email)) {
  color: #1d4ed8 !important;
}
body #content .elementor-widget-text-editor a:not(:is([class*="button"], [class*="-cta"], .btn, .fc-email)) :is(span,strong) { color: inherit !important; }
body #content .elementor-widget-text-editor li[style*="background-image"] { background-image: none !important; }
body #content .elementor-widget-text-editor :is(span,font):not(:is([class*="fa-"], [class*="eicon"], .material-icons)) { font-family: inherit !important; }
body #content :is(.entry-content, .page-content) hr { border: 0; border-top: 1px solid #e2e8f0; margin: 18px 0; }
body #content :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-family: "Segoe UI", Arial, sans-serif;
}
body #content :is(input[type="submit"],button.wp-block-button__link) {
  background: #2563eb;
  color: #fff;
  border: 0;
}
/* Titlurile paginilor și articolelor vechi, inclusiv cele fără modulul de articole. */
body #content .mg-blog-post-box > .mg-header h1.title,
body #content .mg-blog-post-box > .mg-header h1.title a,
.fimsa-article-design #content .mg-blog-post-box > .mg-header h1.title,
.fimsa-article-design #content .mg-blog-post-box > .mg-header h1.title a {
  font-size: 29px !important;
  line-height: 1.3 !important;
  color: #fff !important;
}
/* Titlul arhivelor/categoriilor și navigarea între pagini. */
body .mg-breadcrumb-section { background: #f4f7fc; box-shadow: none; }
body .mg-breadcrumb-section .overlay { padding: 20px 0; background: transparent; }
body .mg-breadcrumb-section .container-fluid { max-width: 1240px; margin: auto; }
body .mg-breadcrumb-title :is(h1,.title) { color: #142b4c; font-size: 28px; line-height: 1.3; }
body #content :is(.navigation.pagination,.pagination) { margin-top: 18px; }
body #content .navigation.pagination { display: block; max-width: 100%; }
body #content .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
body #content .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  margin: 3px;
  padding: 8px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 7px;
  background: #fff;
  color: #1d4ed8;
  font-size: 13px;
  text-decoration: none;
}
body #content .page-numbers.current { background: #2563eb; color: #fff; border-color: #2563eb; }
body #content .navigation.pagination .page-numbers { margin: 0; }
/* Listele native de categorii, arhive, autor și rezultate de căutare. */
body #content .mg-posts-sec-post {
  display: flex !important;
  align-items: center !important;
  gap: 18px;
  margin-bottom: 14px !important;
  padding: 16px !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(23,36,59,.035);
}
body #content .mg-posts-sec-post > .col-md-6 {
  flex: 0 0 230px;
  max-width: 230px;
  width: 230px;
  padding: 0;
}
body #content .mg-posts-sec-post .mg-post-thumb {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 9px;
  background: #edf2fa;
}
body #content .mg-posts-sec-post .mg-post-thumb a { display: block; }
body #content .mg-posts-sec-post .mg-post-thumb img {
  display: block;
  width: 100%;
  height: 164px;
  object-fit: cover;
  margin: 0;
  border-radius: 9px;
}
body #content .mg-posts-sec-post .mg-sec-top-post { min-width: 0; padding: 0 !important; }
body #content .mg-posts-sec-post .entry-title,
body #content .mg-posts-sec-post .entry-title a {
  margin: 6px 0 8px;
  color: #142b4c;
  font-size: 19px !important;
  line-height: 1.35 !important;
  letter-spacing: normal;
  text-decoration: none;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
body #content .mg-posts-sec-post .mg-content p { margin: 0 !important; color: #60718a; font-size: 13px !important; line-height: 1.6 !important; }
body #content .mg-posts-sec-post .mg-blog-meta:empty { display: none; }
body #content .mg-posts-sec-post .mg-blog-category a {
  padding: 4px 7px;
  border-radius: 5px;
  background: #edf3ff;
  color: #1d4ed8;
  font-size: 10px;
  line-height: 1.3;
}
body #content .mg-posts-sec-post .post-form { display: none; }
/* Barre laterale: se păstrează toate widgeturile și linkurile. */
body #secondary .mg-widget {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f6f9fd;
  box-shadow: none;
}
body #secondary :is(.widget-title, .wp-block-heading, .mg-widget-title h6) { font-size: 17px; line-height: 1.35; color: #142b4c; }
body #secondary :is(li,p,a) { font-size: 13px; line-height: 1.55; }
/* Tabelele vechi păstrează toate coloanele, cu derulare când este nevoie. */
body #content :is(.page-content, .page-content-single, .entry-content) table:not(.fam-table-scroll table, .wp-block-table table) {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  border-collapse: collapse;
}
body #content :is(.page-content, .page-content-single, .entry-content) :is(td,th) { padding: 10px 12px; border-color: #e2e8f0; }
/* Imagini și încorporări responsive, fără decuparea fotografiilor din conținut. */
body #content :is(.page-content, .page-content-single, .entry-content) img { max-width: 100% !important; height: auto; border-radius: 9px; }
body #content :is(iframe,video,pre) { max-width: 100%; }
/* Modulele moderne deja publicate primesc aceeași scară pe desktop. */
@media (min-width: 768px) {
  body #content :is(.fn-header,.fa-hero,.fc-header,.fd-header,.fe-header,.fp-header,.fr-hero,.fs-header,.fo-hero,.pi-header) {
    padding: 22px 24px !important;
    margin-bottom: 18px !important;
    border-radius: 13px !important;
  }
  body #content :is(.fn-header,.fa-hero,.fc-header,.fd-header,.fe-header,.fp-header,.fr-hero,.fs-header,.fo-hero,.pi-header) :is(h1,h2) {
    font-size: 30px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }
  body #content :is(.fn-accordion,.fa-accordion,.fc-person,.fc-section,.fp-card,.fr-card,.fs-card,.fi-card,.fm-section,.fo-card) { padding: 16px !important; margin-bottom: 14px !important; }
  body #content :is(.fn-summary,.fa-summary-text,.fc-person-heading) :is(h2,h3) { font-size: 19px !important; line-height: 1.35 !important; }
}
@media (max-width: 991px) {
  body #content > .container-fluid > .row > :is(.col-lg-9.col-md-8,aside.col-lg-3.col-md-4) { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
  body #content.archive-class { padding-left: 12px; padding-right: 12px; }
  body #content.archive-class > .row { margin-left: -12px; margin-right: -12px; }
  body #content.archive-class > .row > :is([class*="col-"],aside) { padding-left: 12px; padding-right: 12px; }
  body .mg-breadcrumb-section .overlay { padding: 14px 0; }
  body .mg-breadcrumb-title :is(h1,.title) { font-size: 22px; }
  body #content .mg-posts-sec-post { align-items: flex-start !important; gap: 12px; padding: 12px !important; }
  body #content .mg-posts-sec-post > .col-md-6 { flex-basis: 96px; max-width: 96px; width: 96px; }
  body #content .mg-posts-sec-post .mg-post-thumb img { height: 96px; }
  body #content .mg-posts-sec-post .entry-title,
  body #content .mg-posts-sec-post .entry-title a { font-size: 15px !important; line-height: 1.4 !important; }
  body #content .mg-posts-sec-post .mg-content p { font-size: 12px !important; line-height: 1.5 !important; }
  body #content .mg-blog-post-box > .mg-header { padding: 16px 14px !important; margin-bottom: 14px !important; }
  body #content .mg-blog-post-box > .mg-header h1.title,
  body #content .mg-blog-post-box > .mg-header h1.title a { font-size: 21px !important; }
  body #content .page-content-single { padding: 0 14px 16px !important; }
  body #content .mg-blog-post-box > .single-featured-image { width: calc(100% - 28px) !important; max-width: calc(100% - 28px) !important; max-height: 240px; margin: 0 14px 14px !important; }
  body #content :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) { font-size: 16px; }
}


/* FIMSA — Design compact pe telefon.
   Adaugă la FINAL în Aspect > Personalizare > CSS suplimentar.
   Copiază doar CSS-ul, fără etichete <style>.
   Se aplică până la 767 px; afișarea pe calculator se păstrează. */

@media (max-width: 767px) {
  /* Text lizibil, fără micșorarea artificială a întregii pagini. */
  body { font-family: "Segoe UI", Arial, sans-serif; }
  body #content { padding-top: 12px !important; padding-bottom: 12px !important; }
  body #content > .container-fluid { padding-left: 12px; padding-right: 12px; }
  body #content > .container-fluid > .row { margin-left: -12px; margin-right: -12px; }
  body #content > .container-fluid > .row > :is([class*="col-"], aside) { padding-left: 12px; padding-right: 12px; }
  body #content :is(.page-content, .page-content-single, .entry-content, .elementor-widget-text-editor) {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  body #content :is(p, li, address) {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  body #content p { margin-bottom: 10px !important; }
  body #content li { margin-bottom: 5px !important; }
  body #content p:empty { margin: 0 !important; }
  body #content hr { margin-top: 12px !important; margin-bottom: 12px !important; }

  /* Ierarhie clară: titlu principal, secțiune, subtitlu. */
  body #content :is(h1, h2, h3, h4, h5, h6) {
    font-family: "Segoe UI", Arial, sans-serif !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    overflow-wrap: break-word;
  }
  body #content h1 { font-size: 22px !important; }
  body #content h2 { font-size: 19px !important; }
  body #content h3 { font-size: 17px !important; }
  body #content :is(h4, h5, h6) { font-size: 15px !important; }
  body #content .elementor-widget-heading .elementor-heading-title { margin: 0 !important; }
  body #content :is(h1, h2, h3, h4, h5, h6) :is(a, strong, span) {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  /* Elementor: elimină acumularea spațiilor dintre containere. */
  body #content .elementor-top-section:not(.elementor-section-height-full) {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }
  body #content .elementor-top-section > .elementor-container > .elementor-top-column > .elementor-widget-wrap {
    padding: 0 !important;
  }
  body #content .elementor-widget:not(:last-child) { margin-bottom: 10px !important; }
  body #content .elementor-widget-spacer { --spacer-size: 12px !important; }
  body #content .elementor-spacer-inner { height: 12px !important; }
  body #content .e-con {
    --gap: 10px;
    --row-gap: 10px;
    --column-gap: 10px;
  }

  /* Modulele HTML FIMSA: antete, carduri, calendare și documente. */
  body #content :is([class^="fimsa-"], [class*=" fimsa-"]) {
    max-width: 100%;
    min-width: 0;
  }
  body #content :is(.fn-header, .fa-hero, .fc-header, .fd-header, .fe-header,
    .fp-header, .fr-hero, .fs-header, .fo-hero, .pi-header) {
    padding: 14px 15px !important;
    margin-bottom: 12px !important;
    border-radius: 11px !important;
  }
  body #content :is(.fn-header, .fa-hero, .fc-header, .fd-header, .fe-header,
    .fp-header, .fr-hero, .fs-header, .fo-hero, .pi-header) :is(h1, h2) {
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }
  body #content :is(.fn-eyebrow, .fa-eyebrow, .fc-eyebrow, .fd-eyebrow,
    .fe-eyebrow, .fp-eyebrow, .fs-eyebrow, .fo-eyebrow) {
    font-size: 10px !important;
    line-height: 1.45 !important;
    letter-spacing: .7px !important;
    margin-bottom: 5px !important;
  }
  body #content :is(.fn-accordion, .fa-accordion, .fc-person, .fc-section,
    .fp-card, .fr-card, .fs-card, .fi-card, .fm-section, .fo-card,
    .fa-info, .fa-calendar, .fa-announcement, .fo-message, .fd-message) {
    padding: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 10px !important;
  }
  body #content :is(.fn-summary, .fa-summary-text, .fc-person-heading) :is(h2, h3) {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }
  body #content :is(.fn-subtitle, .fa-status, .fc-rank, .fm-description, .fo-year) {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-top: 4px !important;
  }
  body #content :is(.fn-panel, .fa-panel, .fc-panel, .fp-panel, .fr-panel, .fo-panel, .pi-panel) {
    padding-top: 10px !important;
  }
  body #content :is(.fn-links, .fn-shortcuts, .fa-links, .fa-timeline,
    .fc-grid, .fs-grid, .fe-grid, .fm-grid, .fo-columns, .fo-links) { gap: 8px !important; }
  body #content :is(.fn-link, .fn-shortcut, .fa-document, .fo-link, .fi-links a) {
    padding: 9px 11px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    border-radius: 8px !important;
  }
  body #content .fn-shortcut strong { font-size: 16px !important; }
  body #content .fn-shortcut small { font-size: 12px !important; }
  body #content :is(.fa-cta, .fi-button, .fm-button, .fs-button, .fc-button) {
    padding: 9px 12px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    min-height: 40px;
  }
  body #content :is(.fn-accordion, .fa-accordion, .fc-person) > summary {
    gap: 10px !important;
    min-height: 44px;
  }
  body #content .fn-toggle { flex-basis: 28px !important; height: 28px !important; }
  body #content :is(.fa-timeline li, .fi-payment, .fc-method, .fm-program) {
    padding: 11px !important;
  }
  body #content :is(.fc-time, .fm-hours) { font-size: 18px !important; }
  body #content :is(.fd-greeting, .fo-greeting) { font-size: 16px !important; }
  body #content :is(.fd-success, .fo-success) { font-size: 18px !important; }

  /* Articole: titlu complet și margini compacte. */
  body #content :is(.mg-card-box, .mg-blog-post-box) { margin-bottom: 14px !important; }
  body #content .mg-card-box.padding-20 { padding: 12px !important; }
  .fimsa-article-design #content .mg-blog-post-box > .mg-header {
    padding: 16px 14px !important;
    margin-bottom: 14px !important;
  }
  .fimsa-article-design #content .mg-blog-post-box > .mg-header h1.title,
  .fimsa-article-design #content .mg-blog-post-box > .mg-header h1.title a {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }
  .fimsa-article-design #content .page-content-single { padding: 0 14px 16px !important; }
  .fimsa-article-design #content .mg-blog-post-box > .single-featured-image {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    max-height: 240px;
    margin: 0 14px 14px !important;
  }
  .fimsa-article-design #content .fam-meta { margin-bottom: 9px !important; gap: 6px 10px; }
  .fimsa-article-design #content .post-navigation { margin-top: 16px !important; padding-top: 12px !important; }
  .fimsa-article-design #content .mg-featured-slider .title,
  .fimsa-article-design #content .mg-featured-slider .title a { font-size: 13px !important; }

  /* Antet: ambele sigle rămân vizibile. */
  .fimsa-footer-modern-active header.mg-headwidget .mg-nav-widget-area-back .inner { padding: 12px 0 !important; }
  .fimsa-footer-modern-active header.mg-headwidget .navbar-header { gap: 9px 18px !important; }
  .fimsa-footer-modern-active header.mg-headwidget .fimsa-university-logo { width: 145px !important; }
  .fimsa-footer-modern-active header.mg-headwidget .navbar-header .site-logo { width: 102px !important; }
  .fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-title,
  .fimsa-footer-modern-active header.mg-headwidget .site-branding-text .site-title a {
    font-size: 17px !important; line-height: 1.3 !important;
  }
  .fimsa-footer-modern-active header.mg-headwidget .site-description { margin-top: 4px !important; }

  /* Prima pagină și articolele din subsol. */
  body.home #homemain .mg-blog-post.lg { height: 220px !important; }
  body.home #homemain .mg-blog-post .bottom { padding: 35px 14px 14px !important; }
  body.home #homemain .bottom h4.title { font-size: 18px !important; line-height: 1.3 !important; }
  body.home .mg-fea-area > .overlay { padding-top: 12px !important; }
  .fimsa-footer-modern-active .missed-section { margin: 14px auto !important; padding: 0 12px !important; }
  .fimsa-footer-modern-active .fimsa-footer-articles { padding: 12px !important; }
  .fimsa-footer-modern-active .fimsa-fa-heading { margin-bottom: 10px !important; }
  .fimsa-footer-modern-active .fimsa-fa-heading h2 { font-size: 18px !important; }
  .fimsa-footer-modern-active .fimsa-fa-grid { gap: 8px !important; }
  .fimsa-footer-modern-active .fimsa-fa-content h3 { font-size: 13px !important; line-height: 1.4 !important; }
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area { padding: 18px 0 !important; }
  .fimsa-footer-modern-active footer.footer .site-title-footer,
  .fimsa-footer-modern-active footer.footer .site-title-footer a { font-size: 16px !important; line-height: 1.35 !important; }

  /* Ascunde doar widgetul de articole recente din dreapta. */
  #secondary #block-3,
  #secondary .widget_recent_entries { display: none !important; }
}

/* Contact în subsol, prezent pe toate paginile. */
.fimsa-footer-modern-active footer.footer .mg-footer-copyright { display: block !important; }
.fimsa-footer-modern-active .fimsa-footer-contact { max-width: 1240px; padding: 18px 20px 24px; color: #c8d5e6; font-family: "Segoe UI", Arial, sans-serif; text-align: left; }
.fimsa-footer-modern-active .fimsa-contact-intro { margin-bottom: 18px; }
.fimsa-footer-modern-active .fimsa-contact-intro h2 { margin: 0 0 4px; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; }
.fimsa-footer-modern-active .fimsa-contact-intro p { margin: 0; font-size: 13px; line-height: 1.5; color: #c8d5e6; }
.fimsa-footer-modern-active .fimsa-contact-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.fimsa-footer-modern-active .fimsa-contact-grid > div { min-width: 0; }
.fimsa-footer-modern-active .fimsa-contact-grid h3 { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; }
.fimsa-footer-modern-active .fimsa-contact-grid address { margin: 0 0 14px; color: #c8d5e6; font-style: normal; font-size: 13px; line-height: 1.75; }
.fimsa-footer-modern-active .fimsa-contact-grid a { color: #e4edff; text-decoration: none; overflow-wrap: anywhere; }
.fimsa-footer-modern-active .fimsa-contact-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fimsa-footer-modern-active .fimsa-contact-grid a:focus-visible { outline: 2px solid #a7c7ff; outline-offset: 4px; }
.fimsa-footer-modern-active .fimsa-contact-grid :is(.fimsa-contact-email,.fimsa-contact-web) { display: block; margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.fimsa-footer-modern-active .fimsa-contact-grid .fimsa-contact-phone { display: inline-block; font-size: 20px; font-weight: 700; line-height: 1.4; }
.fimsa-footer-modern-active .fimsa-contact-grid .fimsa-map-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 13px; background: #2563eb; border: 1px solid #4b83f5; border-radius: 7px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.fimsa-footer-modern-active .fimsa-map-link svg { flex-shrink: 0; width: 18px; height: 21px; }
.fimsa-footer-modern-active .fimsa-contact-grid .fimsa-map-link:hover { background: #1d4ed8; }
.fimsa-footer-modern-active .fimsa-contact-grid .fimsa-contact-day { margin: 0 0 5px; color: #c8d5e6; font-size: 13px; line-height: 1.5; }
.fimsa-footer-modern-active .fimsa-contact-grid .fimsa-contact-hours { margin: 0; color: #fff; font-size: 23px; font-weight: 700; line-height: 1.3; }
@media (max-width: 767px) {
  .fimsa-footer-modern-active .fimsa-footer-contact { padding: 14px 16px 18px; }
  .fimsa-footer-modern-active .fimsa-contact-intro { margin-bottom: 14px; }
  .fimsa-footer-modern-active .fimsa-contact-intro h2 { font-size: 20px; }
  .fimsa-footer-modern-active .fimsa-contact-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .fimsa-footer-modern-active .fimsa-contact-grid > div + div { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
  .fimsa-footer-modern-active .fimsa-contact-grid h3 { font-size: 14px; margin-bottom: 7px; }
  .fimsa-footer-modern-active .fimsa-contact-grid .fimsa-contact-hours { font-size: 22px; }
}

/* EXTENSIE GLOBALĂ — arhive și pagini Elementor rămase pe stilul anterior. */
body .mg-breadcrumb-section .overlay { padding: 18px 0 0 !important; }
body .mg-breadcrumb-title { padding: 20px 24px; background: linear-gradient(115deg,#142b4c,#214c80); border: 1px solid #284f7e; border-radius: 12px; }
body .mg-breadcrumb-title :is(h1,.title,.title span) { margin: 0 !important; color: #fff !important; font-family: "Segoe UI",Arial,sans-serif !important; font-size: 27px !important; font-weight: 700; line-height: 1.3 !important; }
body .mg-breadcrumb-section .breadcrumb { margin: 10px 0 0; font-size: 12px; }
body #content .mg-posts-sec-post .mg-blog-meta { margin: 5px 0; font-size: 11px; line-height: 1.4; }
body #content .mg-posts-sec-post .mg-blog-meta a { font-size: 11px; }
/* Clasificarea automată se aplică modulelor scurte cu imagine și titlu/link. */
body #content .fimsa-legacy-card { margin: 0 0 12px !important; padding: 12px !important; min-height: 0 !important; border: 1px solid #dfe7f1 !important; border-radius: 11px !important; background: #f6f9fd !important; box-shadow: none !important; }
body #content .fimsa-legacy-card > .elementor-container { display: flex !important; flex-wrap: nowrap !important; gap: 18px !important; align-items: center !important; max-width: 100% !important; min-height: 0 !important; }
body #content .fimsa-legacy-card .fimsa-legacy-image { width: 180px !important; flex: 0 0 180px !important; }
body #content .fimsa-legacy-card .fimsa-legacy-text { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
body #content .fimsa-legacy-card > .elementor-container > .elementor-column > .elementor-widget-wrap { margin: 0 !important; padding: 0 !important; gap: 0 !important; align-content: center !important; }
body #content .fimsa-legacy-card :is(.elementor-widget,.elementor-widget-container) { margin: 0 !important; padding: 0 !important; }
body #content .fimsa-legacy-card :is(.elementor-widget-divider,.elementor-widget-spacer,.fimsa-empty-heading) { display: none !important; }
body #content .fimsa-legacy-card .elementor-widget-image { width: 100% !important; }
body #content .fimsa-legacy-card .elementor-widget-image a { display: block; }
body #content .fimsa-legacy-card .elementor-widget-image img { display: block; width: 100% !important; height: 116px !important; object-fit: cover; border: 0 !important; border-radius: 8px !important; box-shadow: none !important; }
body #content .fimsa-legacy-card .fimsa-legacy-text :is(h1,h2,h3,h4,h5,h6,p) { margin: 0 0 4px !important; text-align: left !important; font-size: 18px !important; line-height: 1.45 !important; color: #142b4c !important; }
body #content .fimsa-legacy-card .fimsa-legacy-text a { background: transparent !important; color: #142b4c !important; font-size: inherit !important; font-weight: 700; letter-spacing: normal !important; text-decoration: none; }
body #content .fimsa-legacy-card .fimsa-legacy-text a:hover { color: #1d4ed8 !important; text-decoration: underline; text-underline-offset: 3px; }
body #content .fimsa-decorative-section { display: none !important; }
/* Pictogramele separatoarelor decorative sunt înlocuite cu o linie discretă. */
body #content .elementor-widget-divider .elementor-divider { padding: 8px 0 !important; }
body #content .elementor-widget-divider .elementor-divider-separator { border-top: 1px solid #e2e8f0 !important; width: 100% !important; }
body #content .elementor-widget-divider .elementor-divider__element { display: none !important; }
body #content .elementor-widget-heading .elementor-heading-title { font-family: "Segoe UI",Arial,sans-serif !important; line-height: 1.35 !important; letter-spacing: normal !important; }
body #content .elementor-widget-heading .elementor-heading-title a { font-family: inherit !important; }
body #content :is(.wp-block-columns,.wp-block-media-text) { gap: 20px; }
body #content .wp-block-group { border-radius: 10px; }
@media (max-width: 767px) {
  body .mg-breadcrumb-title { padding: 15px 16px; border-radius: 10px; }
  body .mg-breadcrumb-title :is(h1,.title,.title span) { font-size: 21px !important; }
  body #content .fimsa-legacy-card { padding: 10px !important; margin-bottom: 10px !important; }
  body #content .fimsa-legacy-card > .elementor-container { gap: 12px !important; }
  body #content .fimsa-legacy-card .fimsa-legacy-image { width: 88px !important; flex-basis: 88px !important; }
  body #content .fimsa-legacy-card .elementor-widget-image img { height: 80px !important; }
  body #content .fimsa-legacy-card .fimsa-legacy-text :is(h1,h2,h3,h4,h5,h6,p) { font-size: 15px !important; line-height: 1.45 !important; }
  body #content :is(.wp-block-columns,.wp-block-media-text) { gap: 12px; }
}

body #content .fimsa-legacy-card .fimsa-legacy-image :is(.elementor-inner-section,.elementor-container,.elementor-column,.elementor-widget-wrap) { padding: 0 !important; margin: 0 !important; min-height: 0 !important; width: 100% !important; }

/* FIMSA — FOOTER COMPACT 1.2.1: contact integrat lângă siglă și denumire. */
.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area { padding: 16px 0 !important; }
.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area > .container-fluid { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row { align-items: flex-start !important; row-gap: 8px !important; }
.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:first-child { display: grid !important; grid-template-columns: auto minmax(0,1fr); align-items: start; column-gap: 14px !important; row-gap: 5px !important; flex: 1 1 0 !important; max-width: none !important; min-width: 0; }
.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:last-child { flex: 0 0 auto !important; max-width: none !important; width: auto !important; padding-top: 2px; }
.fimsa-footer-modern-active footer.footer .site-logo { grid-column: 1; grid-row: 1 / span 2; }
.fimsa-footer-modern-active footer.footer .site-logo .navbar-brand { padding: 6px 8px !important; border-radius: 7px; }
.fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .custom-logo { width: 84px !important; height: auto !important; }
.fimsa-footer-modern-active footer.footer .site-branding-text { grid-column: 2; }
.fimsa-footer-modern-active footer.footer .site-title-footer,
.fimsa-footer-modern-active footer.footer .site-title-footer a { font: 650 16px/1.35 "Segoe UI",Arial,sans-serif !important; margin: 0 !important; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-contact { grid-column: 2; width: 100%; max-width: none; padding: 0 !important; margin: 0 !important; text-align: left; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-contact address,
.fimsa-footer-modern-active footer.footer .fimsa-footer-contact .fimsa-contact-line { padding: 0 !important; margin: 0 0 4px !important; color: #c8d5e6; font: 400 12px/1.55 "Segoe UI",Arial,sans-serif !important; font-style: normal; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-contact a { display: inline; color: #e5edff; font: inherit !important; text-decoration: none; overflow-wrap: anywhere; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-contact strong { color: #edf3ff; font-size: inherit !important; font-weight: 600; }
.fimsa-footer-modern-active footer.footer .fimsa-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; }
.fimsa-footer-modern-active footer.footer .fimsa-contact-actions .fimsa-contact-line { margin: 0 !important; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-contact a.fimsa-map-link { display: inline-flex !important; align-items: center; gap: 5px; min-height: 30px; margin: 0 !important; padding: 4px 8px !important; background: rgba(255,255,255,.08); border: 1px solid rgba(166,194,239,.35); border-radius: 5px; color: #e8f0ff; font: 600 11px/1.4 "Segoe UI",Arial,sans-serif !important; text-decoration: none; }
.fimsa-footer-modern-active footer.footer .fimsa-map-link svg { width: 13px; height: 16px; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-contact a.fimsa-map-link:hover { background: #2563eb; color: #fff; }
.fimsa-footer-modern-active footer.footer .mg-social { gap: 6px !important; }
.fimsa-footer-modern-active footer.footer .mg-social .icon-soci { width: 28px !important; height: 28px !important; font-size: 13px; }
.fimsa-footer-modern-active footer.footer .mg-footer-copyright { padding: 7px 0 !important; background: transparent !important; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-credits { max-width: 1240px; padding: 0 16px; margin: auto; }
.fimsa-footer-modern-active footer.footer .fimsa-footer-credits p,
.fimsa-footer-modern-active footer.footer .fimsa-footer-credits a { font: 400 10.5px/1.5 "Segoe UI",Arial,sans-serif !important; }
@media (max-width: 767px) {
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area { padding: 12px 0 !important; }
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area > .container-fluid { padding-left: 15px; padding-right: 15px; }
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row { margin-left: -10px; margin-right: -10px; }
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:first-child { flex: 0 0 100% !important; max-width: 100% !important; padding-left: 10px; padding-right: 10px; column-gap: 10px !important; row-gap: 8px !important; }
  .fimsa-footer-modern-active footer.footer .site-logo { grid-row: 1; align-self: center; }
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .custom-logo { width: 60px !important; }
  .fimsa-footer-modern-active footer.footer .site-logo .navbar-brand { padding: 5px 6px !important; }
  .fimsa-footer-modern-active footer.footer .site-title-footer,
  .fimsa-footer-modern-active footer.footer .site-title-footer a { font-size: 14px !important; line-height: 1.35 !important; }
  .fimsa-footer-modern-active footer.footer .fimsa-footer-contact { grid-column: 1 / -1; }
  .fimsa-footer-modern-active footer.footer .fimsa-footer-contact address,
  .fimsa-footer-modern-active footer.footer .fimsa-footer-contact .fimsa-contact-line { font-size: 12px !important; line-height: 1.5 !important; margin-bottom: 5px !important; }
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:last-child { padding-left: 10px; padding-right: 10px; padding-top: 0; }
  .fimsa-footer-modern-active footer.footer .mg-social { justify-content: flex-start !important; }
  .fimsa-footer-modern-active footer.footer .mg-social .icon-soci { width: 26px !important; height: 26px !important; }
  .fimsa-footer-modern-active footer.footer .mg-footer-copyright { padding: 6px 0 !important; }
  .fimsa-footer-modern-active footer.footer .fimsa-footer-credits p,
  .fimsa-footer-modern-active footer.footer .fimsa-footer-credits a { font-size: 10px !important; line-height: 1.5 !important; }
}

@media (max-width: 767px) {
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row { position: relative; }
  .fimsa-footer-modern-active footer.footer .mg-footer-bottom-area .row > .col-md-6:last-child { position: absolute; right: 0; bottom: 0; }
  .fimsa-footer-modern-active footer.footer .fimsa-contact-actions { padding-right: 68px; }
}

@media (max-width: 767px) {
  .fimsa-footer-modern-active footer.footer .fimsa-contact-actions { padding-right: 0; }
  .fimsa-footer-modern-active footer.footer .fimsa-contact-actions > .fimsa-contact-line { flex: 1 1 100%; }
  .fimsa-footer-modern-active footer.footer .fimsa-contact-hours { white-space: nowrap; }
}
