/* SPS Elementor widget integration */
.elementor-widget-sps-hero,
.elementor-widget-sps-quick-links,
.elementor-widget-sps-about,
.elementor-widget-sps-learning,
.elementor-widget-sps-principal,
.elementor-widget-sps-news,
.elementor-widget-sps-cta { width:100%; }

.sps-ee-section { width:100%; }
.sps-ee-principal-img { border-radius:20px; max-height:340px; width:100%; object-fit:cover; }

/* Prevent Elementor container spacing from creating seams between full-width SPS sections. */
.elementor-element:has(> .elementor-widget-sps-hero),
.elementor-element:has(> .elementor-widget-sps-quick-links),
.elementor-element:has(> .elementor-widget-sps-about),
.elementor-element:has(> .elementor-widget-sps-learning),
.elementor-element:has(> .elementor-widget-sps-principal),
.elementor-element:has(> .elementor-widget-sps-news),
.elementor-element:has(> .elementor-widget-sps-cta) { margin:0; padding:0; }

.elementor-editor-active .sps-ee-section { position:relative; }
.elementor-editor-active .hero-banner { min-height:720px; }

@media (max-width:767px){
  .elementor-editor-active .hero-banner{min-height:auto;}
}

/* v0.1.2: Elementor 4 may import the starter template as an e-con-boxed
   parent even when the template says full width. SPS widgets already own
   their own Bootstrap .container, so the Elementor wrapper must span the
   viewport and add no extra spacing. */
body.sps-elementor-page .sps-elementor-front-page > .elementor > .e-con.e-parent {
  --container-max-width: 100% !important;
  --container-default-padding-top: 0px !important;
  --container-default-padding-right: 0px !important;
  --container-default-padding-bottom: 0px !important;
  --container-default-padding-left: 0px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}
body.sps-elementor-page .sps-elementor-front-page > .elementor > .e-con.e-parent > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}
body.sps-elementor-page .sps-elementor-front-page .elementor-widget {
  margin-block-end: 0;
}

/* Real school photography should fill the circular EduAct hero treatment
   without stretching if the source image is not square. */
.elementor-widget-sps-hero .hero-banner__thumb > img {
  object-fit: cover;
  object-position: center;
}

/* Until the real SPS logo is uploaded, keep the text fallback readable
   over the transparent home-page header. Sticky navigation remains dark. */
body.home .main-header:not(.stricky-header) .sps-site-title {
  color: #fff !important;
}
body.home .main-header:not(.stricky-header) .sps-site-title small {
  color: rgba(255,255,255,.78) !important;
}

@media (max-width: 991px) {
  .elementor-widget-sps-hero .hero-banner__thumb > img {
    aspect-ratio: 1 / 1;
  }
}

/* v0.2.0 — Inner page / admissions widgets */
.elementor-widget-sps-page-hero,
.elementor-widget-sps-admissions,
.elementor-widget-sps-google-form { width:100%; }

.elementor-widget-sps-page-hero .page-header .container {
  padding-top: 132px;
  padding-bottom: 118px;
}
.elementor-widget-sps-page-hero .page-header__title { text-transform:none; }
.elementor-widget-sps-page-hero .page-header__breadcrumb li + li::before {
  content: '/';
  margin: 0 10px;
  opacity: .7;
}
.elementor-widget-sps-page-hero .page-header__breadcrumb a { color:#fff; }

.sps-admissions { padding: 110px 0; background:#fff; }
.sps-admissions__intro { font-size:18px; line-height:1.85; margin:0 0 28px; }
.sps-admissions__note {
  display:flex; gap:18px; align-items:flex-start; padding:24px;
  border-radius:18px; background:#f1f2fd;
}
.sps-admissions__note > span {
  width:52px; height:52px; flex:0 0 52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--eduact-base); color:#fff; font-size:24px;
}
.sps-admissions__note h3 { margin:0 0 8px; font-size:20px; color:var(--eduact-black); }
.sps-admissions__note p { margin:0; }
.sps-admissions__steps { display:grid; gap:18px; }
.sps-admissions__step {
  display:flex; gap:22px; padding:28px; border:1px solid #ececf4;
  border-radius:20px; background:#fff; box-shadow:0 12px 35px rgba(42,37,77,.06);
}
.sps-admissions__step-number {
  width:62px; height:62px; flex:0 0 62px; border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  background:var(--eduact-secondary); color:#fff; font-weight:700; font-size:20px;
}
.sps-admissions__step h3 { margin:2px 0 7px; font-size:23px; color:var(--eduact-black); }
.sps-admissions__step p { margin:0; }

.sps-form-section { padding: 105px 0 120px; background:#f8f8fc; }
.sps-form-section__intro { max-width:760px; margin:0 auto 34px; font-size:17px; }
.sps-google-form-wrap {
  max-width:950px; margin:0 auto; background:#fff; border-radius:22px;
  overflow:hidden; box-shadow:0 18px 50px rgba(42,37,77,.08);
}
.sps-google-form-wrap iframe { display:block; border:0; }
.sps-google-form-placeholder {
  max-width:850px; margin:0 auto; text-align:center; padding:60px 30px;
  border:2px dashed #c9cbe8; border-radius:22px; background:#fff;
}
.sps-google-form-placeholder > span { font-size:54px; color:var(--eduact-base); }
.sps-google-form-placeholder h3 { margin:16px 0 8px; color:var(--eduact-black); }
.sps-google-form-placeholder p { margin:0; }

@media (max-width:767px) {
  .sps-admissions { padding:75px 0; }
  .sps-admissions__step { padding:22px; gap:16px; }
  .sps-admissions__step-number { width:52px; height:52px; flex-basis:52px; }
  .sps-form-section { padding:75px 0 90px; }
}


/* v0.2.1 — remove the HTML template's 1920x800 placeholder from inner pages.
   A real school image can still be selected in the widget later. */
.elementor-widget-sps-page-hero .page-header {
  background:
    radial-gradient(circle at 18% 35%, rgba(79,96,230,.30) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 28%, rgba(255,255,255,.10) 0 1px, transparent 2px),
    linear-gradient(135deg, #2a254d 0%, #342d63 58%, #252044 100%);
  overflow:hidden;
}
.elementor-widget-sps-page-hero .page-header::before,
.elementor-widget-sps-page-hero .page-header::after {
  content:"";
  position:absolute;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  pointer-events:none;
}
.elementor-widget-sps-page-hero .page-header::before {
  width:430px; height:430px; left:-170px; top:-230px;
}
.elementor-widget-sps-page-hero .page-header::after {
  width:300px; height:300px; right:-110px; bottom:-190px;
}
.elementor-widget-sps-page-hero .page-header__bg {
  background-size:cover !important;
  background-position:center !important;
}
.elementor-widget-sps-page-hero .page-header__overlay {
  background:rgba(21,17,48,.46);
}
.elementor-widget-sps-page-hero .page-header__title,
.elementor-widget-sps-page-hero .page-header__breadcrumb,
.elementor-widget-sps-page-hero .page-header__breadcrumb a,
.elementor-widget-sps-page-hero .page-header__breadcrumb span {
  position:relative;
  z-index:2;
}

/* The temporary text logo must stay readable on the transparent inner-page
   header and on EduAct's dark sticky navigation. The uploaded logo will take
   over automatically once Site Logo is configured. */
body.sps-elementor-page .main-header .sps-site-title,
body.sps-elementor-page .stricky-header .sps-site-title {
  color:#fff !important;
}
body.sps-elementor-page .main-header .sps-site-title small,
body.sps-elementor-page .stricky-header .sps-site-title small {
  color:rgba(255,255,255,.72) !important;
}

/* v0.2.3 — tighter inner-page rhythm.
   The first admissions draft inherited generous EduAct demo spacing; for the
   compact SPS starter site we keep the breathing room but remove the large
   empty bands between the page hero, admissions content and enquiry form. */
.elementor-widget-sps-page-hero .page-header .container {
  padding-top: 112px;
  padding-bottom: 72px;
}
.sps-admissions {
  padding: 72px 0 66px;
}
.sps-admissions .section-title {
  margin-bottom: 22px;
}
.sps-admissions__intro {
  margin-bottom: 22px;
}
.sps-admissions__steps {
  gap: 14px;
}
.sps-admissions__step {
  padding: 24px 26px;
}
.sps-form-section {
  padding: 68px 0 82px;
}
.sps-form-section .sps-section-title {
  margin-bottom: 18px;
}
.sps-form-section__intro {
  margin-bottom: 28px;
}

@media (max-width: 767px) {
  .elementor-widget-sps-page-hero .page-header .container {
    padding-top: 92px;
    padding-bottom: 56px;
  }
  .sps-admissions {
    padding: 56px 0 52px;
  }
  .sps-form-section {
    padding: 54px 0 68px;
  }
}
/* v0.3.0 — basic Contact page */
.elementor-widget-sps-contact { width:100%; }

.sps-contact {
  padding: 72px 0 78px;
  background:#fff;
}
.sps-contact .section-title { margin-bottom:22px; }
.sps-contact__intro {
  margin:0 0 24px;
  max-width:560px;
  font-size:18px;
  line-height:1.8;
}
.sps-contact__hours {
  display:flex;
  gap:18px;
  align-items:flex-start;
  padding:24px;
  background:#f1f2fd;
  border-radius:18px;
}
.sps-contact__hours > span {
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--eduact-base);
  color:#fff;
  font-size:24px;
}
.sps-contact__hours h3 {
  margin:0 0 7px;
  color:var(--eduact-black);
  font-size:20px;
}
.sps-contact__hours p { margin:0; }

.sps-contact__grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}
.sps-contact-card {
  min-height:190px;
  padding:27px;
  border:1px solid #ececf4;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 35px rgba(42,37,77,.06);
}
.sps-contact-card--wide { grid-column:1 / -1; min-height:160px; }
.sps-contact-card__icon {
  width:52px;
  height:52px;
  margin-bottom:18px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--eduact-secondary);
  color:#fff;
  font-size:23px;
}
.sps-contact-card h3 {
  margin:0 0 8px;
  color:var(--eduact-black);
  font-size:22px;
}
.sps-contact-card p { margin:0; }
.sps-contact-card a {
  color:inherit;
  text-decoration:none;
}
.sps-contact-card a:hover { color:var(--eduact-secondary); }

.sps-contact__map-section {
  padding-top:64px;
}
.sps-contact__map-section .sps-section-title {
  margin-bottom:24px;
}
.sps-contact-map,
.sps-contact-map-placeholder {
  max-width:1120px;
  margin:0 auto;
  overflow:hidden;
  border-radius:22px;
  box-shadow:0 18px 50px rgba(42,37,77,.08);
}
.sps-contact-map iframe { display:block; }
.sps-contact-map-placeholder {
  min-height:260px;
  padding:48px 28px;
  text-align:center;
  background:#f8f8fc;
  border:2px dashed #c9cbe8;
  box-shadow:none;
}
.sps-contact-map-placeholder > span {
  font-size:48px;
  color:var(--eduact-base);
}
.sps-contact-map-placeholder h3 {
  margin:14px 0 7px;
  color:var(--eduact-black);
}
.sps-contact-map-placeholder p {
  max-width:620px;
  margin:0 auto;
}

@media (max-width:767px) {
  .sps-contact { padding:56px 0 60px; }
  .sps-contact__grid { grid-template-columns:1fr; }
  .sps-contact-card--wide { grid-column:auto; }
  .sps-contact__map-section { padding-top:46px; }
}

/* v0.4.0 — basic About Us page */
.elementor-widget-sps-about-page { width:100%; }

.sps-about-page {
  padding:72px 0 76px;
  background:#fff;
}
.sps-about-page__image {
  position:relative;
  overflow:hidden;
  border-radius:28px;
  background:#f1f2fd;
  min-height:390px;
  box-shadow:0 18px 50px rgba(42,37,77,.08);
}
.sps-about-page__image img {
  width:100%;
  height:100%;
  min-height:390px;
  object-fit:cover;
  display:block;
}
.sps-about-page__intro {
  margin:0;
  font-size:18px;
  line-height:1.85;
}
.sps-about-page__cards {
  margin-top:52px;
}
.sps-about-highlight {
  height:100%;
  padding:28px;
  border:1px solid #ececf4;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 35px rgba(42,37,77,.06);
}
.sps-about-highlight__icon {
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
  border-radius:17px;
  background:var(--eduact-secondary);
  color:#fff;
  font-size:26px;
}
.sps-about-highlight h3 {
  margin:0 0 9px;
  color:var(--eduact-black);
  font-size:23px;
}
.sps-about-highlight p {
  margin:0;
}
.sps-about-page__note {
  margin-top:38px;
  padding:28px 32px;
  border-radius:20px;
  background:#f1f2fd;
}
.sps-about-page__note h3 {
  margin:0 0 8px;
  color:var(--eduact-black);
  font-size:22px;
}
.sps-about-page__note p {
  margin:0;
}

@media (max-width:767px) {
  .sps-about-page { padding:56px 0 60px; }
  .sps-about-page__image,
  .sps-about-page__image img { min-height:280px; }
  .sps-about-page__cards { margin-top:38px; }
}

/* v0.5.0 — basic News & Events page */
.elementor-widget-sps-news-events-page { width:100%; }

.sps-news-events-page {
  padding:68px 0 76px;
  background:#fff;
}
.sps-news-events-page__intro {
  max-width:720px;
  margin:-4px auto 30px;
  text-align:center;
  font-size:17px;
  line-height:1.8;
}
.sps-news-events-page__news-grid {
  margin-top:6px;
}
.sps-news-card {
  height:100%;
  overflow:hidden;
  border:1px solid #ececf4;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 35px rgba(42,37,77,.06);
}
.sps-news-card__image {
  display:block;
  height:210px;
  overflow:hidden;
  background:#f1f2fd;
}
.sps-news-card__image img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.sps-news-card__placeholder {
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:54px;
  color:var(--eduact-base);
}
.sps-news-card__body {
  padding:24px;
}
.sps-news-card__date {
  margin-bottom:8px;
  color:var(--eduact-base);
  font-size:14px;
  font-weight:700;
}
.sps-news-card h3 {
  margin:0 0 10px;
  color:var(--eduact-black);
  font-size:22px;
  line-height:1.35;
}
.sps-news-card h3 a,
.sps-news-card__link {
  color:inherit;
  text-decoration:none;
}
.sps-news-card p {
  margin:0 0 15px;
}
.sps-news-card__link {
  color:var(--eduact-secondary);
  font-weight:700;
}

.sps-empty-state {
  max-width:900px;
  margin:0 auto;
  padding:42px 28px;
  text-align:center;
  border:2px dashed #c9cbe8;
  border-radius:22px;
  background:#f8f8fc;
}
.sps-empty-state > span {
  display:inline-block;
  margin-bottom:12px;
  color:var(--eduact-base);
  font-size:44px;
}
.sps-empty-state h3 {
  margin:0 0 7px;
  color:var(--eduact-black);
  font-size:24px;
}
.sps-empty-state p {
  margin:0;
}

.sps-news-events-page__events {
  padding-top:62px;
}
.sps-events-list {
  max-width:1000px;
  margin:0 auto;
}
.sps-event-row {
  display:grid;
  grid-template-columns:78px 1fr 44px;
  gap:22px;
  align-items:center;
  padding:20px 22px;
  margin-bottom:14px;
  border:1px solid #ececf4;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(42,37,77,.05);
}
.sps-event-row__date {
  width:62px;
  height:68px;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:var(--eduact-secondary);
  color:#fff;
}
.sps-event-row__date strong {
  font-size:24px;
  line-height:1;
}
.sps-event-row__date span {
  margin-top:4px;
  text-transform:uppercase;
  font-size:12px;
}
.sps-event-row__content h3 {
  margin:0 0 5px;
  font-size:21px;
  color:var(--eduact-black);
}
.sps-event-row__content h3 a,
.sps-event-row__arrow {
  color:inherit;
  text-decoration:none;
}
.sps-event-row__content p {
  margin:0;
}
.sps-event-row__arrow {
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1f2fd;
  color:var(--eduact-base);
  font-size:20px;
  font-weight:700;
}
.sps-empty-state--events {
  max-width:1000px;
}

@media (max-width:767px) {
  .sps-news-events-page { padding:54px 0 60px; }
  .sps-news-card__image { height:190px; }
  .sps-news-events-page__events { padding-top:46px; }
  .sps-event-row {
    grid-template-columns:62px 1fr;
  }
  .sps-event-row__arrow { display:none; }
}

/* v0.5.1 — inner-page hero and correct active navigation */

/* Breadcrumbs are intentionally removed from SPS inner-page heroes. */
.elementor-widget-sps-page-hero .page-header__breadcrumb {
  display: none !important;
}

/*
 * EduAct's original dynamicCurrentMenuClass() marks the first item as
 * ".current" on pretty permalinks ending with "/". WordPress already supplies
 * current-menu-item/current_page_item correctly, so visually ignore that
 * erroneous class and use WordPress's canonical active classes instead.
 */
.main-menu .main-menu__list > li.current:not(.current-menu-item):not(.current_page_item) > a,
.stricky-header .main-menu__list > li.current:not(.current-menu-item):not(.current_page_item) > a {
  color: var(--eduact-white) !important;
}

.main-menu .main-menu__list > li.current-menu-item > a,
.main-menu .main-menu__list > li.current_page_item > a,
.stricky-header .main-menu__list > li.current-menu-item > a,
.stricky-header .main-menu__list > li.current_page_item > a {
  color: var(--eduact-secondary) !important;
}

.main-menu .main-menu__list > li.current:not(.current-menu-item):not(.current_page_item):hover > a,
.stricky-header .main-menu__list > li.current:not(.current-menu-item):not(.current_page_item):hover > a {
  color: var(--eduact-secondary) !important;
}

/* Same active-page behaviour in the cloned mobile navigation. */
.mobile-nav__container .main-menu__list > li.current-menu-item > a,
.mobile-nav__container .main-menu__list > li.current_page_item > a {
  color: var(--eduact-secondary) !important;
}

/* v0.5.2 — tighter inner-page spacing */

/* Keep the inner hero compact now that breadcrumbs are gone. */
.elementor-widget-sps-page-hero .page-header {
  min-height: 0 !important;
  padding: 0 !important;
}

.elementor-widget-sps-page-hero .page-header .container {
  min-height: 0 !important;
  padding-top: 82px !important;
  padding-bottom: 34px !important;
}

.elementor-widget-sps-page-hero .page-header__title {
  margin: 0 !important;
}

/* Tighten the transition into the first page section. */
.elementor-widget-sps-page-hero + .elementor-widget .sps-admissions,
.elementor-widget-sps-page-hero + .elementor-widget .sps-about-page,
.elementor-widget-sps-page-hero + .elementor-widget .sps-contact,
.elementor-widget-sps-page-hero + .elementor-widget .sps-news-events-page {
  padding-top: 30px !important;
}

/* Admissions was still slightly roomier than the other simple pages. */
.sps-admissions {
  padding-bottom: 54px !important;
}

.sps-form-section {
  padding-top: 30px !important;
}

@media (max-width: 767px) {
  .elementor-widget-sps-page-hero .page-header .container {
    padding-top: 60px !important;
    padding-bottom: 26px !important;
  }

  .elementor-widget-sps-page-hero + .elementor-widget .sps-admissions,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-about-page,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-contact,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-news-events-page {
    padding-top: 24px !important;
  }
}

/* v0.5.3 — reduce the gap after inner-page titles */
.elementor-widget-sps-page-hero .page-header .container {
  padding-top: 82px !important;
  padding-bottom: 34px !important;
}

.elementor-widget-sps-page-hero + .elementor-widget .sps-admissions,
.elementor-widget-sps-page-hero + .elementor-widget .sps-about-page,
.elementor-widget-sps-page-hero + .elementor-widget .sps-contact,
.elementor-widget-sps-page-hero + .elementor-widget .sps-news-events-page {
  padding-top: 30px !important;
}

@media (max-width: 767px) {
  .elementor-widget-sps-page-hero .page-header .container {
    padding-top: 60px !important;
    padding-bottom: 26px !important;
  }

  .elementor-widget-sps-page-hero + .elementor-widget .sps-admissions,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-about-page,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-contact,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-news-events-page {
    padding-top: 24px !important;
  }
}

/* v0.5.4 — remove visible inner-page titles entirely */

/*
 * Keep a compact dark strip so the transparent EduAct header still has
 * sufficient contrast, but remove the repeated page title itself.
 */
.elementor-widget-sps-page-hero .page-header {
  min-height: 118px !important;
  height: 118px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.elementor-widget-sps-page-hero .page-header .container {
  display: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.elementor-widget-sps-page-hero .page-header__title,
.elementor-widget-sps-page-hero .page-header__breadcrumb {
  display: none !important;
}

/* Bring the actual page content up immediately after the navigation strip. */
.elementor-widget-sps-page-hero + .elementor-widget .sps-admissions,
.elementor-widget-sps-page-hero + .elementor-widget .sps-about-page,
.elementor-widget-sps-page-hero + .elementor-widget .sps-contact,
.elementor-widget-sps-page-hero + .elementor-widget .sps-news-events-page {
  padding-top: 34px !important;
}

/* Reduce decorative movement in the tiny header strip. */
.elementor-widget-sps-page-hero .page-header__overlay {
  opacity: .45 !important;
}

@media (max-width: 767px) {
  .elementor-widget-sps-page-hero .page-header {
    min-height: 96px !important;
    height: 96px !important;
  }

  .elementor-widget-sps-page-hero + .elementor-widget .sps-admissions,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-about-page,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-contact,
  .elementor-widget-sps-page-hero + .elementor-widget .sps-news-events-page {
    padding-top: 26px !important;
  }
}

/* v0.6.0 — Sydney Urdu School content sections */
.sps-admissions-learning,
.sps-urdu-method,
.sps-contact-locations { padding-top: 58px; }

.sps-admissions-learning__lead,
.sps-urdu-method__lead,
.sps-contact-locations__lead {
  max-width: 820px;
  margin: -8px auto 28px;
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
}

.sps-admissions-learning__card,
.sps-method-card,
.sps-location-card,
.sps-news-theme {
  height: 100%;
  padding: 25px;
  border: 1px solid #ececf4;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(42,37,77,.055);
}
.sps-admissions-learning__card h3,
.sps-method-card h3,
.sps-location-card h3,
.sps-news-theme h3 {
  margin: 0 0 8px;
  color: var(--eduact-black);
  font-size: 21px;
}
.sps-admissions-learning__card p,
.sps-method-card p,
.sps-location-card p,
.sps-news-theme p { margin: 0; }

.sps-method-card > span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--eduact-secondary);
  color: #fff;
  font-weight: 800;
}

.sps-about-deep-dive { margin-top: 34px; }
.sps-about-deep-dive article {
  height: 100%;
  padding: 28px 30px;
  border-radius: 20px;
  background: #f1f2fd;
}
.sps-about-deep-dive h3 {
  margin: 0 0 9px;
  color: var(--eduact-black);
  font-size: 23px;
}
.sps-about-deep-dive p { margin: 0; }

.sps-contact-locations { margin-top: 6px; }
.sps-location-card strong {
  display: block;
  margin-top: 14px;
  color: var(--eduact-base);
  font-size: 14px;
}

.sps-news-themes { margin: 6px 0 34px; }
.sps-news-theme { background: #f8f8fc; box-shadow: none; }

.sps-instagram-cta {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding: 30px 34px;
  border-radius: 22px;
  background: var(--eduact-black);
}
.sps-instagram-cta h3 {
  margin: 3px 0 6px;
  color: #fff;
  font-size: 25px;
}
.sps-instagram-cta p { margin: 0; color: rgba(255,255,255,.78); }
.sps-instagram-cta__eyebrow {
  color: var(--eduact-secondary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}

@media (max-width: 767px) {
  .sps-admissions-learning,
  .sps-urdu-method,
  .sps-contact-locations { padding-top: 42px; }
  .sps-instagram-cta { display: block; padding: 26px; }
  .sps-instagram-cta .eduact-btn { margin-top: 20px; }
}

/* v0.6.1 — compact About page + social links on Contact */

/* The title banner is now just a navigation backdrop, so keep it only as tall
   as necessary for the transparent header. */
.elementor-widget-sps-page-hero .page-header {
  min-height: 106px !important;
  height: 106px !important;
}

/* About Us was visually too spread out after adding the detailed Urdu content. */
.elementor-widget-sps-page-hero + .elementor-widget .sps-about-page {
  padding-top: 22px !important;
}

.sps-about-page {
  padding-bottom: 54px;
}

.sps-about-page__image,
.sps-about-page__image img {
  min-height: 330px;
}

.sps-about-page__cards {
  margin-top: 30px;
}

.sps-urdu-method {
  padding-top: 38px;
}

.sps-urdu-method__lead {
  margin-bottom: 22px;
}

.sps-about-deep-dive {
  margin-top: 24px;
}

.sps-about-page__note {
  margin-top: 24px;
}

/* Contact social section */
.sps-contact-social {
  padding-top: 44px;
}

.sps-contact-social__lead {
  max-width: 720px;
  margin: -8px auto 24px;
  text-align: center;
  font-size: 17px;
  line-height: 1.75;
}

.sps-contact-social__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.sps-social-card {
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid #ececf4;
  border-radius: 19px;
  background: #fff;
  color: var(--eduact-black);
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(42,37,77,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sps-social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(42,37,77,.09);
  color: var(--eduact-black);
}

.sps-social-card > i {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  font-size: 24px;
}

.sps-social-card--instagram > i {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.sps-social-card--facebook > i {
  background: #1877f2;
}

.sps-social-card strong,
.sps-social-card span {
  display: block;
}

.sps-social-card strong {
  font-size: 21px;
  color: var(--eduact-black);
}

.sps-social-card div > span {
  margin-top: 2px;
  color: var(--eduact-text);
}

.sps-social-card__arrow {
  font-size: 23px;
  color: var(--eduact-secondary);
  text-align: right;
}

/* Social links now live on Contact/footer rather than the News page. */
.sps-instagram-cta {
  display: none !important;
}

@media (max-width: 767px) {
  .elementor-widget-sps-page-hero .page-header {
    min-height: 90px !important;
    height: 90px !important;
  }

  .elementor-widget-sps-page-hero + .elementor-widget .sps-about-page {
    padding-top: 18px !important;
  }

  .sps-about-page {
    padding-bottom: 44px;
  }

  .sps-about-page__image,
  .sps-about-page__image img {
    min-height: 260px;
  }

  .sps-about-page__cards {
    margin-top: 24px;
  }

  .sps-urdu-method {
    padding-top: 30px;
  }

  .sps-contact-social {
    padding-top: 34px;
  }

  .sps-contact-social__links {
    grid-template-columns: 1fr;
  }
}

/* v0.6.2 — rebalance About Us spacing after v0.6.1 */

/* Keep the page close to the header, but not pressed against it. */
.elementor-widget-sps-page-hero + .elementor-widget .sps-about-page {
  padding-top: 32px !important;
  padding-bottom: 66px !important;
}

/* Give the opening school overview its own visual block before highlights. */
.sps-about-page__cards {
  margin-top: 46px !important;
}

/* The teaching section should clearly read as a new section. */
.sps-urdu-method {
  padding-top: 62px !important;
}

.sps-urdu-method .sps-section-title {
  margin-bottom: 24px !important;
}

.sps-urdu-method__lead {
  margin-top: 0 !important;
  margin-bottom: 34px !important;
}

/* Give the four teaching cards a little more internal breathing room. */
.sps-method-card {
  padding: 28px !important;
}

/* Separate explanatory panels from the cards above. */
.sps-about-deep-dive {
  margin-top: 38px !important;
}

/* Keep the final "Urdu beyond the textbook" box related, but not attached. */
.sps-about-page__note {
  margin-top: 34px !important;
  padding: 30px 32px !important;
}

/* The opening image and text should line up comfortably without becoming huge. */
.sps-about-page__image,
.sps-about-page__image img {
  min-height: 350px !important;
}

@media (max-width: 767px) {
  .elementor-widget-sps-page-hero + .elementor-widget .sps-about-page {
    padding-top: 24px !important;
    padding-bottom: 52px !important;
  }

  .sps-about-page__cards {
    margin-top: 34px !important;
  }

  .sps-urdu-method {
    padding-top: 46px !important;
  }

  .sps-urdu-method__lead {
    margin-bottom: 28px !important;
  }

  .sps-about-deep-dive {
    margin-top: 30px !important;
  }

  .sps-about-page__note {
    margin-top: 28px !important;
    padding: 26px !important;
  }

  .sps-about-page__image,
  .sps-about-page__image img {
    min-height: 275px !important;
  }
}

/* v0.6.3 — photo-ready layout */

/* Generic image slot shown until a real school photo is selected. */
.sps-photo-slot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.sps-photo-slot--filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sps-photo-slot--empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  background: #f1f2fd;
  border: 2px dashed #c8cbed;
  color: var(--eduact-black);
}

.sps-photo-slot--empty > span,
.sps-photo-slot--empty > i {
  font-size: 38px;
  color: var(--eduact-base);
}

.sps-photo-slot--empty strong {
  font-size: 16px;
}

.sps-photo-slot--empty small {
  color: var(--eduact-text);
}

/* Home: Inside Sydney Urdu School gallery */
.sps-school-gallery {
  padding: 74px 0 82px;
  background: #fff;
}

.sps-school-gallery__lead {
  max-width: 780px;
  margin: -8px auto 32px;
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
}

.sps-school-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 250px 220px;
  gap: 18px;
}

.sps-school-gallery__item {
  border-radius: 20px;
  min-height: 0;
  box-shadow: 0 12px 34px rgba(42,37,77,.075);
}

.sps-school-gallery__item--1,
.sps-school-gallery__item--2 {
  grid-column: span 2;
}

.sps-school-gallery__item .sps-photo-slot--empty {
  min-height: 100%;
}

/* Home About photo */
.sps-home-about-photo {
  min-height: 420px;
  border-radius: inherit;
}

.sps-home-about-photo.sps-photo-slot--empty {
  min-height: 420px;
}

/* About Us main image */
.sps-about-page__main-photo {
  min-height: 350px;
  border-radius: inherit;
}

.sps-about-page__main-photo.sps-photo-slot--empty {
  min-height: 350px;
}

/* About Us: three real teaching images directly under How We Teach cards */
.sps-teaching-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.sps-teaching-photo-strip__item {
  height: 230px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(42,37,77,.06);
}

.sps-teaching-photo-strip__item.sps-photo-slot--empty {
  min-height: 230px;
}

/* Admissions photo block */
.sps-admissions-photo-block {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 52px;
  padding: 26px;
  border-radius: 24px;
  background: #f7f7fc;
}

.sps-admissions-photo-block__image {
  min-height: 350px;
  overflow: hidden;
  border-radius: 20px;
}

.sps-admissions-classroom-photo {
  min-height: 350px;
  border-radius: inherit;
}

.sps-admissions-photo-block__content {
  padding: 16px 18px 16px 0;
}

.sps-admissions-photo-block__content h3 {
  margin: 0 0 12px;
  color: var(--eduact-black);
  font-size: 30px;
  line-height: 1.25;
}

.sps-admissions-photo-block__content p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
}

/* Keep the following Admissions learning block distinct from the new photo. */
.sps-admissions-photo-block + .sps-admissions-learning {
  padding-top: 58px;
}

@media (max-width: 991px) {
  .sps-school-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 230px;
  }

  .sps-school-gallery__item--1,
  .sps-school-gallery__item--2 {
    grid-column: span 1;
  }

  .sps-admissions-photo-block {
    grid-template-columns: 1fr;
  }

  .sps-admissions-photo-block__content {
    padding: 0 4px 8px;
  }
}

@media (max-width: 767px) {
  .sps-school-gallery {
    padding: 56px 0 62px;
  }

  .sps-school-gallery__lead {
    margin-bottom: 24px;
  }

  .sps-school-gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 235px;
    gap: 14px;
  }

  .sps-home-about-photo,
  .sps-home-about-photo.sps-photo-slot--empty {
    min-height: 300px;
  }

  .sps-about-page__main-photo,
  .sps-about-page__main-photo.sps-photo-slot--empty {
    min-height: 280px;
  }

  .sps-teaching-photo-strip {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 14px;
  }

  .sps-teaching-photo-strip__item,
  .sps-teaching-photo-strip__item.sps-photo-slot--empty {
    height: 235px;
    min-height: 235px;
  }

  .sps-admissions-photo-block {
    margin-top: 40px;
    padding: 18px;
    gap: 22px;
  }

  .sps-admissions-photo-block__image,
  .sps-admissions-classroom-photo {
    min-height: 260px;
  }

  .sps-admissions-photo-block__content h3 {
    font-size: 25px;
  }

  .sps-admissions-photo-block + .sps-admissions-learning {
    padding-top: 44px;
  }
}


/* Home About keeps EduAct's circular image treatment with either the placeholder or real photo. */
.sps-home-about-photo {
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  overflow: hidden;
}

.sps-home-about-photo img {
  border-radius: 50%;
}

/* v0.6.4 — remove legacy News section from the homepage.
   The dedicated News & Events page remains unchanged. */
body.home .elementor-widget-sps-news {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
