/* Shared visual rhythm; service tables and teaching-guide layouts keep their own rules. */
.igcse-page .igcse-band { padding-block: 48px; }
.igcse-page .igcse-section-head { margin-bottom: 24px; }
.igcse-page .igcse-section-head h1 { font-size: 2.5rem; line-height: 1.25; }
.igcse-page .igcse-section-head h2 { font-size: 1.875rem; line-height: 1.35; }
.igcse-page :is(h1, h2, h3), .igcse-public-footer h2 {
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.igcse-page .igcse-section-head p { line-height: 1.75; }
.igcse-page :is(.igcse-card, .igcse-price, .igcse-step) {
  min-width: 0;
  overflow-wrap: break-word;
  padding: 22px;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(21, 37, 42, .035);
}
.igcse-page :is(.igcse-card, .igcse-price, .igcse-step):hover {
  transform: none;
  box-shadow: 0 3px 12px rgba(21, 37, 42, .035);
}
.igcse-page :is(.igcse-card, .igcse-price, .igcse-step) h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.4;
}
.igcse-page :is(.igcse-card, .igcse-price, .igcse-step) p {
  font-size: 1rem;
  line-height: 1.75;
}
.igcse-page .igcse-card > a:not(.igcse-button) {
  color: #07585d;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-underline-offset: 4px;
  margin-top: auto;
  padding-top: 12px;
}
.igcse-page .igcse-path .igcse-step { padding-left: 74px; }
.igcse-page .igcse-button, .igcse-public-footer .igcse-button {
  border-radius: 5px;
  white-space: normal;
  line-height: 1.45;
  min-height: 44px;
  height: auto;
}
.igcse-page a:focus-visible, .igcse-public-footer :is(a, summary):focus-visible {
  outline: 3px solid #137777;
  outline-offset: 4px;
}
@media (min-width: 1241px) {
  .igcse-public-header-inner { gap: 12px; }
  .igcse-public-nav { gap: 2px; }
  .igcse-public-nav :is(.igcse-nav-link, .igcse-nav-group > summary) { padding-inline: 7px; }
}

/* Homepage: retain the existing photography, with less framing and tighter type. */
.igcse-home .igcse-hero { background: #f4f7f6; }
.igcse-home .igcse-hero-grid { gap: 36px; }
.igcse-home .igcse-hero h1 {
  font-size: 2.875rem;
  line-height: 1.22;
  font-weight: 800;
  margin: 18px 0;
}
.igcse-home .igcse-eyebrow {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  line-height: 1.6;
}
.igcse-home .igcse-hero-media::before { content: none; }
.igcse-home .igcse-hero-media img { box-shadow: none; border-radius: 6px; }
.igcse-home .igcse-trust { gap: 12px; }
.igcse-home .igcse-trust span {
  border: 0;
  border-left: 2px solid #b6cdca;
  border-radius: 0;
  padding: 0 0 0 10px;
  background: none;
  box-shadow: none;
  font-weight: 600;
  line-height: 1.6;
}
.igcse-home .igcse-snapshot > div {
  padding: 14px 8px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.igcse-home .igcse-snapshot {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr));
  gap: 12px;
}
.igcse-home .igcse-path {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.igcse-home .igcse-path .igcse-step {
  padding: 58px 0 0;
  border: 0;
  border-top: 1px solid #c4d7d2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.igcse-home .igcse-path .igcse-step::before { left: 0; top: 14px; }
.igcse-home .igcse-path .igcse-step p { margin: 0; }
.igcse-home .igcse-section-head { max-width: 850px; }
.igcse-home .igcse-band.dark {
  background: #e8f0f5;
  color: #15252a;
  border-block: 1px solid #d3dfe6;
}
.igcse-home .igcse-band.dark p { color: #43595d; }

/* Footer is a distinct, unframed band, with subjects across its full width. */
.igcse-public-footer {
  margin-top: 0;
  padding: 44px 0 28px;
  background: #eaf1ef;
  border-top: 1px solid #c8d9d3;
  overflow-wrap: break-word;
}
.igcse-public-footer .igcse-footer-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  margin-bottom: 24px;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid #c8d9d3;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.igcse-public-footer .igcse-footer-kicker { color: #07585d; }
.igcse-public-footer .igcse-footer-cta h2 {
  color: #15252a;
  font-size: 1.75rem;
  line-height: 1.35;
  margin: 8px 0 12px;
}
.igcse-public-footer .igcse-footer-cta p {
  color: #43595d;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 75ch;
  margin: 0;
}
.igcse-public-footer .igcse-footer-actions { min-width: 220px; }
.igcse-public-footer .igcse-footer-actions .secondary {
  color: #07585d !important;
  background: #fff;
  border-color: #98b7b1;
}
.igcse-public-footer .igcse-footer-trust {
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-color: #c8d9d3;
}
.igcse-public-footer .igcse-footer-trust a {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
}
.igcse-public-footer .igcse-footer-trust strong { font-size: .9375rem; }
.igcse-public-footer .igcse-footer-trust span { font-size: .875rem; line-height: 1.65; }
.igcse-public-footer .igcse-footer-main { display: block; }
.igcse-public-footer .igcse-footer-brand {
  display: flex;
  align-items: baseline;
  gap: 20px 44px;
  max-width: none;
  margin-bottom: 28px;
}
.igcse-public-footer .igcse-footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.875rem;
  line-height: 1.3;
  flex: 0 0 auto;
}
.igcse-public-footer .igcse-footer-brand p { margin: 0; max-width: 72ch; line-height: 1.7; }
.igcse-public-footer .igcse-footer-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}
.igcse-public-footer .igcse-footer-column > summary span {
  font-size: .9375rem;
  line-height: 1.5;
  text-transform: none;
}
.igcse-public-footer .igcse-footer-column a {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: break-word;
  text-underline-offset: 4px;
}
.igcse-public-footer .igcse-footer-column a:hover { text-decoration: underline; }
.igcse-public-footer .igcse-footer-column-links { gap: 9px; }
.igcse-public-footer .igcse-footer-subjects {
  grid-column: 1 / -1;
  border-top: 1px solid #c8d9d3;
  padding-top: 24px;
}
.igcse-public-footer .igcse-footer-subjects .igcse-footer-column-links {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 28px;
}
.igcse-public-footer .igcse-footer-bottom { margin-top: 28px; border-color: #c8d9d3; }
.igcse-public-footer .igcse-disclaimer { line-height: 1.75; }

@media (max-width: 1100px) and (min-width: 861px) {
  .igcse-public-footer .igcse-footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .igcse-public-footer .igcse-footer-subjects .igcse-footer-column-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .igcse-home .igcse-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .igcse-page .igcse-band { padding-block: 32px; }
  .igcse-page .igcse-section-head h1 { font-size: 2rem; }
  .igcse-page .igcse-section-head h2 { font-size: 1.5rem; }
  .igcse-home .igcse-hero h1 { font-size: 2rem; line-height: 1.3; }
  .igcse-home .igcse-hero-grid { gap: 24px; }
  .igcse-home .igcse-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .igcse-public-footer { padding-block: 32px 24px; }
  .igcse-public-footer .igcse-footer-cta { grid-template-columns: 1fr; gap: 20px; }
  .igcse-public-footer .igcse-footer-actions { min-width: 0; }
  .igcse-public-footer .igcse-footer-trust { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 22px; }
  .igcse-public-footer .igcse-footer-brand { display: block; }
  .igcse-public-footer .igcse-footer-brand p { margin-top: 12px; }
  .igcse-public-footer .igcse-footer-nav { grid-template-columns: 1fr; gap: 0; }
  .igcse-public-footer .igcse-footer-column {
    border: 0;
    border-top: 1px solid #c8d9d3;
    border-radius: 0;
    background: none;
    overflow: visible;
    padding: 0;
  }
  .igcse-public-footer .igcse-footer-column > summary { padding: 14px 0; }
  .igcse-public-footer .igcse-footer-column-links { padding: 4px 0 18px; border: 0; gap: 2px; }
  .igcse-public-footer .igcse-footer-column a { display: flex; align-items: center; min-height: 44px; }
  .igcse-public-footer .igcse-footer-subjects .igcse-footer-column-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
}
@media (max-width: 540px) {
  .igcse-home .igcse-path { grid-template-columns: 1fr; gap: 22px; }
  .igcse-home .igcse-path .igcse-step { padding: 18px 0 0 48px; }
  .igcse-home .igcse-path .igcse-step::before { top: 18px; }
  .igcse-public-footer .igcse-footer-cta h2 { font-size: 1.5rem; }
  .igcse-public-footer .igcse-footer-subjects .igcse-footer-column-links { grid-template-columns: 1fr; }
}
