/* Homepage presentation only: six display groups, two real course banners. */
body.qz-home .qz-featured{width:100%;margin:0 0 22px;background:#f0eaf1;overflow:hidden}
body.qz-home .qz-featured-slide{display:grid;grid-template-columns:43% 57%;align-items:center;min-height:248px}
body.qz-home .qz-featured-slide[hidden]{display:none!important}
body.qz-home .qz-featured-copy{padding:28px 36px}
body.qz-home .qz-featured-copy p{margin:0 0 12px;color:#6b356d;font-size:13px;letter-spacing:.12em}
body.qz-home .qz-featured-copy h2{margin:0 0 20px;color:#48234e;font-size:32px;line-height:1.35;letter-spacing:0}
body.qz-home .qz-featured-copy>a{display:inline-flex;align-items:center;gap:20px;padding:10px 18px;background:#6b356d;color:white;font-size:14px}
body.qz-home .qz-featured-copy>a:hover{background:#48234e;color:white}
body.qz-home .qz-featured-picture{display:block;line-height:0;background:#fff}
body.qz-home .qz-featured-picture img{display:block;width:100%;height:auto;max-width:100%;margin:0}
body.qz-home .qz-featured-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 22px;background:#fff;border-bottom:1px solid #d9ccdc;min-height:48px}
body.qz-home .qz-featured-tabs{display:flex;gap:20px;flex-wrap:wrap}
body.qz-home .qz-featured-tabs a{padding:13px 0;font-size:14px;border-bottom:3px solid transparent;color:#667177}
body.qz-home .qz-featured-tabs a[aria-current]{border-color:#6b356d;color:#48234e;font-weight:600}
body.qz-home .qz-featured-actions{display:none;gap:4px;align-items:center}
body.qz-home .qz-featured.is-ready .qz-featured-actions{display:flex}
body.qz-home .qz-featured-actions button{border:0;background:transparent;color:#6b356d;font:inherit;font-size:14px;padding:8px 10px;min-width:38px;cursor:pointer}
body.qz-home .qz-featured-actions button:hover{background:#f4eef5}
body.qz-home .qz-intro{padding-bottom:18px}
body.qz-home .qz-category-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 28px}
body.qz-home .qz-category-nav a{padding:9px 14px;background:#fff;color:#48234e;border:1px solid #ded5e0;font-size:14px}
body.qz-home .qz-category-nav a:hover{border-color:#6b356d;background:#f4eef5}
body.qz-home .qz-category-nav span{font-size:12px;color:#667177;margin-left:5px}
body.qz-home:not(.qz-categorized) .qz-category-nav{display:none}
body.qz-home .qz-course-group{margin:0 0 28px;scroll-margin-top:24px}
body.qz-home .qz-course-group>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:15px 0 10px;border-bottom:2px solid #6b356d}
body.qz-home .qz-course-group h3{margin:0;color:#48234e;font-size:20px;line-height:1.5}
body.qz-home .qz-course-group>header>span{font-size:13px;color:#667177;white-space:nowrap}
body.qz-home .qz-course-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;background:#fff;padding:0 20px}
body.qz-home .qz-course-grid .class_cate{min-width:0;padding:15px 0;margin:0;background:transparent;border:0;border-bottom:1px solid #ece7ee}
body.qz-home .qz-course-grid .class_cate tr:first-child td{font-size:16px!important;line-height:1.65!important}
body.qz-home .qz-course-grid .class_cate a{color:#48234e}
body.qz-home .qz-course-grid .class_cate a:hover{text-decoration:underline}
@media(max-width:900px){
 body.qz-home .qz-featured-copy{padding:22px}
 body.qz-home .qz-featured-copy h2{font-size:26px}
 body.qz-home .qz-course-grid{grid-template-columns:1fr;padding:0 18px}
}
@media(max-width:640px){
 body.qz-home .qz-featured{margin:0 16px 18px;width:calc(100% - 32px)}
 body.qz-home .qz-featured-slide{grid-template-columns:1fr;min-height:0}
 body.qz-home .qz-featured-copy{padding:18px 18px 16px}
 body.qz-home .qz-featured-copy p{margin-bottom:5px;font-size:11px}
 body.qz-home .qz-featured-copy h2{font-size:23px;margin-bottom:12px}
 body.qz-home .qz-featured-copy>a{font-size:13px;padding:7px 12px}
 body.qz-home .qz-featured-controls{padding:0 10px;gap:5px;flex-wrap:wrap;justify-content:center}
 body.qz-home .qz-featured-tabs{gap:14px;justify-content:center}
 body.qz-home .qz-featured-tabs a{font-size:12px;padding:10px 0}
 body.qz-home .qz-featured-actions{justify-content:center;width:100%;padding-bottom:4px}
 body.qz-home .qz-category-nav{gap:6px;margin:0 0 22px}
 body.qz-home .qz-category-nav a{font-size:13px;padding:8px 10px}
 body.qz-home .qz-course-group{margin-bottom:22px}
 body.qz-home .qz-course-group h3{font-size:18px}
 body.qz-home .qz-course-grid{padding:0 14px}
}
@media(prefers-reduced-motion:reduce){body.qz-home .qz-featured *{transition:none!important}}

/* 20261005 course-name refinement: full-width rows, full original titles. */
body.qz-home .qz-course-grid{grid-template-columns:minmax(0,1fr);gap:0;padding:0 24px}
body.qz-home .qz-course-grid .class_cate{padding:13px 0}
body.qz-home .qz-course-grid .class_cate tr:first-child td{font-size:16px!important;line-height:1.65!important}
body.qz-home .qz-course-grid .class_cate tr:first-child td>span{display:block;font-size:16px!important;font-weight:500!important;height:auto!important;line-height:1.65!important}
body.qz-home .qz-course-grid .class_cate tr:first-child a{display:block;font-weight:500!important;line-height:1.65;white-space:normal;overflow-wrap:break-word;text-wrap:pretty}
body.qz-home .qz-course-grid .class_cate tr:first-child a:hover{color:#782f81;text-decoration:none}
body.qz-home .qz-course-grid .class_cate tr:first-child a:focus-visible{outline:2px solid #6b356d;outline-offset:4px}
@media(max-width:640px){
 body.qz-home .qz-course-grid{padding:0 16px}
 body.qz-home .qz-course-grid .class_cate{padding:14px 0}
 body.qz-home .qz-course-grid .class_cate tr:first-child td,
 body.qz-home .qz-course-grid .class_cate tr:first-child td>span{font-size:15px!important;line-height:1.7!important}
}

/* Latest user preference: mobile course names use one-line ellipsis only. */
@media(max-width:640px){
 body.qz-home .qz-course-grid .class_cate tr:first-child td>span{min-width:0;max-width:100%}
 body.qz-home .qz-course-grid .class_cate tr:first-child a{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal;text-wrap:nowrap}
}

/* Original posters remain complete; compact, aligned hero and full-width names. */
body.qz-home .qz-featured-slide{height:300px;min-height:0;grid-template-columns:43% 57%}body.qz-home .qz-featured-picture img{height:300px;object-fit:contain}body.qz-home .qz-featured-copy h2{font-size:25px}body.qz-home .qz-featured-tabs{flex:1;min-width:0;flex-wrap:nowrap;gap:20px}body.qz-home .qz-featured-tabs a{display:block;min-width:0;max-width:42%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}body.qz-home .qz-featured-actions{flex-shrink:0} @media(max-width:640px){body.qz-home .qz-featured{width:100%;margin:0 0 18px}body.qz-home .qz-featured-slide{height:auto;grid-template-columns:1fr}body.qz-home .qz-featured-picture img{height:200px}body.qz-home .qz-featured-copy h2{font-size:21px}body.qz-home .qz-featured-tabs{width:100%;flex:none}body.qz-home .qz-featured-tabs a{max-width:47%}}
