/* A3Pixels Abroad Education | Background photos restricted to content only.
   Services heading and Contact heading stay on plain white. The original cards,
   copy, icons, links, forms, handlers and layout remain unchanged. */
section#services.services.section,
section#contact.contact.section {
  background-color: #ffffff;
  background-image: none;
}
/* Direct content container is the region beneath each section heading. */
section#services.services.section > .container:not(.section-title),
section#contact.contact.section > .container:not(.section-title) {
  position: relative;
}
section#services.services.section > .container:not(.section-title)::before,
section#contact.contact.section > .container:not(.section-title)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
section#services.services.section > .container:not(.section-title)::before {
  background-color: #f9fcff;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.77) 0%, rgba(255,255,255,.88) 43%, rgba(255,255,255,.93) 100%),
    url('../img/services-counselling-background-2026.jpg');
  background-position: center center;
}
section#contact.contact.section > .container:not(.section-title)::before {
  background-color: #f4f8fc;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.76) 0%, rgba(255,255,255,.84) 45%, rgba(255,255,255,.92) 100%),
    url('../img/contact-support-background-2026.jpg');
  background-position: center 45%;
}
section#services.services.section > .container:not(.section-title) > .row,
section#contact.contact.section > .container:not(.section-title) > .row {
  position: relative;
}
/* Keep prior foreground styling, unchanged. */
section#services.services.section .service-item,
section#services.services.section .section-title {
  position: relative;
  z-index: 1;
}
section#services.services.section .service-item .title,
section#services.services.section .service-item .description,
section#services.services.section .section-title h2,
section#services.services.section .section-title p {
  text-shadow: 0 1px 8px rgba(255,255,255,.5);
}
section#contact.contact.section .info-item,
section#contact.contact.section .php-email-form {
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(19,40,65,.09);
  border: 1px solid rgba(218,226,236,.65);
  border-radius: 10px;
}
section#contact.contact.section .php-email-form .form-control {
  background-color: rgba(255,255,255,.94);
}
@media (max-width: 991.98px) {
  section#services.services.section > .container:not(.section-title)::before {
    background-position: 38% center;
    background-image:
      linear-gradient(rgba(255,255,255,.89),rgba(255,255,255,.93)),
      url('../img/services-counselling-background-2026.jpg');
  }
  section#contact.contact.section > .container:not(.section-title)::before {
    background-position: 35% center;
    background-image:
      linear-gradient(rgba(255,255,255,.87),rgba(255,255,255,.93)),
      url('../img/contact-support-background-2026.jpg');
  }
}
