.ai-hero { padding: 48px 0 60px; background: #092c36; color: #f3fbf8; }
.ai-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 52px; }
.ai-back { display: inline-block; margin-bottom: 30px; color: #b8d2d0; font-size: .85rem; }
.ai-hero .eyebrow { color: #a8d9b4; }
.ai-hero h1 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; }
.ai-hero h1 em { color: #c1e69c; font-style: normal; }
.ai-lead { max-width: 52ch; margin: 24px 0; color: #c1d6d8; font-size: 1rem; line-height: 1.8; }
.ai-primary { background: #c1e69c; color: #12312d; border-color: #c1e69c; }
.ai-secondary { border-color: #779b9e; color: #fff; }
.ai-hero-note { margin-top: 20px; color: #b8d2d0; font-size: .8rem; line-height: 1.6; }
.ai-hero-image { overflow: hidden; border-radius: 22px; border: 1px solid #527f7d; background: #143c43; }
.ai-hero-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ai-hero-image figcaption { padding: 18px 22px; font-size: .85rem; color: #ddeddf; }
.ai-facts dl { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding: 28px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.ai-facts dt { color: var(--muted); font-size: .78rem; margin-bottom: 8px; }
.ai-facts dd { margin: 0; font-weight: 750; font-size: 1.05rem; }
.ai-overview { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
.ai-course-page h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; word-spacing: .08em; }
.ai-overview p:not(.eyebrow), .ai-lecturer p:not(.eyebrow) { margin-top: 20px; line-height: 1.8; color: var(--muted); }
.ai-outcomes { padding: 30px; border: 1px solid var(--line); border-left: 3px solid #348783; border-radius: 16px; background: #f0f7f4; }
.ai-course-page h3 { font-weight: 750; font-size: 1.15rem; line-height: 1.4; }
.ai-outcomes ul { margin: 18px 0 0; padding-left: 20px; }
.ai-outcomes li { margin-top: 12px; color: var(--muted); line-height: 1.7; }
.ai-syllabus { background: #f0f6f5; }
.ai-syllabus .section-head { align-items: end; }
.ai-syllabus .section-head > p { color: var(--muted); font-size: .85rem; }
.ai-module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.ai-module { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ai-module summary { display: flex; align-items: center; gap: 14px; padding: 20px; cursor: pointer; font-weight: 750; line-height: 1.5; list-style: none; }
.ai-module summary::-webkit-details-marker { display: none; }
.ai-module summary::after { content: '+'; margin-left: auto; flex: none; color: #126764; font-size: 1.3rem; }
.ai-module[open] summary::after { content: '−'; }
.ai-module-number { color: #126764; font-size: .8rem; flex: none; }
.ai-module ul { margin: 0; padding: 0 26px 24px 52px; }
.ai-module li { margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.ai-course-notes { max-width: 85ch; padding-top: 26px; font-size: .9rem; line-height: 1.8; color: var(--muted); }
.ai-course-notes p + p { margin-top: 12px; }
.ai-lecturer { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; align-items: center; gap: 44px; }
.ai-lecturer-photo { overflow: hidden; border-radius: 18px; background: #eff5f4; }
.ai-lecturer-photo img { display: block; width: 100%; height: auto; }
.ai-lecturer .text-link { display: inline-block; margin-top: 20px; }
.ai-course-page .ai-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.ai-course-page .ai-video { position: relative; display: block; background: #092c36; aspect-ratio: 16 / 9; overflow: hidden; }
.ai-course-page .ai-video img { width: 100%; height: 100%; object-fit: cover; }
.ai-course-page .ai-video span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #092c36db; color: #fff; padding: 16px 22px; border-radius: 50%; }
.ai-enroll { background: #edf6f1; }
.ai-enroll-intro { max-width: 65ch; line-height: 1.8; color: var(--muted); margin: 20px 0 28px; }
.ai-enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ai-enroll-grid article { min-width: 0; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.ai-enroll-grid h3 { margin-top: 16px; }
.ai-enroll-grid p { margin-top: 14px; font-size: .9rem; }
.ai-group-links { display: grid; gap: 18px; margin: 22px 0; }
.ai-course-page :is(summary,a):focus-visible { outline: 3px solid #348783; outline-offset: 4px; }
@media (max-width: 800px) {
  .ai-hero-grid, .ai-overview, .ai-lecturer { grid-template-columns: 1fr; gap: 30px; }
  .ai-hero { padding: 30px 0 40px; }
  .ai-hero h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); }
  .ai-facts dl { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .ai-module-grid, .ai-enroll-grid, .ai-course-page .ai-video-grid { grid-template-columns: 1fr; }
  .ai-outcomes, .ai-enroll-grid article { padding: 22px; }
  .ai-lecturer-photo { max-width: 260px; }
  .ai-module summary { padding: 16px; gap: 10px; }
  .ai-module ul { padding-left: 42px; }
}
/* Full course detail and participant feedback. */
.ai-source-intro { max-width: 1000px; }
.ai-source-intro:lang(si) { font-family: "Iskoola Pota", "Noto Serif Sinhala", serif; font-size: 1.125rem; overflow-wrap: break-word; }
.ai-source-intro:lang(si) :is(h2, h3) { font-family: inherit; letter-spacing: normal; line-height: 1.65; }
.ai-source-intro h3 { margin-top: 28px; }
.ai-source-intro p, .ai-full-content p { margin-top: 16px; color: var(--muted); line-height: 1.85; }
.ai-source-intro ul, .ai-full-content ol { padding-left: 24px; margin: 18px 0; }
.ai-source-intro li, .ai-full-content li { margin-top: 10px; color: var(--muted); line-height: 1.8; }
.ai-source-intro .actions { margin-top: 22px; }
.ai-full-content h2, .ai-full-content h3 { margin-top: 28px; }
.ai-full-content:lang(si), #syllabus:lang(si) { font-family: "Noto Sans Sinhala", "Nirmala UI", "Iskoola Pota", sans-serif; overflow-wrap: break-word; }
.ai-full-content:lang(si) :is(h2, h3), #syllabus:lang(si) :is(h2, h3, h4, summary) { letter-spacing: normal; line-height: 1.65; }
#syllabus > h3 { margin-top: 26px; margin-bottom: 20px; }
#syllabus > p { margin-top: 18px; color: var(--muted); line-height: 1.8; }
.ai-module-body { padding: 0 24px 24px; }
.ai-module-body h4 { margin-top: 24px; font-size: 1rem; font-weight: 750; line-height: 1.6; }
.ai-module-body p { margin-top: 12px; font-size: .9rem; color: var(--muted); line-height: 1.85; }
.ai-module-grid { grid-template-columns: 1fr; }
.ai-course-notes ul { padding-left: 22px; }
.ai-certificate { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; }
.ai-certificate h3 { margin-bottom: 18px; }
.ai-certificate p { color: var(--muted); line-height: 1.85; }
.ai-certificate img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ai-certificate figcaption { margin-top: 12px; font-size: .8rem; color: var(--muted); }
.ai-lecturer { grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 28px; }
.ai-lecturer-photo { width: 112px; max-width: 112px; border-radius: 12px; }
.ai-lecturer .actions { margin-top: 20px; }
.ai-feedback-intro { color: var(--muted); line-height: 1.8; margin: 20px 0 28px; max-width: 80ch; }
.ai-feedback-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: start; }
.ai-feedback-card { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 14px; overflow: hidden; }
.ai-feedback-card > a { display: block; }
.ai-feedback-card img { display: block; width: 100%; height: auto; }
.ai-feedback-card a > span { display: block; padding: 16px; color: #126764; font-size: .85rem; font-weight: 750; }
.ai-feedback-card details { border-top: 1px solid var(--line); }
.ai-feedback-card summary { padding: 16px; cursor: pointer; font-size: .9rem; font-weight: 750; }
.ai-feedback-text { padding: 0 18px 22px; font-size: .9rem; line-height: 1.85; overflow-wrap: anywhere; }
.ai-feedback-text p { margin-top: 12px; color: var(--muted); }
.ai-whatsapp-contact { display: inline-block; line-height: 1.75; color: #126764; font-weight: 700; }
.ai-enroll-grid h4 { margin-top: 14px; line-height: 1.7; font-size: .9rem; }
@media (max-width: 800px) {
 .ai-certificate, .ai-feedback-grid { grid-template-columns: 1fr; }
 .ai-lecturer { grid-template-columns: 80px minmax(0,1fr); gap: 18px; }
 .ai-lecturer-photo { width: 80px; max-width: 80px; }
 .ai-lecturer h2 { font-size: 1.4rem; overflow-wrap: anywhere; }
 .ai-lecturer p, .ai-lecturer a { overflow-wrap: anywhere; }
 .ai-module-body { padding: 0 18px 22px; }
}
@media (max-width: 800px) {
 .ai-lecturer { display: flow-root; }
 .ai-lecturer-photo { float: left; margin: 0 18px 12px 0; }
 .ai-lecturer p { clear: both; }
}
