:root {
    --ncaq-news-blue: #178eb8;
    --ncaq-news-navy: #103b4b;
    --ncaq-news-gold: #e7ca74;
    --ncaq-news-muted: #71868e;
    --ncaq-news-line: #e4ecef;
    --ncaq-news-pale: #f0f9fc;
}

.ncaq-news-page {
    overflow-x: hidden;
    background: #fff;
}

.ncaq-news-page #page-header {
    display: none !important;
}

.ncaq-news-page .main-inner,
.ncaq-news-page #page-content,
.ncaq-news-page #region-main,
.ncaq-news-page #region-main-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
}

.ncaq-news-shell,
.ncaq-news-shell *,
.ncaq-news-detail-hero,
.ncaq-news-detail-hero * {
    box-sizing: border-box;
}

.ncaq-news-shell {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 92px;
    color: var(--ncaq-news-navy);
}

.ncaq-news-hero {
    width: 100%;
    overflow: hidden;
    background: #48a6c8;
}

.ncaq-news-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.ncaq-news-shell h2 {
    margin: 0 0 27px;
    color: var(--ncaq-news-navy);
    font-size: clamp(26px, 2vw, 34px);
    font-weight: 500;
    line-height: 1.35;
}

.ncaq-news-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 31px;
}

.ncaq-featured-card,
.ncaq-suggested-card {
    min-width: 0;
    background: #fff;
}

.ncaq-featured-card__image,
.ncaq-suggested-card__image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #deedf2;
}

.ncaq-featured-card__image {
    aspect-ratio: 1.68 / 1;
}

.ncaq-featured-card__image::after,
.ncaq-suggested-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(22, 131, 167, .18);
    transition: opacity .3s ease;
}

.ncaq-featured-card__image img,
.ncaq-suggested-card__image img,
.ncaq-related-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ncaq-news-hover-arrow {
    position: absolute;
    z-index: 2;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--ncaq-news-gold);
    font-size: 19px;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .25s ease, transform .25s ease;
}

.ncaq-featured-card:hover .ncaq-featured-card__image img,
.ncaq-featured-card:focus-within .ncaq-featured-card__image img,
.ncaq-suggested-card:hover .ncaq-suggested-card__image img,
.ncaq-suggested-card:focus-within .ncaq-suggested-card__image img,
.ncaq-related-card:hover .ncaq-related-card__image img,
.ncaq-related-card:focus-within .ncaq-related-card__image img {
    transform: scale(1.045);
}

.ncaq-featured-card:hover .ncaq-featured-card__image::after,
.ncaq-featured-card:focus-within .ncaq-featured-card__image::after,
.ncaq-featured-card:hover .ncaq-news-hover-arrow,
.ncaq-featured-card:focus-within .ncaq-news-hover-arrow,
.ncaq-suggested-card:hover .ncaq-suggested-card__image::after,
.ncaq-suggested-card:focus-within .ncaq-suggested-card__image::after {
    opacity: 1;
}

.ncaq-featured-card:hover .ncaq-news-hover-arrow,
.ncaq-featured-card:focus-within .ncaq-news-hover-arrow {
    transform: translateY(0);
}

.ncaq-featured-card__body {
    padding-top: 14px;
}

.ncaq-featured-card h3,
.ncaq-related-card h3,
.ncaq-suggested-card h3 {
    margin: 0;
    color: var(--ncaq-news-navy);
    font-weight: 500;
}

.ncaq-featured-card h3 {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ncaq-featured-card h3 a,
.ncaq-related-card h3 a,
.ncaq-suggested-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.ncaq-featured-card h3 a:hover,
.ncaq-related-card h3 a:hover,
.ncaq-suggested-card h3 a:hover {
    color: var(--ncaq-news-blue) !important;
}

.ncaq-news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #99a8ad;
    font-size: 10.5px;
    line-height: 1.25;
}

.ncaq-news-date i {
    color: #8fa1a8;
}

.ncaq-news-related {
    margin-top: 62px;
}

.ncaq-news-related h2 {
    margin-bottom: 18px;
}

.ncaq-news-sortbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 42px;
    margin-bottom: 8px;
    color: var(--ncaq-news-navy);
    font-size: 13px;
}

.ncaq-news-sortbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid var(--ncaq-news-blue);
    color: var(--ncaq-news-blue) !important;
    background: #fff;
    text-decoration: none !important;
}

.ncaq-news-sortbar a:hover,
.ncaq-news-sortbar a:focus {
    color: #fff !important;
    background: var(--ncaq-news-blue);
}

.ncaq-news-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 42px;
}

.ncaq-related-card {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-width: 0;
    min-height: 166px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ncaq-news-line);
}

.ncaq-related-card__image {
    display: block;
    width: 142px;
    height: 142px;
    overflow: hidden;
    background: #e1edf1;
}

.ncaq-related-card__body {
    min-width: 0;
}

.ncaq-related-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ncaq-news-empty {
    padding: 28px;
    color: var(--ncaq-news-muted);
    background: #f4fafc;
    text-align: center;
}

.ncaq-news-pagination {
    margin-top: 38px;
}

.ncaq-news-pagination .pagination {
    gap: 8px;
    justify-content: center;
}

.ncaq-news-pagination .page-link {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 50% !important;
    color: #8b9ba1;
    background: transparent;
    font-size: 11px;
}

.ncaq-news-pagination .page-item.active .page-link,
.ncaq-news-pagination .page-link:hover,
.ncaq-news-pagination .page-link:focus {
    color: #fff;
    background: var(--ncaq-news-blue);
    box-shadow: none;
}

/* Single-news hero. */
.ncaq-news-detail-hero {
    width: 100%;
    color: var(--ncaq-news-navy);
    background: var(--ncaq-news-pale);
}

.ncaq-news-detail-hero__inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 240px;
    margin: 0 auto;
    padding: 32px 0 24px;
}

.ncaq-news-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--ncaq-news-navy) !important;
    font-size: 13px;
    text-decoration: none !important;
}

.ncaq-news-back:hover {
    color: var(--ncaq-news-blue) !important;
}

.ncaq-news-detail-hero h1 {
    max-width: 1320px;
    margin: 0;
    color: var(--ncaq-news-navy);
    font-size: clamp(25px, 2.1vw, 34px);
    font-weight: 600;
    line-height: 1.45;
}

.ncaq-news-detail-hero__meta {
    direction: ltr;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 8px;
}

.ncaq-news-detail-hero__meta .ncaq-news-date {
    direction: rtl;
    margin: 0;
    font-size: 11px;
}

.ncaq-news-detail-actions {
    display: flex;
    gap: 14px;
}

.ncaq-news-detail-actions button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--ncaq-news-blue);
    font-size: 17px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.ncaq-news-detail-actions button:hover,
.ncaq-news-detail-actions button:focus {
    color: var(--ncaq-news-navy);
    background: var(--ncaq-news-gold);
    outline: 0;
}

.ncaq-news-detail-shell {
    padding-top: 58px;
}

.ncaq-news-article {
    min-width: 0;
}

.ncaq-news-article__media {
    width: 100%;
    margin: 0 0 31px;
    overflow: hidden;
    background: #deedf2;
}

.ncaq-news-article__media img {
    display: block;
    width: 100%;
    height: clamp(280px, 24vw, 400px);
    object-fit: cover;
}

.ncaq-news-article__content,
.ncaq-news-tags {
    width: min(1200px, 100%);
    margin-inline: auto;
}

.ncaq-news-article__content {
    color: #405d68;
    font-size: 16px;
    line-height: 2.05;
}

.ncaq-news-article__content > :first-child {
    margin-top: 0;
}

.ncaq-news-article__content > :last-child {
    margin-bottom: 0;
}

.ncaq-news-article__content p {
    margin: 0 0 19px;
}

.ncaq-news-article__content h2,
.ncaq-news-article__content h3,
.ncaq-news-article__content h4 {
    margin: 25px 0 8px;
    color: #365762;
    font-size: 17px;
    font-weight: 600;
}

.ncaq-news-article__content img {
    max-width: 100%;
    height: auto;
}

.ncaq-news-tags {
    margin-top: 44px;
}

.ncaq-news-tags h2 {
    margin-bottom: 17px;
}

.ncaq-news-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ncaq-news-tags__list span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    color: var(--ncaq-news-blue);
    background: #f0f9fc;
    font-size: 13px;
}

.ncaq-news-suggested {
    margin-top: 82px;
}

.ncaq-news-suggested__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 31px;
}

.ncaq-suggested-card__image {
    aspect-ratio: 1.46 / 1;
}

.ncaq-suggested-card h3 {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 13px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 991.98px) {
    .ncaq-news-featured__grid,
    .ncaq-news-suggested__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .ncaq-news-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ncaq-news-hero {
        height: 160px;
    }

    .ncaq-news-hero img {
        height: 100%;
        object-fit: cover;
        object-position: 82% center;
    }

    .ncaq-news-shell,
    .ncaq-news-detail-hero__inner {
        width: min(100% - 28px, 640px);
    }

    .ncaq-news-shell {
        padding: 40px 0 64px;
    }

    .ncaq-news-featured__grid,
    .ncaq-news-suggested__grid {
        grid-template-columns: 1fr;
        row-gap: 31px;
    }

    .ncaq-featured-card h3,
    .ncaq-suggested-card h3 {
        min-height: 0;
    }

    .ncaq-news-related,
    .ncaq-news-suggested {
        margin-top: 50px;
    }

    .ncaq-news-detail-hero__inner {
        min-height: 0;
        padding: 34px 0 30px;
    }

    .ncaq-news-detail-hero__meta {
        align-items: center;
    }

    .ncaq-news-detail-actions button {
        width: 42px;
        height: 42px;
    }

    .ncaq-news-article__media img {
        height: auto;
        min-height: 230px;
        aspect-ratio: 16 / 9;
    }

    .ncaq-news-article__content {
        font-size: 15px;
    }
}

@media (max-width: 479.98px) {
    .ncaq-news-sortbar {
        justify-content: space-between;
    }

    .ncaq-related-card {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 12px;
        min-height: 119px;
        padding: 12px 0;
    }

    .ncaq-related-card__image {
        width: 94px;
        height: 94px;
    }

    .ncaq-related-card h3 {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .ncaq-news-hover-arrow {
        opacity: 1;
        transform: none;
    }

    .ncaq-news-detail-hero__meta {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .ncaq-news-tags__list span {
        min-height: 36px;
        padding: 7px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ncaq-featured-card__image img,
    .ncaq-featured-card__image::after,
    .ncaq-news-hover-arrow,
    .ncaq-related-card__image img,
    .ncaq-suggested-card__image img,
    .ncaq-suggested-card__image::after {
        transition: none !important;
    }
}

@media print {
    .ncaq-news-page header,
    .ncaq-news-page footer,
    .ncaq-news-detail-actions,
    .ncaq-news-suggested,
    .ncaq-news-back {
        display: none !important;
    }

    .ncaq-news-detail-hero {
        background: #fff;
    }

    .ncaq-news-detail-hero__inner,
    .ncaq-news-shell {
        width: 100%;
        padding: 20px 0;
    }
}

/* News administration. */
.ncaq-news-admin-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 8px 0 70px;
}

.ncaq-news-form-card,
.ncaq-news-management-card {
    border: 1px solid var(--ncaq-news-line);
    background: #fff;
    box-shadow: 0 14px 40px rgba(11, 53, 71, .06);
}

.ncaq-news-form-card {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px);
}

.ncaq-news-form-card .mform,
.ncaq-news-form-card form {
    margin: 0;
}

.ncaq-news-form-card .form-group {
    margin-bottom: 22px;
}

.ncaq-news-form-card label,
.ncaq-news-form-card .col-form-label {
    color: var(--ncaq-news-navy);
    font-size: 14px;
    font-weight: 600;
}

.ncaq-news-form-card input[type="text"],
.ncaq-news-form-card textarea,
.ncaq-news-form-card select {
    min-height: 46px;
    border: 1px solid #dbe5e9;
    border-radius: 8px;
    color: var(--ncaq-news-navy);
    background: #fbfdfe;
    box-shadow: none !important;
}

.ncaq-news-form-card textarea {
    min-height: 190px;
    padding: 14px;
    resize: vertical;
}

.ncaq-news-form-card input:focus,
.ncaq-news-form-card textarea:focus,
.ncaq-news-form-card select:focus {
    border-color: var(--ncaq-news-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 131, 167, .12) !important;
}

.ncaq-news-form-card .fp-restrictions,
.ncaq-news-form-card .form-text,
.ncaq-news-form-card [id$="tags_hint"] {
    color: #87979e;
    font-size: 11px;
}

.ncaq-news-form-card .btn-primary,
.ncaq-news-form-card button[type="submit"] {
    min-height: 44px;
    padding: 9px 24px;
    border-color: var(--ncaq-news-blue) !important;
    border-radius: 8px;
    color: #fff !important;
    background: var(--ncaq-news-blue) !important;
}

.ncaq-news-form-card .btn-secondary {
    min-height: 44px;
    padding: 9px 24px;
    border-color: #dce5e8;
    border-radius: 8px;
    color: var(--ncaq-news-navy);
    background: #f4f7f8;
}

.ncaq-news-current-image {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 0 22px;
    color: var(--ncaq-news-navy);
    font-size: 13px;
    font-weight: 600;
}

.ncaq-news-current-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--ncaq-news-line);
}

.ncaq-news-management-card {
    padding: clamp(20px, 3vw, 34px);
}

.ncaq-news-management-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.ncaq-news-search-form {
    display: flex;
    flex: 1;
    align-items: center;
    max-width: 600px;
    min-height: 46px;
    overflow: hidden;
    border: 1px solid #dbe5e9;
    border-radius: 8px;
    background: #fbfdfe;
}

.ncaq-news-search-form > i {
    flex: 0 0 auto;
    margin-inline-start: 15px;
    color: #8aa0a8;
}

.ncaq-news-search-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 0;
    outline: 0;
    color: var(--ncaq-news-navy);
    background: transparent;
}

.ncaq-news-search-form button {
    align-self: stretch;
    padding: 0 20px;
    border: 0;
    color: #fff;
    background: var(--ncaq-news-blue);
}

.ncaq-news-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--ncaq-news-navy) !important;
    background: var(--ncaq-news-gold);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.ncaq-news-add-button:hover {
    color: #fff !important;
    background: var(--ncaq-news-blue);
}

.ncaq-news-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ncaq-news-admin-table {
    width: 100%;
    border-collapse: collapse;
    color: #425d67;
    font-size: 13px;
}

.ncaq-news-admin-table th,
.ncaq-news-admin-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--ncaq-news-line);
    text-align: start;
    vertical-align: middle;
}

.ncaq-news-admin-table th {
    color: #fff;
    background: var(--ncaq-news-blue);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ncaq-news-admin-table tbody tr {
    transition: background-color .2s ease;
}

.ncaq-news-admin-table tbody tr:hover {
    background: #f5fafc;
}

.ncaq-news-admin-table td:nth-child(1) {
    width: 65px;
    text-align: center;
}

.ncaq-news-admin-table td:nth-child(5) {
    white-space: nowrap;
}

.ncaq-news-row-actions {
    direction: ltr;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.ncaq-news-row-actions a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #dfe8eb;
    border-radius: 7px;
    text-decoration: none !important;
}

.ncaq-news-row-actions .is-view {
    color: var(--ncaq-news-blue);
    background: #eef8fb;
}

.ncaq-news-row-actions .is-edit {
    color: #8b6b11;
    background: #fff9e8;
}

.ncaq-news-row-actions .is-delete {
    color: #c64444;
    background: #fff2f2;
}

.ncaq-news-row-actions a:hover {
    color: #fff;
    background: var(--ncaq-news-navy);
}

@media (max-width: 767.98px) {
    .ncaq-news-admin-shell {
        width: calc(100% - 28px);
        padding-top: 4px;
    }

    .ncaq-news-management-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ncaq-news-search-form {
        max-width: none;
    }

    .ncaq-news-admin-table,
    .ncaq-news-admin-table tbody,
    .ncaq-news-admin-table tr,
    .ncaq-news-admin-table td {
        display: block;
        width: 100%;
    }

    .ncaq-news-admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .ncaq-news-admin-table tr {
        margin-bottom: 16px;
        padding: 10px 14px;
        border: 1px solid var(--ncaq-news-line);
    }

    .ncaq-news-admin-table td,
    .ncaq-news-admin-table td:nth-child(1) {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px dashed var(--ncaq-news-line);
        text-align: start;
    }

    .ncaq-news-admin-table td::before {
        content: attr(data-label);
        color: var(--ncaq-news-navy);
        font-weight: 600;
    }

    .ncaq-news-admin-table td:last-child {
        border-bottom: 0;
    }

    .ncaq-news-row-actions {
        justify-content: flex-start;
    }
}
