.certification-page, .python-course-page { padding-top: 36px; }
.course-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.course-page-heading p { margin: 0 0 7px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.course-page-heading h2 { margin: 0; font-size: 28px; line-height: 1.4; }
.course-page-heading > div > span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.course-page-heading .section-link { flex-shrink: 0; }
.course-direction-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.course-direction-nav a { border: 1px solid var(--line); border-radius: 5px; padding: 8px 16px; font-size: 14px; background: var(--soft); }
.course-direction-nav a:hover { border-color: var(--red); color: var(--red); }
.certification-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.certification-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; scroll-margin-top: 100px; }
.certification-card > header { display: flex; align-items: center; gap: 14px; padding: 20px 24px; background: #f5f7fa; border-bottom: 1px solid var(--line); }
.certification-card > header > span { color: var(--red); font-size: 13px; font-weight: 700; }
.certification-card h2 { margin: 0; font-size: 23px; }
.course-section { padding: 22px 24px; }
.course-section + .course-section { border-top: 1px solid var(--line); }
.course-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; margin-bottom: 18px; }
.course-section-heading h3 { margin: 0; font-size: 16px; }
.course-section-heading > span { color: var(--muted); font-size: 11px; }
.course-richtext { display: flow-root; color: var(--ink-soft); font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.course-richtext p { margin: 0 0 12px; }
.course-richtext p:last-child { margin-bottom: 0; }
.course-richtext img { float: right; width: min(34%, 180px); height: auto; margin: 0 0 14px 18px; border-radius: 6px; }
.course-richtext a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.course-richtext table { max-width: 100%; }
.certification-card > footer { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 24px; border-top: 1px solid var(--line); }
.certification-card > footer a { color: var(--red); font-size: 13px; font-weight: 600; }
.python-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.python-module { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.python-module-cover { height: 150px; position: relative; background: var(--dark); overflow: hidden; }
.python-module-cover img { width: 100%; height: 100%; object-fit: cover; }
.python-module-cover > span { position: absolute; left: 22px; bottom: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #fff; color: var(--red); font-weight: 700; }
.python-module-copy { padding: 24px; }
.python-module-copy h3 { margin: 0 0 16px; font-size: 22px; }
.python-module-copy p { margin: 0; color: var(--ink-soft); }
.python-module-copy ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.python-module-copy li::marker { color: var(--red); }
.python-module-article + .python-module-article { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.python-module-article { overflow-wrap: anywhere; }
.python-module-article img { max-width: 100%; height: auto; }
.python-module-article h4 { margin: 0 0 12px; }
.python-module { scroll-margin-top: 100px; }
.python-plans { margin-top: 56px; }
.python-plan-list { border-top: 1px solid var(--line); }
.python-plan-list > a { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--line); }
.python-plan-list > a > div { min-width: 0; }
.python-plan-list h3 { margin: 0; font-size: 17px; }
.python-plan-list p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.python-plan-list > a > span { flex-shrink: 0; font-size: 13px; color: var(--red); }
.course-help { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; margin-top: 40px; border-radius: 10px; background: var(--soft); }
.course-help h2 { margin: 0 0 8px; font-size: 22px; }
.course-help p { margin: 0; font-size: 14px; color: var(--muted); }
.course-help .button { flex-shrink: 0; }
@media (max-width: 980px) {
  .certification-groups { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .certification-page, .python-course-page { padding-top: 28px; }
  .course-page-heading, .course-help { align-items: start; flex-direction: column; gap: 14px; }
  .course-page-heading h2 { font-size: 24px; }
  .python-module-grid { grid-template-columns: 1fr; }
  .course-section, .python-module-copy { padding: 20px; }
  .certification-card > header, .certification-card > footer { padding: 16px 20px; }
  .python-module-copy ul { grid-template-columns: 1fr; }
  .python-plan-list > a { align-items: start; flex-direction: column; gap: 8px; }
}
