.home-news-section { margin: 36px 0 28px; }
.home-news-section__head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.home-news-section__head h2 { margin:4px 0 0; font-size:clamp(26px,3vw,38px); }
.home-news-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.home-news-card { min-width:0; border:1px solid var(--line); border-radius:24px; background:#fff; overflow:hidden; box-shadow:0 10px 28px rgba(35,38,45,.07); transition:transform .2s ease,box-shadow .2s ease; }
.home-news-card:hover { transform:translateY(-3px); box-shadow:0 16px 34px rgba(35,38,45,.11); }
.home-news-card>a { color:inherit; text-decoration:none; display:block; height:100%; }
.home-news-card__media { position:relative; aspect-ratio:16/9; display:grid; place-items:center; background:linear-gradient(135deg,#fff4d0,#ffe7ea); overflow:hidden; }
.home-news-card__media img,.home-news-card__media iframe { width:100%; height:100%; object-fit:cover; border:0; }
.news-media-placeholder { display:grid; place-items:center; width:70px; height:70px; border-radius:22px; background:var(--brand-red); color:#fff; font-weight:900; font-size:24px; }
.news-video-badge { position:absolute; right:12px; bottom:12px; padding:7px 11px; border-radius:999px; background:rgba(26,29,35,.86); color:#fff; font-size:12px; font-weight:800; }
.home-news-card__body { padding:20px; }
.home-news-card time { color:#8b8f98; font-size:13px; }
.home-news-card h3 { margin:8px 0; font-size:21px; line-height:1.2; }
.home-news-card__excerpt { margin:0; color:#646b77; line-height:1.5; min-height:3em; }
.home-news-card__footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:16px; }
.home-news-card__more { display:inline-flex; color:var(--brand-red); font-weight:800; }
.home-news-card__engagement { display:flex; gap:10px; color:#7b808a; font-size:12px; font-weight:750; white-space:nowrap; }
html.is-direct-news-route .screen[data-screen="courses"] { display:none !important; }
html.is-direct-news-route .screen[data-screen="news"] { display:block !important; }
.screen[data-screen="news"] > .back-link { display:flex; width:min(100%,920px); margin:0 auto 24px; }
.news-detail { width:min(100%,920px); margin:0 auto; padding-bottom:52px; }
.news-detail__hero { width:min(100%,800px); margin:24px auto 30px; text-align:left; }
.news-detail__hero .eyebrow { margin:0 0 12px; font-size:12px; line-height:1.3; letter-spacing:.14em; }
.news-detail__hero h1 { max-width:800px; margin:0; font-size:clamp(34px,4.2vw,54px); line-height:1.08; letter-spacing:-.025em; text-wrap:balance; overflow-wrap:anywhere; }
.news-detail__hero #news-detail-excerpt { max-width:740px; margin:16px 0 0; color:#646b77; font-size:clamp(17px,1.8vw,20px); line-height:1.55; }
.news-detail__media { width:100%; max-height:560px; margin:0 auto 38px; border-radius:24px; overflow:hidden; background:#12151b; aspect-ratio:16/9; box-shadow:0 14px 34px rgba(29,33,41,.1); }
.news-detail__media img,.news-detail__media video,.news-detail__media iframe { width:100%; height:100%; object-fit:contain; border:0; display:block; }
.news-detail__content { width:min(100%,760px); margin:0 auto; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#353941; font-size:18px; line-height:1.72; overflow-wrap:anywhere; }
.news-detail__content > :first-child { margin-top:0 !important; }
.news-detail__content > :last-child { margin-bottom:0 !important; }
.news-detail__content p { margin:0 0 1.15em; }
.news-detail__content h2,.news-detail__content h3 { color:#292d35; line-height:1.2; margin:1.65em 0 .6em; text-wrap:balance; }
.news-detail__content h2 { font-size:clamp(25px,3vw,32px); }
.news-detail__content h3 { font-size:22px; }
.news-detail__content ul,.news-detail__content ol { margin:0 0 1.25em; padding-left:1.45em; }
.news-detail__content li + li { margin-top:.45em; }
.news-detail__content blockquote { margin:1.6em 0; padding:18px 22px; border-left:5px solid var(--brand-yellow); border-radius:0 16px 16px 0; background:#fff6d8; color:#4d4323; font-weight:650; }
.news-detail__content a { color:var(--brand-red); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.news-detail__actions { width:min(100%,760px); display:flex; flex-wrap:wrap; gap:14px; margin:34px auto 0; padding-top:28px; border-top:1px solid var(--line); }
.news-detail__actions .button { min-height:56px; padding:0 28px; border-radius:16px; font-size:16px; font-weight:850; box-shadow:0 10px 24px rgba(227,25,55,.16); }
.news-detail__actions .button--secondary { color:#272a31; border-color:var(--brand-yellow); background:var(--brand-yellow); box-shadow:0 10px 24px rgba(255,201,40,.24); }
.news-detail__actions .button:hover { transform:translateY(-2px); }
.news-detail__actions .button::after { content:"  →"; font-size:18px; }
.news-engagement { width:min(100%,760px); margin:42px auto 0; padding:30px; border:1px solid #ead9dc; border-radius:24px; background:linear-gradient(145deg,#fff 0%,#fff9f2 100%); box-shadow:0 14px 34px rgba(54,33,38,.07); }
.news-engagement[aria-busy=true] { opacity:.72; pointer-events:none; }
.news-engagement__heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.news-engagement__heading .eyebrow { margin:0 0 6px; color:var(--brand-red); font-size:11px; font-weight:900; letter-spacing:.14em; }
.news-engagement__heading h2 { margin:0; color:#292d35; font-size:clamp(26px,3vw,34px); line-height:1.15; }
.news-engagement__heading>p { max-width:300px; margin:0; color:#737985; line-height:1.5; text-align:right; }
.news-reactions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding-bottom:26px; border-bottom:1px solid #eadfe1; }
.news-reaction-button { display:inline-flex; align-items:center; gap:9px; min-height:48px; padding:0 15px; border:1px solid #dedfe4; border-radius:14px; background:#fff; color:#3a3e46; font:inherit; font-weight:800; cursor:pointer; transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
.news-reaction-button:hover { transform:translateY(-1px); border-color:#f0a8b2; box-shadow:0 8px 18px rgba(79,43,49,.08); }
.news-reaction-button[aria-pressed=true] { border-color:var(--brand-red); background:#fff0f2; color:#b80f2a; box-shadow:0 0 0 3px rgba(227,25,55,.08); }
.news-reaction-button strong { min-width:22px; padding:3px 7px; border-radius:999px; background:#f2f3f5; color:#5e646f; font-size:12px; text-align:center; }
.news-reaction-button[aria-pressed=true] strong { background:#fff; color:var(--brand-red); }
.news-engagement__status { flex:1 1 220px; margin:0 0 0 4px; color:#747a84; font-size:13px; line-height:1.45; }
.news-comments { padding-top:26px; }
.news-comments__heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:16px; }
.news-comments__heading h3 { margin:0; color:#292d35; font-size:22px; }
.news-comments__heading h3 span { display:inline-grid; place-items:center; min-width:28px; height:28px; margin-left:5px; padding:0 8px; border-radius:999px; background:#f0f1f3; color:#666c76; font-size:12px; vertical-align:3px; }
.news-comments__heading p { margin:0; color:#7b818c; font-size:14px; }
.news-comment-form { margin-bottom:24px; padding:18px; border:1px solid #e0e1e5; border-radius:18px; background:#fff; }
.news-comment-form label { display:block; margin-bottom:9px; color:#343840; font-size:14px; font-weight:850; }
.news-comment-form textarea { width:100%; min-height:108px; resize:vertical; padding:14px 16px; border:1.5px solid #cfd2d8; border-radius:13px; outline:none; background:#fff; color:#30343b; font:inherit; line-height:1.55; }
.news-comment-form textarea:focus { border-color:var(--brand-yellow); box-shadow:0 0 0 4px rgba(255,201,40,.17); }
.news-comment-form__footer { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:12px; }
.news-comment-form__footer>span { color:#8a8f98; font-size:12px; }
.news-comment-form__footer .button { min-height:46px; padding:0 20px; border-radius:13px; }
.news-comment-form .form-message { min-height:0; margin:10px 0 0; }
.news-comments__list { display:grid; gap:12px; }
.news-comment { display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; padding:16px; border:1px solid #e4e5e8; border-radius:17px; background:#fff; }
.news-comment__avatar { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:linear-gradient(145deg,#e31937,#b90d27); color:#fff; font-size:13px; font-weight:900; letter-spacing:.03em; }
.news-comment__body { min-width:0; }
.news-comment__body header { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:7px; }
.news-comment__body header>div { display:grid; gap:2px; }
.news-comment__body strong { color:#30343b; font-size:14px; }
.news-comment__body time { color:#8b9099; font-size:11px; }
.news-comment__body p { margin:0; color:#4b5059; line-height:1.55; overflow-wrap:anywhere; white-space:pre-wrap; }
.news-comment__delete { padding:5px 8px; border:0; border-radius:8px; background:transparent; color:#a2192d; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.news-comment__delete:hover { background:#fff0f2; }
.news-comments__empty { display:grid; justify-items:center; gap:5px; padding:24px; border:1px dashed #d7d9df; border-radius:17px; color:#757b86; text-align:center; }
.news-comments__empty>span { font-size:25px; }
.news-comments__empty strong { color:#41454d; }
.news-comments__empty p { margin:0; font-size:13px; }
.news-admin-list { display:grid; gap:14px; }
.news-admin-row { display:grid; grid-template-columns:150px minmax(0,1fr) auto auto; gap:18px; align-items:center; padding:14px; background:#fff; border:1px solid var(--line); border-radius:20px; }
.news-admin-row__media { aspect-ratio:16/9; border-radius:14px; overflow:hidden; display:grid; place-items:center; background:#fff4d0; }
.news-admin-row__media img,.news-admin-row__media iframe { width:100%; height:100%; object-fit:cover; border:0; }
.news-admin-row__copy h3 { margin:0 0 5px; }
.news-admin-row__copy p { margin:0 0 6px; color:#6d737e; }
.news-admin-row__copy time { color:#9297a1; font-size:13px; }
.news-admin-row__status { padding:7px 11px; border-radius:999px; font-size:12px; font-weight:800; }
.news-admin-row__status[data-status=published] { color:#177541; background:#e7f7ed; }
.news-admin-row__status[data-status=draft] { color:#755c00; background:#fff5d3; }
.news-editor-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.news-editor-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(320px,.7fr); gap:20px; align-items:start; }
.news-editor-main,.news-editor-side { padding:26px; }
.news-editor-main .form-control { margin-bottom:18px; }
.news-rich-toolbar { display:flex; flex-wrap:wrap; gap:6px; padding:8px; background:#f5f6f8; border:1px solid var(--line); border-bottom:0; border-radius:14px 14px 0 0; }
.news-rich-toolbar button { min-width:38px; min-height:38px; padding:0 11px; border:1px solid transparent; border-radius:9px; background:#fff; color:#353941; font-weight:800; cursor:pointer; }
.news-rich-toolbar button:hover,.news-rich-toolbar button:focus-visible { border-color:var(--brand-yellow); background:#fff9e8; outline:none; }
.news-content-field { gap:9px; }
.news-content-help { margin-bottom:2px; color:#6f7580 !important; font-size:12px !important; }
.news-rich-editor { min-height:320px; padding:20px; border:2px solid #c9cdd4; border-radius:0 0 14px 14px; outline:none; background:#fff; color:var(--ink); caret-color:var(--brand-red); cursor:text; font-size:16px; font-weight:400; line-height:1.65; white-space:normal; overflow-wrap:anywhere; user-select:text; }
.news-rich-editor > :first-child { margin-top:0; }
.news-rich-editor > :last-child { margin-bottom:0; }
.news-rich-editor p { margin:0 0 1em; }
.news-rich-editor h2 { margin:1.35em 0 .55em; font-size:25px; line-height:1.2; }
.news-rich-editor blockquote { margin:1.2em 0; padding:14px 16px; border-left:4px solid var(--brand-yellow); background:#fff6d8; border-radius:0 12px 12px 0; }
.news-rich-editor:hover { border-color:#aeb4bd; }
.news-rich-editor:focus { border-color:var(--brand-yellow); box-shadow:0 0 0 4px rgba(255,201,40,.18); }
.news-rich-editor:empty:before { content:attr(data-placeholder); color:#8e949e; pointer-events:none; }
.news-content-count { justify-self:end; color:#7c828d !important; font-size:11px !important; }
.news-image-preview { aspect-ratio:16/9; display:grid; place-items:center; border:1px dashed #c6cad2; border-radius:18px; background:#f7f8fa; overflow:hidden; color:#858b96; margin-bottom:12px; }
.news-image-preview img { width:100%; height:100%; object-fit:cover; }
.news-media-upload { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.news-editor-check { display:flex; gap:12px; align-items:flex-start; padding:16px; border:2px solid #f0d36b; border-radius:16px; background:#fff8df; font-weight:800; margin:18px 0; cursor:pointer; }
.news-editor-check[data-published="true"] { border-color:#e31937; background:#fff0f2; }
.news-editor-check input { width:20px; height:20px; margin-top:2px; accent-color:var(--brand-red); }
.news-editor-check span { display:grid; gap:4px; }
.news-editor-check small { color:#747985; font-size:12px; font-weight:600; line-height:1.4; }
.news-editor-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }

@media (max-width: 900px) {
  .home-news-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .news-editor-layout { grid-template-columns:1fr; }
  .news-admin-row { grid-template-columns:110px minmax(0,1fr) auto; }
  .news-admin-row__status { grid-column:2; justify-self:start; }
}
@media (max-width: 620px) {
  .mobile-nav a { min-width: 0; flex: 1; }
  .home-news-section { margin-top:24px; }
  .home-news-list { grid-template-columns:1fr; }
  .home-news-section__head { align-items:start; }
  .screen[data-screen="news"] > .back-link { margin-bottom:18px; }
  .news-detail { padding-bottom:30px; }
  .news-detail__hero { margin:14px auto 22px; }
  .news-detail__hero h1 { font-size:clamp(31px,10vw,42px); }
  .news-detail__hero #news-detail-excerpt { margin-top:12px; font-size:17px; }
  .news-detail__media { margin-bottom:26px; border-radius:18px; }
  .news-detail__content { font-size:16px; line-height:1.68; }
  .news-detail__content blockquote { padding:15px 16px; }
  .news-detail__actions { display:grid; gap:10px; margin-top:28px; padding-top:22px; }
  .news-detail__actions .button { width:100%; min-height:54px; justify-content:center; text-align:center; }
  .news-engagement { margin-top:30px; padding:20px 16px; border-radius:20px; }
  .news-engagement__heading { display:grid; gap:8px; }
  .news-engagement__heading>p { max-width:none; text-align:left; }
  .news-reactions { display:grid; grid-template-columns:1fr 1fr; }
  .news-reaction-button { justify-content:center; padding:0 10px; }
  .news-engagement__status { grid-column:1/-1; margin:2px 0 0; }
  .news-comments__heading { display:grid; gap:5px; }
  .news-comment-form { padding:14px; }
  .news-comment-form__footer { align-items:flex-end; }
  .news-comment-form__footer .button { min-width:150px; }
  .news-comment { grid-template-columns:38px minmax(0,1fr); padding:14px 12px; }
  .news-comment__avatar { width:38px; height:38px; border-radius:12px; font-size:12px; }
  .home-news-card__footer { align-items:flex-end; }
  .news-admin-row { grid-template-columns:92px minmax(0,1fr); gap:12px; }
  .news-admin-row__status { grid-column:2; }
  .news-admin-row>[data-news-edit] { grid-column:1/-1; }
  .news-editor-header { align-items:flex-start; }
  .news-editor-main,.news-editor-side { padding:18px; }
  .news-media-upload { grid-template-columns:1fr; }
  .news-editor-actions .button { width:100%; }
}
