/**
 * General content pages — inner hero + prose sections
 * Use with cda-design-system.css only (no style_all.css).
 */

body.cda-general-page {
  overflow-x: clip;
}

/* Inner page heroes (photo + readable overlay) */
.cda-hero--inner .cda-hero__overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 45, 70, 0.94) 0%,
    rgba(15, 61, 92, 0.9) 45%,
    rgba(10, 40, 62, 0.88) 100%
  );
  padding: clamp(40px, 8vw, 64px) 0;
}

.cda-hero--inner.imageMedigap {
  background-image: url("../images/pexels-photo.jpg");
  background-position: top center;
}

.cda-hero--inner.imageMedicare {
  background-image: url("../images/dr-picture.jpg");
  background-position: center;
}

.cda-hero--inner.imageAbout {
  background-image: url("../images/pexels-photo-copy.jpg");
  background-position: center;
}

.cda-hero--inner h1 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.cda-hero--inner .cda-hero__lead {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  margin-bottom: 0;
}

.cda-hero__content--center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .cda-hero__content--center,
  .cda-hero--inner h1 {
    text-align: center;
  }

  .cda-hero--inner h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.3;
  }
}

/* Prose blocks */
.cda-prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--cda-text);
}

.cda-prose > :first-child {
  margin-top: 0;
}

.cda-prose h2,
.cda-prose h3,
.cda-prose h4 {
  color: var(--cda-primary);
  margin: 1.5em 0 0.65em;
}

.cda-prose h2:first-child,
.cda-prose h3:first-child {
  margin-top: 0;
}

.cda-prose p {
  margin: 0 0 1em;
}

.cda-prose ul,
.cda-prose ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.cda-prose a {
  color: var(--cda-primary);
  text-decoration: underline;
}

.cda-prose a:hover {
  color: var(--cda-accent-hover);
}

.cda-prose img {
  max-width: 100%;
  height: auto;
}

/* Icon + text feature rows (replaces legacy thumbnail rows) */
.cda-feature-grid {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .cda-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cda-feature-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cda-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cda-feature img {
  width: 48px;
  height: auto;
  flex: 0 0 auto;
}

.cda-feature h3,
.cda-feature h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--cda-primary);
}

.cda-feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cda-text);
}

/* Optional FAQ accordion (no Bootstrap panels) */
.cda-faq {
  margin-top: 8px;
}

.cda-faq details {
  border: 1px solid var(--cda-border);
  border-radius: var(--cda-radius);
  margin-bottom: 10px;
  background: #fff;
}

.cda-faq details[open] {
  box-shadow: var(--cda-shadow);
}

.cda-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cda-primary);
  padding: 14px 16px;
  list-style: none;
}

.cda-faq summary::-webkit-details-marker {
  display: none;
}

.cda-faq summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--cda-accent);
}

.cda-faq details[open] summary::after {
  content: "−";
}

.cda-faq .cda-faq__body {
  padding: 0 16px 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cda-text);
}

.cda-faq .cda-faq__body p:last-child {
  margin-bottom: 0;
}

/* Snippet / include slot */
.cda-content-slot {
  margin-top: 24px;
}

/* Footer on general template pages */
body.cda-general-page .cda-page-main > .cda-section {
  padding-bottom: 0;
}

body.cda-general-page .footer-html-content {
  display: block;
  width: 100%;
  clear: both;
}

body.cda-general-page .cda-site-footer {
  width: 100%;
  clear: both;
}

body.cda-general-page .cda-site-footer .cda-container,
body.cda-general-page .cda-footer-bottom .cda-container {
  width: 100%;
  max-width: var(--cda-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

body.cda-general-page .cda-footer-item img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}
