/* =========================================================
   FLEX CAROUSEL — Opener (CANONICAL / DEDUPED)
   Goals:
   - Wide/aligned opener container (A)
   - Accent-driven border language (B)
   - Glint effect restored + motion-safe (C)
   - Predictable cascade: base → visuals → type → effects → mobile
========================================================= */

/* =========================================================
   0) Tweak knobs (safe, optional)
   - keep these small + local so edits are low-risk
========================================================= */
#flex-carousel{
  --fc-opener-pad-top: clamp(1.25rem, 2.6vw, 2.25rem);
  --fc-opener-pad-bottom: clamp(1.1rem, 2.2vw, 1.7rem);

  --fc-opener-card-radius: 18px;
  --fc-opener-card-radius-mobile: 16px;

  --fc-opener-card-pad-y: clamp(1.15rem, 2.2vw, 1.75rem);
  --fc-opener-card-pad-x: clamp(1.15rem, 2.4vw, 2.2rem);

  --fc-opener-card-max-mobile: 520px; /* try 480–560 */
  --fc-opener-mobile-container-pad: 14px;

  --fc-opener-glint-duration: 9s;
}

/* =========================================================
   1) Anchor target for index.html#services (no layout impact)
========================================================= */
#flex-carousel .fc-anchor{
  display:block;
  position:relative;
  top:-90px;
  height:0;
  overflow:hidden;
  pointer-events:none;
  visibility:hidden;
}

/* =========================================================
   2) Opener spacing
========================================================= */
#flex-carousel .fc-opener{
  padding-top: var(--fc-opener-pad-top);
  padding-bottom: var(--fc-opener-pad-bottom);
}

/* =========================================================
   3) Desktop/Tablet layout: WIDE opener aligned to carousel
   - This is the "wide option" you chose (A)
========================================================= */
#flex-carousel .fc-opener > .container{
  width: min(
    var(--fc-max-width, 1400px),
    calc(100% - (var(--fc-container-gutter, 2rem) * 2))
  ) !important;

  max-width: none !important;
}

/* =========================================================
   4) Opener Card — core visuals (accent-driven border) (B)
========================================================= */
#flex-carousel .fc-opener-card{
  position: relative;
  overflow: hidden;

  background: color-mix(in srgb, #fff 92%, var(--background-color, #f3eadf));
  border-radius: var(--fc-opener-card-radius);
  padding: var(--fc-opener-card-pad-y) var(--fc-opener-card-pad-x);

  /* Accent language */
  border: 1px solid color-mix(in srgb, var(--accent-color, #e07a5f), transparent 55%);
  box-shadow:
    0 18px 40px rgba(0,0,0,.08),
    0 0 0 1px color-mix(in srgb, var(--accent-color, #e07a5f), transparent 82%);
}

/* Subtle top highlight (kept) */
#flex-carousel .fc-opener-card::before{
  content:"";
  position:absolute;
  inset:-40% -10% auto -10%;
  height:70%;
  background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0));
  pointer-events:none;
}

/* =========================================================
   5) Typography — keep it editorial + clear rhythm
========================================================= */
#flex-carousel .fc-opener-card h2{
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Deck paragraph (bigger + testimonial/editorial feel) */
#flex-carousel .fc-opener-card p.hide-on-mobile{
  margin: clamp(1.05rem, 1.6vw, 1.45rem) auto 0; /* breathing room under headline */
  max-width: 72ch;

  line-height: 1.7;
  font-size: clamp(1.10rem, 0.85vw + 0.90rem, 1.40rem);
  font-weight: 480;

  color: color-mix(in srgb, currentColor 82%, transparent);
  text-align: center;
  text-wrap: balance;
}

/* =========================================================
   6) Glint effect (RESTORED) (C)
   - Lives here so it can't be “left behind” in future refactors
========================================================= */
#flex-carousel .fc-opener-card::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,.22) 50%,
    transparent 60%
  );
  transform: translateX(-35%);
  animation: fcCardGlint var(--fc-opener-glint-duration) ease-in-out infinite;
  pointer-events:none;
  mix-blend-mode: soft-light;
  opacity: .25;
}

@keyframes fcCardGlint{
  0%, 60%{ transform: translateX(-35%); opacity: 0; }
  70%{ opacity: .22; }
  85%{ transform: translateX(35%); opacity: .18; }
  100%{ transform: translateX(35%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  #flex-carousel .fc-opener-card::after{
    animation:none;
    display:none;
  }
}

/* =========================================================
   7) Mobile overrides — centered card (not a full-width bar)
========================================================= */
@media (max-width: 767.98px){

  /* let the container be full width, but keep a safe edge pad */
  #flex-carousel .fc-opener > .container{
    width: 100% !important;
    padding-left: var(--fc-opener-mobile-container-pad) !important;
    padding-right: var(--fc-opener-mobile-container-pad) !important;
  }

  #flex-carousel .fc-opener{
    padding-top: 1.1rem;
    padding-bottom: 1.15rem;
  }

  #flex-carousel .fc-opener-card{
    width: 100%;
    max-width: var(--fc-opener-card-max-mobile);
    margin: 0 auto;

    border-radius: var(--fc-opener-card-radius-mobile);
    padding: 1.05rem 1.1rem;
  }

  /* Optional: keep mobile headline from feeling banner-ish */
  #flex-carousel .fc-opener-card h2{
    font-size: clamp(1.55rem, 5.6vw, 2.0rem);
  }
}
</style>

<section id="flex-carousel" class="flex-carousel-section">
  <a id="services" class="fc-anchor" aria-hidden="true"></a>

  <!-- Section Title / Opener -->
  <div class="fc-opener" data-aos="fade-up">
    <div class="container">
      <div class="fc-opener-card section-title">
        <h2 class="desktop-only">Good Company You Can Count On</h2>
        <h2 class="mobile-only">Our Services</h2>
        <p class="hide-on-mobile">
          From site design to discovery, we help you attract, connect, and understand your customers with clear reporting and insights you can act on.
        </p>
      </div>
    </div>
  </div>


  <!-- your carousel / cards content continues here... -->

  <!-- your carousel / cards content continues here... -->

  </div>
 <style>/* =========================================================
   FLEX CAROUSEL — Scoped Styles (Refactored)
   - Everything scoped to #flex-carousel
   - DEDUPED: one mobile controls block (wins at the bottom)
   - FIXED: divider line source identified + controlled
========================================================= */

/* =========================================================
   0) Tokens (colors, type, sizing)
========================================================= */
#flex-carousel{
  /* layout sizing */
  --fc-max-width: 1400px;
  --fc-max-height: 720px;
  --fc-container-gutter: clamp(1.25rem, 2.2vw, 2.5rem);

  /* section padding */
  --fc-section-pad-top: clamp(1.5rem, 3vw, 3rem);
  --fc-section-pad-bottom: clamp(2.25rem, 4vw, 4.5rem);

  /* panel sizing (desktop) */
  --fc-info-w: 44%;
  --fc-image-w: 56%;
  --fc-info-pad-x: clamp(1.5rem, 2.8vw, 2.75rem);

  /* surfaces */
  --fc-bg: #ffffff;
  --fc-ivory: #F6EFE6;

  /* dreamy gradient stops */
  --fc-g1: #F6E6DA;
  --fc-g2: #E9F1EA;
  --fc-g3: #E3EEF4;
  --fc-g4: #F7F0E7;

  /* UI */
  --fc-title: #2C2C2C;
  --fc-muted: #7E7E7E;
  --fc-icon: #5d5d5d;
  --fc-divider: #b0b0b0;

  /* Accent (fallback to site accent if present) */
  --fc-accent: var(--accent-color, #E27D60);
  --fc-cta-text: #F6EFE6;

  /* autoplay timing (ms) */
  --fc-autoplay-ms: 6500;

  /* fonts */
  --fc-font-headline: "Gloock", ui-serif, Georgia, "Times New Roman", serif;
  --fc-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fc-font-accent: "Fraunces", ui-serif, Georgia, serif;

  /* type scale */
  --fc-subtitle-size: clamp(0.60rem, 0.25vw + 0.55rem, 0.72rem);
  --fc-title-size: clamp(2.35rem, 2.2vw + 1.45rem, 3.25rem);
  --fc-body-size: clamp(0.98rem, 0.55vw + 0.78rem, 1.10rem);
  --fc-body-leading: clamp(1.45rem, 0.7vw + 1.2rem, 1.70rem);
  --fc-cta-size: clamp(0.70rem, 0.25vw + 0.65rem, 0.78rem);

  /* rhythm */
  --fc-gap-1: clamp(0.6rem, 1vw, 0.9rem);
  --fc-gap-2: clamp(1.0rem, 1.8vw, 1.6rem);
  --fc-desc-mt: clamp(1.0rem, 1.8vw, 2.1rem);
  --fc-desc-mb: clamp(1.0rem, 1.8vw, 1.8rem);

  position: relative;
  padding: var(--fc-section-pad-top) 0 var(--fc-section-pad-bottom);
  background: var(--fc-ivory);
  overflow: hidden;
}

/* =========================================================
   1) Dreamy animated background
========================================================= */
#flex-carousel::before{
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;

  background:
    radial-gradient(55% 45% at 20% 25%, color-mix(in srgb, var(--fc-g2), transparent 25%), transparent 60%),
    radial-gradient(60% 55% at 75% 35%, color-mix(in srgb, var(--fc-g1), transparent 30%), transparent 62%),
    radial-gradient(65% 60% at 50% 80%, color-mix(in srgb, var(--fc-g3), transparent 35%), transparent 65%),
    linear-gradient(120deg, var(--fc-g4), var(--fc-g1), var(--fc-g2), var(--fc-g3));

  background-size: 140% 140%;
  filter: blur(24px) saturate(1.05);
  opacity: 0.85;

  animation: fcDream 18s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}

@keyframes fcDream{
  0%   { transform: translate(-2%, -1%) scale(1.02); background-position: 0% 40%; }
  50%  { transform: translate(2%, 1%)  scale(1.05); background-position: 55% 55%; }
  100% { transform: translate(-1%, 2%) scale(1.03); background-position: 100% 45%; }
}

@media (prefers-reduced-motion: reduce){
  #flex-carousel::before{ animation: none; }
}

/* =========================================================
   2) Container + Carousel Frame
========================================================= */
#flex-carousel .fc-container{
  width: min(var(--fc-max-width), calc(100% - (var(--fc-container-gutter) * 2)));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#flex-carousel .carousel{
  width: 100%;
  max-width: var(--fc-max-width);
  max-height: var(--fc-max-height);

  height: clamp(520px, 62vh, var(--fc-max-height));

  margin: 0 auto;
  overflow: hidden;
  position: relative;
  background: var(--fc-bg);

  border-radius: clamp(14px, 1.2vw, 18px);
  box-shadow: 0 22px 70px rgba(0,0,0,0.12);

  /* Allows horizontal swipes without blocking vertical scroll */
  touch-action: pan-y;
}

/* =========================================================
   3) Slides (stacked)
========================================================= */
#flex-carousel .carousel-item{
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-end;

  position: absolute;
  inset: 0;

  background: var(--fc-bg);

  opacity: 0;
  pointer-events: none;
  z-index: 0;

  transition: opacity 420ms ease, z-index 0s linear 420ms;
}

#flex-carousel .carousel-item.active{
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 420ms ease;
}

/* Panels */
#flex-carousel .carousel-item__info{
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;

  order: 1;
  width: var(--fc-info-w);
  padding: 0 var(--fc-info-pad-x);
}

#flex-carousel .carousel-item__container{
  max-width: 28rem;
}

#flex-carousel .carousel-item__image{
  order: 2;
  width: var(--fc-image-w);
  flex-basis: var(--fc-image-w);
  height: 100%;

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

  transform: translateX(100%);
  transition: transform 0.6s ease-in-out;
}

/* =========================================================
   4) Type + Motion
========================================================= */
#flex-carousel .carousel-item__subtitle,
#flex-carousel .carousel-item__title,
#flex-carousel .carousel-item__description,
#flex-carousel .carousel-item__btn{
  transform: translateY(25%);
  opacity: 0;
  visibility: hidden;
  transition: 0.6s all ease-in-out;
}

#flex-carousel .carousel-item__subtitle{
  font-family: var(--fc-font-accent);
  font-size: var(--fc-subtitle-size);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fc-muted);
  font-weight: 600;
}

#flex-carousel .carousel-item__title{
  margin: var(--fc-gap-1) 0 0 0;
  font-family: var(--fc-font-headline);
  font-weight: 400;
  font-size: var(--fc-title-size);
  line-height: 1.02;
  letter-spacing: 0.06em;
  color: var(--fc-title);
}

#flex-carousel .carousel-item__description{
  margin-top: var(--fc-desc-mt);
  margin-bottom: var(--fc-desc-mb);
  font-family: var(--fc-font-body);
  font-weight: 400;
  font-size: var(--fc-body-size);
  line-height: var(--fc-body-leading);
  color: var(--fc-muted);

  /* Testimonials vibe: left aligned */
  text-align: left;
  text-wrap: pretty;
  max-width: 56ch;
}

#flex-carousel .carousel-item.active .carousel-item__subtitle,
#flex-carousel .carousel-item.active .carousel-item__title,
#flex-carousel .carousel-item.active .carousel-item__description,
#flex-carousel .carousel-item.active .carousel-item__btn{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#flex-carousel .carousel-item.active .carousel-item__image{
  transform: translateX(0);
}


/* =========================================================
   FLEX CAROUSEL — Description = Testimonial Editorial Style
   Paste LAST so it wins
========================================================= */
#flex-carousel .carousel-item__description{
  /* Typography match (testimonial vibe) */
  font-family: var(--fc-font-body, "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif) !important;
  font-weight: 400 !important;

  /* Bigger, more readable (desktop + mobile) */
  font-size: clamp(1.05rem, 0.55vw + 0.95rem, 1.20rem) !important;

  /* Roomy editorial leading */
  line-height: 1.72 !important;
  letter-spacing: -0.01em !important;

  /* Soft “ink” gray like testimonials */
  color: rgba(0,0,0,0.72) !important;

  /* Left aligned like testimonials */
  text-align: left !important;

  /* Better measure (avoid wide weak paragraphs) */
  max-width: 56ch;
  margin: 0; /* prevent random template margins */
  text-wrap: pretty;
}

/* Make <strong> feel like testimonial emphasis (not harsh black) */
#flex-carousel .carousel-item__description strong{
  font-weight: 700 !important;
  color: rgba(0,0,0,0.78) !important;
}

/* If you use <br><br> for paragraph breaks, make it feel intentional */
#flex-carousel .carousel-item__description br + br{
  display: block;
  content: "";
  margin-top: 0.9rem;
}

/* Mobile: keep it readable + not too wide */
@media (max-width: 767.98px){
  #flex-carousel .carousel-item__description{
    font-size: clamp(1.06rem, 1.1vw + 0.92rem, 1.20rem) !important;
    line-height: 1.70 !important;
    max-width: 44ch;
  }
}

/* =========================================================
   FLEX CAROUSEL — Breathing room: Title → Description
   Paste LAST so it wins
========================================================= */

/* Most precise: only the description that follows the title */
#flex-carousel .carousel-item__title + .carousel-item__description{
  margin-top: clamp(0.85rem, 0.6vw + 0.55rem, 1.35rem) !important;
}

/* Safety: if anything else removes margins, ensure title has a bit of bottom space */
#flex-carousel .carousel-item__title{
  margin-bottom: 0 !important; /* keep spacing controlled by the rule above */
}



/* =========================================================
   5) Subtitle “Rules” (centered accent lines)
========================================================= */
#flex-carousel .carousel-item__subtitle::before,
#flex-carousel .carousel-item__subtitle::after{
  content: none !important;
  display: none !important;
}

#flex-carousel .carousel-item__subtitle{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9em;
  margin-inline: auto;
}

#flex-carousel .carousel-item__subtitle .fc-subtitle-text{
  display: inline-block;
  white-space: nowrap;
}

#flex-carousel .carousel-item__subtitle .fc-rule{
  flex: 0 0 auto;
  width: clamp(2.25rem, 6vw, 4.75rem);
  height: 1px;
  background: var(--fc-accent);
  opacity: 0.9;
  transform: translateY(0.05em);
}

/* =========================================================
   6) Nav controls (desktop baseline)
========================================================= */
#flex-carousel .carousel__nav{
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: var(--fc-bg);
  border-top-left-radius: 12px;
  overflow: hidden;
  display: inline-flex;
}

#flex-carousel .carousel__arrow{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1vw, 14px) clamp(15px, 1.4vw, 18px);
  position: relative;
  user-select: none;
}

/* Divider line BETWEEN arrows (this was your “little line”) */
#flex-carousel .carousel__arrow:nth-child(1)::after{
  content:'';
  right: -3px;
  position: absolute;
  width: 1px;
  background-color: var(--fc-divider);
  height: 14px;
  top: 50%;
  margin-top: -7px;
}

#flex-carousel .carousel__icon{
  width: clamp(16px, 1.1vw, 18px);
  height: clamp(16px, 1.1vw, 18px);
  fill: var(--fc-icon);
}

/* =========================================================
   7) Slide images (local WebP placeholders)
========================================================= */
#flex-carousel .carousel-item--1 .carousel-item__image{ background-image: url('assets/img/services/website.webp'); }
#flex-carousel .carousel-item--2 .carousel-item__image{ background-image: url('assets/img/services/hosting.webp'); background-position: 90% center; }
#flex-carousel .carousel-item--3 .carousel-item__image{ background-image: url('assets/img/services/paid-social.webp'); background-position: 90% center; }
#flex-carousel .carousel-item--4 .carousel-item__image{ background-image: url('assets/img/services/seo.webp'); background-position: 70% center; }
#flex-carousel .carousel-item--5 .carousel-item__image{ background-image: url('assets/img/services/tracking.webp'); }
#flex-carousel .carousel-item--6 .carousel-item__image{ background-image: url('assets/img/services/reporting.webp'); }

/* =========================================================
   8) CTA button (your existing styling kept)
========================================================= */
#flex-carousel .carousel-item__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.9em 1.45em;
  border-radius: 0.9em;
  text-decoration: none;
  position: relative;
  isolation: isolate;

  font-family: var(--fc-font-accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--fc-cta-size);
  font-weight: 600;

  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--fc-accent), white 10%),
      color-mix(in srgb, var(--fc-accent), black 6%)
    );
  border: 1px solid color-mix(in srgb, var(--fc-accent), black 14%);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.28);

  transition: transform 380ms cubic-bezier(.2,.9,.2,1),
              box-shadow 380ms cubic-bezier(.2,.9,.2,1),
              filter 380ms cubic-bezier(.2,.9,.2,1);
}

#flex-carousel .carousel-item__btn .text{
  color: var(--fc-cta-text);
  text-shadow: 0 1px 0 rgba(0,0,0,0.18), 0 8px 18px rgba(0,0,0,0.12);
}

/* =========================================================
   9) Mobile overrides (ONE block that wins)
   - tighter frame
   - hide images
   - nav centered + accent
   - REMOVE divider line
   - reserve space so nav never overlaps CTA
========================================================= */
@media (max-width: 767.98px){

  /* Tighter section rhythm */
  #flex-carousel{
    --fc-section-pad-top: clamp(1.0rem, 3vw, 1.75rem);
    --fc-section-pad-bottom: clamp(1.75rem, 4vw, 2.5rem);

    --fc-title-size: clamp(2.15rem, 5.2vw + 1.1rem, 2.85rem);
    --fc-body-size: clamp(1.06rem, 1.2vw + 0.92rem, 1.20rem);
    --fc-body-leading: 1.62;

    --fc-desc-mt: 0.9rem;
    --fc-desc-mb: 1.0rem;
  }

  /* Frame */
  #flex-carousel .carousel{
    height: clamp(420px, 56vh, 560px);
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.08);
    position: relative; /* ensures nav anchors correctly */
  }

  /* Layout: text only */
  #flex-carousel .carousel-item{
    display: block;
    padding-bottom: 4.9rem; /* ✅ reserve space for the nav controls */
  }

  #flex-carousel .carousel-item__image{
    display: none !important;
  }

  #flex-carousel .carousel-item__info{
    width: 100% !important;

    /* ✅ pushes content down a bit + tightens overall padding */
    padding: 1.35rem 1.05rem 1.25rem !important;
  }

  #flex-carousel .carousel-item__container{
    max-width: 40rem;
    margin-inline: auto;
    padding-bottom: 0 !important; /* ✅ nav space handled by .carousel-item */
  }

  /* Title spacing */
  #flex-carousel .carousel-item__title{
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin-bottom: 0.65rem;
  }

  /* Description: keep it readable and not too wide */
  #flex-carousel .carousel-item__description{
    max-width: 44ch;
  }

  /* NAV: centered, flat, accent */
  #flex-carousel .carousel__nav{
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 14px;
    z-index: 5;

    background: transparent;
    border: 0;
    padding: 0;

    display: inline-flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
  }

  #flex-carousel .carousel__arrow{
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;

    display: grid;
    place-items: center;

    background: color-mix(in srgb, var(--fc-accent), white 88%);
    border: 1px solid color-mix(in srgb, var(--fc-accent), transparent 45%);
    box-shadow: none;

    /* ✅ kills “divider” effects that can come from borders/shadows */
    border-left: 0 !important;
  }

  #flex-carousel .carousel__icon{
    width: 22px;
    height: 22px;
    fill: var(--fc-accent);
  }

  /* ✅ KILL THE DIVIDER LINE ON MOBILE
     Desktop draws it here: .carousel__arrow:nth-child(1)::after
  */
  #flex-carousel .carousel__arrow:nth-child(1)::after{
    content: none !important;
    display: none !important;
  }

  /* extra paranoia: kill any nav pseudo-element lines */
  #flex-carousel .carousel__nav::before,
  #flex-carousel .carousel__nav::after{
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 767.98px){

  /* --- FRAME: let height grow with content, but keep sane bounds --- */
  #flex-carousel .carousel{
    height: auto !important;                 /* ✅ stop clipping tall slides */
    min-height: clamp(520px, 76vh, 760px);   /* ✅ baseline card size */
  }

  /* --- SLIDE: reserve nav space, but don't force clipping --- */
  #flex-carousel .carousel-item{
    height: auto !important;                 /* ✅ allow content to define height */
    min-height: inherit;                      /* match carousel min-height */
    padding-bottom: 5.1rem;                   /* nav safe-zone */
  }

  /* --- CONTENT: prevent title getting clipped & reduce top crowding --- */
  #flex-carousel .carousel-item__info{
    padding-top: 1.55rem !important;          /* nudge content down a touch */
  }

  /* --- OPTIONAL: if a slide is *extremely* long, scroll only inside the text area --- */
  #flex-carousel .carousel-item__container{
    max-height: calc(100vh - 220px);          /* avoids nav/URL bar issues */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   6) Nav controls — move to top-right (desktop)
   Paste AFTER your current desktop nav rules
========================================================= */
@media (min-width: 768px){

  /* Put controls in the upper-right corner */
  #flex-carousel .carousel__nav{
    top: 14px;
    right: 14px;
    bottom: auto;
    left: auto;

    /* Seamless pill */
    border-top-left-radius: 999px;   /* override old corner */
    border-bottom-left-radius: 999px;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;

    /* Light “designed” overlay that works on images */
    background: color-mix(in srgb, var(--fc-bg), transparent 18%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 26px rgba(0,0,0,0.14);

    padding: 6px;
    gap: 6px;
  }

  /* Make the arrows feel like icon buttons */
  #flex-carousel .carousel__arrow{
    padding:  10px 12px;
    border-radius: 999px;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  }

  /* Remove the divider line between arrows on desktop (cleaner as a pill) */
  #flex-carousel .carousel__arrow:nth-child(1)::after{
    content: none !important;
    display: none !important;
  }

  /* Hover/focus polish */
  #flex-carousel .carousel__arrow:hover{
    background: color-mix(in srgb, var(--fc-accent), white 88%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc-accent), transparent 55%);
    transform: translateY(-1px);
  }

  #flex-carousel .carousel__arrow:focus-visible{
    outline: 2px solid color-mix(in srgb, var(--fc-accent), transparent 35%);
    outline-offset: 2px;
  }

  /* Slightly larger icon for top-right placement */
  #flex-carousel .carousel__icon{
    width: 18px;
    height: 18px;
    fill: var(--fc-icon);
  }
}
