/* Desktop 2-column layout:
   Left: Celebrating Our Library Users + Collections Details
   Right: Beyond Books */
.yeshwanthpur-rearranged-content-flow{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  grid-template-areas:
    "celebrating beyond"
    "collections beyond" !important;
  gap:18px !important;
  align-items:stretch !important;
  width:100% !important;
}

.yeshwanthpur-top-content-grid{
  display:contents !important;
}

.yeshwanthpur-top-content-grid > .yeshwanthpur-content-card{
  grid-area:celebrating !important;
}

.yeshwanthpur-top-content-grid > .yeshwanthpur-community-block{
  grid-area:beyond !important;
  height:100% !important;
  margin:0 !important;
}

.yeshwanthpur-collections-below{
  grid-area:collections !important;
  margin-top:0 !important;
  width:100% !important;
}

.yeshwanthpur-collections-below > .yeshwanthpur-content-card{
  height:100% !important;
  margin:0 !important;
}

/* Keep both columns visually balanced */
.yeshwanthpur-top-content-grid > .yeshwanthpur-content-card,
.yeshwanthpur-top-content-grid > .yeshwanthpur-community-block,
.yeshwanthpur-collections-below > .yeshwanthpur-content-card{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}

/* Tablet/mobile: return to a single column */
@media(max-width:900px){
  .yeshwanthpur-rearranged-content-flow{
    display:flex !important;
    flex-direction:column !important;
    gap:18px !important;
  }

  .yeshwanthpur-top-content-grid{
    display:contents !important;
  }

  .yeshwanthpur-top-content-grid > .yeshwanthpur-content-card{
    order:1;
  }

  .yeshwanthpur-collections-below{
    order:2;
  }

  .yeshwanthpur-top-content-grid > .yeshwanthpur-community-block{
    order:3;
  }
}
