@font-face {
  font-family: "LemonMilk";
  src: url("LEMONMILK-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.case-studies-page {
  background-color: #ebebeb;
  padding: 60px 0 100px; /* Extra bottom padding so background extends into footer */
}

.featured-hero {
  border-radius: 16px;
  background-color: #dde6ee;
}

.featured-hero__container {
  display: flex;
  gap: 32px;
  padding: 32px 40px;
  align-items: stretch; /* make columns equal height */
  min-height: 550px; /* Increased height to accommodate more text */
  height: 550px; /* Fixed height to prevent content-based size changes */
}

.featured-hero__media {
  flex: 0 0 48%;
  display: flex;           /* allow inner to stretch */
  align-items: stretch;
}

.featured-hero__media-figure {
  margin: 0;
  display: flex;
  width: 100%;
  height: 100%;            /* match content column height */
}

.featured-hero__media-inner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  flex: 1;                 /* fill column height */
}

.featured-hero__media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop to match height nicely */
}

.featured-hero__media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  background: #09e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-hero__media-play-icon {
  display: block;
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px; /* slight nudge to visually center the triangle */
}

.featured-hero__content {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden; /* Prevent content overflow */
  min-width: 0; /* Allow flex shrinking */
}

.featured-hero__eyebrow {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: #494949;
}

.featured-hero__title {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1; /* Slightly more breathing room */
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #494949;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Allow 3 lines for longer titles */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.featured-hero__meta {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  color: #4c4f5a;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Allow 2 lines for meta text */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.featured-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.featured-hero__tag-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: #cfe9ff;
  font-size: 14px;
  color: #3b3e47;
}

.featured-hero__tag-pill--primary {
  background-color: #f6941f;
  color: #fff;
}

.featured-hero__description {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: #4c4f5a;
  margin: 0 0 24px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Allow 2 lines for description */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.featured-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.featured-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
}

.featured-hero__btn--primary {
  background-color: #f6941f;
  color: #fff;
}

.featured-hero__btn--secondary {
  background-color: #09e;
  color: #fff;
}

/* ===============================
   Featured Hero Carousel Styles
   =============================== */

.featured-hero__carousel-wrapper {
  position: relative;
  width: 100%;
}

.featured-hero__carousel {
  position: relative;
  overflow: hidden;
}

.featured-hero__carousel-track {
  position: relative;
  width: 100%;
  min-height: 550px; /* Match container fixed height */
}

/* Ensure track maintains height based on active slide */
.featured-hero__carousel-track::after {
  content: '';
  display: block;
  clear: both;
}

.featured-hero__slide {
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  min-height: 550px; /* Match container fixed height */
}

.featured-hero__slide--active {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
  pointer-events: auto;
  min-height: 550px; /* Match container fixed height */
}

/* Navigation Arrows */
.featured-hero__carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #494949;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.featured-hero__carousel-nav:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.featured-hero__carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.featured-hero__carousel-nav--prev {
  left: 16px;
}

.featured-hero__carousel-nav--next {
  right: 16px;
}

.featured-hero__carousel-nav svg {
  width: 24px;
  height: 24px;
}

/* Dot Indicators */
.featured-hero__carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.featured-hero__carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(73, 73, 73, 0.3);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.featured-hero__carousel-dot:hover {
  background: rgba(73, 73, 73, 0.5);
  transform: scale(1.2);
}

.featured-hero__carousel-dot--active {
  background: #494949;
  width: 32px;
  border-radius: 6px;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
  .case-studies-page {
    padding: 40px 0 80px; /* Reduced mobile padding, still extends to footer */
  }

  .featured-hero__carousel-nav {
    width: 40px;
    height: 40px;
  }

  .featured-hero__carousel-nav--prev {
    left: 8px;
  }

  .featured-hero__carousel-nav--next {
    right: 8px;
  }

  .featured-hero__carousel-nav svg {
    width: 20px;
    height: 20px;
  }

  .featured-hero__carousel-dots {
    padding: 16px 0;
  }

  /* Scale LemonMilk typography on mobile */
  .featured-hero__eyebrow {
    font-size: 28px; /* 36px -> 28px */
  }

  .featured-hero__title {
    font-size: 32px; /* 42px -> 32px */
  }

  .featured-hero__meta {
    font-size: 14px; /* 16px -> 14px */
  }

  .featured-hero__description {
    font-size: 14px; /* 16px -> 14px */
    line-height: 1.5;
    -webkit-line-clamp: 3; /* Allow 3 lines on mobile */
    line-clamp: 3;
    max-height: 4.5em; /* 3 lines * 1.5 line-height */
    word-wrap: break-word;
    word-break: break-word;
    margin-top: 0 !important; /* Remove any negative margin */
    margin-bottom: 20px !important; /* Ensure spacing after description */
    position: relative; /* Ensure proper stacking context */
    z-index: 1; /* Ensure description is above tags if they overlap */
  }

  .featured-hero__title {
    -webkit-line-clamp: 3; /* Allow 3 lines on mobile */
    line-clamp: 3;
  }

  .featured-hero__meta {
    -webkit-line-clamp: 2; /* Allow 2 lines on mobile */
    line-clamp: 2;
  }

  .featured-hero__btn {
    padding: 12px 24px; /* Slightly smaller on mobile */
    font-size: 14px;
  }
}

/* ===============================
   Explore Our Case Studies block
   =============================== */

.case-studies-explore {
  margin-top: 40px;
}

.case-studies-explore__card {
  margin-bottom: 60px;
  padding: 28px 36px;
  background-color: #ffffff;
  border-radius: 24px;
}

.case-studies-explore__header {
  margin-bottom: 18px;
}

.case-studies-explore__title {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  color: #494949;
  margin: 0;
}

.case-studies-explore__content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.case-studies-explore__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}

.case-studies-explore__label {
  font-weight: 600;
  font-size: 13px;
  color: #555b64;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.case-studies-explore__pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.case-studies-explore__pills::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.case-studies-explore__pill {
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background-color: #e2f4ff;
  color: #2d3b43;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Link styling for filter pills */
.case-studies-explore__pill:link,
.case-studies-explore__pill:visited {
  text-decoration: none;
}

.case-studies-explore__pill:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.case-studies-explore__pill:active {
  transform: translateY(0);
}

/* Active state - add border and shadow to indicate selected filter */
.case-studies-explore__pill--active {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.case-studies-explore__pill--segment-0 { /* MICE - blue */ 
  background-color: #0077cc;
  color: #ffffff;
}

.case-studies-explore__pill--segment-1 { /* Premium Leisure - yellow */ 
  background-color: #f6c441;
  color: #ffffff;
}

.case-studies-explore__pill--segment-2 { /* Sports - orange */ 
  background-color: #f6941f;
  color: #ffffff;
}

.case-studies-explore__pill--segment-3 { /* Cruise - teal/blue */ 
  background-color: #09e;
  color: #ffffff;
}

.case-studies-explore__pill--segment-4 { /* Aircraft - red */ 
  background-color: #d4383a;
  color: #ffffff;
}

.case-studies-explore__pill--format {
  background-color: #bde6ff;
}

@media (max-width: 992px) {
  .case-studies-explore__card {
    padding: 24px 28px;
  }

  .case-studies-explore__title {
    font-size: 26px;
  }

  .case-studies-explore__content {
    flex-direction: column;
    gap: 14px;
  }

  .case-studies-explore__row {
    gap: 8px;
  }

  .case-studies-explore__label {
    font-size: 12px;
  }

  .case-studies-explore__pills {
    gap: 5px;
  }

  .case-studies-explore__pill {
    padding: 4px 10px;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .case-studies-explore__card {
    padding: 20px 18px;
    margin-bottom: 40px;
  }

  .case-studies-explore__header {
    margin-bottom: 14px;
  }

  .case-studies-explore__title {
    font-size: 24px;
  }

  .case-studies-explore__content {
    gap: 10px;
  }

  .case-studies-explore__row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .case-studies-explore__label {
    font-size: 12px;
    flex-basis: 100%;
  }

  .case-studies-explore__pills {
    flex-wrap: wrap;
    width: 100%;
    gap: 5px;
    overflow-x: visible;
  }

  .case-studies-explore__pill {
    padding: 4px 10px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .case-studies-explore__card {
    padding: 18px 14px;
  }

  .case-studies-explore__title {
    font-size: 20px;
  }

  .case-studies-explore__label {
    font-size: 11px;
  }

  .case-studies-explore__pill {
    padding: 3px 8px;
    font-size: 9px;
  }
}

/* ===============================
   MICE Highlights & Corporate Solutions
   =============================== */

.case-studies-mice {
  margin-top: 40px;
  scroll-margin-top: 100px; /* Account for sticky header when scrolling to anchor */
}

.case-studies-mice__card {
  margin-bottom: 60px;
  padding: 40px 48px 48px;
  background-color: #ffffff;
  border-radius: 8px; /* Figma: 8px radius */
}

.case-studies-mice__header {
  margin-bottom: 24px;
}

.case-studies-mice__title {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: #494949;
  margin: 0;
  text-transform: uppercase;
}

.case-studies-mice__grid {
  display: grid;
  grid-template-columns: minmax(300px, 522px) 1fr; /* Figma: left image ~522px */
  gap: 40px;
  align-items: flex-start;
  min-width: 0; /* Prevents grid overflow */
}

.case-studies-mice__feature {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-studies-mice__feature-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.case-studies-mice__feature-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 522 / 358; /* Figma: 522x358 */
}

.case-studies-mice__feature-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  background: #09e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-studies-mice__feature-play-icon {
  display: block;
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 3px; /* small nudge to visually center triangle */
}

.case-studies-mice__feature-title {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #2d3b43;
  margin: 0 0 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.case-studies-mice__feature-meta {
  font-family: Poppins, sans-serif;
  margin: 0 0 20px;
  font-size: 14px;
  color: #656d78;
}

.case-studies-mice__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  background-color: #09e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.case-studies-mice__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-studies-mice__item {
  display: grid;
  grid-template-columns: 140px 1fr; /* Figma: 140px tall card with image on left */
  gap: 16px;
  align-items: center;
  min-height: 140px; /* Figma: 437x140 group height */
}

.case-studies-mice__item-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 140px;
  height: 140px;
}

.case-studies-mice__item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-studies-mice__item-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background: #09e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.case-studies-mice__item-play-icon {
  display: block;
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 2px; /* small nudge to visually center triangle */
}

.case-studies-mice__item-title {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px;
  color: #2d3b43;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.case-studies-mice__item-type {
  font-size: 13px;
  font-weight: 500;
  color: #777f89;
  margin: 0 0 4px;
}

.case-studies-mice__item-description {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: #656d78;
  margin: 0;
}

@media (max-width: 1200px) {
  .case-studies-mice__grid {
    grid-template-columns: minmax(280px, 450px) 1fr;
    gap: 24px;
  }
  
  .case-studies-mice__feature-media {
    max-width: 100%;
  }
  
  .case-studies-mice__card {
    padding: 36px 32px 40px;
  }
}

@media (max-width: 992px) {
  .case-studies-mice__card {
    padding: 32px 24px 36px;
  }

  .case-studies-mice__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-studies-mice__item {
    grid-template-columns: 100px 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .case-studies-mice {
    margin-top: 32px;
  }

  .case-studies-mice__card {
    padding: 32px 20px;
    margin-bottom: 40px;
  }

  .case-studies-mice__title {
    font-size: 28px; /* 36px -> 28px */
  }

  .case-studies-mice__feature-media {
    max-width: 100%;
  }

  .case-studies-mice__grid {
    gap: 24px;
  }

  .case-studies-mice__feature-play {
    width: 64px;
    height: 64px;
  }

  .case-studies-mice__feature-play-icon {
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }

  .case-studies-mice__item {
    grid-template-columns: 80px 1fr;
    min-height: auto;
    gap: 12px;
  }

  .case-studies-mice__item-media {
    width: 80px;
    height: 80px;
  }

  .case-studies-mice__item-play {
    width: 40px;
    height: 40px;
  }

  .case-studies-mice__item-title {
    font-size: 15px;
  }

  .case-studies-mice__item-type,
  .case-studies-mice__item-description {
    font-size: 12px;
  }
}


@media (max-width: 992px) {
  .featured-hero__container {
    flex-direction: column;
    padding: 32px 20px;
    gap: 32px;
    min-height: 600px; /* Fixed height for tablet - stacked layout needs more space */
    height: 600px;
  }

  .featured-hero__media,
  .featured-hero__content {
    flex: 1 1 auto;
  }

  .featured-hero__media {
    min-height: 280px; /* Ensure media has minimum height on tablet */
    flex-shrink: 0; /* Prevent media from shrinking */
  }

  .featured-hero__carousel-track {
    min-height: 600px; /* Match container fixed height */
  }

  .featured-hero__slide {
    min-height: 600px; /* Match container fixed height */
  }

  .featured-hero__slide--active {
    min-height: 600px; /* Match container fixed height */
  }
}

@media (max-width: 768px) {
  .featured-hero {
    border-radius: 12px;
  }

  .featured-hero__container {
    padding: 24px 16px;
    gap: 24px;
    min-height: 450px; /* Fixed minimum height for mobile */
    height: auto; /* Allow natural height but with minimum */
  }

  .featured-hero__content {
    gap: 0; /* Reset gap, use margins instead for better control */
    min-height: 0; /* Allow content to shrink if needed */
  }

  .featured-hero__media {
    min-height: 200px;
    flex-shrink: 0; /* Prevent media from shrinking */
  }

  .featured-hero__carousel-track {
    min-height: 450px; /* Match container minimum height */
  }

  .featured-hero__slide {
    min-height: 450px; /* Match container minimum height */
  }

  .featured-hero__slide--active {
    min-height: 450px; /* Match container minimum height */
  }

  .featured-hero__media-inner {
    border-radius: 16px;
  }

  .featured-hero__media-play {
    width: 64px;
    height: 64px;
  }

  .featured-hero__media-play-icon {
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  .featured-hero__tags {
    gap: 8px;
    margin-bottom: 16px !important; /* Ensure spacing before description */
  }

  .featured-hero__tag-pill {
    padding: 6px 12px;
    font-size: 12px;
  }


  .featured-hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .featured-hero__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===============================
   Premium Leisure & Thematic Experiences
   =============================== */

.case-studies-premium {
  margin-top: 40px;
  scroll-margin-top: 100px; /* Account for sticky header when scrolling to anchor */
}

.case-studies-premium__bg {
  background-image: url("/images/case-studies/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.case-studies-premium__inner {
  padding: 48px 48px 56px;
  color: #ffffff;
}

.case-studies-premium__header {
  margin-bottom: 32px;
}

.case-studies-premium__title {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.case-studies-premium__subtitle {
  margin: 0;
  font-size: 14px;
  color: #e5edf5;
}

.case-studies-premium__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-studies-premium__card {
  background-color: #f3f5f8;
  border-radius: 10px; /* Figma: 16px radius */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 356px; /* Figma: 356px width */
  height: 448px;    /* Figma: 448px height */
}

.case-studies-premium__card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.case-studies-premium__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-studies-premium__card-body {
  padding: 16px 18px 20px;
}

.case-studies-premium__card-title {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 8px;
  color: #2d3b43;
}

.case-studies-premium__card-description {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: #656d78;
  margin: 0 0 16px;
}

.case-studies-premium__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-studies-premium__card-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background-color: #cfe9ff;
  font-size: 12px;
  color: #3b3e47;
}

.case-studies-premium__card-tag--primary {
  background-color: #09e;
  color: #ffffff;
}

/* Segment-specific colors for premium leisure cards */
.case-studies-premium__card-tag--segment-mice {
  background-color: #0077cc;
  color: #ffffff;
}

.case-studies-premium__card-tag--segment-premium-leisure {
  background-color: #f6c441;
  color: #000000;
}

.case-studies-premium__card-tag--segment-sports {
  background-color: #f6941f;
  color: #ffffff;
}

.case-studies-premium__card-tag--segment-cruise {
  background-color: #09e;
  color: #ffffff;
}

.case-studies-premium__card-tag--segment-aircraft {
  background-color: #d4383a;
  color: #ffffff;
}

@media (max-width: 1200px) {
  .case-studies-premium__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .case-studies-premium {
    margin-top: 32px;
  }

  .case-studies-premium__inner {
    padding: 32px 20px 40px; /* Standardized to 32px */
  }

  .case-studies-premium__title {
    font-size: 26px; /* 32px -> 26px */
  }

  .case-studies-premium__cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-studies-premium__card {
    max-width: 100%;
    height: auto; /* Allow cards to expand on mobile */
    min-height: 400px;
  }
}

/* ===============================
   Our Expertise Across 120+ Destinations
   =============================== */

.case-studies-expertise {
  margin-top: 40px;
  background-color: #4b4f55; /* dark grey map background similar to figma */
}

.case-studies-expertise__inner {
  padding: 48px 32px 56px;
  text-align: center;
  color: #ffffff;
}

.case-studies-expertise__header {
  margin-bottom: 24px;
}

.case-studies-expertise__title {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.case-studies-expertise__title-highlight {
  color: #f6941f; /* orange accent for 120+ destinations */
}

.case-studies-expertise__map-wrapper {
  margin: 0 auto;
  max-width: 100%;
}

.case-studies-expertise__map-image {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 992px) {
  .case-studies-expertise__inner {
    padding: 40px 16px 48px;
  }
}

@media (max-width: 768px) {
  .case-studies-expertise {
    margin-top: 32px;
  }

  .case-studies-expertise__inner {
    padding: 32px 16px 40px;
  }

  .case-studies-expertise__title {
    font-size: 24px; /* 28px -> 24px */
  }
}

/* ===============================
   Have a similar brief? CTA
   =============================== */

.case-studies-brief {
  margin-top: 40px;
}

.case-studies-brief__card {
  position: relative;
  margin-bottom: 60px;
  padding: 40px 48px;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.case-studies-brief__card::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Decorative plane trails: orange bottom-left, blue top-right */
  background-image: url("../images/case-studies/orange%20plane.png"),
                    url("../images/case-studies/blueplane2.png");
  background-repeat: no-repeat, no-repeat;
  background-position: left -10px bottom 15px, right 5px top 12px;
  /* //left -40px bottom -20px, right -40px top -20px; */
  background-size: 260px auto, 260px auto;
  opacity: 0.3; /* 50% visibility */
  pointer-events: none;
  z-index: 0;
}

.case-studies-brief__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.case-studies-brief__text {
  max-width: 620px;
}

.case-studies-brief__title {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  text-transform: uppercase;
  color: #494949;
  margin: 0 0 12px;
}

.case-studies-brief__title-line {
  display: block;
}

.case-studies-brief__body {
  margin: 0;
  font-size: 14px;
  color: #555b64;
}

.case-studies-brief__actions {
  flex-shrink: 0;
}

.case-studies-brief__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  background-color: #09e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.case-studies-brief__decor {
  position: absolute;
  opacity: 0.2;
  pointer-events: none;
}

.case-studies-brief__decor--left {
  left: 0;
  bottom: 0;
  width: 311px;  /* Figma: 311x89 */
  height: 89px;
}

.case-studies-brief__decor--right {
  right: 60px;   /* sit just above CTA button */
  top: 6px;
  width: 311px;  /* Figma: 311x89 */
  height: 89px;
  transform: scaleX(-1); /* flip horizontally */
  transform-origin: center;
}

@media (max-width: 992px) {
  .case-studies-brief__card {
    padding: 32px 20px;
  }

  .case-studies-brief__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .case-studies-brief__actions {
    align-self: stretch;
  }

  .case-studies-brief__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .case-studies-brief {
    margin-top: 32px;
  }

  .case-studies-brief__card {
    padding: 32px 20px;
    margin-bottom: 40px;
  }

  .case-studies-brief__title {
    font-size: 24px; /* 28px -> 24px */
  }

  .case-studies-brief__body {
    font-size: 13px;
  }

  .case-studies-brief__btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* ===============================
   All Case Studies grid
   =============================== */

.case-studies-all {
  margin-top: 16px;
  scroll-margin-top: 100px; /* Account for sticky header when scrolling to anchor */
}

.case-studies-all__inner {
  margin-bottom: 80px;
}

.case-studies-all__header {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.case-studies-all__header-main {
  flex: 1;
}

.case-studies-all__title {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 28px;
  text-transform: uppercase;
  color: #494949;
  margin: 0 0 8px;
}

.case-studies-all__subtitle {
  margin: 0;
  font-size: 14px;
  color: #555b64;
}

.case-studies-all__clear-filters {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  color: #f3f5f8;
  background-color: #555b64;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.case-studies-all__clear-filters:active {
  transform: translateY(0);
}

.case-studies-all__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}

.case-studies-all__card {
  background-color: #f3f5f8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;  /* Let grid handle sizing */
  height: 428px;     /* Figma: 428px height */
  min-height: 428px; /* Ensure minimum height */
}

.case-studies-all__card-media {
  width: 100%;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  overflow: hidden;
  background-color: #f0f0f0; /* Fallback background */
  flex-shrink: 0; /* Prevent container from shrinking */
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-studies-all__card-image {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: contain; /* Show full image/thumbnail without cropping */
  object-position: center;
  display: block;
}

.case-studies-all__card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1; /* Take remaining space after media */
  min-height: 0; /* Allow flex shrinking */
}

.case-studies-all__card-title {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #2d3b43;
  margin: 0 0 8px;
}

.case-studies-all__card-description {
  font-family: Poppins, sans-serif;
  font-size: 13px;
  color: #656d78;
  margin: 0 0 14px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  line-clamp: 3; /* Standard property for compatibility */
  -webkit-box-orient: vertical;
}

.case-studies-all__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto; /* Push tags to bottom */
}

.case-studies-all__card-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background-color: #cfe9ff;
  font-size: 11px;
  color: #3b3e47;
}

.case-studies-all__card-tag--primary {
  background-color: #09e;
  color: #ffffff;
}

/* Segment-specific colors matching filter pills */
.case-studies-all__card-tag--segment-mice {
  background-color: #0077cc; /* MICE - blue */
  color: #ffffff;
}

.case-studies-all__card-tag--segment-premium-leisure {
  background-color: #f6c441; /* Premium Leisure - yellow */
  color: #000000;
}

.case-studies-all__card-tag--segment-sports {
  background-color: #f6941f; /* Sports - orange */
  color: #ffffff;
}

.case-studies-all__card-tag--segment-cruise {
  background-color: #09e; /* Cruise - teal/blue */
  color: #ffffff;
}

.case-studies-all__card-tag--segment-aircraft {
  background-color: #d4383a; /* Aircraft - red */
  color: #ffffff;
}

.case-studies-all__pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
  justify-content: center;
  width: 100%;
}

.case-studies-all__page {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  border: none;
  background-color: #ffffff;
  color: #555b64;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.case-studies-all__page:hover:not(.case-studies-all__page--active):not(.case-studies-all__page--ghost):not(.case-studies-all__page--ellipsis) {
  background-color: #f3f5f8;
}

.case-studies-all__page--active {
  background-color: #09e;
  color: #ffffff;
  cursor: default;
}

.case-studies-all__page--ghost {
  background-color: #f3f5f8;
  color: #999fa8;
}

.case-studies-all__page--ghost[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.case-studies-all__page--ellipsis {
  background: transparent;
  cursor: default;
}

@media (max-width: 1200px) {
  .case-studies-all__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .case-studies-all__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .case-studies-all {
    margin-top: 16px;
  }

  .case-studies-all__inner {
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .case-studies-all__title {
    font-size: 24px; /* 28px -> 24px */
  }

  .case-studies-all__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .case-studies-all__card {
    max-width: 100%;
    height: auto; /* Allow cards to expand on mobile */
    min-height: 380px;
  }

  .case-studies-all__card-media {
    height: 160px;
  }

  .case-studies-all__card-body {
    padding: 14px;
  }

  .case-studies-all__card-title {
    font-size: 14px;
  }

  .case-studies-all__card-description {
    font-size: 12px;
  }

  .case-studies-all__pagination {
    margin-top: 32px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .case-studies-all__page {
    min-width: 32px; /* Better touch target */
    padding: 6px 10px;
  }
}

@media (max-width: 576px) {
  .case-studies-all__grid {
    grid-template-columns: 1fr;
  }

  .case-studies-all__card {
    min-height: auto;
  }
}

/* ===============================
   Our Partners & Associations
   =============================== */

.case-studies-partners {
  margin-top: 20px;
}

.case-studies-partners__inner {
  margin-bottom: 80px;
  text-align: center;
}

.case-studies-partners__pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.case-studies-partners__page {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  border: none;
  background-color: #ffffff;
  color: #555b64;
  font-size: 12px;
  cursor: default;
}

.case-studies-partners__page--active {
  background-color: #09e;
  color: #ffffff;
}

.case-studies-partners__page--ghost {
  background-color: #f3f5f8;
  color: #999fa8;
}

.case-studies-partners__page--ellipsis {
  background: transparent;
}

.case-studies-partners__header {
  margin-bottom: 24px;
}

.case-studies-partners__title {
  font-family: "LemonMilk", sans-serif;
  font-weight: 400;
  font-size: 26px;
  text-transform: uppercase;
  color: #494949;
  margin: 0 0 6px;
}

.case-studies-partners__subtitle {
  margin: 0;
  font-size: 14px;
  color: #555b64;
}

.case-studies-partners__logos {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.case-studies-partners__logo {
  flex: 1 1 0;
  max-width: 165px; /* Figma: 165x67 */
  height: 67px;
  background-color: #e3e5e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-studies-partners__logo-label {
  font-size: 14px;
  color: #555b64;
}

.case-studies-partners__logo-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 8px;
}

@media (max-width: 768px) {
  .case-studies-partners {
    margin-top: 16px;
  }

  .case-studies-partners__inner {
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .case-studies-partners__title {
    font-size: 22px; /* 26px -> 22px */
  }

  .case-studies-partners__logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .case-studies-partners__logo {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 140px;
  }
}

/* ===============================
   Animation Classes
   =============================== */

/* Base animation state - hidden initially */
.case-studies-animate-fade-in,
.case-studies-animate-slide-up {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.7s ease-out;
}

.case-studies-animate-fade-in {
  will-change: opacity;
}

.case-studies-animate-slide-up {
  transform: translateY(30px);
  will-change: opacity, transform;
}

/* Animated state - visible */
.case-studies-animate-fade-in.case-studies-animated,
.case-studies-animate-slide-up.case-studies-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation container */
.case-studies-animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.case-studies-animate-stagger > *.case-studies-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .case-studies-animate-fade-in,
  .case-studies-animate-slide-up,
  .case-studies-animate-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

