.fs-sections {
  width: 100%;
}

.fs-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 64px 24px;
  box-sizing: border-box;
}

.fs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.fs-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #fff;
}

.fs-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.2px;
  color: #f0e7d6;
}

.fs-desc {
  margin: 0 auto 22px;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  color: #f0e7d6;
}

.fs-btn {
  background-color: transparent !important;
  border: 1px solid #f0e7d6 !important;
  color: #f0e7d6 !important;
}
.fs-btn:hover {
  color: #000 !important;
  background-color: #f0e7d6 !important;
}

.fs-empty {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

/***/
.exp-grid-wrap {
  width: 100%;
  padding: 40px 0;
  box-sizing: border-box;
  max-width: 1200px;
  margin: auto;
}

/* FLEX GRID */
.exp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* 2 columns */
.exp-card {
  width: calc(50% - (clamp(14px, 2vw, 26px) / 2));
  display: flex;
  flex-direction: column;
  position: relative;
  flex-basis: calc(50% - 30px);
  max-width: calc(50% - 30px);
  margin-bottom: 1.875rem;
}

/* 1 column on mobile */
@media (max-width: 768px) {
  .exp-card {
    width: 100%;
  }
}

/* CARD MEDIA */
.exp-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.exp-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  transition: opacity 200ms ease;
}

.exp-card-media:hover .exp-card-media-overlay {
  opacity: 0.85;
}

/* CARD BODY */
.exp-card-body {
  padding: 1.25rem 1.25rem 0;
}

.exp-card-title {
  margin: 0 0 10px;
}

.exp-card-desc {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.66;
}

.exp-card .btn {
  margin-left: unset !important;
}

/**/
.exp-intro {
  padding: clamp(28px, 4vw, 64px) clamp(18px, 4vw, 72px);
}
.exp-intro-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.exp-intro-title {
  margin: 0 0 12px;
}
.exp-intro-desc {
  margin: 0;
}

.exp-after-image img {
  width: 100%;
  max-width: 1500px;
  height: auto;
  display: block;
  margin: 40px auto 80px auto;
}

.fs-sections.experience-inner .subhero {
  margin-bottom: 20px !important;
}

/* Make sure the media layer behaves like the old background on desktop */
.fs-section--split {
  position: relative;
}

.fs-section--split .fs-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Keep overlay above media but below content */
.fs-section--split .fs-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep inner content above everything */
.fs-section--split .fs-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Mobile: image on top, content on white background */
@media (max-width: 767px) {
  /* Turn the section into stacked blocks */
  .fs-section--split {
    min-height: auto !important;
    padding: 0 !important;
    background-image: none !important; /* just in case old inline bg exists somewhere */
    display: block;
  }

  /* Make image a real top block (not absolute) */
  .fs-section--split .fs-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 10; /* adjust if you want */
  }

  /* Remove overlay for mobile (optional, but matches your request) */
  .fs-section--split .fs-overlay {
    display: none !important;
  }

  /* White content block */
  .fs-section--split .fs-inner {
    background: #fff;
    color: #111;
    text-align: center !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 6.5%;
  }

  /* Ensure text becomes dark on white */
  .fs-section--split .fs-title,
  .fs-section--split .fs-desc {
    color: #111 !important;
    text-shadow: none !important;
  }

  .fs-btn {
    background-color: #f0e7d6 !important;
    color: #000 !important;
  }
  .fs-btn:hover {
    background-color: #000 !important;
    color: #f0e7d6 !important;
    border-color: #000 !important;
  }
}
/** template #2 ***/
/* Fix the 1-column switch properly */
@media (max-width: 767px) {
  .exp-card {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}

/* Mobile: image top + white content */
@media (max-width: 768px) {
  /* Keep image visible and clean */
  .exp-card-media {
    aspect-ratio: 16 / 10; /* shorter on mobile */
  }

  /* Remove dark overlay on mobile if you want the "clean image" look */
  .exp-card-media-overlay {
    background: transparent;
  }

  .exp-card-body {
    padding: 18px 16px 22px;
  }

  .exp-card-title,
  .exp-card-desc {
    color: #111;
  }
}
/** hero **/
@media (max-width: 767px) {
  /* Stop overlay/absolute positioning so content becomes normal flow */
  .hero.hero-exp {
    height: auto !important;
    min-height: auto !important;
  }

  /* Ensure media behaves like a top block */
  .hero.hero-exp > video,
  .hero.hero-exp > .hero-image {
    display: block;
    width: 100%;
    height: auto;
  }

  /* If your theme forces hero media to be absolute, undo it on mobile */
  .hero.hero-exp > video,
  .hero.hero-exp > .hero-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  /* If you want a consistent crop instead of auto height, uncomment:
  .hero.hero-exp > video,
  .hero.hero-exp > .hero-image{
    width: 100%;
    height: 42vh;
    object-fit: cover;
  }
  */

  /* Make the text area sit UNDER the image on a clear (white) background */
  .hero.hero-exp .hero-content {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    text-align: center !important;
    max-width: none !important;
    width: 100%;
  }

  /* Your hero has color-beige; force readable text on white */
  .hero.hero-exp .hero-content,
  .hero.hero-exp .hero-content * {
    color: #111 !important;
  }

  .experience-inner .hero.hero-exp {
    margin-bottom: 40px;
  }
}

.experience-inner .subhero p,
.experience-inner .hero p {
  font-size: 0.9375rem;
  line-height: 1.66;
}
.experience-inner h1,
.fs-sections h1 {
  font-weight: 400;
}

.hero.hero-exp .hero-content {
  padding: 6.5%;
}

.fs-sections .fs-desc p {
  font-size: 0.9375rem;
  line-height: 1.66;
}

@media screen and (max-width: 991px) {
  .hero.hero-exp .anim-line {
    display: none;
  }
  .hero.hero-exp::before,
  .hero.hero-exp::after {
    content: none !important;
    display: none !important;
  }
}

@media screen and (max-width: 1200px) {
  section.exp-grid-wrap,
  .exp-after-image {
    padding-right: 1.875rem;
    padding-left: 1.875rem;
  }
}

.experience-inner h2.exp-card-title {
  font-size: 22px;
}

.experience-inner .btn.btn-text {
  font-size: 14px;
}
