/* ============================
   ADRASA FOOTER (ELEMENTOR WIDGET)
============================ */

.adrasa-footer {

  background: #132b57;
  color: #eff7fa;
  padding: 3.5rem 0 5.3125rem;
}

.adrasa-footer__container {
  position: relative;
  padding-top: 2.4375rem;
  padding-bottom: 5.3125rem;
}

/* Divider (top line) */
.adrasa-footer__top-divider {
  height: 1px;
  background: rgba(239, 247, 250, 0.35);
  margin-bottom: 0;
}

/* Force ALL links white + UNDERLINED by default (except images behave naturally) */
.adrasa-footer a {
  color: #eff7fa;
  text-decoration: underline;
  text-decoration-color: rgba(239, 247, 250, 0.85);
  text-underline-offset: 0.375rem;
  text-decoration-thickness: 1px;
}

.adrasa-footer a:hover {
  color: #3fb6e2;
  text-decoration: underline;
  text-decoration-color: #3fb6e2;
  text-underline-offset: 0.375rem;
  text-decoration-thickness: 1px;
}

/* =========================
   ROW 1: title only
========================= */
.adrasa-footer__row1 {
  display: block;
  margin-top: 2.4375rem;
  margin-bottom: 0.875rem;
}

.adrasa-footer__social-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.05;
  color: #c6e3ee;
  white-space: nowrap;
}

/* =========================
   ROW 2: links + menu + location
========================= */
.adrasa-footer__row2 {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2.75rem;
}

/* Social links (left) */
.adrasa-footer__social-links {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
}

.adrasa-footer__social-link {
  /* kept explicit for clarity, but global link rule already underlines */
  text-decoration: underline;
  text-underline-offset: 0.375rem;
  text-decoration-thickness: 1px;
  font-size: 1.125rem;
  white-space: nowrap;
}

/* Center menu */
.adrasa-footer__nav .adrasa-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.adrasa-footer__main-nav {
  min-width: 0;
}

.adrasa-footer__nav .adrasa-footer__menu > li {
  margin: 0;
  padding: 0;
}

.adrasa-footer__nav .adrasa-footer__menu > li > a {
  /* IMPORTANT: do NOT set text-decoration:none here */
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Location (right) */
.adrasa-footer__location {
  justify-self: end;
  text-align: right;
  font-size: 1.125rem;
  opacity: 0.95;
  white-space: nowrap;
}

/* =========================
   LOGOS: single row on desktop
========================= */
.adrasa-footer__logos {
  margin-bottom: 2.125rem;
}

.adrasa-footer__logos-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1.25rem;
}

.adrasa-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.adrasa-footer__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* keep images clean (no underline visual anyway) */
}

.adrasa-footer__logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 4.1875rem!important;
}

.adrasa-footer__logos-list .adrasa-footer__logo:first-child .adrasa-footer__logo-img {
  max-height: 2.0625rem !important;
}

.adrasa-footer__logos-list .adrasa-footer__logo:nth-child(2) .adrasa-footer__logo-img {
  max-height: 2.1875rem !important;
}

.adrasa-footer__logos-list .adrasa-footer__logo:nth-child(3) .adrasa-footer__logo-img {
  max-height: 2.4375rem !important;
}

.adrasa-footer__logos-list .adrasa-footer__logo:nth-child(3) {
  margin-right: auto;
}

.adrasa-footer__logos-list .adrasa-footer__logo:last-child {
  width: 52rem;
  justify-content: flex-end;
}

.adrasa-footer__logos-list .adrasa-footer__logo:last-child .adrasa-footer__logo-img {
  width: 100%;
  max-height: 3.75rem !important;
}


/* =========================
   BOTTOM: legal inline + copyright inline
========================= */
.adrasa-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.adrasa-footer__legal-nav .adrasa-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: nowrap;
}

.adrasa-footer__legal-nav .adrasa-footer__menu > li {
  margin: 0;
  padding: 0;
}

.adrasa-footer__legal-nav .adrasa-footer__menu > li > a {
  /* IMPORTANT: do NOT set text-decoration:none here */
  font-size: 1.125rem;
  opacity: 0.95;
  white-space: nowrap;
}

.adrasa-footer__copyright {
  text-align: right;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: #c6e3ee;
  white-space: nowrap;
}

/* =========================
   MOBILE: stack everything
   (only one breakpoint block)
========================= */
@media (max-width: 991.98px) {
  .elementor-121 .elementor-element.elementor-element-7ca9839 .adrasa-footer__logos-list {
    gap: 1rem !important;
  }

  .adrasa-footer {
    padding: 2.75rem 0 2.125rem;
  }

  .adrasa-footer__container {
    padding-top: 2rem;
    padding-bottom: 2.125rem;
    width: auto;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    padding-left: 0;
    padding-right: 0;
  }

  .adrasa-footer__social-title {
    white-space: normal;
  }

  .adrasa-footer__row1 {
    margin-top: 2rem;
  }

  .adrasa-footer__row2 {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .adrasa-footer__social-links {
    flex-wrap: wrap;
    gap: 1.125rem;
  }

  .adrasa-footer__nav .adrasa-footer__menu {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.875rem;
    flex-wrap: wrap;
  }

  .adrasa-footer__location {
    text-align: left;
    white-space: normal;
  }

  .adrasa-footer__logos-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 1rem;
    align-items: center;
    justify-content: start;
    width: 100%;
  }

  .adrasa-footer__logos {
    order: 4;
    margin-bottom: 0;
    margin-top: 1.5rem;
  }

  .adrasa-footer__bottom {
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
  }

  .adrasa-footer__legal {
    width: 100%;
    min-width: 0;
  }

  .adrasa-footer__legal-nav {
    width: 100%;
    min-width: 0;
  }

  .adrasa-footer__legal-nav .adrasa-footer__menu {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .adrasa-footer__legal-nav .adrasa-footer__menu > li {
    min-width: 0;
    flex: 0 1 auto;
  }

  .adrasa-footer__legal-nav .adrasa-footer__menu > li > a {
    display: block;
    font-size: clamp(0.72rem, 2.28vw, 0.86rem);
    line-height: 1.18;
    white-space: nowrap;
  }

  .adrasa-footer__copyright {
    text-align: left;
    white-space: nowrap;
    font-size: clamp(0.94rem, 4.15vw, 1.2rem);
    line-height: 1.05;
  }

  .adrasa-footer__container {
    display: flex;
    flex-direction: column;
  }

  .adrasa-footer__logo {
    width: auto;
    max-width: 100%;
    margin-top: 0;
    min-width: 0;
  }

  .adrasa-footer__logos-list .adrasa-footer__logo:last-child {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
  }

  .adrasa-footer__logos-list .adrasa-footer__logo:nth-child(3) {
    margin-right: 0;
  }

  .adrasa-footer__logo + .adrasa-footer__logo {
    margin-top: 0;
  }

  .adrasa-footer__logo-link {
    width: auto;
    max-width: 100%;
  }

  .adrasa-footer__logo-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none !important;
  }

  .adrasa-footer__logos-list .adrasa-footer__logo:first-child .adrasa-footer__logo-img {
    width: auto;
    max-height: 2rem !important;
  }

  .adrasa-footer__logos-list .adrasa-footer__logo:nth-child(2) .adrasa-footer__logo-img {
    max-height: 1.6rem !important;
  }

  .adrasa-footer__logos-list .adrasa-footer__logo:nth-child(3) .adrasa-footer__logo-img {
    max-height: 2rem !important;
  }

  .adrasa-footer__logos-list .adrasa-footer__logo:last-child .adrasa-footer__logo-img {
    width: 100%;
    max-height: none !important;
    max-width: 100%;
  }

  /* Make sure the grid item itself doesn't center */
  .adrasa-footer__nav {
    justify-self: start;
    text-align: left;
  }
  
  /* THIS is the main fix */
  .adrasa-footer__nav .adrasa-footer__menu {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;  /* <--- was "center" in desktop rules */
    flex-direction: column;
  }
  
  /* Ensure each link reads as left-aligned */
  .adrasa-footer__nav .adrasa-footer__menu > li,
  .adrasa-footer__nav .adrasa-footer__menu > li > a {
    width: 100%;
    text-align: left;
  }
  
}


/* Disable WPML legacy footer language switcher */
.wpml-ls-statics-footer,
.wpml-ls-legacy-list-horizontal {
  display: none !important;
}

body.adrasa-theme--green .adrasa-footer {
    background: #336B64 !important;
}
