/* =========================================================
   FLY WORLD — DUBAI TRAVEL GUIDE  (fly-world-travel-insights)
   Homepage module [fw_travel_insights], V2: published Dubai Travel
   Guides only, 1–4 articles. Scoped to .fwti.
========================================================= */

.fwti,
.fwti * {
  box-sizing: border-box;
}

.fwti {
  --fwti-navy: #092858;
  --fwti-deep: #04162f;
  --fwti-gold: #C59335;
  --fwti-gold-soft: #D8AD59;
  --fwti-ivory: #F8F6F1;
  --fwti-line: rgba(9,40,88,.11);

  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 72px 0 84px;
  background-color: #F8F6F1;
  background:
    radial-gradient(circle at 92% 0%, rgba(197,147,53,.07), transparent 28%),
    linear-gradient(180deg, #FBFAF6 0%, #F6F3EC 100%);
  color: var(--fwti-navy);
  font-family: "Manrope", sans-serif;
}

/* Neutralise theme / Elementor element defaults inside the module. */
.fwti h2,
.fwti h3,
.fwti p {
  margin: 0;
  padding: 0;
}

.fwti a,
.fwti a:hover,
.fwti a:focus {
  color: inherit;
  text-decoration: none;
}

.fwti__inner {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.fwti__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 26px;
}

.fwti__heading {
  min-width: 0;
}

.fwti__eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fwti-gold);
}

.fwti__eyebrow-line {
  width: 30px;
  height: 1px;
  background: var(--fwti-gold);
}

/* Admin-only draft preview marker (rendered only for manage_options while nothing is published). */
.fwti__preview-label {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 4px;
  padding: 0 8px;
  border: 1px dashed rgba(9,40,88,.28);
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(9,40,88,.62);
  background: rgba(255,255,255,.65);
}

.fwti .fwti__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 4.4vw, 64px);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--fwti-deep);
}

.fwti .fwti__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--fwti-gold);
}

.fwti__intro {
  flex: 0 1 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
  padding-bottom: 4px;
}

.fwti__intro p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(9,40,88,.72);
}


/* CTA */

.fwti .fwti__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(197,147,53,.55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--fwti-navy);
  transition: color .25s ease, border-color .25s ease;
}

.fwti .fwti__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--fwti-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.fwti__cta-wrap--footer {
  display: none;
}


/* =========================================================
   SHARED STORY ELEMENTS
========================================================= */

.fwti .fwti__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.fwti .fwti-img-empty {
  background: linear-gradient(135deg, #0d2f63, var(--fwti-deep));
}

.fwti__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.fwti__index {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--fwti-gold);
}

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

.fwti__arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fwti .fwti__link {
  display: block;
  cursor: pointer;
}

.fwti .fwti__link:focus-visible {
  outline: 3px solid var(--fwti-gold);
  outline-offset: 4px;
}


/* =========================================================
   FEATURED STORY
========================================================= */

.fwti__feature-media {
  position: relative;
  height: 460px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--fwti-deep);
  isolation: isolate;
  box-shadow: 0 14px 34px rgba(4,22,47,.08);
}

/* Wide panels crop vertically. Anchor to the top so skylines and tall landmarks keep their
   tops; the lower part of any image sits under the title shade anyway. */
.fwti .fwti__img--feature {
  object-position: center top;
}

.fwti__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,16,35,0) 45%, rgba(3,16,35,.30) 72%, rgba(3,16,35,.82) 100%);
}

.fwti__feature-copy {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 120px;
  bottom: 30px;
}

.fwti .fwti__feature-title {
  max-width: 640px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
}

.fwti__feature .fwti__arrow {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  width: 52px;
  height: 52px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}


/* =========================================================
   SUPPORTING STORIES
========================================================= */

.fwti__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 26px;
}

.fwti__story {
  min-width: 0;
}

.fwti__story-inner {
  height: 100%;
}

.fwti__story-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--fwti-line);
  /* Keep the border over the page colour, not the navy fill (avoids a dark outline). */
  background: #E9E4D8;
  background-clip: padding-box;
}

.fwti .fwti__img--story {
  object-position: center center;
}

.fwti__story-copy {
  padding: 16px 2px 0;
}

.fwti .fwti__story-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--fwti-deep);
  transition: color .25s ease;
}

.fwti__story .fwti__arrow {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  color: var(--fwti-gold);
  transition: transform .3s ease;
}

.fwti__excerpt {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(9,40,88,.66);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================================================
   ARTICLE COUNT LAYOUTS (1–4 published guides)
   count-1: featured only (no row is rendered)
   count-2: one supporting story, laid out horizontally
   count-3: two supporting stories side by side
   count-4: three supporting stories (default grid above)
========================================================= */

.fwti--count-2 .fwti__row {
  grid-template-columns: minmax(0, 1fr);
}

.fwti--count-2 .fwti__story-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 36px;
}

.fwti--count-2 .fwti__story-copy {
  padding: 0;
  max-width: 560px;
}

.fwti.fwti--count-2 .fwti__story-title {
  font-size: clamp(30px, 2.6vw, 38px);
}

.fwti.fwti--count-2 .fwti__excerpt {
  margin-top: 14px;
  font-size: 14.5px;
  -webkit-line-clamp: 3;
}

.fwti--count-3 .fwti__row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   INTERACTION (every rendered story is a published article)
========================================================= */

.fwti .fwti__link:focus-visible .fwti__img {
  transform: scale(1.035);
}

.fwti .fwti__feature .fwti__link:focus-visible .fwti__arrow {
  background: var(--fwti-gold);
  border-color: var(--fwti-gold);
  color: var(--fwti-deep);
}

@media (hover: hover) {

  .fwti .fwti__link:hover .fwti__img {
    transform: scale(1.035);
  }

  .fwti .fwti__feature .fwti__link:hover .fwti__arrow {
    background: var(--fwti-gold);
    border-color: var(--fwti-gold);
    color: var(--fwti-deep);
    transform: translate(2px, -2px);
  }

  .fwti__story .fwti__link:hover .fwti__story-title {
    color: var(--fwti-navy);
  }

  .fwti__story .fwti__link:hover .fwti__arrow {
    transform: translate(3px, -3px);
  }

  .fwti .fwti__cta:hover {
    color: var(--fwti-deep);
    border-color: var(--fwti-gold);
  }

  .fwti .fwti__cta:hover svg {
    transform: translateX(4px);
  }

}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1280px) {

  .fwti__inner {
    width: min(1180px, calc(100% - 48px));
  }

  .fwti__feature-media {
    height: 430px;
  }

  .fwti .fwti__story-title {
    font-size: 25px;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

  .fwti {
    padding: 70px 0 74px;
  }

  .fwti__inner {
    width: min(920px, calc(100% - 44px));
  }

  .fwti__header {
    gap: 32px;
  }

  .fwti__intro {
    flex-basis: 300px;
  }

  .fwti__feature-media {
    height: 400px;
  }

  .fwti--count-2 .fwti__story-inner {
    gap: 26px;
  }

  .fwti__feature-copy {
    left: 28px;
    bottom: 26px;
    right: 100px;
  }

  .fwti__feature .fwti__arrow {
    right: 26px;
    bottom: 26px;
  }

  .fwti__row {
    gap: 18px;
    margin-top: 22px;
  }

  .fwti .fwti__story-title {
    font-size: 22px;
  }

  .fwti__excerpt {
    font-size: 12.5px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .fwti {
    padding: 62px 0 64px;
  }

  .fwti__inner {
    width: calc(100% - 30px);
  }

  .fwti__header {
    display: block;
    margin-bottom: 24px;
  }

  .fwti .fwti__title {
    font-size: clamp(42px, 12.5vw, 54px);
  }

  .fwti__intro {
    display: block;
    text-align: left;
    padding: 0;
    margin-top: 14px;
  }

  .fwti__intro p {
    font-size: 13.5px;
  }

  .fwti__cta-wrap--header {
    display: none;
  }

  .fwti__cta-wrap--footer {
    display: block;
    margin-top: 30px;
  }

  .fwti__feature-media {
    height: 380px;
    border-radius: 16px;
  }

  .fwti .fwti__img--feature {
    object-position: 30% center;
  }

  .fwti__feature-copy {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .fwti .fwti__feature-title {
    font-size: 36px;
  }

  .fwti__feature .fwti__arrow {
    top: 18px;
    right: 18px;
    bottom: auto;
    width: 44px;
    height: 44px;
    padding: 12px;
  }

  .fwti__row,
  .fwti--count-3 .fwti__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-top: 30px;
  }

  .fwti--count-2 .fwti__story-inner {
    display: block;
  }

  .fwti--count-2 .fwti__story-copy {
    padding: 14px 2px 0;
  }

  .fwti.fwti--count-2 .fwti__story-title {
    font-size: 27px;
  }

  .fwti.fwti--count-2 .fwti__excerpt {
    margin-top: 9px;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .fwti__story-media {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .fwti__story-copy {
    padding-top: 14px;
  }

  .fwti .fwti__story-title {
    font-size: 27px;
  }

  .fwti__excerpt {
    font-size: 13px;
  }

}

@media (max-width: 390px) {

  .fwti__inner {
    width: calc(100% - 22px);
  }

  .fwti__feature-media {
    height: 360px;
  }

  .fwti .fwti__feature-title {
    font-size: 33px;
  }

  .fwti .fwti__story-title {
    font-size: 25px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .fwti .fwti__img,
  .fwti .fwti__arrow,
  .fwti .fwti__cta,
  .fwti .fwti__cta svg,
  .fwti .fwti__story-title {
    transition: none !important;
  }

}
