:root {
    --news-primary: var(--primary, #ff665b);
    --news-primary-dark: var(--primary-dark, #f05249);
    --news-secondary: var(--secondary, #2f855a);
    --news-secondary-dark: var(--secondary-dark, #246b48);
    --news-accent: var(--accent, #ff9b20);
    --news-ink: var(--ink, #183b2b);
    --news-muted: var(--muted, #5f6d64);
    --news-line: var(--line, #d9e8dd);
    --news-soft: var(--soft, #eef8f1);
    --news-shadow: var(--shadow-soft, 0 14px 34px rgba(var(--shadow-rgb), .07));
}

.news-card .news-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.news-card .news-body h3 a:hover {
    color: var(--news-primary-dark);
}

.news-gallery-badge {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    background: rgba(var(--ink-rgb), .7);
    backdrop-filter: blur(8px);
}

.news-gallery-badge svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.news-page {
    color: var(--news-ink);
}

.news-page .crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.news-page .crumb a {
    color: inherit;
    text-decoration: none;
}

.news-page-hero,
.news-detail-hero {
    position: relative;
    overflow: hidden;
}

.news-detail-hero time {
    display: inline-flex;
    margin-top: 15px;
    font-weight: 700;
}

.news-archive-section,
.news-detail-section {
    padding-top: clamp(52px, 7vw, 92px);
    padding-bottom: clamp(64px, 8vw, 112px);
}

.news-archive-heading,
.related-news-head {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.news-page-eyebrow {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--news-secondary-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.news-page-eyebrow > span {
    width: 31px;
    height: 3px;
    border-radius: 99px;
    background: var(--news-primary);
}

.news-archive-heading h2,
.related-news-head h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
}

.news-archive-count {
    flex: 0 0 auto;
    padding: 11px 16px;
    border: 1px solid var(--news-line);
    border-radius: 999px;
    color: var(--news-muted);
    background: var(--white);
}

.news-archive-count b {
    color: var(--news-primary-dark);
}

.news-archive .news-grid,
.related-news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.news-archive .news-card,
.related-news .news-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--news-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-archive .news-card:hover,
.related-news .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(var(--shadow-rgb), .13);
}

.news-archive .news-media,
.related-news .news-media {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: var(--overlay);
}

.news-archive .news-media-background,
.related-news .news-media-background {
    position: absolute;
    inset: -22px;
    width: calc(100% + 44px);
    height: calc(100% + 44px);
    object-fit: cover;
    filter: blur(18px);
    transform: scale(1.08);
}

.news-archive .news-media-darken,
.related-news .news-media-darken {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(var(--overlay-rgb), .3);
}

.news-archive .news-image-link,
.related-news .news-image-link {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
}

.news-archive .news-image,
.news-archive .news-video,
.related-news .news-image,
.related-news .news-video {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-archive .news-date,
.related-news .news-date {
    position: absolute;
    z-index: 5;
    bottom: 13px;
    left: 13px;
    display: grid;
    width: 62px;
    max-height: 62px;
    place-items: center;
    padding: 7px;
    border-radius: 16px;
    color: var(--white);
    line-height: 1;
    background: var(--news-primary);
    box-shadow: 0 9px 24px rgba(240, 82, 73, .3);
}

.news-archive .news-date b,
.related-news .news-date b {
    font-size: 22px;
}

.news-archive .news-date span,
.related-news .news-date span {
    font-size: 10px;
    font-weight: 800;
}

.news-archive .news-body,
.related-news .news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.news-archive .news-body h3,
.related-news .news-body h3 {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 12px;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-archive .news-body p,
.related-news .news-body p {
    display: -webkit-box;
    margin: 0 0 20px;
    overflow: hidden;
    color: var(--news-muted);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-archive .news-more,
.related-news .news-more {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    color: var(--news-secondary-dark);
    font-weight: 800;
    text-decoration: none;
}

.news-cursor-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 44px;
    padding: 17px;
    border: 1px solid var(--news-line);
    border-radius: 21px;
    background: var(--white);
    box-shadow: var(--news-shadow);
}

.news-pagination-button {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 12px 17px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    background: var(--news-secondary);
    transition: transform .2s ease, background-color .2s ease;
}

.news-pagination-button:hover {
    color: var(--white);
    background: var(--news-secondary-dark);
}

.news-pagination-button.is-previous:hover {
    transform: translateX(-3px);
}

.news-pagination-button.is-next {
    justify-self: end;
}

.news-pagination-button.is-next:hover {
    transform: translateX(3px);
}

.news-pagination-status {
    color: var(--news-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.news-page-empty {
    display: grid;
    place-items: center;
    padding: 64px 24px;
    border: 1px solid var(--news-line);
    border-radius: 28px;
    text-align: center;
    background: var(--news-soft);
}

.news-page-empty svg {
    width: 72px;
    margin-bottom: 18px;
    fill: none;
    stroke: var(--news-secondary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.news-page-empty h2 {
    margin: 0 0 9px;
}

.news-page-empty p {
    margin: 0;
    color: var(--news-muted);
}

.news-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--news-shadow);
}

.news-detail-gallery {
    position: relative;
    min-width: 0;
    min-height: 680px;
    overflow: hidden;
    background: var(--overlay);
}

.news-detail-slides,
.news-detail-slide {
    position: absolute;
    inset: 0;
}

.news-detail-slide {
    visibility: hidden;
    margin: 0;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.news-detail-slide.is-active {
    visibility: visible;
    opacity: 1;
}

.news-detail-background {
    position: absolute;
    inset: -32px;
    width: calc(100% + 64px);
    height: calc(100% + 64px);
    object-fit: cover;
    filter: blur(25px);
    transform: scale(1.08);
}

.news-detail-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(var(--overlay-rgb), .42);
}

.news-detail-slide video,
.news-detail-image-button {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
}

.news-detail-slide video {
    object-fit: contain;
}

.news-detail-image-button {
    display: grid;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.news-detail-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-detail-zoom {
    position: absolute;
    right: 19px;
    bottom: 19px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: var(--white);
    background: rgba(var(--ink-rgb), .7);
    backdrop-filter: blur(8px);
}

.news-detail-zoom svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.news-detail-arrow {
    position: absolute;
    z-index: 6;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0 0 4px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: var(--white);
    font-size: 36px;
    line-height: 1;
    background: rgba(var(--ink-rgb), .7);
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.news-detail-prev {
    left: 16px;
}

.news-detail-next {
    right: 16px;
}

.news-detail-counter {
    position: absolute;
    z-index: 6;
    bottom: 18px;
    left: 18px;
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 13px;
    background: rgba(var(--ink-rgb), .72);
    backdrop-filter: blur(8px);
}

.news-detail-content {
    min-width: 0;
    padding: clamp(30px, 5vw, 58px);
}

.news-detail-content h2 {
    margin: 0;
    font-size: clamp(27px, 3.5vw, 42px);
    line-height: 1.15;
}

.news-detail-content time {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 21px;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--news-secondary-dark);
    font-size: 14px;
    font-weight: 750;
    background: var(--news-soft);
}

.news-detail-content time svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.news-detail-text {
    margin-top: 28px;
    color: var(--news-muted);
    font-size: 16px;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

.news-detail-text p {
    margin: 0;
}

.news-back-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 34px;
    padding: 13px 19px;
    border: 1px solid var(--news-line);
    border-radius: 999px;
    color: var(--news-ink);
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.news-back-link:hover {
    border-color: var(--news-primary);
    color: var(--news-primary-dark);
    transform: translateX(-3px);
}

.related-news {
    margin-top: clamp(68px, 9vw, 112px);
}

.related-news-head > a {
    display: inline-flex;
    gap: 8px;
    color: var(--news-secondary-dark);
    font-weight: 800;
    text-decoration: none;
}

.news-image-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(var(--overlay-rgb), .95);
}

.news-image-dialog::backdrop {
    background: rgba(var(--overlay-rgb), .95);
}

.news-image-dialog-panel {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    padding: 24px;
    place-items: center;
}

.news-image-dialog img {
    display: block;
    max-width: min(100%, 1500px);
    max-height: calc(100vh - 48px);
    object-fit: contain;
}

.news-image-dialog button {
    position: fixed;
    z-index: 3;
    top: 20px;
    right: 22px;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0 0 4px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: var(--white);
    font-size: 32px;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
}

html.news-dialog-is-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .news-detail-card {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr);
    }

    .news-detail-gallery {
        min-height: 600px;
    }
}

@media (max-width: 991px) {
    .news-archive .news-grid,
    .related-news .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-detail-card {
        grid-template-columns: 1fr;
    }

    .news-detail-gallery {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    .news-archive-heading,
    .related-news-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-archive .news-grid,
    .related-news .news-grid {
        grid-template-columns: 1fr;
    }

    .news-archive .news-media,
    .related-news .news-media {
        height: 250px;
    }

    .news-detail-gallery {
        aspect-ratio: 3 / 4;
    }

    .news-detail-content {
        padding: 25px 21px 30px;
    }

    .news-detail-arrow {
        width: 42px;
        height: 42px;
    }

    .news-detail-prev {
        left: 9px;
    }

    .news-detail-next {
        right: 9px;
    }

    .news-cursor-pagination {
        grid-template-columns: 1fr;
    }

    .news-cursor-pagination > span:empty {
        display: none;
    }

    .news-pagination-status {
        grid-row: 1;
    }

    .news-pagination-button,
    .news-pagination-button.is-next {
        width: 100%;
        justify-content: center;
        justify-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-archive .news-card,
    .related-news .news-card,
    .news-detail-slide,
    .news-back-link {
        transition: none;
    }
}
