/* This Is Eventful homepage advert. Brand colours, mark and campaign image are
   sourced from the live, owner-controlled TIE website. Keep this component
   scoped so it cannot change Modern Expat editorial modules. */
.tie-ad {
  position: relative;
  left: 50%;
  width: 100vw;
  margin: 36px 0 42px -50vw;
  padding: 0;
  overflow: hidden;
  background: #090b0a;
  font-family: Arial, Helvetica, sans-serif;
}

.latest-articles .latest-articles__title {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  line-height: 0.94;
}

.latest-articles .latest-articles__title span { display: block; }

.tie-ad .tie-ad__link {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 390px;
  color: #fff;
  text-decoration: none;
}

.tie-ad .tie-ad__link:focus-visible {
  outline: 3px solid #db0054;
  outline-offset: -6px;
}

.tie-ad .tie-ad__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 50px clamp(34px, 5vw, 84px) 52px max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  background: #090b0a;
}

.tie-ad .tie-ad__label {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.tie-ad .tie-ad__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}

.tie-ad .tie-ad__identity img {
  display: block;
  width: 94px;
  height: auto;
  margin: -12px 0;
  object-fit: contain;
}

.tie-ad .tie-ad__identity strong {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.tie-ad .tie-ad__headline {
  max-width: 15ch;
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(40px, 4.25vw, 66px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-transform: none;
}

.tie-ad .tie-ad__services {
  display: block;
  max-width: 34ch;
  margin-top: 24px;
  color: #fff;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.tie-ad .tie-ad__services i {
  color: #db0054;
  font-style: normal;
}

.tie-ad .tie-ad__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 2px solid #db0054;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.tie-ad .tie-ad__cta svg {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

.tie-ad .tie-ad__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #1c2220;
}

.tie-ad .tie-ad__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090b0a 0%, rgba(9, 11, 10, 0.2) 22%, rgba(9, 11, 10, 0) 52%);
  content: "";
}

.tie-ad .tie-ad__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.95) contrast(1.05) brightness(0.9);
  transition: transform 420ms ease, filter 260ms ease;
}

.tie-ad .tie-ad__link:hover .tie-ad__media img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.05) brightness(0.96);
}

.tie-ad .tie-ad__link:hover .tie-ad__cta svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .tie-ad .tie-ad__link { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); }
  .tie-ad .tie-ad__copy { padding-right: 32px; }
}

@media (max-width: 700px) {
  .tie-ad { margin-top: 28px; margin-bottom: 32px; }

  .tie-ad .tie-ad__link {
    grid-template-columns: 1fr;
    grid-template-rows: auto 220px;
    min-height: 0;
  }

  .tie-ad .tie-ad__copy { padding: 34px var(--pad) 36px; }
  .tie-ad .tie-ad__label { margin-bottom: 16px; }
  .tie-ad .tie-ad__identity { margin-bottom: 18px; }
  .tie-ad .tie-ad__identity img { width: 82px; }
  .tie-ad .tie-ad__identity strong { font-size: 16px; }
  .tie-ad .tie-ad__headline { max-width: 12ch; font-size: clamp(38px, 11.4vw, 50px); }
  .tie-ad .tie-ad__services { max-width: 28ch; margin-top: 20px; font-size: clamp(19px, 5.5vw, 23px); }
  .tie-ad .tie-ad__cta { margin-top: 24px; }

  .tie-ad .tie-ad__media::after {
    background: linear-gradient(180deg, #090b0a 0%, rgba(9, 11, 10, 0.06) 28%, rgba(9, 11, 10, 0) 62%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tie-ad .tie-ad__cta svg,
  .tie-ad .tie-ad__media img { transition: none; }
}
