/* ==============================================
   Integrate Hope — Homepage Styles
   Design tokens: #FFFCEE / #FFE65A / #D9F8E7 / #005261 / #052028
   Fonts: Barlow Condensed (headings) / Barlow (body)
   ============================================== */

/* ---- Reset & base ---- */
#ih-home *, #ih-home *::before, #ih-home *::after { box-sizing: border-box; }
#ih-home a:not(.ih-btn) { color: inherit; text-decoration: none; }
#ih-home .ih-btn { text-decoration: none; }
#ih-home img { max-width: 100%; display: block; }

/* ---- Custom properties ---- */
:root {
  --ih-bg:      #FFFCEE;
  --ih-surface: #D9F8E7;
  --ih-ink:     #005261;
  --ih-accent:  #FFE65A;
  --ih-deep:    #005261;
  --ih-white:   #FFFFFF;
  --ih-font-head: 'Barlow Condensed', sans-serif;
  --ih-font-body: 'Barlow', sans-serif;
  --ih-radius-sm: 4px;
  --ih-radius-md: 8px;
  --ih-max-w: 1600px;
  --ih-section-pad: 80px;
}

/* ---- Container ---- */
.ih-container {
  max-width: var(--ih-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Placeholder images (on-palette, no external requests) ---- */
.ih-placeholder-img {
  background: linear-gradient(135deg, var(--ih-surface) 0%, #b8edce 100%);
  position: relative;
}
.ih-placeholder-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(0,82,97,0.06) 20px,
    rgba(0,82,97,0.06) 21px
  );
}
.ih-placeholder-logo {
  background: var(--ih-surface);
  border-radius: var(--ih-radius-md);
}

/* ============================================================
   HERO
   ============================================================ */
.ih-hero {
  position: relative;
  height: 62vh;
  max-height: 640px;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--ih-deep);
}
.ih-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Container positions content bottom-left */
.ih-hero > .ih-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  height: 100%;
}

/* Sage/mint semi-transparent content block — matches mockup */
.ih-hero__content {
  background: rgba(217, 248, 231, 0.88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 28px 36px 28px;
  max-width: 560px;
  border-radius: 0;
}
.ih-hero__headline {
  font-family: var(--ih-font-head);
  font-weight: 800;
  font-size: 3.75rem;
  line-height: 1.0;
  color: var(--ih-deep);
  margin: 0 0 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ih-hero__sub {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  color: var(--ih-ink);
  line-height: 1.55;
  margin: 0 0 22px;
  font-weight: 600;
}
.ih-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* Hero CTAs: teal bg, yellow text, 24px */
.ih-hero .ih-btn--primary {
  background: #005261;
  color: #FFE65A;
  border-color: #005261;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  padding: 15px 20px;
}
.ih-hero .ih-btn--primary:hover {
  background: #003d4a;
  color: #FFE65A;
  border-color: #003d4a;
  opacity: 1;
}
.ih-about__text .ih-btn:hover {
  background: #003d4a;
  color: #FFE65A;
  border-color: #003d4a;
  opacity: 1;
}



/* ============================================================
   IMPACT STATS
   ============================================================ */
.ih-stats {
  background: var(--ih-deep);
  padding: 20px 0;
}
.ih-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}
.ih-stat {
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.ih-stat:last-child { border-right: none; }
.ih-stat__number {
  display: block;
  font-family: var(--ih-font-head);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--ih-accent);
  line-height: 1;
  letter-spacing: 0.05em;
}
.ih-stat__suffix {
  font-family: var(--ih-font-head);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--ih-accent);
  line-height: 1;
}
.ih-stat__label {
  display: block;
  font-family: var(--ih-font-head);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ih-surface);
  margin-top: 8px;
  margin-bottom: 0;
}


/* ============================================================
   ABOUT SNIPPET
   ============================================================ */
.ih-about {
  background: var(--ih-bg);
  padding: var(--ih-section-pad) 0;
}
.ih-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ih-about__text { min-width: 0; width: 100%; max-width: 900px; }
.ih-about__text h2 { margin-bottom: 24px; }
.ih-about__text p {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ih-deep);
  margin: 0 0 18px;
}
.ih-about__text .ih-btn { margin-top: 32px; padding: 15px 20px; font-size: 1.5rem; }
.ih-about__video-wrap {
  position: relative;
  border-radius: var(--ih-radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
}
.ih-about__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Overlay: blends video with the cream bg using a teal-tinted sage gradient */
.ih-about__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 82, 97, 0.35) 0%,
    rgba(217, 248, 231, 0.25) 100%
  );
  pointer-events: none;
}
.ih-placeholder-img--tall { min-height: 420px; }


/* ============================================================
   SERVICES GRID
   ============================================================ */
/* ---- Bordered heading variant ---- */
.ih-section-heading--bordered {
  display: table;
  border: none;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.ih-services {
  background: #ffffff;
  padding: var(--ih-section-pad) 0;
}
.ih-services__desc {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ih-ink);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.ih-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ih-service-card {
  background: var(--ih-surface);
  border-radius: var(--ih-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(0,82,97,0.12);
  transition: transform 0.18s, box-shadow 0.18s;
}
.ih-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,82,97,0.10);
}

/* Image: top half of card, landscape crop */
.ih-service-card__img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.ih-service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.3s ease;
}
.ih-service-card:hover .ih-service-card__img { transform: scale(1.03); }

/* Body: sage surface, title + CTA */
.ih-service-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}
.ih-service-card__body .ih-service-card__desc { flex: 1; }
.ih-service-card__cta {
  background: var(--ih-deep);
  color: #FFE65A !important;
  border-color: var(--ih-deep);
  font-size: 0.95rem;
  padding: 10px 22px;
  margin-top: auto;
}
.ih-service-card__cta:hover { background: #003d4a; color: #FFE65A !important; opacity: 1; }
.ih-service-card__title {
  font-family: var(--ih-font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ih-deep);
  line-height: normal;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA: teal bg, yellow text */
.ih-service-card__cta {
  background: var(--ih-deep);
  color: var(--ih-accent) !important;
  border-color: var(--ih-deep);
  padding: 10px 22px;
}
.ih-service-card__cta:hover { background: #003d4a; opacity: 1; }
.ih-service-card__desc {
  font-family: var(--ih-font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ih-ink);
  margin: 0;
}
.ih-services__footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.ih-services__footer .ih-btn--primary {
  background: var(--ih-deep);
  color: #FFE65A;
  border-color: var(--ih-deep);
  padding: 15px 32px;
  font-size: 1.5rem;
}
.ih-services__footer .ih-btn--primary:hover { background: #003d4a; color: #FFE65A; opacity: 1; }


/* ============================================================
   FEATURED STORY
   ============================================================ */
.ih-story {
  background: var(--ih-deep);
  padding: var(--ih-section-pad) 0;
}
#ih-home .ih-story .ih-section-heading { text-align: center; }
.ih-story__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}

/* Image: contained with a subtle sage border inset */
.ih-story__image-wrap {
  position: relative;
  border: 3px solid rgba(217,248,231,0.25);
  border-radius: var(--ih-radius-md);
  overflow: hidden;
  line-height: 0;
}
.ih-story__photo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: var(--ih-radius-md);
}

/* Text column: flex column, vertically centred */
.ih-story__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}

/* Title */
.ih-story__name {
  font-family: var(--ih-font-head);
  font-weight: 800;
  font-size: 3.25rem;
  color: var(--ih-accent);
  margin: 0 0 20px;
  line-height: 1.0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding-left: 48px;
}

/* Quote wrap: padding makes room for the quote marks outside */
.ih-story__quote-wrap {
  position: relative;
  padding: 0 48px;
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Opening quote: absolutely positioned top-left, outside the text */
.ih-story__quote-open {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 400;
  color: var(--ih-accent);
  line-height: 1;
  position: absolute;
  left: -8px;
  top: 0;
  display: block;
  float: none;
}

/* Closing quote: absolutely positioned bottom-right, outside the text */
.ih-story__quote-close {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 400;
  color: var(--ih-accent);
  line-height: 1;
  position: absolute;
  right: -8px;
  bottom: -50px;
  display: block;
  float: none;
}

/* Body text */
.ih-story__body {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  margin: 0;
  text-align: left;
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

/* CTA */
.ih-story__cta-wrap {
  margin-top: 48px;
  text-align: left;
  padding-left: 48px;
}
/* Story CTA - same sizing as hero, keeps accent colours */
.ih-story__cta-wrap .ih-btn--accent {
  padding: 15px 20px;
  font-size: 1.5rem;
}
.ih-story__cta-wrap .ih-btn--accent:hover {
  background: #f0d94e;
  color: var(--ih-deep);
  opacity: 1;
}


/* ============================================================
   GET INVOLVED
   ============================================================ */
.ih-involved {
  background: var(--ih-bg);
  padding: var(--ih-section-pad) 0;
}
.ih-involved__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ih-involved__desc {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ih-deep);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.ih-involved__footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.ih-involved__footer .ih-btn--primary {
  background: #005261;
  color: #FFE65A;
  border-color: #005261;
  padding: 15px 32px;
  font-size: 1.5rem;
}
.ih-involved__footer .ih-btn--primary:hover { background: #003d4a; color: #FFE65A; opacity: 1; }
.ih-involved-card {
  background: var(--ih-surface);
  border-radius: var(--ih-radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.ih-involved-card .ih-btn--primary {
  background: var(--ih-deep);
  color: #FFE65A !important;
  border-color: var(--ih-deep);
}
.ih-involved-card .ih-btn--primary:hover {
  background: #003d4a;
  color: #FFE65A !important;
  opacity: 1;
}
.ih-involved-card__icon {
  width: 56px;
  height: 56px;
}
.ih-involved-card__icon svg { width: 100%; height: 100%; }
.ih-involved-card__title {
  font-family: var(--ih-font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ih-deep);
  margin: 0;
  line-height: 1.1;
}
.ih-involved-card__desc {
  font-family: var(--ih-font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ih-deep);
  margin: 0;
  flex: 1;
}


/* ============================================================
   BLOG
   ============================================================ */
.ih-blog {
  background: #ffffff;
  padding: var(--ih-section-pad) 0;
}
.ih-blog__desc {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ih-ink);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.ih-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
/* 4th and 5th cards: shift into a 2-col centred row */
.ih-blog-card:nth-child(4),
.ih-blog-card:nth-child(5) {
  grid-column: auto;
}
@supports (grid-template-columns: subgrid) {
  .ih-blog__desc {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ih-ink);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.ih-blog__grid { grid-template-rows: auto; }
}
.ih-blog-card {
  background: var(--ih-surface);
  border-radius: var(--ih-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(0,82,97,0.12);
}
.ih-blog-card__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ih-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.ih-blog-card:hover .ih-blog-card__img { transform: scale(1.03); }
.ih-placeholder-img--blog {
  width: 100%;
  aspect-ratio: 4/3;
}
.ih-blog-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ih-blog-card__date {
  font-family: var(--ih-font-head);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ih-deep);
  display: block;
  margin-bottom: 10px;
}
.ih-blog-card__title {
  font-family: var(--ih-font-head);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: normal;
  color: var(--ih-deep);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ih-blog-card__title a { color: inherit; text-decoration: none; }
.ih-blog-card__title a:hover { color: var(--ih-ink); }
.ih-blog-card__excerpt {
  font-family: var(--ih-font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ih-deep);
  margin: 0 0 20px;
  flex: 1;
}
/* Card CTA — teal bg, yellow text */
.ih-blog-card__cta {
  background: var(--ih-deep);
  color: var(--ih-accent) !important;
  border-color: var(--ih-deep);
  font-size: 0.82rem;
  padding: 10px 22px;
  align-self: flex-start;
  margin-top: auto;
}
.ih-blog-card__cta,.ih-blog-card__cta:hover,.ih-blog-card__cta:focus,.ih-blog-card__cta:active,.ih-blog-card__cta:visited { color: var(--ih-accent) !important; }
.ih-blog-card__cta:hover { background: #003d4a; opacity: 1; }

/* Bottom CTA */
.ih-blog__footer {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.ih-blog__footer .ih-btn--primary {
  padding: 15px 20px;
  font-size: 1.5rem;
}
.ih-blog__footer .ih-btn--primary:hover {
  background: #003d4a;
  color: #FFE65A;
  border-color: #003d4a;
  opacity: 1;
}


/* ============================================================
   SOCIAL FEED
   ============================================================ */
.ih-social {
  background: var(--ih-bg);
  padding: var(--ih-section-pad) 0;
  text-align: center;
}
.ih-social__handle {
  font-family: var(--ih-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ih-surface);
  margin: -24px 0 32px;
}
.ih-social__handle a { color: var(--ih-surface) !important; text-decoration: none; }
.ih-social__handle a:hover { color: var(--ih-accent) !important; }
.ih-social__handle a { text-decoration: underline; text-underline-offset: 3px; }
.ih-social__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.ih-social__tile {
  aspect-ratio: 1;
  border-radius: var(--ih-radius-sm);
  overflow: hidden;
  display: block;
  position: relative;
}
.ih-social__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.ih-social__tile:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}
.ih-social__note {
  font-family: var(--ih-font-body);
  font-size: 1rem;
  color: rgba(5,32,40,0.45);
  margin: 0;
}


/* ============================================================
   PARTNERS
   ============================================================ */
.ih-partners {
  background: #ffffff;
  padding: 60px 0 48px;
}
.ih-partners__desc {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ih-ink);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.ih-partners__row {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ih-partner-logo {
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ih-partner-logo img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: filter 0.2s ease;
}
.ih-partner-logo img:hover {
  filter: none;
}
.ih-partners__reg {
  text-align: center;
  font-family: var(--ih-font-body);
  font-size: 1rem;
  color: rgba(5,32,40,0.5);
  margin: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ih-blog__desc {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ih-ink);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.ih-blog__grid { grid-template-columns: repeat(2, 1fr); }
  .ih-involved__grid { grid-template-columns: repeat(2, 1fr); }
  .ih-social__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --ih-section-pad: 56px; }

  .ih-hero {
    height: 56vh;
    max-height: 480px;
    min-height: 360px;
  }
  .ih-hero__content { max-width: 100%; padding: 20px 20px 18px; }
  .ih-hero__ctas { flex-direction: column; }
  .ih-hero__ctas .ih-btn { width: 100%; text-align: center; }
  .ih-hero__headline { font-size: 3.25rem; }

  .ih-stats__grid { grid-template-columns: 1fr; }
  .ih-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .ih-stat:last-child { border-bottom: none; }

  .ih-about__inner { grid-template-columns: 1fr; gap: 32px; }
  .ih-about__text { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
  .ih-about__video-wrap { display: none; }
  .ih-about__video { display: none; }

  .ih-services__desc {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ih-ink);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.ih-services__grid { grid-template-columns: 1fr; }
  .ih-section-heading--bordered { padding: 8px 20px; }

  .ih-story__inner { grid-template-columns: 1fr; gap: 32px; }
  .ih-story__image { min-height: 240px; }

  .ih-involved__grid { grid-template-columns: 1fr; }

  .ih-blog__desc {
  font-family: var(--ih-font-body);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ih-ink);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.ih-blog__grid { grid-template-columns: 1fr; }
  .ih-blog-card:nth-child(4),
  .ih-blog-card:nth-child(5) { grid-column: auto; }

  .ih-social__grid { grid-template-columns: repeat(2, 1fr); }

  .ih-hero__ctas { flex-direction: column; align-items: stretch; }
  .ih-hero__ctas .ih-btn { width: 100%; max-width: 100%; }
}

/* Reduce H2 margin-bottom on specific homepage sections */
.ih-services .ih-section-heading,
.ih-involved .ih-section-heading,
.ih-blog .ih-section-heading,
.ih-social .ih-section-heading,
.ih-partners .ih-section-heading {
  margin-bottom: 30px;
}

/* STORY CAROUSEL */
.ih-story-carousel { position: relative; max-width: 860px; margin: 0 auto; min-height: 320px; display: flex; flex-direction: column; }
.ih-story-carousel__slides { position: relative; flex: 1; min-height: 260px; }
.ih-story-slide { display: none; animation: ihFadeIn 0.4s ease; position: absolute; top: 0; left: 0; width: 100%; }
.ih-story-slide--active { display: block; }
@keyframes ihFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ih-story__attribution {
  font-family: var(--ih-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ih-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 20px;
}
.ih-story-carousel__controls {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  margin-top: 32px !important;
}
.ih-story-carousel__btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #ffffff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ih-story-carousel__btn:hover { background: rgba(255,255,255,0.15); border-color: #FFE65A; }
.ih-story-carousel__dots { display: flex; gap: 8px; align-items: center; }
.ih-story-carousel__dot {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
  display: block;
  padding: 0;
}
.ih-story-carousel__dot.active { background: var(--ih-accent); }

/* READ MORE STORIES button */
.ih-story__cta {
  background: var(--ih-accent) !important;
  color: var(--ih-deep) !important;
  border: none !important;
  font-family: var(--ih-font-head) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 14px 32px !important;
  border-radius: var(--ih-radius-sm) !important;
  display: inline-block !important;
  transition: background 0.15s, color 0.15s !important;
}
.ih-story__cta:hover {
  background: #f0d800 !important;
  color: var(--ih-deep) !important;
}


/* ============================================================
   INSTAGRAM CAROUSEL
   ============================================================ */
.ih-social { background: var(--ih-deep); padding: var(--ih-section-pad) 0; }
.ih-social .ih-section-heading { color: #ffffff; }
.ih-social__handle { text-align: center; margin: 0 0 32px; }
.ih-social__handle a { font-family: var(--ih-font-head); font-size: 1rem; font-weight: 700; color: var(--ih-accent); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }

.ih-ig-carousel { position: relative; }
.ih-ig-carousel__viewport { overflow: hidden; margin: 0 60px; }
.ih-ig-carousel__track { display: flex; gap: 16px; transition: transform 0.4s ease; will-change: transform; }
.ih-ig-carousel__slide { flex: 0 0 calc(25% - 12px); min-width: 0; }
.ih-ig-carousel__link { display: block; text-decoration: none; }
.ih-ig-carousel__img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,0.05); }
.ih-ig-carousel__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.ih-ig-carousel__slide:hover .ih-ig-carousel__img { transform: scale(1.05); }
.ih-ig-carousel__overlay { position: absolute; inset: 0; background: rgba(0,82,97,0.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; border-radius: 8px; }
.ih-ig-carousel__slide:hover .ih-ig-carousel__overlay { opacity: 1; }
.ih-ig-carousel__icon { color: #fff; font-size: 2rem; }

.ih-ig-carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--ih-accent); color: var(--ih-deep); border: none; cursor: pointer; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background 0.2s; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.ih-ig-carousel__btn:hover { background: #fff; }
.ih-ig-carousel__btn--prev { left: 0; }
.ih-ig-carousel__btn--next { right: 0; }
.ih-ig-carousel__btn:disabled { opacity: 0.3; cursor: default; }

.ih-ig-carousel__follow { text-align: center; margin-top: 40px; }
.ih-ig-carousel__follow .ih-btn--primary { background: var(--ih-accent) !important; color: var(--ih-deep) !important; border-color: var(--ih-accent) !important; }
.ih-ig-carousel__follow .ih-btn--primary:hover { background: #f0d800 !important; border-color: #f0d800 !important; }

@media (max-width: 1024px) { .ih-ig-carousel__slide { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 768px) { .ih-ig-carousel__slide { flex: 0 0 calc(50% - 8px); } .ih-ig-carousel__viewport { margin: 0 52px; } }
@media (max-width: 480px) { .ih-ig-carousel__slide { flex: 0 0 80%; } }

/* ============================================================
   HOMEPAGE HERO - MOBILE: image above, text block below
   ============================================================ */
@media (max-width: 768px) {
  #ih-home .ih-hero {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: visible !important;
  }
  #ih-home .ih-hero__bg {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    z-index: 0 !important;
  }
  #ih-home .ih-hero > .ih-container {
    position: relative !important;
    z-index: 2 !important;
    height: auto !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    background: rgba(217, 248, 231, 0.97) !important;
  }
  #ih-home .ih-hero__content {
    width: 100% !important;
    padding: 24px 20px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  #ih-home .ih-hero__headline {
    font-size: 2.4rem !important;
    color: var(--ih-deep) !important;
    margin-bottom: 10px !important;
  }
  #ih-home .ih-hero__sub {
    color: var(--ih-ink) !important;
    margin-bottom: 20px !important;
  }
  #ih-home .ih-hero__ctas {
    flex-direction: column !important;
    gap: 12px !important;
  }
  #ih-home .ih-hero__ctas .ih-btn, #ih-home .ih-hero__ctas .ih-page-hero__cta {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1.1rem !important;
    padding: 15px 20px !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }
}

/* Homepage story carousel - centred to match Impact */
.ih-story-carousel { max-width: 780px; margin: 0 auto; text-align: center; }
.ih-story-slide { text-align: center; }
#ih-home .ih-story .ih-section-heading { text-align: center; color: #fff; margin-bottom: 40px; }


/* Story carousel - controls always below text */
.ih-story-carousel {
  display: flex;
  flex-direction: column;
}
.ih-story-carousel__slides {
  position: static !important;
  min-height: 0 !important;
}
.ih-story-slide {
  position: static !important;
  padding-bottom: 8px;
}
@media (max-width: 768px) {
  .ih-story-carousel {
    max-width: 100% !important;
  }
  #ih-home .ih-story .ih-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}