/* ============================================
   Ramadan Festival – Section: Location boxes (blue, green, orange)
   Same container as header/about. Img and text side-by-side, no overlap.
   ============================================ */

.section-locations {
  width: 100%;
}

/* ---- Same Bootstrap-style container as header and section-about ---- */
.section-locations .container {
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(1rem, 5vw, 2.5rem);
  padding-right: clamp(1rem, 5vw, 2.5rem);
}

@media (min-width: 576px) {
  .section-locations .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .section-locations .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .section-locations .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .section-locations .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .section-locations .container { max-width: 1320px; }
}

/* ---- 3px line between boxes ---- */
.location-divider {
  height: 7px;
  background-color: #f4c6d1;
}

/* ---- Each box: full-width bg, content inside container; height from content ---- */
.location-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  
}

.location-box .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-top: 40px;
    padding-bottom: 40px;
  
}

.location-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 0;
}

/* ---- Two columns: img ~2/3, text ~1/3 ---- */
.location-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  width: 100%;
  align-items: center;
  gap: 0;
}

.location-img-wrap {
  display: flex;
  align-items: center;
}

.location-img {
  width: 100%;
  height: auto;
  display: block;
}

.location-text-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  height: 100%;
}

.location-text {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* Green box: text left, img right (swap column order via HTML) ---- */
.location-box-green .location-inner {
  grid-template-columns: 1fr 2fr;
}

/* Mobile: stack img then text ---- */
@media (max-width: 768px) {
  .location-inner {
    grid-template-columns: 1fr;
  }

  .location-box-green .location-inner {
    grid-template-columns: 1fr;
  }

  .location-text-wrap {
    padding: 1rem;
  }
}
