/* Editorial layout repair: preserve the existing red/navy identity. */
.home-page .page-shell>.layout-columns{display:block;padding-top:28px;border-top:1px solid var(--line)}
.home-page .page-shell>.layout-columns>.content-group{width:100%;min-width:0}
.home-page .content-portfolio .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-page .post-grid{align-items:stretch}
.post-card{display:flex;flex-direction:column}
.post-card h3{overflow-wrap:normal;word-break:normal}
.post-card p{font-size:16px;line-height:1.8;overflow-wrap:break-word}
.post-card>.text-link{margin-top:auto;padding-top:8px}
.listing-more{margin-top:24px;text-align:right}
.home-page .content-shortcode{max-width:960px}
.home-page .content-group:empty{display:none}
.home-page .content-image img{max-height:650px;object-fit:contain}
.home-page .page-shell>.content-group{margin-bottom:48px}
.course-detail-page .page-shell{max-width:1100px}
.course-detail-page .content-image{margin:24px auto 36px}
.image-zoom{display:inline-block;max-width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.image-caption{display:block;margin-top:8px;font-size:13px;line-height:1.5;color:var(--muted)}
.course-detail-page .content-image img{display:block;width:auto;height:auto;max-width:100%;max-height:760px;margin:0 auto;object-fit:contain}
.course-detail-page .image-banner img{max-width:min(100%,900px);max-height:340px}
.course-detail-page .image-poster img{max-height:720px}
.course-detail-page .image-schedule img{max-height:900px}
.course-detail-page .image-teachers img{max-height:900px}
.course-detail-page .image-portrait img{max-height:360px}
.course-detail-page .image-testimonial img{max-height:560px}
.course-detail-page .content-text-editor{max-width:900px;margin-inline:auto}
.course-detail-page .content-heading h2{font-size:clamp(1.25rem,2.3vw,1.8rem)}
@media(max-width:768px){
 .home-page .content-portfolio .post-grid{grid-template-columns:1fr}
 .home-page .page-shell>.content-group{margin-bottom:30px}
 .home-page .page-shell>.layout-columns{padding-top:18px}
 .post-card p{font-size:16px}
 .course-detail-page .content-image{margin:20px auto 28px}
 .course-detail-page .content-image img{max-height:640px}
 .course-detail-page .image-schedule img,.course-detail-page .image-teachers img{max-height:760px}
 .course-detail-page .image-banner img{max-height:230px}
 .course-detail-page .image-portrait img{max-height:300px}
}
