/*
 * News section (/texty): landing page, listings, topics and article detail.
 * Everything is scoped under .hs-news and prefixed hsn- so nothing leaks into or out of hlidac.css.
 * Tokens mirror the Hlidac statu design system (colors_and_type.css of the design handoff).
 */
.hs-news {
    --hsn-blue: #0074E4;
    --hsn-blue-hover: #005CBB;
    --hsn-dark-blue: #003688;
    --hsn-black: #28313B;
    --hsn-grey: #6F6F6F;
    --hsn-light: #F0F3F7;
    --hsn-light-hover: #DCE4EF;
    --hsn-border: #E0E6ED;
    --hsn-red: #FF525B;
    --hsn-red-hover: #E6444D;
    --hsn-red-on-dark: #FF8A91;
    --hsn-orange: #FFA82F;
    --hsn-orange-text: #D07800;
    --hsn-teal: #1E9E85;
    --hsn-tint-red: #FDEDEE;
    --hsn-tint-orange: #FFF3E2;
    --hsn-tint-blue: #E8F2FD;
    --hsn-tint-teal: #E7F7F3;
    --hsn-on-dark-muted: #E0E6ED;
    --hsn-radius-sm: 4px;
    --hsn-radius-thumb: 8px;
    --hsn-radius-md: 12px;
    --hsn-shadow-hover: 0 10px 24px rgba(40, 49, 59, .10);
    --hsn-dur: .35s;
    --hsn-ease: ease;
    --hsn-placeholder: linear-gradient(135deg, #1A2340, #003688 60%, #0074E4);
    --hsn-hero-overlay: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2));
    /* Keeps the hero text legible where the photo shows through the lighter part of the overlay. */
    --hsn-hero-text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 32, 80, .6);
    /* Alpha .76 keeps the perex (#E0E6ED) above 4.5:1 and the title above 3:1 on a white photo. The perex reaches
       ~80 % and the title ~91 % of a desktop banner, so the fade to .30 starts at 82 %; .hsn-hero-title and
       .hsn-hero-perex add a text shadow on top. Below 992 px the text spans the whole banner (see the media query). */
    --hsn-hero-photo-overlay: linear-gradient(90deg, rgba(0, 54, 136, .86) 0%, rgba(0, 54, 136, .76) 82%, rgba(0, 54, 136, .30) 100%);

    font-family: 'Cabin', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: .3px;
    color: var(--hsn-black);
    padding-bottom: 64px;
}

.hs-news a {
    text-decoration: none;
}

.hsn-wrap {
    width: 100%;
    max-width: 1440px;
    padding-inline: clamp(1rem, 4vw, 64px);
    margin-inline: auto;
}

.hsn-section {
    margin-top: 48px;
}

.hsn-section--tight {
    margin-top: 24px;
}

.hsn-sec-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hsn-black);
    margin: 0;
}

.hsn-more {
    color: var(--hsn-blue);
    font-weight: 700;
    font-size: .875rem;
    letter-spacing: .6px;
    white-space: nowrap;
    transition: color var(--hsn-dur) var(--hsn-ease);
}

.hsn-more:hover {
    color: var(--hsn-blue-hover);
}

.hsn-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hsn-sec-head h2 {
    font-size: clamp(1.5rem, 2.5vw, 32px);
    font-weight: 700;
    margin: 0;
}

/* Thumbnails: the article image, or the brand gradient with an icon when the post has none. */
.hsn-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--hsn-radius-thumb);
    background: var(--hsn-placeholder);
    color: rgba(255, 255, 255, .85);
}

.hsn-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Hero + media ─────────────────────────────────────────── */
.hsn-top {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.hsn-top--single {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 991px) {
    .hsn-top {
        grid-template-columns: 1fr;
    }

    /* Single column: the hero text reaches the right edge, so the overlay must not fade there. */
    .hs-news {
        --hsn-hero-photo-overlay: linear-gradient(90deg, rgba(0, 54, 136, .86) 0%, rgba(0, 54, 136, .76) 100%);
    }
}

/* All slides share one grid cell, so the banner is as tall as its tallest slide and does not jump while rotating. */
.hsn-hero {
    position: relative;
    display: grid;
    min-height: 420px;
    border-radius: var(--hsn-radius-md);
    overflow: hidden;
    background: var(--hsn-hero-overlay), var(--hsn-dark-blue);
}

.hsn-hero-slide {
    position: relative;
    grid-area: 1 / 1;
    display: flex;
    visibility: hidden;
    opacity: 0;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: 100%;
    min-height: 420px;
    padding: clamp(24px, 4vw, 56px);
    padding-bottom: calc(clamp(24px, 4vw, 56px) + 44px);
    color: #fff;
    background-color: var(--hsn-dark-blue);
    background-image: var(--hsn-hero-overlay);
    background-size: cover;
    background-position: center;
}

.hsn-hero-slide.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--hsn-dur) var(--hsn-ease);
}

.hsn-hero--single .hsn-hero-slide {
    padding-bottom: clamp(24px, 4vw, 56px);
}

.hsn-hero-slide:hover {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .hsn-hero-slide.is-active {
        transition: none;
    }
}

.hsn-hero-pill {
    align-self: flex-start;
    border: 1px solid var(--hsn-red);
    color: var(--hsn-red-on-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--hsn-radius-sm);
}

.hsn-hero-cat {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    padding: 6px 12px;
    border-radius: var(--hsn-radius-sm);
}

.hsn-hero-title {
    text-shadow: var(--hsn-hero-text-shadow);
    font-size: clamp(1.75rem, 3.6vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .6px;
    margin: 0;
    max-width: 14em;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsn-hero-perex {
    text-shadow: var(--hsn-hero-text-shadow);
    font-size: clamp(1rem, 1.4vw, 20px);
    color: var(--hsn-on-dark-muted);
    margin: 0;
    max-width: 32em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsn-hero-cta {
    align-self: flex-start;
    margin-top: 8px;
    padding: .5rem 1rem;
    border-radius: var(--hsn-radius-sm);
    background: var(--hsn-red);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background var(--hsn-dur) var(--hsn-ease);
}

.hsn-hero-slide:hover .hsn-hero-cta {
    background: var(--hsn-red-hover);
}

.hsn-hero-pager {
    position: absolute;
    left: clamp(24px, 4vw, 56px);
    bottom: clamp(24px, 4vw, 56px);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hsn-hero-pager li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hsn-hero-pager li + li::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    background: rgba(255, 255, 255, .3);
}

.hsn-hero-pager li.is-active + li::before {
    background: var(--hsn-red);
}

.hsn-hero-pager button {
    border: 0;
    background: none;
    padding: 4px 2px;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: color var(--hsn-dur) var(--hsn-ease);
}

.hsn-hero-pager button:hover,
.hsn-hero-pager li.is-active button {
    color: #fff;
}

.hsn-hero-pager button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ── Panels shared by media, latest, tips and topics ─────── */
.hsn-panel {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hsn-border);
    border-radius: var(--hsn-radius-md);
    padding: 24px;
}

.hsn-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.hsn-media {
    padding-bottom: 16px;
}

.hsn-media-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--hsn-light);
    color: inherit;
}

/* Rows of a box live in .hsn-items, so the last one drops its divider whatever link follows the list. */
.hsn-items > :last-child {
    border-bottom: 0;
}

.hsn-media-outlet {
    flex: 0 0 92px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .4px;
    color: var(--hsn-grey);
    padding-top: 2px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsn-media-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    color: var(--hsn-black);
    margin: 0 0 4px;
    transition: color var(--hsn-dur) var(--hsn-ease);
}

.hsn-media-item:hover .hsn-media-title {
    color: var(--hsn-blue);
}

.hsn-media-meta {
    display: block;
    font-size: 12.5px;
    color: var(--hsn-grey);
}

.hsn-media-item > i {
    color: var(--hsn-red);
    margin-left: auto;
    flex: 0 0 auto;
    padding-top: 4px;
}

.hsn-media .hsn-more {
    align-self: flex-end;
    margin-top: auto;
    padding: 14px 0 6px;
    color: var(--hsn-red);
}

.hsn-media .hsn-more:hover {
    color: var(--hsn-red-hover);
}

/* ── Category cards ──────────────────────────────────────── */
.hsn-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1199px) {
    .hsn-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .hsn-cat-grid {
        grid-template-columns: 1fr;
    }
}

.hsn-cat {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: var(--hsn-radius-md);
    color: inherit;
    transition: transform var(--hsn-dur) var(--hsn-ease), box-shadow var(--hsn-dur) var(--hsn-ease);
}

.hsn-cat:hover {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: var(--hsn-shadow-hover);
}

.hsn-cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hsn-cat-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
}

.hsn-cat-head h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .4px;
    margin: 0;
}

.hsn-cat-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.hsn-cat-body .hsn-thumb {
    flex: 0 0 84px;
    height: 84px;
    font-size: 22px;
}

.hsn-cat-title {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--hsn-black);
}

.hsn-cat-perex {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--hsn-grey);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsn-cat-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--hsn-grey);
}

.hsn-cat-foot i {
    font-size: 14px;
}

/* Footer link of a card: opens the listing of the whole category. The text stays dark because the card accents
   fall below 4.5:1 on the tinted backgrounds at this size; only the arrow carries the accent of the card. */
.hsn-cat-more {
    padding-top: 14px;
    border-top: 1px solid rgba(40, 49, 59, .10);
    color: var(--hsn-black);
}

.hsn-cat-more:hover {
    color: var(--hsn-black);
    text-decoration: underline;
}

.hsn-cat--cases {
    background: var(--hsn-tint-red);
}

.hsn-cat--cases .hsn-cat-icon {
    background: var(--hsn-red);
}

.hsn-cat--cases .hsn-cat-foot i,
.hsn-cat--cases .hsn-cat-more i {
    color: var(--hsn-red);
}

.hsn-cat--analyses {
    background: var(--hsn-tint-orange);
}

.hsn-cat--analyses .hsn-cat-icon {
    background: var(--hsn-orange);
}

.hsn-cat--analyses .hsn-cat-foot i,
.hsn-cat--analyses .hsn-cat-more i {
    color: var(--hsn-orange-text);
}

.hsn-cat--comments {
    background: var(--hsn-tint-blue);
}

.hsn-cat--comments .hsn-cat-icon {
    background: var(--hsn-blue);
}

.hsn-cat--comments .hsn-cat-foot i,
.hsn-cat--comments .hsn-cat-more i {
    color: var(--hsn-blue);
}

.hsn-cat--platform {
    background: var(--hsn-tint-teal);
}

.hsn-cat--platform .hsn-cat-icon {
    background: var(--hsn-teal);
}

.hsn-cat--platform .hsn-cat-foot i,
.hsn-cat--platform .hsn-cat-more i {
    color: var(--hsn-teal);
}

/* ── Bottom trio ─────────────────────────────────────────── */
.hsn-bottom {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1199px) {
    .hsn-bottom {
        grid-template-columns: 1fr 1fr;
    }

    .hsn-bottom .hsn-latest {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .hsn-bottom {
        grid-template-columns: 1fr;
    }
}

.hsn-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--hsn-light);
    color: inherit;
}

.hsn-row .hsn-thumb {
    flex: 0 0 64px;
    height: 64px;
    font-size: 18px;
}

.hsn-row-text {
    min-width: 0;
}

.hsn-row-title {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 3px;
    color: var(--hsn-black);
    transition: color var(--hsn-dur) var(--hsn-ease);
}

.hsn-row:hover .hsn-row-title {
    color: var(--hsn-blue);
}

.hsn-row-perex {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--hsn-grey);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsn-row-date {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 12.5px;
    color: var(--hsn-grey);
    white-space: nowrap;
    padding-top: 3px;
}

@media (max-width: 575px) {
    .hsn-row-date {
        display: none;
    }
}

.hsn-tips {
    background: var(--hsn-light);
    border: 0;
}

.hsn-tips-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hsn-tips-head h3 {
    font-size: clamp(1.25rem, 1.8vw, 26px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .5px;
    margin: 4px 0 14px;
    text-transform: uppercase;
}

.hsn-tips-mark {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--hsn-black);
    color: #fff;
    font-size: 22px;
}

.hsn-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(40, 49, 59, .08);
    color: inherit;
}

.hsn-tip-icon {
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 50%;
    background: var(--hsn-blue);
    color: #fff;
    font-size: 14px;
}

.hsn-tip-text {
    min-width: 0;
}

.hsn-tip-title {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--hsn-black);
    transition: color var(--hsn-dur) var(--hsn-ease);
}

.hsn-tip:hover .hsn-tip-title {
    color: var(--hsn-blue-hover);
}

.hsn-tip-perex {
    font-size: 13px;
    color: var(--hsn-grey);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hsn-tip > .fa-chevron-right {
    margin-left: auto;
    color: var(--hsn-grey);
    font-size: 12px;
    padding-top: 8px;
}

.hsn-tips .hsn-more {
    margin-top: auto;
    padding-top: 14px;
}

.hsn-topic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.hsn-topic-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.hsn-topic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    background: var(--hsn-light);
    color: var(--hsn-blue);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    padding: 12px 10px;
    border-radius: var(--hsn-radius-sm);
    overflow-wrap: anywhere;
    transition: background var(--hsn-dur) var(--hsn-ease);
}

.hsn-topic:hover {
    background: var(--hsn-light-hover);
    color: var(--hsn-blue);
}

.hsn-topic-count {
    font-weight: 400;
    font-size: 12.5px;
    color: var(--hsn-grey);
}

.hsn-topics .hsn-more {
    margin-top: auto;
    padding-top: 16px;
}

/* ── Listings, topics overview and detail ────────────────── */
.hsn-page-head {
    padding-block: 8px 24px;
}

.hsn-page-head h1 {
    font-size: clamp(1.75rem, 3vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .5px;
    margin: 6px 0 0;
}

.hsn-page-lead {
    margin: 10px 0 0;
    max-width: 48em;
    color: var(--hsn-grey);
}

.hsn-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--hsn-grey);
    margin-bottom: 14px;
}

.hsn-crumbs a {
    color: var(--hsn-blue);
    font-weight: 700;
}

.hsn-crumbs a:hover {
    color: var(--hsn-blue-hover);
}

.hsn-list .hsn-row .hsn-thumb {
    flex-basis: 96px;
    height: 96px;
    font-size: 24px;
}

.hsn-list .hsn-row-title {
    font-size: 18px;
}

.hsn-list .hsn-row-perex {
    font-size: 14.5px;
    -webkit-line-clamp: 3;
}

@media (max-width: 575px) {
    .hsn-list .hsn-row .hsn-thumb {
        flex-basis: 64px;
        height: 64px;
        font-size: 18px;
    }
}

.hsn-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--hsn-grey);
}

.hsn-pager-link {
    padding: .5rem 1rem;
    border: 1px solid var(--hsn-border);
    border-radius: var(--hsn-radius-sm);
    color: var(--hsn-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: border-color var(--hsn-dur) var(--hsn-ease);
}

.hsn-pager-link:hover {
    border-color: var(--hsn-blue);
    color: var(--hsn-blue);
}

.hsn-pager-link.is-disabled {
    visibility: hidden;
}

.hsn-empty {
    padding: 24px 0;
    color: var(--hsn-grey);
}

.hsn-detail {
    max-width: 860px;
    margin-inline: auto;
}

.hsn-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--hsn-grey);
}

.hsn-detail-cat {
    background: var(--hsn-tint-blue);
    color: var(--hsn-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--hsn-radius-sm);
}

.hsn-detail-cat:hover {
    background: var(--hsn-light-hover);
    color: var(--hsn-blue);
}

.hsn-detail-image {
    margin: 24px 0 0;
}

.hsn-detail-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--hsn-radius-md);
}

.hsn-detail-body {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.6;
}

.hsn-detail-body img {
    max-width: 100%;
    height: auto;
}

.hsn-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hsn-border);
}

.hsn-detail-tags .hsn-topic {
    padding: 8px 14px;
}

.hsn-unavailable {
    max-width: 640px;
    margin: 48px auto;
    text-align: center;
}

.hsn-unavailable .hsn-tips-mark {
    margin: 0 auto 16px;
}

/* Fewer than three bottom panels (a WordPress request failed or returned nothing): share the row evenly. */
.hsn-bottom--partial {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Category card split into two links: the heading opens the category, the rest opens the article. */
a.hsn-cat-head {
    color: inherit;
}

a.hsn-cat-head:hover h3 {
    color: var(--hsn-blue);
}

.hsn-cat-head h3 {
    transition: color var(--hsn-dur) var(--hsn-ease);
}

.hsn-cat-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 16px;
    color: inherit;
}

.hsn-cat-link:hover {
    color: inherit;
}

.hsn-cat-link:hover .hsn-cat-title {
    color: var(--hsn-blue);
}

.hsn-cat-title {
    transition: color var(--hsn-dur) var(--hsn-ease);
}
