

/* ── Hero Section ── */
.allyship-hero-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 396.41px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #7A007A;
  padding: 119px 16px 119.02px 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Background image overlay with opacity 0.2 */
.allyship-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.2;
  z-index: 0;
}

/* Content Container: max-width 768px, gap 14.8px */
.allyship-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 768px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14.8px;
  padding: 0;
}

/* Heading: Arial Bold 700, 56px / 61.6px, -1.12px letter-spacing, uppercase, center aligned, #FFFFFF */
.allyship-hero-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 61.6px;
  letter-spacing: -1.12px;
  text-align: center;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
  max-width: 646px;
  width: 100%;
}

/* Description: Arial Regular 400, 18px / 27px, opacity 0.9, max-width 672px, #FFFFFF, padding-bottom 0.59px */
.allyship-hero-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0px;
  text-align: center;
  color: #FFFFFF;
  opacity: 0.9;
  max-width: 672px;
  width: 100%;
  margin: 0;
  padding-bottom: 0.59px;
}

/* ══════════════════════════════════════════
   INTERSECTIONAL COALITIONS SECTION
══════════════════════════════════════════ */
.allyship-coalitions-section {
  width: 100%;
  background: #FFFFFF;
  padding: 100px 0 80px 0;
  box-sizing: border-box;
}

.allyship-collaborate-section {
  width: 100%;
  min-height: 529px;
  background: #FBF9F8;
  padding: 100px 0 100px 0;
  margin-top: 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.allyship-coalitions-container {
  max-width: 1110px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

/* ── Left Side Content (width 535px, gap 21.59px) ── */
.allyship-coalitions-left {
  width: 535px;
  max-width: 535px;
  display: flex;
  flex-direction: column;
  gap: 21.59px;
}

/* Title Block */
.allyship-title-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Title: Arial Bold 700, 32px / 41.6px, #4D004C, max-width 532px */
.allyship-coalitions-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 41.6px;
  letter-spacing: 0px;
  color: #4D004C;
  margin: 0;
  max-width: 532px;
}

/* Title Line Accent: width 64px, height 4px, radius 107px, background #83387F */
.allyship-title-line {
  width: 64px;
  height: 4px;
  border-radius: 107px;
  background: #83387F;
}

/* Description: Arial Regular 400, 20px / 30px, #52424E */
.allyship-coalitions-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0px;
  color: #52424E;
  margin: 0;
}

/* UNFCCC Accredited Organization Row (padding-top 33.2px, gap 16px) */
.allyship-accredited-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 33.2px;
  max-width: 540px;
}

/* Icon Box: 40px x 40px, border-radius 12px, light purple bg */
.allyship-accredited-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFEFF8;
  color: #81007F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Title: Arial Bold 700, 24px / 31.2px, #550055 */
.allyship-accredited-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 31.2px;
  letter-spacing: 0px;
  color: #550055;
  margin: 0;
}

/* ── Right Side Image Layout Container: width 540px, height 416px, min-height 400px, border-radius 8px, padding 32px, bg #FFFFFF, border 1px solid #E4E2E1, shadow 0px 1px 2px #0000000D ── */
.allyship-coalitions-right {
  width: 540px;
  height: 416px;
  min-height: 400px;
  background: #FFFFFF;
  border: 1px solid #E4E2E1;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner Diagram Frame: width 474px, height 352px */
.allyship-diagram-frame {
  position: relative;
  width: 474px;
  height: 352px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image: width 474px, height 258.29px, border-radius 8px */
.allyship-diagram-img {
  width: 474px;
  height: 258.29px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* Floating Pill Buttons (height 34px, radius 12px, padding 8px 16px, bg #FFFFFF, border 1px solid #E4E2E1, shadow 0px 1px 2px #0000000D) */
.allyship-badge {
  position: absolute;
  height: 34px;
  background: #FFFFFF;
  border: 1px solid #E4E2E1;
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  font-family: 'Hanken Grotesk', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.6px;
  color: #550055;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* Top Button: Policy Advocates (width ~136.2px) */
.allyship-badge--top-left {
  top: 0;
  left: 12px;
}

/* Middle Right Button: Research Bodies (width ~132.4px) */
.allyship-badge--mid-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

/* Below Button: Youth Movements (width ~140.5px) */
.allyship-badge--bottom-right {
  bottom: 0;
  right: 24px;
}

/* ── Responsive Adjustments ── */
@media (max-width: 1100px) {
  .allyship-coalitions-section {
    padding: 60px 40px;
  }
}

@media (max-width: 960px) {
  .allyship-coalitions-container {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .allyship-coalitions-left,
  .allyship-coalitions-right {
    width: 100%;
    max-width: 100%;
  }
  .allyship-coalitions-right {
    min-height: 360px;
  }
}

@media (max-width: 580px) {
  .allyship-coalitions-section {
    padding: 40px 20px;
  }
  .allyship-coalitions-title {
    font-size: 26px;
    line-height: 34px;
  }
  .allyship-coalitions-desc {
    font-size: 16px;
    line-height: 24px;
  }
  .allyship-accredited-title {
    font-size: 18px;
    line-height: 24px;
  }
}

/* ══════════════════════════════════════════
   HOW WE COLLABORATE SECTION
   Figma specs: height 529px, bg #FBF9F8,
   Heading: 40px / 48px bold #4D004C, 64px underline #83387F,
   Card: 350px x 271px, box-shadow 0px 0px 4px 0px #00000040,
   Icon: 56px x 56px, radius 12px,
   Title: Arial 700, 24px / 31.2px, #221920,
   Desc: Arial 400, 18px / 27px, #52424E,
   Image: 103px x 93px, top-right radius 8px, bottom-left radius 8px,
   Hover animation: image smoothly expands to fill full card
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   HOW WE COLLABORATE SECTION
   Figma specs: width 100% full viewport, height 529px, bg #FBF9F8,
   Heading: 40px / 48px bold #4D004C, 64px underline #83387F,
   Card: 350px x 271px, box-shadow 0px 0px 4px 0px #00000040,
   Icon: 56px x 56px, radius 12px,
   Title: Arial 700, 24px / 31.2px, #221920,
   Desc: Arial 400, 18px / 27px, #52424E,
   Image: 103px x 93px, top-right radius 8px, bottom-left radius 8px,
   Hover animation: image smoothly expands to fill full card
══════════════════════════════════════════ */
.allyship-collaborate-section {
  width: 100%;
  min-height: 529px;
  background: #FBF9F8;
  padding: 80px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.allyship-collaborate-container {
  max-width: 1110px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Heading block (width 630px, height 58px, gap 10px) */
.allyship-collaborate-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  max-width: 630px;
  width: 100%;
}

/* Title: Arial Bold 700, 40px / 48px, text-transform uppercase, #4D004C */
.allyship-collaborate-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: #4D004C;
  margin: 0;
  text-align: center;
  max-width: 630px;
  width: 100%;
}

/* Underline Pill Accent: width 64px, height 4px, radius 100px, background #83387F */
.allyship-collaborate-line {
  width: 64px;
  height: 4px;
  border-radius: 100px;
  background: #83387F;
  flex-shrink: 0;
}

/* 3-Card Row Grid (350px width each, total max-width 1110px) */
.allyship-collaborate-cards-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
}

/* Individual Card: 350px x 271px, shadow 0px 0px 4px 0px #00000040, bg #FFFFFF */
.allyship-collaborate-card {
  width: 350px;
  height: 271px;
  min-height: 271px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 24px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.allyship-collaborate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 24px 0px rgba(77, 0, 76, 0.18);
}

/* Background image expansion layer on hover */
.allyship-card-hover-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 103px;
  height: 93px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
  object-fit: cover;
  z-index: 1;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CARD HOVER ANIMATION: Image expands to fill full card cleanly */
.allyship-collaborate-card:hover .allyship-card-hover-bg {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Content Container sitting on top of hover layers */
.allyship-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
}

/* HOVER: Hide content (icon, title, desc) so ONLY the full image shows */
.allyship-collaborate-card:hover .allyship-card-content {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

/* Icon Box: 56px x 56px, border-radius 12px, bg #81007F */
.allyship-card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #81007F;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Title: Arial Bold 700, 24px / 31.2px, #221920 */
.allyship-card-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 31.2px;
  letter-spacing: 0px;
  color: #221920;
  margin: 0;
}

/* Description: Arial Regular 400, 18px / 27px, #52424E */
.allyship-card-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0px;
  color: #52424E;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1150px) {
  .allyship-collaborate-section {
    padding: 60px 40px;
  }
  .allyship-collaborate-cards-grid {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .allyship-collaborate-section {
    padding: 40px 20px;
  }
  .allyship-collaborate-title {
    font-size: 32px;
    line-height: 40px;
  }
  .allyship-collaborate-card {
    width: 100%;
    max-width: 350px;
  }
}


/* ══════════════════════════════════════════
   OUR ALLIES & PARTNERS SECTION
   Figma specs:
   Heading: Arial Bold 700, 40px/48px, #4D004C, centred
   64px × 4px underline accent #83387F, radius 100px
   Cards: 255×120px, bg #FFFFFF, radius 8px, shadow 0px 0px 4px #00000040
   Auto-scroll carousel (seamless CSS loop)
   View All btn: 101×48px, #81007F bg, radius 8px, padding 12px 20px
══════════════════════════════════════════ */
.allyship-allies-section {
  width: 100%;
  background: #FFFFFF;
  padding: 80px 0 80px 0;
  margin-top: 60px;
  box-sizing: border-box;
}

.allyship-allies-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Heading block */
.allyship-allies-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Title: Arial Bold 700, 40px / 48px, #4D004C */
.allyship-allies-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0px;
  color: #4D004C;
  margin: 0;
  text-align: center;
}

/* Underline: 64px × 4px, radius 100px, #83387F */
.allyship-allies-line {
  width: 64px;
  height: 4px;
  border-radius: 100px;
  background: #83387F;
}

/* ── AUTO-SCROLL CAROUSEL ── */

/* Outer: clips overflow so cards slide out seamlessly */
.allies-carousel-outer {
  width: 100%;
  max-width: 1110px;
  overflow: hidden;
  position: relative;
}

/* Pause on hover / respect reduced-motion */
.allies-carousel-outer:hover .allies-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .allies-track {
    animation: none !important;
  }
}

/* Scrolling track */
.allies-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: allies-scroll 18s linear infinite;
}

@keyframes allies-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 50% = one full set of original cards */
}

/* Single partner logo card: exactly 255×120px — all cards uniform */
.ally-logo-card {
  flex-shrink: 0;
  flex-grow: 0;
  width: 255px;
  min-width: 255px;
  max-width: 255px;
  height: 120px;
  min-height: 120px;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
  padding: 16px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ally-logo-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ── VIEW ALL BUTTON ── */
.allies-btn-wrapper {
  display: flex;
  justify-content: center;
}

/* 101×48px, #81007F bg, radius 8px, padding 12px 20px */
.allies-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  background: #81007F;
  color: #FFFFFF;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 23.4px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.allies-view-all-btn:hover {
  background: #4D004C;
  box-shadow: 0 4px 14px rgba(129, 0, 127, 0.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .allyship-hero-section {
    padding: 60px 16px;
    min-height: auto;
  }
  .allyship-hero-title {
    font-size: 34px;
    line-height: 40px;
    letter-spacing: -0.5px;
  }
  .allyship-hero-desc {
    font-size: 16px;
    line-height: 24px;
  }
  .allyship-allies-section {
    padding: 60px 0 60px 0;
  }
  .allyship-allies-title {
    font-size: 32px;
    line-height: 40px;
  }
  .ally-logo-card {
    width: 200px;
    height: 96px;
  }
}
