/* Single news page. Isolated from legacy .news/.article/.testimonial styles. */
.af-news-view {
    --af-nv-blue: #14326e;
    --af-nv-blue-2: #47639a;
    --af-nv-light-blue: #96afd7;
    --af-nv-graphite: #262523;
    --af-nv-gray: #515151;
    --af-nv-light-gray: #909091;
    --af-nv-white: #fefefe;
    padding: 18px 0 50px;
    color: var(--af-nv-graphite);
}

.af-news-view__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
    margin-left: 0;
    margin-right: 0;
}

.af-news-view__main {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* last_news.blade.php still has the legacy .right_column wrapper.
   Scope and reset it here so it stays in the second grid column. */
.af-news-view__layout > .right_column {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.af-news-article,
.af-news-comments,
.af-news-comment-form {
    border: 1px solid rgba(144, 144, 145, .24);
    border-radius: 16px;
    background: var(--af-nv-white);
    box-shadow: 0 12px 32px rgba(38, 37, 35, .045);
}

.af-news-article {
    overflow: hidden;
}

.af-news-article__header {
    position: relative;
    padding: 30px 34px 25px;
    border-bottom: 1px solid rgba(20, 50, 110, .12);
    background: linear-gradient(135deg, rgba(150, 175, 215, .10), rgba(254, 254, 254, 0) 55%);
}

.af-news-article__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--af-nv-blue);
}

.af-news-article__eyebrow,
.af-news-comments__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--af-nv-blue-2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.af-news-article__title {
    max-width: 920px;
    margin: 0 0 14px;
    color: var(--af-nv-graphite);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.af-news-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--af-nv-light-gray);
    font-size: 12px;
}

.af-news-article__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.af-news-article__meta-item i {
    color: var(--af-nv-blue-2);
}

.af-news-article__meta-separator {
    opacity: .7;
}

.af-news-article__content {
    padding: 30px 34px 36px;
    color: var(--af-nv-gray);
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.af-news-article__content > :first-child { margin-top: 0; }
.af-news-article__content > :last-child { margin-bottom: 0; }
.af-news-article__content p { margin: 0 0 16px; }
.af-news-article__content h2,
.af-news-article__content h3,
.af-news-article__content h4 {
    margin: 28px 0 12px;
    color: var(--af-nv-graphite);
    font-weight: 750;
    line-height: 1.3;
}
.af-news-article__content h2 { font-size: 24px; }
.af-news-article__content h3 { font-size: 20px; }
.af-news-article__content h4 { font-size: 17px; }
.af-news-article__content a { color: var(--af-nv-blue); text-decoration: underline; }

/* Rich article content: normalize legacy/editor inline styles so media never stretches the layout. */
.af-news-article__content,
.af-news-article__content * {
    box-sizing: border-box;
}

.af-news-article__content img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.af-news-article__content p img,
.af-news-article__content div img,
.af-news-article__content figure img,
.af-news-article__content a img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}

.af-news-article__content figure {
    width: auto !important;
    max-width: 100% !important;
    margin: 22px 0 !important;
}

.af-news-article__content figure img {
    margin: 0 auto;
}

.af-news-article__content figcaption {
    margin-top: 8px;
    color: var(--af-nv-light-gray);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.af-news-article__content iframe,
.af-news-article__content video,
.af-news-article__content embed,
.af-news-article__content object {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 22px auto;
}

.af-news-article__content iframe {
    aspect-ratio: 16 / 9;
    height: auto !important;
    min-height: 320px;
    border: 0;
}

.af-news-article__content pre,
.af-news-article__content code {
    max-width: 100%;
}

.af-news-article__content pre {
    overflow-x: auto;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(38, 37, 35, .05);
}

.af-news-article__content ul,
.af-news-article__content ol { padding-left: 22px; margin: 0 0 18px; }
.af-news-article__content blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--af-nv-blue);
    background: rgba(150, 175, 215, .10);
    color: var(--af-nv-graphite);
}
.af-news-article__content table { width: 100% !important; max-width: 100% !important; border-collapse: collapse; margin: 20px 0; table-layout: auto; }
.af-news-article__content th,
.af-news-article__content td { padding: 10px 12px; border: 1px solid rgba(144, 144, 145, .28); }
.af-news-article__content th { background: rgba(150, 175, 215, .12); color: var(--af-nv-blue); }

.af-news-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.af-news-navigation__item {
    min-width: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(20, 50, 110, .14);
    border-radius: 13px;
    background: var(--af-nv-white);
    color: var(--af-nv-graphite);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.af-news-navigation__item:hover,
.af-news-navigation__item:focus {
    border-color: rgba(20, 50, 110, .35);
    box-shadow: 0 10px 24px rgba(38, 37, 35, .06);
    transform: translateY(-1px);
    text-decoration: none;
}

.af-news-navigation__item--next { justify-content: flex-end; text-align: right; }
.af-news-navigation__content { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.af-news-navigation__label { color: var(--af-nv-blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.af-news-navigation__title { overflow: hidden; color: var(--af-nv-gray); font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.af-news-navigation__icon { width: 36px; height: 36px; min-width: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(150, 175, 215, .16); color: var(--af-nv-blue); }

.af-news-comments {
    margin-top: 18px;
    padding: 25px 28px 28px;
}

.af-news-comments__heading,
.af-news-comment-form__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.af-news-comments__title,
.af-news-comment-form__title {
    margin: 0;
    color: var(--af-nv-graphite);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.af-news-comment-form__title span { color: var(--af-nv-blue); }

.af-news-comments__list { overflow: hidden; border: 1px solid rgba(144, 144, 145, .20); border-radius: 12px; }
.af-news-comment { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-bottom: 1px solid rgba(144, 144, 145, .20); }
.af-news-comment:last-child { border-bottom: 0; }
.af-news-comment__avatar { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--af-nv-blue); color: #fff; font-size: 16px; font-weight: 800; }
.af-news-comment__body { min-width: 0; }
.af-news-comment__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 7px; }
.af-news-comment__author { margin: 0; color: var(--af-nv-graphite); font-size: 15px; font-weight: 750; }
.af-news-comment__date { color: var(--af-nv-light-gray); font-size: 11px; }
.af-news-comment__text { margin: 0; color: var(--af-nv-gray); font-size: 13px; line-height: 1.6; white-space: pre-line; }
.af-news-comments__empty { padding: 32px 20px; border: 1px dashed rgba(71, 99, 154, .28); border-radius: 12px; background: rgba(150, 175, 215, .07); text-align: center; }
.af-news-comments__empty-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; border-radius: 50%; background: rgba(150, 175, 215, .18); color: var(--af-nv-blue); font-size: 20px; }
.af-news-comments__empty p { margin: 0; color: var(--af-nv-gray); font-size: 13px; }
.af-news-comments__pagination { margin-top: 18px; }

.af-news-comment-form {
    margin-top: 18px;
    padding: 25px 28px 28px;
}
.af-news-comment-form__icon { width: 46px; height: 46px; min-width: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--af-nv-blue); color: #fff; font-size: 19px; }
.af-news-comment-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.af-news-comment-form__field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.af-news-comment-form__field--message { margin-top: 14px; }
.af-news-comment-form__label { color: var(--af-nv-gray); font-size: 11px; font-weight: 700; }
.af-news-comment-form__input,
.af-news-comment-form__textarea { box-sizing: border-box; width: 100%; border: 1px solid rgba(144, 144, 145, .34); border-radius: 10px; background: #fff; color: var(--af-nv-graphite); font: inherit; outline: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.af-news-comment-form__input { height: 44px; padding: 0 13px; }
.af-news-comment-form__textarea { min-height: 122px; padding: 12px 13px; resize: vertical; }
.af-news-comment-form__input:focus,
.af-news-comment-form__textarea:focus { border-color: var(--af-nv-blue-2); box-shadow: 0 0 0 3px rgba(150, 175, 215, .18); }
.af-news-comment-form__footer { display: flex; justify-content: flex-end; margin-top: 16px; }
.af-news-comment-form__submit { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--af-nv-blue); color: #fff; font-size: 13px; font-weight: 750; cursor: pointer; transition: background .18s ease, transform .18s ease, opacity .18s ease; }
.af-news-comment-form__submit:hover { background: var(--af-nv-blue-2); transform: translateY(-1px); }
.af-news-comment-form__submit:disabled { opacity: .65; cursor: wait; transform: none; }
.af-news-comment-form__submit.is-loading i { animation: af-news-send-spin .8s linear infinite; }
@keyframes af-news-send-spin { to { transform: rotate(360deg); } }

@media (max-width: 1199px) {
    .af-news-article__header { padding: 26px 28px 22px; }
    .af-news-article__title { font-size: 28px; }
    .af-news-article__content { padding: 26px 28px 30px; }
}

@media (max-width: 900px) {
    .af-news-view__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
    .af-news-view__main { width: 100%; margin-bottom: 0; }
    .af-news-view__layout > .right_column { width: 100%; margin: 0; }
}

@media (max-width: 767px) {
    .af-news-view { padding: 10px 0 32px; }
    .af-news-view__main { width: 100%; margin-left: 0; margin-right: 0; }
    .af-news-article,
    .af-news-comments,
    .af-news-comment-form { border-radius: 12px; }
    .af-news-article__header { padding: 22px 17px 18px; }
    .af-news-article__title { margin-bottom: 11px; font-size: 22px; line-height: 1.25; }
    .af-news-article__content { padding: 21px 17px 25px; font-size: 14px; line-height: 1.65; }
    .af-news-article__content h2 { font-size: 20px; }
    .af-news-article__content h3 { font-size: 18px; }
    .af-news-article__content img { border-radius: 8px; }
    .af-news-article__content iframe { min-height: 190px; }
    .af-news-navigation { grid-template-columns: 1fr; gap: 8px; margin: 12px 0; }
    .af-news-navigation__spacer { display: none; }
    .af-news-navigation__item { min-height: 70px; padding: 12px 14px; }
    .af-news-comments,
    .af-news-comment-form { margin-top: 12px; padding: 20px 16px; }
    .af-news-comments__title,
    .af-news-comment-form__title { font-size: 19px; }
    .af-news-comment { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 15px 13px; }
    .af-news-comment__avatar { width: 38px; height: 38px; font-size: 14px; }
    .af-news-comment__header { display: block; }
    .af-news-comment__date { display: block; margin-top: 2px; }
    .af-news-comment-form__grid { grid-template-columns: 1fr; gap: 11px; }
    .af-news-comment-form__field--message { margin-top: 11px; }
    .af-news-comment-form__submit { width: 100%; }
}
