/* Shared course-page additions; inherits the existing Brainymation design. */
.course-jump-nav { background: #fff; border-bottom: 1px solid var(--border-color); }
.course-jump-nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 12px 0; }
.course-jump-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 2px; color: var(--primary-dark); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.course-jump-nav a:hover { color: var(--text-dark); }
.course-jump-nav a:focus-visible, .course-selection a:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 4px; border-radius: 2px; }
#course-overview, #course-outline, #course-fees, #course-trainer, #course-faq { scroll-margin-top: 110px; }
.course-selection { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.course-selection h3 { margin: 0 0 10px; color: var(--text-dark); font-size: 18px; line-height: 1.5; }
.course-selection p { margin: 0 0 12px; color: var(--text-gray); font-size: 15px; line-height: 1.8; }
.course-selection a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.course-review-context { max-width: 700px; margin: 12px auto 0; color: var(--text-gray); font-size: 15px; line-height: 1.7; }
/* Sections that continue the light-background section above them (keeps the page's alternating rhythm). */
.course-continuation { padding: 0 0 64px; background: var(--bg-light); }
.course-section-intro { max-width: 760px; margin: 12px auto 0; color: var(--text-gray); font-size: 15px; line-height: 1.7; }
.course-schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
.course-schedule-day { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 22px 24px; }
.course-schedule-day h3 { margin: 0 0 12px; color: var(--primary-dark); font-size: 16px; }
.course-schedule-day ol { margin: 0; padding-left: 20px; color: var(--text-gray); font-size: 14px; line-height: 1.9; }
.course-compare-wrap { max-width: 1000px; margin: 0 auto; }
.course-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; font-size: 14px; }
.course-compare-table th, .course-compare-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color); color: var(--text-gray); line-height: 1.6; }
.course-compare-table thead th { background: var(--bg-light); color: var(--text-dark); font-weight: 700; }
.course-compare-table tbody th { color: var(--text-dark); font-weight: 700; }
.course-compare-table tbody tr:last-child th, .course-compare-table tbody tr:last-child td { border-bottom: 0; }
.course-compare-table tr.is-current th, .course-compare-table tr.is-current td { background: rgba(0, 188, 212, 0.06); }
.course-compare-table a, .faq-links-underlined .faq-answer-content > p a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
/* Collapsed answers keep their links out of the tab order; open answers get room for long BM text. */
.faq-links-underlined .faq-item:not(.active) .faq-answer { visibility: hidden; transition: max-height 0.3s ease-out, visibility 0s linear 0.3s; }
.faq-links-underlined .faq-item.active .faq-answer { visibility: visible; max-height: 1200px; }
.course-compare-current { display: block; margin-top: 2px; color: var(--primary-dark); font-size: 13px; font-weight: 500; }
.instructor-credentials { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--text-gray); font-size: 14px; line-height: 1.6; }
.instructor-credentials li { position: relative; padding-left: 22px; }
.instructor-credentials li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary-dark); font-weight: 700; }
@media (max-width: 768px) {
    .course-schedule-grid { grid-template-columns: 1fr; }
    .course-compare-table thead { display: none; }
    .course-compare-table, .course-compare-table tbody, .course-compare-table tr, .course-compare-table th, .course-compare-table td { display: block; width: 100%; }
    .course-compare-table tr { border-bottom: 1px solid var(--border-color); }
    .course-compare-table tbody tr:last-child { border-bottom: 0; }
    .course-compare-table th, .course-compare-table td { padding: 4px 16px; border-bottom: 0; }
    .course-compare-table tbody th { padding-top: 14px; }
    .course-compare-table tbody td:last-child { padding-bottom: 14px; }
    .course-compare-table td::before { content: attr(data-label) ": "; color: var(--text-dark); font-weight: 600; }
}
@media (max-width: 600px) {
    .course-jump-nav ul { gap: 4px 18px; }
    .course-jump-nav a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
