﻿/* ==========================================================================
   NEWS PAGE — SIEGWART  |  Editorial Corporate Style
   Navy #002D62 · Accent #0096FF · Refined Light Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,800;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
    --n-navy: #002D62;
    --n-navy-dk: #001b3d;
    --n-blue: #0060B6;
    --n-accent: #0096FF;
    --n-white: #ffffff;
    --n-snow: #f7f9fc;
    --n-fog: #eef1f7;
    --n-mist: #dde3ee;
    --n-steel: #8899b4;
    --n-slate: #4a5772;
    --n-ink: #0d1b2a;
    --n-border: #e2e8f2;
    --n-shadow-sm: 0 2px 10px rgba(0,29,61,0.07);
    --n-shadow-md: 0 6px 24px rgba(0,29,61,0.10);
    --n-shadow-lg: 0 16px 52px rgba(0,29,61,0.14);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════════ */
.breadcrumb-section {
    padding: 14px 0;
    background: var(--n-white);
    border-bottom: 1px solid var(--n-border);
    font-family: var(--font-body);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: .82rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.1rem;
    color: var(--n-steel);
    padding: 0 4px;
}

.breadcrumb-item a {
    color: var(--n-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

    .breadcrumb-item a:hover {
        color: var(--n-navy);
    }

.breadcrumb-item.active {
    color: var(--n-slate);
    font-weight: 500;
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "‹";
}

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.news-hero {
    background: var(--n-navy);
    padding: 88px 0 68px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--n-accent);
}

    .news-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
        background-size: 32px 32px;
        pointer-events: none;
    }

    .news-hero::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, var(--n-accent), var(--n-blue));
    }

[dir="rtl"] .news-hero::after {
    left: auto;
    right: 0;
}

.news-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--n-accent);
    margin-bottom: 18px;
}

    .hero-eyebrow::before, .hero-eyebrow::after {
        content: '';
        display: block;
        width: 28px;
        height: 1px;
        background: var(--n-accent);
        opacity: .5;
    }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--n-white);
    margin: 0 0 14px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(.92rem, 1.6vw, 1.05rem);
    color: rgba(255,255,255,.65);
    margin-bottom: 0;
    font-weight: 300;
}

.hero-divider {
    width: 48px;
    height: 3px;
    background: var(--n-accent);
    margin: 22px auto 0;
    border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════════
   NEWS CONTENT
   ══════════════════════════════════════════════════════════════════ */
.news-content {
    padding: 68px 0 90px;
    background: var(--n-snow);
    font-family: var(--font-body);
}

/* ══════════════════════════════════════════════════════════════════
   FEATURED NEWS
   ══════════════════════════════════════════════════════════════════ */
.featured-news {
    background: var(--n-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--n-shadow-lg);
    border: 1px solid var(--n-mist);
    margin-bottom: 60px;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

    .featured-news:hover {
        box-shadow: 0 22px 68px rgba(0,29,61,0.17);
        transform: translateY(-2px);
    }

    .featured-news::before {
        content: '';
        display: block;
        height: 4px;
        background: linear-gradient(90deg, var(--n-navy), var(--n-accent));
    }

.featured-image {
    position: relative;
    height: 100%;
    min-height: 440px;
    background: var(--n-fog);
    overflow: hidden;
}

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s var(--ease);
    }

.featured-news:hover .featured-image img {
    transform: scale(1.03);
}

.featured-no-image {
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--n-mist);
}

.featured-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--n-navy);
    color: var(--n-white);
    padding: 6px 16px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    box-shadow: var(--n-shadow-sm);
}

[dir="rtl"] .featured-badge {
    left: auto;
    right: 18px;
}

.featured-content {
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--n-steel);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

    .news-date i {
        color: var(--n-accent);
    }

.featured-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.6vw, 2.4rem);
    font-weight: 700;
    color: var(--n-ink);
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -.01em;
    transition: color .2s;
}

.featured-news:hover .featured-title {
    color: var(--n-blue);
}

.featured-excerpt {
    font-size: .96rem;
    line-height: 1.82;
    color: var(--n-slate);
    margin-bottom: 30px;
    font-weight: 400;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--n-navy);
    color: var(--n-white);
    padding: 12px 26px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    box-shadow: 0 4px 16px rgba(0,45,98,.2);
    transition: background .2s, box-shadow .2s, transform .2s var(--ease);
}

    .btn-read-more:hover {
        background: var(--n-blue);
        color: var(--n-white);
        box-shadow: 0 7px 22px rgba(0,96,182,.26);
        transform: translateY(-2px);
    }

    .btn-read-more i {
        transition: transform .2s var(--ease);
    }

    .btn-read-more:hover i {
        transform: translateX(4px);
    }

[dir="rtl"] .btn-read-more:hover i {
    transform: translateX(-4px);
}

/* ══════════════════════════════════════════════════════════════════
   SECTION LABEL
   ══════════════════════════════════════════════════════════════════ */
.news-section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    font-family: var(--font-body);
}

    .news-section-label span {
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .22em;
        text-transform: uppercase;
        color: var(--n-navy);
        white-space: nowrap;
    }

    .news-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--n-border);
    }

/* ══════════════════════════════════════════════════════════════════
   NEWS GRID
   ══════════════════════════════════════════════════════════════════ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--n-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--n-shadow-sm);
    border: 1px solid var(--n-border);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .news-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--n-navy), var(--n-accent));
        opacity: 0;
        transition: opacity .22s;
        z-index: 1;
    }

    .news-card:hover {
        box-shadow: var(--n-shadow-lg);
        transform: translateY(-4px);
        border-color: rgba(0,96,182,.16);
    }

        .news-card:hover::before {
            opacity: 1;
        }

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-image {
    position: relative;
    height: 210px;
    background: var(--n-fog);
    overflow: hidden;
    flex-shrink: 0;
}

    .news-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .5s var(--ease);
    }

.news-card:hover .news-card-image img {
    transform: scale(1.06);
}

.news-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--n-mist);
}

.news-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,29,61,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .22s;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

.view-news {
    color: var(--n-white);
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
}

.news-card-content {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--n-steel);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

    .news-card-date i {
        color: var(--n-accent);
    }

.news-card-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--n-ink);
    margin-bottom: 10px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
    flex: 1;
}

.news-card:hover .news-card-title {
    color: var(--n-blue);
}

.news-card-excerpt {
    color: var(--n-slate);
    font-size: .87rem;
    line-height: 1.68;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-card-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .74rem;
    font-weight: 700;
    color: var(--n-blue);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 14px;
    transition: gap .2s, color .2s;
}

.news-card:hover .news-card-read {
    gap: 9px;
    color: var(--n-navy);
}

/* ══════════════════════════════════════════════════════════════════
   ARTICLE DETAIL — PROFESSIONAL LAYOUT
   ══════════════════════════════════════════════════════════════════ */
.news-article {
    padding: 0 0 90px;
    background: var(--n-white);
    font-family: var(--font-body);
}

.article-container {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 52px;
}

/* Header */
.article-header {
    margin-bottom: 36px;
}

.article-meta {
    margin-bottom: 14px;
}

.article-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--n-steel);
    background: var(--n-fog);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--n-border);
}

    .article-date i {
        color: var(--n-accent);
    }

.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--n-ink);
    line-height: 1.18;
    letter-spacing: -.025em;
    margin: 20px 0 20px;
}

.title-divider {
    width: 44px;
    height: 3px;
    background: var(--n-accent);
    border-radius: 2px;
}

[dir="rtl"] .title-divider {
    margin-right: 0;
    margin-left: auto;
}

/* Article image */
.article-image {
    margin-bottom: 44px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--n-shadow-md);
    border: 1px solid var(--n-mist);
}

    .article-image img {
        width: 100%;
        height: auto;
        display: block;
    }

/* ── Article Body — the most important part ── */
.article-content {
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 2.0;
    color: #3d4f6e;
    margin-bottom: 52px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Arabic line height */
[dir="rtl"] .article-content {
    line-height: 2.15;
    font-size: 1.1rem;
    word-spacing: 0.03em;
}

.article-content p {
    margin: 0 0 1.75rem;
    font-size: 1.08rem;
    line-height: 2.0;
    color: #3d4f6e;
}

[dir="rtl"] .article-content p {
    line-height: 2.15;
    font-size: 1.1rem;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--n-ink);
    margin: 2.4rem 0 1rem;
    line-height: 1.25;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--n-ink);
    margin: 2rem 0 .9rem;
    line-height: 1.3;
}

.article-content strong {
    color: var(--n-ink);
    font-weight: 700;
}

.article-content a {
    color: var(--n-blue);
    text-decoration: underline;
    transition: color .2s;
}

    .article-content a:hover {
        color: var(--n-navy);
    }

.article-content ul, .article-content ol {
    padding-left: 1.6rem;
    margin-bottom: 1.75rem;
}

[dir="rtl"] .article-content ul,
[dir="rtl"] .article-content ol {
    padding-left: 0;
    padding-right: 1.6rem;
}

.article-content li {
    margin-bottom: .6rem;
    line-height: 1.95;
}

.article-content blockquote {
    border-left: 4px solid var(--n-accent);
    margin: 2.2rem 0;
    padding: 18px 26px;
    background: var(--n-fog);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--n-slate);
    line-height: 1.9;
}

[dir="rtl"] .article-content blockquote {
    border-left: none;
    border-right: 4px solid var(--n-accent);
    border-radius: 10px 0 0 10px;
}

/* Article footer */
.article-footer {
    padding-top: 28px;
    border-top: 1px solid var(--n-border);
}

.article-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--n-navy);
    color: var(--n-white);
    padding: 11px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 3px 12px rgba(0,45,98,.2);
    transition: background .2s, transform .2s var(--ease);
    cursor: pointer;
    letter-spacing: .02em;
}

    .btn-back:hover {
        background: var(--n-blue);
        color: var(--n-white);
        transform: translateY(-2px);
    }

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--n-white);
    color: var(--n-navy);
    padding: 11px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .83rem;
    font-weight: 700;
    border: 1.5px solid var(--n-mist);
    box-shadow: var(--n-shadow-sm);
    transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
    cursor: pointer;
    letter-spacing: .02em;
}

    .btn-share:hover {
        background: var(--n-navy);
        color: var(--n-white);
        border-color: var(--n-navy);
        transform: translateY(-2px);
    }

/* ══════════════════════════════════════════════════════════════════
   SHARE MODAL — Clean & Professional
   ══════════════════════════════════════════════════════════════════ */
.news-share-modal.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,29,61,.22);
    font-family: var(--font-body);
}

.news-share-modal .modal-header {
    background: var(--n-white);
    border-bottom: 1px solid var(--n-border);
    padding: 18px 22px 16px;
}

.news-share-modal .modal-title {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 800;
    color: var(--n-ink);
    letter-spacing: .02em;
}

.news-share-modal .modal-header .btn-close {
    opacity: .5;
    transition: opacity .2s;
}

    .news-share-modal .modal-header .btn-close:hover {
        opacity: 1;
    }

.news-share-modal .modal-body {
    padding: 20px 22px 24px;
}

/* Share pills — compact & refined */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    color: var(--n-white) !important;
    transition: opacity .18s, transform .18s var(--ease);
    border: none;
}

    .share-btn i {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .share-btn:hover {
        opacity: .88;
        transform: translateX(3px);
    }

[dir="rtl"] .share-btn:hover {
    transform: translateX(-3px);
}

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #111111;
}

.share-linkedin {
    background: #0A66C2;
}

.share-whatsapp {
    background: #128C7E;
}

/* Copy URL row */
.share-copy-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--n-border);
}

.share-copy-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: .8rem;
    color: var(--n-slate);
    background: var(--n-fog);
    border: 1px solid var(--n-border);
    border-radius: 8px;
    padding: 9px 12px;
    outline: none;
    min-width: 0;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    color: var(--n-white);
    background: var(--n-navy);
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}

    .share-copy-btn:hover {
        background: var(--n-blue);
    }

/* ══════════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    font-family: var(--font-body);
}

.empty-icon {
    font-size: 4rem;
    color: var(--n-mist);
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--n-ink);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--n-slate);
    font-size: .96rem;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .news-hero {
        padding: 68px 0 56px;
    }

    .news-content {
        padding: 52px 0 68px;
    }

    .featured-image {
        min-height: 360px;
    }

    .featured-content {
        padding: 36px 38px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 58px 0 46px;
    }

    .news-content {
        padding: 42px 0 60px;
    }

    .news-article {
        padding: 0 0 68px;
    }

    .article-container {
        padding-top: 36px;
    }

    .featured-news .row {
        flex-direction: column;
    }

    .featured-image {
        min-height: 250px;
    }

    .featured-content {
        padding: 26px 22px 32px;
    }

    .featured-title {
        font-size: 1.45rem;
    }

    .btn-read-more {
        width: 100%;
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 18px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-actions {
        flex-direction: column;
    }

    .btn-back, .btn-share {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .news-hero {
        padding: 48px 0 38px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .featured-image {
        min-height: 210px;
    }

    .featured-content {
        padding: 20px 16px 26px;
    }

    .featured-excerpt {
        font-size: .88rem;
    }

    .news-card-image {
        height: 185px;
    }

    .news-card-content {
        padding: 16px 16px 18px;
    }

    .article-container {
        padding-top: 28px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-content {
        font-size: 1rem;
    }

    [dir="rtl"] .article-content {
        font-size: 1.02rem;
    }

    .article-image {
        border-radius: 12px;
        margin-bottom: 32px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   CSS REVEAL — no JS dependency, always works
   ══════════════════════════════════════════════════════════════════ */
@keyframes sw-fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sw-reveal {
    animation: sw-fadeUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ══════════════════════════════════════════════════════════════════
   PRINT + ACCESSIBILITY
   ══════════════════════════════════════════════════════════════════ */
@media print {
    .news-hero, .breadcrumb-section, .article-footer {
        display: none;
    }

    .news-card, .featured-news {
        box-shadow: none;
        border: 1px solid var(--n-mist);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--n-accent);
    outline-offset: 3px;
}
