/*
Theme Name: Southern Cross Specialists
Theme URI: https://example.local/
Author: OpenAI for Southern Cross Specialists
Description: A calm, modern block theme for Southern Cross Specialists, focused on general surgery, upper GI/HPB surgery, endoscopy and UniCirc circumcision.
Version: 1.5.4
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: southern-cross-services
*/

:root {
  --scs-ink: #102B3A;
  --scs-navy: #004B7D;
  --scs-blue: #0063A8;
  --scs-cyan: #01A1DD;
  --scs-teal: #01A1DD;
  --scs-star: #9FD9F2;
  --scs-star-soft: #DDF2FC;
  --scs-mist: #F0F8FC;
  --scs-sand: #F7FAFC;
  --scs-line: #D7E6EE;
  --scs-muted: #536D7C;
  --scs-white: #FFFFFF;
  --scs-shadow: 0 20px 55px rgba(0,75,125,.10);
  --scs-shadow-soft: 0 10px 32px rgba(16,43,58,.07);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { text-underline-offset: .16em; }
.wp-site-blocks { overflow: hidden; }

.scs-shell { padding-left: 28px; padding-right: 28px; }

/* Brand + header */
.scs-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--scs-line);
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 rgba(0,99,168,.03);
}
.scs-header:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--scs-blue) 0 44%, var(--scs-cyan) 44% 100%);
}
.scs-brand { gap: 12px; min-width: 285px; }
.scs-brand .wp-block-site-logo { margin: 0; flex: 0 0 auto; }
.scs-brand .wp-block-site-logo img { width: 52px; height: 52px; object-fit: contain; }
.scs-header .wp-block-site-title { letter-spacing: -.025em; line-height: 1.06; }
.scs-header .wp-block-site-title a { text-decoration: none; color: var(--scs-ink); }
.scs-brand-tagline { margin: 3px 0 0; color: var(--scs-blue); letter-spacing: .035em; font-weight: 650; }
.scs-header .wp-block-navigation { color: var(--scs-ink); }
.scs-header .wp-block-navigation-item__content {
  position: relative;
  text-decoration: none;
  padding: 8px 0;
}
.scs-header .wp-block-navigation-item__content:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  border-radius: 3px;
  background: var(--scs-cyan);
  transition: right .18s ease;
}
.scs-header .wp-block-navigation-item__content:hover { color: var(--scs-blue); }
.scs-header .wp-block-navigation-item__content:hover:after { right: 0; }

/* Hero */
.scs-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(64px, 7vw, 100px);
  padding-bottom: clamp(68px, 7vw, 104px);
  background:
    radial-gradient(circle at 74% 28%, rgba(159,217,242,.16), transparent 22%),
    linear-gradient(125deg, #F8FCFE 0%, #EEF8FC 48%, #F7FBFD 100%);
  border-bottom: 1px solid #E6F1F6;
}
.scs-hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(280px, 25vw, 410px);
  aspect-ratio: 1054 / 1380;
  right: max(54px, calc((100vw - 1460px) / 2 + 38px));
  top: 50%;
  transform: translateY(-50%);
  background: url('assets/scs-southern-cross-stars.svg') center / contain no-repeat;
  opacity: .44;
  pointer-events: none;
}
.scs-hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: max(28px, calc((100vw - 1220px) / 2));
  bottom: 0;
  width: 112px;
  height: 4px;
  background: linear-gradient(90deg, var(--scs-blue), var(--scs-cyan));
  border-radius: 6px 6px 0 0;
}
.scs-hero h1 {
  max-width: 860px;
  margin-top: 18px;
  letter-spacing: -.047em;
  line-height: 1.02;
}
.scs-hero .scs-lead {
  max-width: 720px;
  margin-top: 24px;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.62;
  color: var(--scs-muted);
}
.scs-eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .76rem;
  font-weight: 750;
  color: var(--scs-blue);
}

/* Sections */
.scs-section { padding-top: clamp(62px, 7vw, 104px); padding-bottom: clamp(62px, 7vw, 104px); }
.scs-section-tight { padding-top: 48px; padding-bottom: 48px; }
.scs-section-muted {
  position: relative;
  background: linear-gradient(180deg, #F5FBFE 0%, var(--scs-mist) 100%);
}
.scs-section-muted:before {
  content: "";
  position: absolute;
  right: 4%;
  top: 40px;
  width: 96px;
  height: 96px;
  background: url('assets/scs-star.svg') center / contain no-repeat;
  opacity: .20;
  pointer-events: none;
}
.scs-section-sand { background: var(--scs-sand); }
.scs-section-dark { background: var(--scs-ink); color: white; }
.scs-section-dark h2, .scs-section-dark h3, .scs-section-dark p { color: white; }

.scs-intro { max-width: 800px; }
.scs-intro p { color: var(--scs-muted); font-size: 1.08rem; }

/* Cards */
.scs-card-grid { gap: 22px; }
.scs-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--scs-line);
  border-radius: 18px;
  background: white;
  padding: 30px;
  box-shadow: 0 2px 0 rgba(16,43,58,.015);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.scs-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--scs-blue), var(--scs-cyan));
  opacity: 0;
  transition: opacity .18s ease;
}
.scs-card:after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  background: url('assets/scs-star.svg') center / contain no-repeat;
  opacity: .18;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.scs-card:hover {
  transform: translateY(-2px);
  border-color: #C7E2EF;
  box-shadow: var(--scs-shadow-soft);
}
.scs-card:hover:before { opacity: 1; }
.scs-card:hover:after { opacity: .34; transform: scale(1.05); }
.scs-card h3 { margin-top: 0; margin-bottom: 10px; padding-right: 18px; }
.scs-card p { color: var(--scs-muted); }
.scs-card a { font-weight: 650; }
.scs-card-featured {
  box-shadow: var(--scs-shadow);
  border-color: rgba(1,161,221,.22);
  background: linear-gradient(160deg, #FFFFFF 0%, #F5FBFE 100%);
}
.scs-card-featured:before { opacity: 1; }
.scs-card-featured:after { opacity: .30; }

.scs-service-list .wp-block-column { padding: 0; }
.scs-service-list h3 { font-size: 1.25rem; }

/* Dark callout */
.scs-callout {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(135deg, #0E2E40 0%, #004B7D 100%);
  color: white;
  box-shadow: var(--scs-shadow);
}
.scs-callout:after {
  content: "";
  position: absolute;
  width: 168px;
  height: 168px;
  right: -26px;
  top: -18px;
  background: url('assets/scs-star.svg') center / contain no-repeat;
  opacity: .16;
}
.scs-callout h2, .scs-callout h3, .scs-callout p { color: white; }
.scs-callout a { color: white; }
.scs-callout .wp-block-button__link { background: white; color: var(--scs-ink); }

.scs-resource-links a {
  display: inline-block;
  margin: 4px 10px 8px 0;
  padding: 9px 13px;
  border: 1px solid var(--scs-line);
  border-radius: 999px;
  text-decoration: none;
  background: white;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.scs-resource-links a:hover { border-color: var(--scs-cyan); box-shadow: 0 5px 16px rgba(0,99,168,.08); }

.scs-profile { border-top: 1px solid var(--scs-line); padding-top: 28px; }
.scs-profile:first-child { border-top: 0; padding-top: 0; }
.scs-profile-meta { color: var(--scs-blue); font-weight: 650; }

.scs-table { width: 100%; border-collapse: collapse; }
.scs-table td, .scs-table th { border-bottom: 1px solid var(--scs-line); padding: 14px 10px; vertical-align: top; }
.scs-table th { text-align: left; color: var(--scs-ink); }

/* Buttons */
.wp-block-button__link {
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
  box-shadow: 0 5px 16px rgba(0,99,168,.12);
}
.wp-block-button__link:hover {
  transform: translateY(-1px);
  background: var(--scs-navy);
  box-shadow: 0 9px 24px rgba(0,99,168,.20);
}
.wp-block-button.is-style-outline > .wp-block-button__link {
  color: var(--scs-blue);
  border-color: var(--scs-blue);
  background: rgba(255,255,255,.55);
  box-shadow: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  color: #fff;
  background: var(--scs-blue);
}

/* Standard inner pages */
.scs-page-header {
  position: relative;
  padding-top: 58px !important;
  padding-bottom: 30px !important;
  background: linear-gradient(180deg, #F8FCFE 0%, #FFFFFF 100%);
  border-bottom: 1px solid #EAF2F6;
}
.scs-page-header:before {
  content: "";
  position: absolute;
  right: max(30px, calc((100vw - 1220px) / 2 + 8px));
  top: 26px;
  width: 62px;
  height: 62px;
  background: url('assets/scs-star.svg') center / contain no-repeat;
  opacity: .14;
}
.scs-page-header:after {
  content: "";
  position: absolute;
  left: max(28px, calc((100vw - 1220px) / 2));
  bottom: -1px;
  width: 72px;
  height: 3px;
  background: var(--scs-cyan);
}

/* Footer */
.scs-disclaimer { font-size: .88rem; color: #667D89; }
.scs-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--scs-line);
  background:
    linear-gradient(180deg, #F8FBFD 0%, #F4FAFD 100%);
}
.scs-footer:after {
  content: "";
  position: absolute;
  right: max(-20px, calc((100vw - 1280px) / 2));
  bottom: -8px;
  width: 240px;
  height: 180px;
  background: url('assets/scs-southern-cross-stars.svg') center / contain no-repeat;
  opacity: .16;
  pointer-events: none;
}
.scs-footer .wp-block-site-logo img { width: 46px; height: 46px; object-fit: contain; }
.scs-footer a { color: var(--scs-ink); }
.scs-footer a:hover { color: var(--scs-blue); }

@media (max-width: 1030px) {
  .scs-header .wp-block-navigation { font-size: .88rem !important; }
  .scs-header .wp-block-navigation__container { gap: 15px !important; }
  .scs-brand { min-width: 255px; }
}

@media (max-width: 781px) {
  .scs-shell { padding-left: 18px; padding-right: 18px; }
  .scs-header > .wp-block-group { padding-top: 14px !important; padding-bottom: 14px !important; }
  .scs-brand { min-width: 0; gap: 9px; }
  .scs-brand .wp-block-site-logo img { width: 44px; height: 44px; }
  .scs-header .wp-block-site-title { font-size: 1.06rem !important; }
  .scs-brand-tagline { font-size: .66rem !important; }
  .scs-card { padding: 24px; }
  .scs-hero { padding-top: 56px; padding-bottom: 66px; }
  .scs-hero:before {
    right: -72px;
    width: 320px;
    opacity: .34;
  }
  .scs-hero h1 { max-width: 680px; }
  .scs-section-muted:before,
  .scs-page-header:before,
  .scs-footer:after { opacity: .10; }
}

@media (max-width: 520px) {
  .scs-brand-tagline { display: none; }
  .scs-brand .wp-block-site-logo img { width: 40px; height: 40px; }
  .scs-hero h1 br { display: none; }
  .scs-card:after { width: 18px; height: 18px; top: 16px; right: 16px; }
}


/* Visual content support */
.scs-page-featured,
.scs-post-featured {
  margin-top: 10px;
  margin-bottom: 8px;
}
.scs-page-featured img,
.scs-post-featured img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--scs-shadow-soft);
  background: linear-gradient(180deg, #EAF6FC 0%, #F8FCFE 100%);
}
.wp-block-image img,
.wp-block-cover,
.wp-block-gallery.has-nested-images figure.wp-block-image img,
.wp-block-media-text__media img {
  border-radius: 22px;
}
.wp-block-image img,
.wp-block-gallery.has-nested-images figure.wp-block-image img,
.wp-block-media-text__media img {
  box-shadow: var(--scs-shadow-soft);
}
.wp-block-image figcaption,
.wp-element-caption {
  color: #6C8594;
  font-size: .9rem;
  margin-top: 10px;
}
.wp-block-media-text {
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
}
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media,
.wp-block-media-text > .wp-block-media-text__media {
  position: relative;
}
.wp-block-media-text > .wp-block-media-text__media:after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  right: -14px;
  bottom: -14px;
  background: url('assets/scs-star.svg') center / contain no-repeat;
  opacity: .22;
  pointer-events: none;
}
.wp-block-gallery.has-nested-images {
  gap: 16px;
}
.wp-block-cover {
  overflow: hidden;
}
.scs-page-content > *:first-child,
.scs-entry-content > *:first-child {
  margin-top: 0;
}
.scs-page-content .alignwide,
.scs-entry-content .alignwide {
  max-width: 1220px;
}
.scs-page-content .alignfull,
.scs-entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.scs-page-content .wp-block-cover.alignwide,
.scs-entry-content .wp-block-cover.alignwide,
.scs-page-content .wp-block-group.alignwide.is-layout-constrained,
.scs-entry-content .wp-block-group.alignwide.is-layout-constrained {
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 781px) {
  .scs-page-featured img,
  .scs-post-featured img {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }
  .wp-block-image img,
  .wp-block-cover,
  .wp-block-gallery.has-nested-images figure.wp-block-image img,
  .wp-block-media-text__media img {
    border-radius: 16px;
  }
  .wp-block-media-text > .wp-block-media-text__media:after {
    width: 34px;
    height: 34px;
    right: -8px;
    bottom: -8px;
  }
}


/* v1.3.1 — featured images are supporting illustrations, not banners */
.scs-page-header {
  padding-top: clamp(44px, 5vw, 66px) !important;
  padding-bottom: clamp(38px, 5vw, 62px) !important;
}
.scs-page-hero,
.scs-post-hero {
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.scs-page-hero-copy,
.scs-post-hero-copy {
  min-width: 0;
}
.scs-page-hero-copy .wp-block-post-title,
.scs-post-hero-copy .wp-block-post-title {
  margin-top: 0;
  margin-bottom: 0;
}
.scs-page-featured-side,
.scs-post-featured-side {
  margin: 0;
  width: 100%;
}
.scs-page-featured-side img,
.scs-post-featured-side img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 470px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 22px;
  box-shadow: var(--scs-shadow-soft);
  background: #fff;
}
/* Neutralise the old banner behaviour if a cached block class remains. */
.scs-page-featured img,
.scs-post-featured img {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: 470px;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
@media (max-width: 781px) {
  .scs-page-hero,
  .scs-post-hero {
    gap: 26px;
  }
  .scs-page-featured-side img,
  .scs-post-featured-side img,
  .scs-page-featured img,
  .scs-post-featured img {
    max-height: none;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}


/* Footer contact refinements */
.scs-footer h3 { margin-bottom: 10px; }
.scs-footer p { margin-top: 0; }
.scs-footer .wp-block-columns { row-gap: 28px; }
@media (max-width: 781px) {
  .scs-footer .wp-block-column { flex-basis: 100% !important; }
}


/* Expandable content cards ------------------------------------------------- */
/* Cards retain a tidy minimum size. Long cards are progressively enhanced
   on the front end with a native <details> disclosure; the editor always
   shows the complete content. */
.scs-card-grid .scs-card,
.wp-block-columns .scs-card {
  min-height: 260px;
}

.scs-card .scs-card-more {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--scs-line);
}

.scs-card .scs-card-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--scs-blue);
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  user-select: none;
}

.scs-card .scs-card-more > summary::-webkit-details-marker { display: none; }

.scs-card .scs-card-more > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0,99,168,.28);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transition: transform .16s ease, background-color .16s ease;
}

.scs-card .scs-card-more[open] > summary::after {
  content: "−";
  background: var(--scs-mist);
}

.scs-card .scs-card-more > summary:hover,
.scs-card .scs-card-more > summary:focus-visible {
  color: var(--scs-navy);
}

.scs-card .scs-card-more > summary:focus-visible {
  outline: 2px solid var(--scs-cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.scs-card .scs-card-more-content {
  padding-top: 16px;
}

.scs-card .scs-card-more-content > :first-child { margin-top: 0; }
.scs-card .scs-card-more-content > :last-child { margin-bottom: 0; }

/* Useful manual controls in Gutenberg's “Additional CSS class(es)” field. */
.scs-card.scs-always-expandable .scs-card-more { display: block; }
.scs-card.scs-no-collapse { min-height: 0; }

@media (max-width: 781px) {
  .scs-card-grid .scs-card,
  .wp-block-columns .scs-card { min-height: 0; }
}


/* v1.5.1 — consistent buttons in dark callouts --------------------------- */
/* Gutenberg's outline style otherwise overrides the white button treatment. */
.scs-callout .wp-block-button > .wp-block-button__link,
.scs-callout .wp-block-button.is-style-outline > .wp-block-button__link,
.scs-callout .wp-block-button__link {
  background: #FFFFFF !important;
  color: var(--scs-ink) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.12);
}

.scs-callout .wp-block-button > .wp-block-button__link:hover,
.scs-callout .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.scs-callout .wp-block-button__link:hover {
  background: var(--scs-star-soft) !important;
  color: var(--scs-navy) !important;
  border-color: var(--scs-star-soft) !important;
}

/* Keep callout buttons above the decorative star. */
.scs-callout .wp-block-buttons,
.scs-callout .wp-block-button,
.scs-callout h2,
.scs-callout h3,
.scs-callout p {
  position: relative;
  z-index: 1;
}


/* v1.5.2 — richer inner-page hero background ------------------------------ */
.scs-page-header {
  background:
    radial-gradient(circle at 84% 26%, rgba(1,161,221,.14) 0%, rgba(1,161,221,0) 31%),
    radial-gradient(circle at 12% 18%, rgba(0,99,168,.075) 0%, rgba(0,99,168,0) 30%),
    linear-gradient(135deg, #E7F5FC 0%, #F3FAFE 52%, #EAF7FD 100%) !important;
  border-bottom: 1px solid #D7EAF4;
}

/* Let the heading/image area read as one designed panel rather than a white void. */
.scs-page-header .scs-page-hero,
.scs-page-header .scs-post-hero {
  position: relative;
  z-index: 1;
}

/* A very subtle brand glow behind the featured illustration. */
.scs-page-featured-side,
.scs-post-featured-side {
  position: relative;
}
.scs-page-featured-side:before,
.scs-post-featured-side:before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 28px;
  background: rgba(255,255,255,.38);
  filter: blur(22px);
  z-index: -1;
}

/* Keep the illustration itself clean against the coloured hero field. */
.scs-page-featured-side img,
.scs-post-featured-side img {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 14px 38px rgba(0,75,125,.10);
}

@media (max-width: 781px) {
  .scs-page-header {
    background:
      radial-gradient(circle at 88% 18%, rgba(1,161,221,.12) 0%, rgba(1,161,221,0) 30%),
      linear-gradient(180deg, #EAF7FD 0%, #F5FBFE 100%) !important;
  }
}


/* v1.5.3 — make the actual inner-page hero match the approved preview ------ */
.scs-page-header {
  position: relative;
  overflow: hidden;
  padding-top: clamp(62px, 6vw, 88px) !important;
  padding-bottom: clamp(62px, 6vw, 88px) !important;
  background:
    radial-gradient(circle at 84% 24%, rgba(1,161,221,.19) 0%, rgba(1,161,221,0) 30%),
    linear-gradient(108deg, #EDF9FD 0%, #D4F0FB 48%, #E6F7FD 100%) !important;
  border-bottom: 1px solid #CFE7F2;
}

/* Large soft white sweep across the lower part of the hero, as in the preview. */
.scs-page-header:before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 150%;
  height: 72%;
  left: -37%;
  bottom: -42%;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  transform: rotate(4deg);
  pointer-events: none;
}

/* Keep the existing cyan baseline accent. */
.scs-page-header:after {
  z-index: 4;
}

/* Hero content sits above the wave. */
.scs-page-header .scs-page-hero,
.scs-page-header .scs-post-hero {
  position: relative;
  z-index: 2;
  gap: clamp(42px, 5.5vw, 84px);
  align-items: center;
}

/* Slightly larger illustration area to match the visual balance of the preview. */
.scs-page-hero > .wp-block-column:first-child,
.scs-post-hero > .wp-block-column:first-child {
  flex-basis: 54% !important;
}

.scs-page-hero > .wp-block-column:last-child,
.scs-post-hero > .wp-block-column:last-child {
  flex-basis: 46% !important;
}

.scs-page-hero > .wp-block-column,
.scs-post-hero > .wp-block-column {
  position: relative;
  z-index: 2;
}

/* Large, very faint brand star on the far right, matching the preview. */
.scs-page-header .scs-page-hero:after,
.scs-page-header .scs-post-hero:after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -8%;
  top: -15%;
  width: 170px;
  height: 170px;
  background: url('assets/scs-star.svg') center / contain no-repeat;
  opacity: .10;
  pointer-events: none;
}

/* Illustration card treatment shown in the preview. */
.scs-page-featured-side img,
.scs-post-featured-side img {
  max-height: 410px;
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(255,255,255,.96) !important;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,75,125,.11) !important;
}

.scs-page-featured-side:before,
.scs-post-featured-side:before {
  inset: 4% 1%;
  background: rgba(255,255,255,.34);
  filter: blur(26px);
}

/* Remove the old small header star now that the hero has the larger preview-style star. */
@media (min-width: 782px) {
  .scs-page-header > .scs-page-hero:after,
  .scs-page-header > .scs-post-hero:after {
    display: block;
  }
}

@media (max-width: 781px) {
  .scs-page-header {
    padding-top: 48px !important;
    padding-bottom: 52px !important;
    background:
      radial-gradient(circle at 88% 15%, rgba(1,161,221,.15) 0%, rgba(1,161,221,0) 30%),
      linear-gradient(180deg, #E8F7FD 0%, #F4FBFE 100%) !important;
  }

  .scs-page-header:before {
    width: 190%;
    height: 48%;
    left: -55%;
    bottom: -28%;
  }

  .scs-page-hero > .wp-block-column:first-child,
  .scs-page-hero > .wp-block-column:last-child,
  .scs-post-hero > .wp-block-column:first-child,
  .scs-post-hero > .wp-block-column:last-child {
    flex-basis: 100% !important;
  }

  .scs-page-header .scs-page-hero:after,
  .scs-page-header .scs-post-hero:after {
    width: 100px;
    height: 100px;
    right: -20px;
    top: -18px;
    opacity: .08;
  }
}


/* v1.5.4 — stronger hero detail, glow, accents and correct constellation --- */

/* Give the hero a more dimensional branded field. */
.scs-page-header {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 28% 42%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.34) 25%, rgba(255,255,255,0) 49%),
    radial-gradient(circle at 78% 28%, rgba(1,161,221,.23) 0%, rgba(1,161,221,.08) 23%, rgba(1,161,221,0) 43%),
    radial-gradient(circle at 94% 76%, rgba(0,99,168,.09) 0%, rgba(0,99,168,0) 31%),
    linear-gradient(112deg, #EDF9FD 0%, #D4F1FB 48%, #E8F8FD 100%) !important;
}

/* Make the curved white sweep clearly visible rather than almost flat. */
.scs-page-header:before {
  width: 155%;
  height: 88%;
  left: -39%;
  bottom: -58%;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.78));
  box-shadow: 0 -1px 0 rgba(255,255,255,.82);
  transform: rotate(3deg);
  opacity: 1;
}

/* Use the actual corrected five-star Southern Cross artwork, not a single star. */
.scs-page-header .scs-page-hero:before,
.scs-page-header .scs-post-hero:before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -3%;
  top: 3%;
  width: 210px;
  height: 275px;
  background: url('assets/scs-southern-cross-stars.svg') center / contain no-repeat;
  opacity: .19;
  filter: saturate(.95);
  pointer-events: none;
}

/* Remove the previous single-star decoration. */
.scs-page-header .scs-page-hero:after,
.scs-page-header .scs-post-hero:after {
  content: none !important;
}

/* Add a soft title-side glow and a fine cyan accent line. */
.scs-page-hero-copy,
.scs-post-hero-copy {
  position: relative;
}

.scs-page-hero-copy:before,
.scs-post-hero-copy:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -8%;
  top: 50%;
  width: 115%;
  height: 165%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse, rgba(255,255,255,.64) 0%, rgba(255,255,255,.20) 44%, rgba(255,255,255,0) 72%);
  pointer-events: none;
}

.scs-page-hero-copy:after,
.scs-post-hero-copy:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 58px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--scs-blue), var(--scs-cyan));
  opacity: .85;
}

/* Featured-image glow: keep it in the stacking context so it is actually visible. */
.scs-page-featured-side,
.scs-post-featured-side {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 8px;
}

.scs-page-featured-side:before,
.scs-post-featured-side:before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -10% -8%;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.96) 0%, rgba(255,255,255,.70) 32%, rgba(1,161,221,.20) 58%, rgba(1,161,221,0) 76%);
  filter: blur(24px);
  opacity: .95;
  pointer-events: none;
}

.scs-page-featured-side:after,
.scs-post-featured-side:after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 4% -3% -4% 6%;
  border: 1px solid rgba(1,161,221,.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  transform: translate(11px, 10px);
  pointer-events: none;
}

.scs-page-featured-side img,
.scs-post-featured-side img {
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,.90) !important;
  border: 1px solid rgba(255,255,255,.98) !important;
  box-shadow:
    0 18px 44px rgba(0,75,125,.16),
    0 0 0 1px rgba(1,161,221,.05) !important;
}

/* Fine curved highlight line across the right side for extra depth. */
.scs-page-header .scs-page-hero,
.scs-page-header .scs-post-hero {
  overflow: visible;
}

@media (max-width: 781px) {
  .scs-page-header .scs-page-hero:before,
  .scs-page-header .scs-post-hero:before {
    width: 125px;
    height: 165px;
    right: -28px;
    top: 6px;
    opacity: .13;
  }

  .scs-page-hero-copy:after,
  .scs-post-hero-copy:after {
    bottom: -12px;
    width: 48px;
  }

  .scs-page-featured-side,
  .scs-post-featured-side {
    padding: 4px;
  }

  .scs-page-featured-side:after,
  .scs-post-featured-side:after {
    transform: translate(6px, 6px);
  }
}
