/* ==========================================================================
   Our Footprint 2-Column Layout
   ========================================================================== */
.our-footprint {
  padding: 20px 0;
  max-width: 100%;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Our Footprint Header Overrides
   ========================================================================== */

/* Header Container Spacing & Typography Defaults */
.our-footprint__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Section Label (OUR FOOTPRINT) */
.our-footprint__header .section__label {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #001E3F;
    color: #001E3F;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    border-radius: 6px;
    margin-bottom: 12px;
    width: fit-content;
    max-width: max-content;
    align-self: flex-start; /* Prevents flexbox stretching */
}

/* Section Title (Across Cambodia, Within Reach) */
.our-footprint__header .section__title {
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(1.125rem, 0.7723rem + 1.5023vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #001E3F; /* Theme Dark Navy */
  margin: 0;
}

/* Section Description Wrapper & Inner Drupal Field Override */
.our-footprint__header .section__description {
  font-family: var(--font-body, sans-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4A5568;
}

/* Flatten Drupal inner field wrappers to prevent unexpected margins */
.our-footprint__header .section__description .field--name-field-description,
.our-footprint__header .section__description .field__item {
  margin: 0;
  padding: 0;
}

.our-footprint__container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .our-footprint__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* Left Column Styling */
.our-footprint__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.our-footprint__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 2x2 Grid for Stat Cards on the left side */
/* Strip field wrapper influence so cards align in 2 columns */
.our-footprint__stats-grid .field__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.our-footprint__stats-grid .field__item {
  display: contents;
}

.our-footprint__stats-grid .grid-col {
  width: 100%;
}

.our-footprint .feature-card {
    align-items: flex-start;
    gap: 0;
    @media (max-width: 500px) {
        height: 138px;
    }
}

/* Right Column Map Styling */
.our-footprint__right {
  width: 100%;
}

.our-footprint__map-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.our-footprint__map-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 600px;
}

.our-footprint .card .title {
    font-size: 1rem; /* 16px */
    margin-bottom: 12px;
    font-weight: normal;
}

#footprint-290 {
    max-width: 100%;
    background-color: #001E3F;
    border-radius: 24px;
    padding: 60px 40px;
    margin: 0 auto;
    width: 90%;
}
#footprint-290 {
    margin-bottom: 42px;
}
#footprint-290 .section__title {
    color: #fff;
}

#footprint-290 .section__description {
    color: #fff;
}

#footprint-290 .our-footprint__stats-grid .field__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  width: 100%;
}

/* 2. Target the actual children (.grid-col) through display: contents wrappers */

/* 1st Card: Top Left */
#footprint-290 .our-footprint__stats-grid .field__items > .field__item:nth-child(1) .grid-col {
  grid-column: 1;
  grid-row: 1;
}

/* 2nd Card: Bottom Left */
#footprint-290 .our-footprint__stats-grid .field__items > .field__item:nth-child(2) .grid-col {
  grid-column: 1;
  grid-row: 2;
}

/* 3rd Card: Spans both rows on the Right & vertically centers */
#footprint-290 .our-footprint__stats-grid .field__items > .field__item:nth-child(3) .grid-col {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100%;
}

/* 3. Mobile fallback: stack all cards in 1 column */
@media (max-width: 640px) {
  #footprint-290 .our-footprint__stats-grid .field__items {
    grid-template-columns: 1fr;
  }

  #footprint-290 .our-footprint__stats-grid .field__items > .field__item .grid-col {
    grid-column: auto;
    grid-row: auto;
  }
}