/* Homepage-only styles; shared course layouts remain unchanged. */
.certi-home-hero { width: 100%; margin: 0; padding: 24px max(20px, calc((100% - 1140px) / 2)) 24px; background: #20394d; color: #fff; border: 0; border-bottom: 4px solid #f48a3b; border-radius: 0; }
.certi-home .certi-home-hero h1 { max-width: none; font-size: clamp(29px, 3vw, 40px); margin-bottom: 14px; }
.certi-home-hero .certi-lead { max-width: 800px; font-size: 18px; margin-bottom: 18px; }
.certi-home-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 630px; }
.certi-home-courses .certi-button { min-width: 150px; }
.certi-home .certi-callout.certi-note { width: min(1040px, calc(100% - 40px)); margin: 18px auto 0 !important; padding: 18px 24px; border-radius: 8px; font-size: 15px; }
.certi-home .certi-note h2 { font-size: 20px; margin-bottom: 6px; }
.certi-home .certi-section { padding-block: 36px; }
.certi-home .certi-card-grid { gap: 18px; margin-top: 22px; }
.certi-home .certi-card { padding: 22px; }
.certi-course-dropdown { position: relative; }
.certi-course-dropdown > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 9px; color: #20394d; font-size: 15px; font-weight: 650; }
.certi-course-dropdown > summary::-webkit-details-marker { display: none; }
.certi-course-dropdown > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.certi-course-dropdown[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.certi-course-options { position: absolute; z-index: 10; top: 100%; left: 0; width: max-content; max-width: calc(100vw - 40px); list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid #c5d3dc; border-radius: 7px; box-shadow: 0 10px 25px #20394d26; }
.certi-course-options a { display: block; white-space: nowrap; padding: 12px; border-radius: 4px; line-height: 1.4; }
.certi-course-options a:hover, .certi-course-options a:focus-visible { background: #f2f6f8; }
.certi-course-options strong { display: inline; }
.certi-course-options sup { font-size: .6em; line-height: 0; vertical-align: super; }
@media (max-width: 680px) {
  .certi-home-hero { padding: 24px 16px; }
  .certi-home-hero .certi-lead { font-size: 17px; }
  .certi-home-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .certi-home-courses .certi-button { min-width: 0; min-height: 64px; padding: 10px 6px; font-size: 14px; }
  .certi-home .certi-callout.certi-note { width: calc(100% - 32px); padding: 20px; }
  .certi-course-dropdown > summary { border-top: 1px solid #e0e7ec; padding-block: 12px; }
  .certi-course-options { position: static; width: 100%; box-shadow: none; margin-bottom: 10px; }
  .certi-course-options a { border-top: 0; white-space: normal; font-size: 14px; }
}
@media print {
  .certi-home-hero { background: #fff; color: #000; }
}

/* A compact resource title band and reading list, matching the study pages. */
.certi-topics-hero { padding-block: 20px; }
.certi-topics-hero h1 { max-width: none; margin: 0; font-size: clamp(28px, 3vw, 36px); }
.certi-topics-breadcrumb { font-size: 14px; margin-bottom: 6px; }
.certi-topics-breadcrumb a { color: #e0e9ef; }
.certi-topics-content { padding-block: 36px 48px; }
.certi-topics-content > p { max-width: 800px; }
.certi-reference-list { padding-left: 24px; columns: 2; column-gap: 48px; }
.certi-reference-list li { break-inside: avoid; margin-bottom: 6px; }
.certi-reference-list a { display: inline-block; padding-block: 8px; }
@media (max-width: 680px) { .certi-reference-list { columns: 1; } }

/* Course features explain the benefit of each included study activity. */
.certi-course-features .certi-feature-intro { max-width: 850px; }
.certi-course-features .certi-feature-grid h3 { margin-top: 0; font-size: 21px; }
.certi-course-features .certi-feature-grid p { font-size: 16px; }
.certi-course-features .certi-feature-note { margin: 24px 0 20px; max-width: 850px; font-size: 14px; color: #526674; }

/* Keep both safety professionals visible without obscuring course choices. */
.certi-home-hero-photo { position: relative; isolation: isolate; min-height: 300px; display: flex; align-items: center; }
.certi-home-hero-photo::before { content: ''; position: absolute; z-index: -1; inset: 0 0 0 auto; width: 54%; background: url('../images/certisafety-safety-team.webp') right top / auto 100% no-repeat; mask-image: linear-gradient(to right, transparent, #000 25%); }
.certi-home-hero-content { width: 65%; }
.certi-home .certi-home-hero-photo h1 { font-size: clamp(29px, 3vw, 38px); }

@media (max-width: 1000px) {
  .certi-home-hero-photo { padding-bottom: 224px; }
  .certi-home-hero-content { width: 100%; }
  .certi-home-hero-photo::before { inset: auto 0 0 auto; width: min(100%, 600px); height: 200px; background-size: auto 100%; mask-image: linear-gradient(to bottom, transparent, #000 25%), linear-gradient(to right, transparent, #000 30%); mask-composite: intersect; }
}
@media print { .certi-home-hero-photo { padding-bottom: 24px; min-height: 0; } .certi-home-hero-photo::before { display: none; } .certi-home-hero-content { width: 100%; } }
