
.feature-section {
  position: relative;         /* establish stacking context */
  overflow: hidden;           /* if you want to clip bg/overlay */
}



/* Base wrapper for the layered page */
.layered-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* Background & Overlay Layers (absolute positioning) */
.layer.bg-layer,
.layer.overlay-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Ensure inner elements are interactive */
.layer > * {
  pointer-events: auto;
}

/* Content container that holds the split boxes, full content row, and three columns */
.content-container {
  padding-left: 20px;
    padding-right: 20px;
  position: relative;
  z-index: 3;
}

/* === Split Boxes Row: Two columns side by side === */
.split-boxes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}
.split-box {
  background: #fff;
  padding: 2rem;
  box-sizing: border-box;
      border-radius: 22px;
}
.split-box-inner {
  width: 100%;
}

/* === Full Width Content Row === */
.content-layer {
  text-align: center;
  margin: 0 auto;
}
.grid-wrapper {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
 justify-content: start;
}

.grid-wrapper.floatright {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
 justify-content: end;
}

/* === Three Column Section === */
.three-way-layer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
  gap: 10%;
    max-width: 1000px;
  margin: 0 auto;
}
.three-col {
  padding: 20px;
  box-sizing: border-box;
  border-radius: 22px;
  color: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}


.three-col.left-col * {
    color: inherit !important;

}
.three-col.middle-col * {
    color: inherit !important;
}
.three-col.right-col * {
    color: inherit !important;
}

.contentall * {
      color: inherit !important;
}

.contentall {
  margin-left: 2em;
  margin-top: 0px;
  margin-bottom: 1em;
  padding: 0px;
}

.contentall p{
    margin-top: 0px;
  margin-bottom: 0px;
  padding: 0px;
}

.right-box {
  position: relative;
  bottom: -80px;
}


.split-boxes-row.flipped {
direction: rtl;
}

.contenttitle {
      border-radius: 16px;
    height: auto;
    margin-top: 10px;
    opacity: 1;
    padding: 8px;
    position: relative;
    color: #509E2F;
    text-align: center;
    vertical-align: middle;
    max-width: 222px;
}




/* Responsive adjustments */
@media (max-width: 768px) {
  .split-boxes-row {
    grid-template-columns: 1fr;
  }
  .content-layer,
  .three-way-layer {
    padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
    max-width: 1200px;
  margin: 0 auto;
}
  
  .right-box {
  position: relative;
  bottom: 0px;
}

  .content-container {
padding-left: 10px;
    padding-right: 10px;
}
  
  .layer.overlay-layer {
    height: 200%;
    z-index: -1;
}
  
}
