/* Shared page header, enquiry buttons and common page typography. Loaded last. */

/* No breadcrumbs anywhere, including the one inside the Courses hero */
#page-breadcrumb, .page-breadcrumb, .mh-crumbs, .woocommerce-breadcrumb { display: none !important; }

/* Shared page hero (same look as the landing and Courses heroes) */
.gmc-pagehero {
  background:
    radial-gradient(60% 50% at 85% 0%, rgb(62 207 127 / .18), transparent 70%),
    radial-gradient(120% 120% at 50% -10%, var(--gmc-navy-2) 0%, var(--gmc-navy) 45%, var(--gmc-ink) 100%);
  color: #a9c4dc; font-family: var(--gmc-font);
}
.gmc-pagehero__inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 52px; }
.gmc-pagehero__eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gmc-green-2); border: 1px solid rgb(62 207 127 / .35);
}
.gmc-pagehero h1 {
  margin: 0; color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  text-transform: none; max-width: 28ch;
}
.gmc-pagehero p { margin: 14px 0 0; max-width: 60ch; font-size: 1.05rem; line-height: 1.6; color: #a9c4dc; }
.gmc-pagehero__cta {
  display: inline-block; margin-top: 24px; padding: 12px 26px; border-radius: 999px; background: var(--gmc-green-2);
  color: var(--gmc-ink); font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.gmc-pagehero__cta:hover { background: #fff; color: var(--gmc-navy); }

/* Enquire buttons (replace add to cart) */
a.button.gmc-enquire, .woocommerce a.button.gmc-enquire {
  background: var(--gmc-navy) !important; color: #fff !important; border: 1px solid var(--gmc-navy) !important; border-radius: 999px !important;
  padding: 10px 22px !important; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; line-height: 1.2 !important;
}
a.button.gmc-enquire:hover { background: var(--gmc-green) !important; border-color: var(--gmc-green) !important; }
a.button.gmc-enquire--lg { padding: 14px 32px !important; font-size: .9rem; background: var(--gmc-green) !important; border-color: var(--gmc-green) !important; text-transform: none; letter-spacing: 0; }
a.button.gmc-enquire--lg:hover { background: var(--gmc-navy) !important; border-color: var(--gmc-navy) !important; }
.gmc-enquire-wrap { margin: 0 0 20px; }

/* Reading pages (course and plain pages): one readable column, one type scale */
body.gmc-prose .site-content > .customify-container { max-width: 960px; margin: 0 auto; padding: 40px 24px 64px; box-sizing: border-box; }
body.gmc-prose .entry-content, body.gmc-prose .elementor-widget-text-editor { color: var(--gmc-ink); font-size: 1rem; line-height: 1.75; }
body.gmc-prose .entry-content h2, body.gmc-prose .entry-content h3 {
  text-transform: none; color: var(--gmc-navy); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin: 2rem 0 .75rem;
}
body.gmc-prose .entry-content h2 { font-size: 1.5rem; padding-bottom: .5rem; position: relative; }
body.gmc-prose .entry-content h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 2.5rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gmc-green), var(--gmc-green-2));
}
body.gmc-prose .entry-content h3 { font-size: 1.15rem; }
body.gmc-prose .entry-content a { color: var(--gmc-green); }
body.gmc-prose .entry-content ol, body.gmc-prose .entry-content ul { padding-left: 1.4rem; }
body.gmc-prose.single-course .entry-content > *:first-child strong:only-child { display: none; }

/* Elementor pages: consistent vertical rhythm under the hero */
body.has-gmc-hero .site-content { padding-top: 0; }
body.has-gmc-hero:not(.gmc-prose) .elementor > .e-con:first-child, body.has-gmc-hero:not(.gmc-prose) .elementor-section:first-child { margin-top: 32px; }

/* One page background */
body { background: #fff; }
.site-content { background: #fff; }

@media (max-width: 768px) {
  .gmc-pagehero__inner { padding: 36px 16px 32px; }
  body.gmc-prose .site-content > .customify-container { padding: 24px 16px 48px; }
}

/* Same type scale for Elementor text on pages that get the shared hero */
body.has-gmc-hero .elementor-widget-text-editor h2, body.has-gmc-hero .elementor-widget-heading h2.elementor-heading-title {
  text-transform: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--gmc-navy);
  margin: 2rem 0 .75rem;
}
body.has-gmc-hero .elementor-widget-text-editor, body.has-gmc-hero .elementor-widget-text-editor p {
  font-size: 1rem; line-height: 1.75; color: var(--gmc-ink);
}
body.has-gmc-hero .elementor-widget-text-editor h3 { text-transform: none; font-size: 1.15rem; font-weight: 700; color: var(--gmc-navy); }

/* Courses uses the shared hero; hide the page-specific one */
.mh-hero { display: none !important; }

/* 404: the shared hero already says it */
body.error404 .site-content .page-title, body.error404 .site-content .page-header, body.error404 .site-content .page-content > p { display: none; }
body.error404 .site-content .search-form { max-width: 560px; margin: 32px auto; }

/* Spacing under the shared hero */
body.has-gmc-hero .elementor-widget-html:has(.mh-hero) { display: none; }
body.has-gmc-hero .e-con:has(> .elementor-widget-html .mh-hero), body.has-gmc-hero .elementor-section:has(.mh-hero) { padding: 0 !important; min-height: 0 !important; margin: 0 !important; }
body.has-gmc-hero [data-elementor-type] > .e-con:first-child:not(:has(.mh-hero)) { padding-top: 24px; min-height: 0; }
body.single-course .elementor-widget-spacer, body.single-course .elementor-widget-progress-tracker { display: none; }

/* Theme adds 42px above the content; the hero already gives the spacing */
body.has-gmc-hero .content-area { padding-top: 0 !important; }
body.has-gmc-hero.single-course .elementor-widget-theme-post-content, body.has-gmc-hero.single-course .elementor-widget-text-editor { margin-top: 0; }
body.has-gmc-hero.single-course [data-elementor-type] > .e-con:first-child { padding-top: 0; }

/* Lists converted from typed dashes */
.gmc-list { list-style: none; margin: .75rem 0 1rem; padding: 0; display: grid; gap: 6px; }
.gmc-list li { position: relative; padding-left: 1.4rem; line-height: 1.6; }
.gmc-list li::before { content: ""; position: absolute; left: .15rem; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--gmc-green-2); box-shadow: 0 0 0 3px var(--gmc-green-soft); }

/* Offline LMS: buttons were inheriting the dark link colour and vanished on navy. */
.btn.primary,.btn.primary:visited{background:#3ecf7f;color:#0c2b48;border:1px solid #3ecf7f}
.btn.primary:hover{background:#5ee096;color:#0c2b48}
.btn.ghost,.btn.ghost:visited{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.55)}
.btn.ghost:hover{background:rgba(255,255,255,.1);color:#fff}
.btn.dark,.btn.dark:visited{color:#fff}

/* Digital Solutions landing: one card per product. */
.gmc-solutions{max-width:1152px;margin:0 auto;padding:56px 24px 72px}
.gmc-solutions__lead{font-size:18px;color:#5b6b7b;max-width:640px;margin:0 0 32px}
.gmc-solutions__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.gmc-solutions__card{display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid #e3e9ef;border-radius:12px;background:#fff;color:#5b6b7b;text-decoration:none;transition:box-shadow .15s,transform .15s}
.gmc-solutions__card:hover{box-shadow:0 8px 24px rgba(12,43,72,.1);transform:translateY(-2px)}
.gmc-solutions__card strong{font-size:20px;color:#0c2b48;line-height:1.3}
.gmc-solutions__eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#137a45}
.gmc-solutions__more{margin-top:4px;font-weight:700;color:#137a45}

/* Offline LMS hero title: the theme's heading colour made it invisible on navy */
.athds .hero h1 { color: #fff !important; text-transform: none; }

/* Digital Solutions: product cards and the platform page */
.gmc-solutions--wide { max-width: 1200px; }
.gmc-solutions__status { align-self: flex-start; margin-top: auto; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #e8eef5; color: #5b6b7b; }
.gmc-solutions__status.is-live { background: #e3f5ea; color: #137a45; }
.gmc-solutions__card > span:not([class]) { line-height: 1.6; font-size: .95rem; }
.gmc-solutions__card > span:nth-of-type(2) { line-height: 1.6; }
.gmc-solutions__fit { margin-top: 56px; padding: 32px; background: #e8eef5; border-radius: 16px; }
.gmc-solutions__fit h2 { font-size: 1.5rem; color: #0c2b48; margin: 0 0 16px; letter-spacing: -.02em; }
.gmc-solutions__fit ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gmc-solutions__fit li { background: #fff; border-radius: 12px; padding: 16px 18px; color: #5b6b7b; line-height: 1.6; }
.gmc-solutions__fit li strong { display: block; color: #0c2b48; margin-bottom: 2px; }
.gmc-solutions__cta { display: inline-block; padding: 13px 24px; border-radius: 999px; background: #137a45; color: #fff !important; font-weight: 700; text-decoration: none; }
.gmc-solutions__cta:hover { background: #0c2b48; }

/* Digital Solutions pages: wider than prose pages, cards that read the same whether or not they are links */
body.gmc-prose .site-content > .customify-container:has(.gmc-solutions) { max-width: 1240px; padding-left: 24px; padding-right: 24px; }
body.gmc-prose .entry-content .gmc-solutions { padding-left: 0; padding-right: 0; max-width: none; }
.gmc-solutions__grid { align-items: stretch; }
body.gmc-prose .entry-content a.gmc-solutions__card, body.gmc-prose .entry-content .gmc-solutions__card { color: #5b6b7b; }
body.gmc-prose .entry-content .gmc-solutions__card > span { color: #5b6b7b; }
body.gmc-prose .entry-content .gmc-solutions__card > span.gmc-solutions__eyebrow, body.gmc-prose .entry-content .gmc-solutions__card > span.gmc-solutions__more { color: #137a45; }
body.gmc-prose .entry-content .gmc-solutions__card > span.gmc-solutions__status { color: #5b6b7b; }
body.gmc-prose .entry-content .gmc-solutions__card > span.gmc-solutions__status.is-live { color: #137a45; }
body.gmc-prose .entry-content .gmc-solutions__card > strong { color: #0c2b48; }
body.gmc-prose .entry-content .gmc-solutions__fit ul { padding-left: 0 !important; }
body.gmc-prose .entry-content .gmc-solutions__fit h2 { margin-top: 0; }
body.gmc-prose .entry-content a.gmc-solutions__cta { color: #fff; }
.gmc-solutions__more { margin-top: 4px; }
.gmc-solutions__grid > .gmc-solutions__card { align-self: stretch; height: auto; }
.gmc-solutions--wide .gmc-solutions__grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .gmc-solutions--wide .gmc-solutions__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .gmc-solutions--wide .gmc-solutions__grid { grid-template-columns: 1fr; } }
body.gmc-prose .entry-content .gmc-solutions__fit ul { margin: 0 0 24px !important; }
body.gmc-prose .entry-content .gmc-solutions__fit li { margin: 0; }
body .gmc-solutions__grid > a.gmc-solutions__card { align-self: stretch !important; height: auto !important; }
@media (min-width: 900px) { .gmc-solutions.gmc-solutions--three .gmc-solutions__grid { grid-template-columns: repeat(3, 1fr); } }
