.page-news .content-area {
    background: #f3f5f8;
}

/* News page wrapper */
.page-news .news-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 80px 10px;
    box-sizing: border-box;
}


/* =====================================================
   Company News Header
===================================================== */

.news-page-header {
    background-image: url("../img/qdts_signature_slide01.jpg");
    background-position: center 63%;
}


/* =====================================================
   News List Blocks
===================================================== */

.page-news .news-list {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.page-news .news-article {
    position: relative;
    background: #fcfcfd;
    border: 1px solid #e9e9e9;
    border-radius: 20px;
    padding: 34px 34px 36px;
    box-sizing: border-box;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);

    scroll-margin-top: 130px;
}

.page-news .news-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 34px;
    right: 34px;
    height: 4px;
    border-radius: 0 0 10px 10px;
}

/* Style bar colors match article type */
.page-news .news-article-announcement::before {
    background: #a51b25;
}

.page-news .news-article-location::before {
    background: #d35400;
}

.page-news .news-article-product::before {
    background: #1a3f74;
}

.page-news .news-article-promo::before {
    background: #0f766e;
}

.page-news .news-article-other::before {
    background: #2f7a4b;
}

.page-news .news-article-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 10px 0 18px 0;
}

/* Article Title */
.page-news .news-article-title {
    margin: 0;
    font-size: 34px;
    font-weight: 750;
    line-height: 1.2;
    color: #1a3f74;
    flex: 1;
    min-width: 0;
}


/* =====================================================
   Share Link (state, button, wrapper)
===================================================== */

.page-news .news-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Share button */
.page-news .news-share-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;

    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);

    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-news .news-share-btn img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.82;
}

.page-news .news-share-btn:focus-visible {
    outline: 1px solid rgba(26, 63, 116, 0.15);
}

/* Share label text */
.page-news .news-share-text {
    display: inline-block;
    min-width: 90px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3f74;
    transition: color 0.2s ease;
}

/* Is copied state toggled from JS - temporary state function */
.page-news .news-share-btn.is-copied {
    background: #e8f6ed;
    border-color: #2f7a4b;
    transform: scale(0.96);
}

.page-news .news-share-btn.is-copied img {
    opacity: 1;
}

.page-news .news-share-btn.is-copied + .news-share-text {
    color: #2f7a4b;
    font-weight: 650;
}

/* Article metadata */
.page-news .news-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 24px 0;
}

/* Article Tags */
.page-news .news-tag,
.page-news .news-article-date {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.page-news .news-tag-announcement {
    background: #fdecec;
    color: #a51b25;
}

.page-news .news-tag-location {
    background: #fff1e6;
    color: #d35400;
}

.page-news .news-tag-product {
    background: #eef3fb;
    color: #1a3f74;
}

.page-news .news-tag-promo {
    background: #e6f7f6;
    color: #0f766e;
}

.page-news .news-tag-other {
    background: #e8f6ed;
    color: #2f7a4b;
}

.page-news .news-article-date {
    background: #f3f4f6;
    color: #666;
}

/* Article Image */
.page-news .news-article-image {
    width: 100%;
    max-width: 860px;
    height: auto;
    display: block;
    margin: 0 auto 26px auto;
    border-radius: 16px;
    object-fit: cover;
    background: #f3f3f3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Article Body */
.page-news .news-article-body {
    max-width: 860px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: #444;
}

.page-news .news-article-body p {
    margin: 0 0 18px 0;
}

.page-news .news-article-body p:last-child {
    margin-bottom: 0;
}

/* Article Lists */
.page-news .news-article-body ul {
    margin: 0 0 20px 24px;
    padding: 0;
}

.page-news .news-article-body li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.6;
    color: #444;
}

.page-news .news-article-body strong {
    font-weight: 700;
    color: #111;
}

/* Article Links */
.page-news .news-article-body a {
    color: #1a3f74;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 63, 116, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}


/* =====================================================
   News Filters
===================================================== */

.page-news .news-filter-panel {
    margin-bottom: 30px;
    padding: 20px 22px;
    background: #fcfcfd;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.page-news .news-filter-toggle {
    display: none;
}

.page-news .news-filter-body {
    display: block;
}

.page-news .news-filter-panel-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.page-news .news-filter-arrow {
    display: none;
    width: 10px;
    height: 10px;
    margin-left: 12px;

    border-right: 2px solid #1a3f74;
    border-bottom: 2px solid #1a3f74;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.page-news .news-filter-label {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #666;
}

.page-news .news-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    flex: 1;
    justify-content: center;
}

.page-news .news-filter-btn {
    appearance: none;
    border: 1px solid #d7dde5;
    background: #f1f3f5;
    color: #4e5b6b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    line-height: 1;
    padding: 8px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Active state based on article tag colour */
.page-news .news-filter-btn-announcement.active {
    background: #fdecec;
    border-color: #f3c7cb;
    color: #a51b25;
}

.page-news .news-filter-btn-location.active {
    background: #fff1e6;
    border-color: #ffd2b3;
    color: #d35400;
}

.page-news .news-filter-btn-product.active {
    background: #eef3fb;
    border-color: #cbd8ea;
    color: #1a3f74;
}

.page-news .news-filter-btn-promo.active {
    background: #e6f7f6;
    border-color: #b8e3e0;
    color: #0f766e;
}

.page-news .news-filter-btn-other.active {
    background: #e8f6ed;
    border-color: #b7dfc4;
    color: #2f7a4b;
}

.page-news .news-filter-btn-all.active {
    background: #1a3f74;
    border-color: #1a3f74;
    color: #fff;
}


/* =====================================================
   Media Queries
===================================================== */

/* Mobile optimization */
@media (max-width: 899px) {

    .page-news .news-page {
        padding: 25px 20px 10px;
    }

    .page-news .news-list {
        gap: 24px;
    }

    .page-news .news-article {
        padding: 24px 20px 26px;
        border-radius: 18px;
        scroll-margin-top: 90px;
    }

    .page-news .news-article::before {
        left: 20px;
        right: 20px;
    }

    /* Mobile Header and Share Button adjustments */
    .page-news .news-article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-news .news-article-title {
        margin: 0;
        font-size: 28px;
        line-height: 1.2;
    }

    .page-news .news-share {
        margin-top: 2px;
        gap: 8px;
    }

    .page-news .news-share-btn {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .page-news .news-share-btn img {
        width: 18px;
        height: 18px;
    }

    .page-news .news-share-text {
        min-width: 82px;
        font-size: 13px;
    }

    .page-news .news-article-meta {
        gap: 8px;
        margin: 0 0 20px 0;
    }

    .page-news .news-tag,
    .page-news .news-article-date {
        padding: 6px 11px;
        font-size: 12px;
        letter-spacing: 0.6px;
    }

    .page-news .news-article-image {
        max-width: none;
        margin: 0 auto 22px auto;
        border-radius: 14px;
    }

    .page-news .news-article-body {
        max-width: none;
        font-size: 16px;
        line-height: 1.65;
    }

    .page-news .news-article-body p {
        margin: 0 0 16px 0;
    }

    .page-news .news-article-body ul {
        margin: 0 0 18px 22px;
    }

    .page-news .news-article-body li {
        margin-bottom: 9px;
        font-size: 16px;
        line-height: 1.55;
    }

    /* ------ Filter collapse ------ */
    .page-news .news-filter-panel {
        padding: 0;
        overflow: hidden;
    }

    .page-news .news-filter-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 18px;
        border: 0;
        background: transparent;
        color: #1a3f74;
        font: inherit;
        cursor: pointer;
        box-sizing: border-box;
    }

    .page-news .news-filter-toggle-label {
        font-size: 13px;
        font-weight: 750;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: #666;
    }

    .page-news .news-filter-arrow {
        display: inline-block;
    }

    .page-news .news-filter-panel.is-open .news-filter-arrow {
        transform: rotate(225deg) translateY(-1px);
    }

    .page-news .news-filter-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .page-news .news-filter-panel.is-open .news-filter-body {
        max-height: 420px;
    }

    .page-news .news-filter-panel-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Hide duplicate label on mobile */
    .page-news .news-filter-label {
        display: none;
    }

    .page-news .news-filter-bar {
        width: 100%;
        gap: 10px;
        justify-content: flex-start;
    }

    .page-news .news-filter-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (hover: hover) and (pointer: fine) {
    /* Hover styling applied if .is-copied NOT present */
    .page-news .news-share-btn:hover:not(.is-copied) {
        background: #eef3fb;
        border-color: rgba(26, 63, 116, 0.18);
        transform: translateY(-1px);
    }

    .page-news .news-share-btn:hover:not(.is-copied) img {
        opacity: 1;
    }

    /* Article links */
    .page-news .news-article-body a:hover {
        color: #16355f;
        border-bottom-color: #16355f;
    }

    /* Filter buttons */
    .page-news .news-filter-btn:hover:not(.active) {
        background: #eceff3;
        border-color: #c7d0db;
        color: #2f3d4f;
    }
}
