/* Page-specific styling for Learning Disability Support */
.single-header #cssmenu {
  width: 100%;
}

#ld-support-page {
  --ld-burgundy: #741b36;
  --ld-burgundy-dark: #511126;
  --ld-sage: #66765c;
  --ld-sage-light: #e8eee4;
  --ld-cream: #f8f5f0;
  --ld-ink: #26312d;
  --ld-muted: #5d6863;
  --ld-line: #e6ded4;
  --ld-white: #ffffff;
  background: linear-gradient(180deg, #ffffff 0, #fbf9f6 620px, #ffffff 100%);
  color: var(--ld-ink);
  font-family: "Open Sans", Arial, sans-serif;
  padding: 34px 18px 74px;
}

#ld-support-page,
#ld-support-page * {
  box-sizing: border-box;
}

#ld-support-page a {
  color: var(--ld-burgundy);
}

#ld-support-page img {
  display: block;
  max-width: 100%;
}

.ld-hero {
  background: var(--ld-white);
  border: 1px solid rgba(116, 27, 54, 0.12);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(57, 31, 37, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  margin: 0 auto;
  max-width: 1220px;
  min-height: 490px;
  overflow: hidden;
}

.ld-hero__copy {
  align-self: center;
  padding: 56px 52px;
  position: relative;
  z-index: 1;
}

.ld-eyebrow {
  color: var(--ld-burgundy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

#ld-support-page .ld-hero h1 {
  color: var(--ld-burgundy-dark);
  font-size: clamp(2.25rem, 4.8vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 22px;
  text-shadow: none;
}

.ld-hero__lead {
  color: var(--ld-muted);
  font-size: 1.12rem;
  line-height: 1.72;
  margin: 0 0 30px;
  max-width: 620px;
}

.ld-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ld-button {
  align-items: center;
  border: 2px solid var(--ld-burgundy);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 11px 23px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ld-button:hover,
.ld-button:focus {
  transform: translateY(-2px);
}

.ld-button--primary {
  background: var(--ld-burgundy);
  color: var(--ld-white) !important;
}

.ld-button--primary:hover,
.ld-button--primary:focus {
  background: var(--ld-burgundy-dark);
}

.ld-button--secondary {
  background: var(--ld-white);
  color: var(--ld-burgundy) !important;
}

.ld-hero__media {
  min-height: 490px;
  overflow: hidden;
  position: relative;
}

.ld-hero__media::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 24%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.ld-hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  width: 100%;
}

.ld-trust-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px auto 52px;
  max-width: 1160px;
}

.ld-trust-item {
  align-items: center;
  background: var(--ld-white);
  border: 1px solid var(--ld-line);
  border-radius: 15px;
  color: var(--ld-ink);
  display: flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 11px;
  line-height: 1.35;
  min-height: 68px;
  padding: 13px 16px;
}

.ld-trust-icon {
  align-items: center;
  background: var(--ld-sage-light);
  border-radius: 50%;
  color: var(--ld-sage);
  display: inline-flex;
  flex: 0 0 35px;
  font-size: 1rem;
  height: 35px;
  justify-content: center;
}

.ld-layout {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: 255px minmax(0, 820px);
  justify-content: center;
  margin: 0 auto;
  max-width: 1160px;
}

.ld-side {
  position: sticky;
  top: 20px;
}

.ld-contents,
.ld-side-contact {
  background: var(--ld-white);
  border: 1px solid var(--ld-line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(39, 30, 29, 0.05);
  padding: 22px;
}

.ld-contents h2,
.ld-side-contact h2 {
  color: var(--ld-burgundy-dark);
  font-size: 1rem;
  margin: 0 0 14px;
}

.ld-contents a {
  border-bottom: 1px solid #eee7e2;
  color: var(--ld-ink) !important;
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 9px 0;
  text-decoration: none;
}

.ld-contents a:last-child {
  border-bottom: 0;
}

.ld-contents a:hover,
.ld-contents a:focus {
  color: var(--ld-burgundy) !important;
}

.ld-side-contact {
  background: var(--ld-burgundy-dark);
  border: 0;
  color: var(--ld-white);
  margin-top: 16px;
}

.ld-side-contact h2,
.ld-side-contact a {
  color: var(--ld-white) !important;
}

.ld-side-contact p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 10px;
}

.ld-side-contact a {
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.ld-content {
  min-width: 0;
  text-align: left;
}

.ld-intro {
  background: var(--ld-cream);
  border-left: 5px solid var(--ld-sage);
  border-radius: 0 18px 18px 0;
  margin-bottom: 44px;
  padding: 28px 30px 18px;
}

#ld-support-page .ld-content p {
  color: var(--ld-muted);
  font-size: 1rem;
  line-height: 1.78;
  margin: 0 0 17px;
}

#ld-support-page .ld-intro p:first-child {
  color: var(--ld-ink);
  font-size: 1.13rem;
  font-weight: 600;
}

#ld-support-page .ld-content > h2,
#ld-support-page .ld-cta h2 {
  color: var(--ld-burgundy-dark);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.24;
  margin: 60px 0 20px;
  padding-top: 7px;
  scroll-margin-top: 20px;
  text-align: left;
}

#ld-support-page .ld-content > h2::after,
#ld-support-page .ld-cta h2::after {
  background: var(--ld-sage);
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin-top: 13px;
  width: 52px;
}

#ld-support-page .ld-content h3 {
  color: var(--ld-ink);
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 28px 0 11px;
}

#ld-support-page .ld-content ul {
  display: grid;
  gap: 9px 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 12px 0 25px;
  padding: 0;
}

#ld-support-page .ld-content li {
  background: var(--ld-white);
  border: 1px solid var(--ld-line);
  border-radius: 11px;
  color: #38433f;
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 10px 13px 10px 37px;
  position: relative;
}

#ld-support-page .ld-content li::before {
  align-items: center;
  background: var(--ld-sage-light);
  border-radius: 50%;
  color: var(--ld-sage);
  content: "✓";
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  left: 10px;
  position: absolute;
  top: 11px;
  width: 20px;
}

.ld-image-break {
  background: var(--ld-cream);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(48, 34, 35, 0.08);
  margin: 58px 0 14px;
  overflow: hidden;
}

.ld-image-break img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.ld-image-break figcaption {
  color: var(--ld-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  padding: 14px 18px 16px;
}

.ld-quote {
  background: var(--ld-sage-light);
  border-radius: 18px;
  color: #34412f;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.65;
  margin: 42px 0;
  padding: 28px 30px;
}

.ld-cta {
  background: linear-gradient(135deg, var(--ld-burgundy-dark), var(--ld-burgundy));
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(81, 17, 38, 0.2);
  margin: 58px 0;
  padding: 34px 36px 28px;
}

#ld-support-page .ld-cta h2,
#ld-support-page .ld-cta p,
#ld-support-page .ld-cta a {
  color: var(--ld-white) !important;
}

#ld-support-page .ld-cta h2 {
  margin-top: 0;
}

#ld-support-page .ld-cta h2::after {
  background: #c9d7c2;
}

#ld-support-page .ld-cta ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ld-support-page .ld-cta li {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ld-white);
}

.ld-faq {
  margin: 18px 0 52px;
}

.ld-faq details {
  background: var(--ld-white);
  border: 1px solid var(--ld-line);
  border-radius: 13px;
  margin-bottom: 10px;
  overflow: hidden;
}

.ld-faq summary {
  color: var(--ld-ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  padding: 18px 50px 18px 20px;
  position: relative;
}

.ld-faq summary::-webkit-details-marker {
  display: none;
}

.ld-faq summary::after {
  color: var(--ld-burgundy);
  content: "+";
  font-size: 1.45rem;
  font-weight: 400;
  position: absolute;
  right: 20px;
  top: 11px;
}

.ld-faq details[open] summary::after {
  content: "−";
}

#ld-support-page .ld-faq details p {
  border-top: 1px solid var(--ld-line);
  margin: 0;
  padding: 16px 20px 19px;
}

.ld-related {
  background: var(--ld-cream);
  border-radius: 18px;
  margin-top: 42px;
  padding: 26px 28px 10px;
}

#ld-support-page .ld-related h2 {
  margin-top: 0;
}

@media (max-width: 980px) {
  .ld-hero {
    grid-template-columns: 1fr;
  }

  .ld-hero__copy {
    padding: 42px 38px;
  }

  .ld-hero__media {
    min-height: 370px;
    order: -1;
  }

  .ld-hero__media::after {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.28), transparent 28%);
  }

  .ld-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-layout {
    grid-template-columns: 1fr;
  }

  .ld-side {
    position: static;
  }

  .ld-contents {
    display: grid;
    gap: 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-contents h2 {
    grid-column: 1 / -1;
  }

  .ld-side-contact {
    display: none;
  }
}

@media (max-width: 640px) {
  #ld-support-page {
    padding: 18px 12px 54px;
  }

  .ld-hero {
    border-radius: 18px;
  }

  .ld-hero__copy {
    padding: 31px 24px 35px;
  }

  #ld-support-page .ld-hero h1 {
    font-size: 2.35rem;
  }

  .ld-hero__lead {
    font-size: 1rem;
  }

  .ld-hero__media {
    min-height: 245px;
  }

  .ld-hero__media img {
    object-position: 66% center;
  }

  .ld-button {
    width: 100%;
  }

  .ld-trust-strip,
  .ld-contents,
  #ld-support-page .ld-content ul,
  #ld-support-page .ld-cta ul {
    grid-template-columns: 1fr;
  }

  .ld-trust-strip {
    margin-bottom: 34px;
  }

  .ld-layout {
    gap: 28px;
  }

  .ld-contents,
  .ld-intro,
  .ld-related {
    padding-left: 20px;
    padding-right: 20px;
  }

  #ld-support-page .ld-content > h2,
  #ld-support-page .ld-cta h2 {
    font-size: 1.55rem;
    margin-top: 48px;
  }

  .ld-cta {
    border-radius: 18px;
    padding: 28px 22px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-button {
    transition: none;
  }
}
