/*
 * Tarannom footer port
 * Kept isolated so reverting the footer only requires removing this stylesheet
 * and restoring the previous <footer class="site-footer">.
 */

.tarannom-footer {
  --footer-ink: #405060;
  --footer-title: #102c44;
  --footer-accent: #0b8ec8;
  --footer-link: #0262b4;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  color: var(--footer-ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(122, 188, 219, 0.14), transparent 34%),
    radial-gradient(circle at 12% 86%, rgba(91, 145, 187, 0.09), transparent 38%),
    linear-gradient(135deg, #f8fbfd 0%, #eff7fb 48%, #e7f2f8 100%);
  border-top: 1px solid rgba(70, 129, 173, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 -18px 48px rgba(9, 49, 76, 0.06);
}

.tarannom-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 52%;
  opacity: 0.55;
  background: linear-gradient(to top, rgba(115, 169, 201, 0.08), transparent);
  pointer-events: none;
}

.tarannom-footer::after {
  content: none;
}

.tarannom-footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(250px, 0.88fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
  padding: clamp(3.35rem, 6vw, 5.6rem) 0 clamp(2.8rem, 5vw, 4.6rem);
}

.tarannom-footer__column {
  position: relative;
  min-width: 0;
  z-index: 2;
}

.tarannom-footer__title {
  position: relative;
  margin: 0 0 1.8rem;
  padding-bottom: 0.85rem;
  color: var(--footer-title);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.65;
}

.tarannom-footer__title::after {
  position: absolute;
  content: "";
  height: 3px !important;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 100%;
  background-image: url("./assets/images/footer/title-bg3.png");
  background-position: 100% 100%;
  background-repeat: no-repeat;
}

.tarannom-footer__title strong {
  color: var(--footer-accent);
  font-weight: 800;
}

.tarannom-footer__column--about .tarannom-footer__title {
  margin-bottom: 1rem;
}

.tarannom-footer__brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1.25rem;
  opacity: 0.86;
  border-radius: 4px;
  transition: opacity 180ms ease;
}

.tarannom-footer__brand:hover {
  opacity: 1;
}

.tarannom-footer__brand:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(11, 142, 200, 0.42);
  outline-offset: 6px;
}

.tarannom-footer__brand img {
  display: block;
  width: min(210px, 72vw);
  height: auto;
}

.tarannom-footer__about {
  margin-top: 0;
  font-size: 0.93rem;
  line-height: 2.15;
  text-align: justify;
}

.tarannom-footer__about strong {
  color: #1b5e89;
  font-weight: 750;
}

.tarannom-contact {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  font-style: normal;
}

.tarannom-contact__item {
  position: relative;
  min-height: 48px;
  padding-inline-start: 54px;
}

.tarannom-contact__icon {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 48px;
  color: #2f6f96;
  font-size: 1.22rem;
  border-inline-end: 1px solid rgba(64, 80, 96, 0.28);
}

.tarannom-contact__label {
  margin-bottom: 0.18rem;
  color: rgba(64, 80, 96, 0.7);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.6;
}

.tarannom-contact__text {
  color: #203f58;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.75;
}

.tarannom-contact__text a {
  color: var(--footer-link);
  text-decoration: none;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.tarannom-contact__text a:hover,
.tarannom-contact__text a:focus-visible {
  color: #079ed5;
  text-shadow: 0 0 18px rgba(7, 158, 213, 0.24);
}

.tarannom-contact__text a:focus-visible {
  outline: 2px solid rgba(7, 158, 213, 0.35);
  outline-offset: 4px;
  border-radius: 3px;
}

.tarannom-contact__ltr {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.tarannom-footer__base {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(64, 80, 96, 0.13);
  background: rgba(237, 246, 251, 0.46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.tarannom-footer__base-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  width: min(100% - 3rem, 1180px);
  min-height: 62px;
  margin-inline: auto;
  padding-block: 0.8rem;
  color: rgba(64, 80, 96, 0.75);
  font-size: 0.79rem;
}

.tarannom-footer__base p {
  margin: 0;
}

.tarannom-footer__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarannom-footer__quicklinks a {
  color: #315b77;
  text-decoration: none;
  transition: color 180ms ease;
}

.tarannom-footer__quicklinks a:hover,
.tarannom-footer__quicklinks a:focus-visible {
  color: var(--footer-accent);
}

.tarannom-footer .hrfooter {
  position: relative;
  z-index: 4;
  clear: both;
  width: min(744px, calc(100% - 2rem));
  height: 57px;
  margin: -25px auto -48px;
  background: url("./assets/images/footer/div.png") no-repeat scroll;
  background-position: 50% 50%;
  background-size: contain;
  text-align: center !important;
  pointer-events: none;
}

html[lang="en"] .tarannom-footer__about {
  text-align: left;
}

html[lang="en"] .tarannom-footer__title::after {
  background-position: 0 100%;
}

@media (max-width: 980px) {
  .tarannom-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tarannom-footer__column--about {
    grid-column: 1 / -1;
  }

}

@media (max-width: 680px) {
  .tarannom-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    width: min(100% - 2rem, 560px);
    padding-block: 3.2rem 2.8rem;
  }

  .tarannom-footer__column--about {
    grid-column: auto;
  }

  .tarannom-footer__title {
    margin-bottom: 1.4rem;
  }

  .tarannom-footer__about {
    font-size: 0.88rem;
    line-height: 2.05;
  }

  .tarannom-footer__base-inner {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 2rem, 560px);
    padding-block: 1.15rem;
  }
}

@media print {
  .tarannom-footer {
    color: #000;
    background: #fff;
    box-shadow: none;
  }

  .tarannom-footer .hrfooter {
    display: none;
  }
}
