/**
 * Homepage layout rules that the design currently gets from Bootstrap.
 * Bootstrap 5.3.3 is not in the theme. These selectors cover only the
 * homepage: center the container, swap the notice-board frames at the
 * Bootstrap md breakpoint, and place the two award cards side by side.
 */

.the-gurukul-home .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.the-gurukul-home .d-none {
  display: none !important;
}

/* Elementor adds 20px under every widget that is not the last child.
   These two widgets sit directly before the next homepage section. */
.the-gurukul-home .elementor-widget.elementor-widget-gurukul_banner,
.the-gurukul-home .elementor-widget.elementor-widget-gurukul_intro,
.the-gurukul-home .elementor-widget.elementor-widget-gurukul_discover,
.the-gurukul-home .elementor-widget.elementor-widget-gurukul_learning_panels {
  margin-block-end: 0;
}

.the-gurukul-home .about-section {
  padding-bottom: 0;
}

.the-gurukul-home .award-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.the-gurukul-home .award-column {
  width: 100%;
}

.the-gurukul-home .notic-swiper:not(.swiper-initialized) .swiper-slide + .swiper-slide {
  display: none;
}

@media (min-width: 768px) {
  .the-gurukul-home .d-md-block,
  .the-gurukul-home .d-none.d-md-block {
    display: block !important;
  }

  .the-gurukul-home .d-md-none,
  .the-gurukul-home .d-block.d-md-none {
    display: none !important;
  }

  .the-gurukul-home .award-column {
    width: calc(50% - 12px);
  }
}
