﻿:root {
    --news-dark-blue: #0c4677;
    --news-deep-blue: #075487;
    --news-primary: #168bd1;
    --news-secondary: #20a9df;
    --news-light-blue: #eaf7ff;
    --news-background: #f4f9fd;
    --news-border: #d8e8f3;
    --news-text: #123b5e;
    --news-muted: #7890a5;
    --news-white: #ffffff;
    --news-yellow: #efbb18;
    --news-shadow: 0 22px 55px rgba(19, 83, 127, 0.12);
}

.news-hero,
.news-details-hero {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient( 115deg, #0c4e7e 0%, #0871ad 48%, #2197dc 100% );
    color: var(--news-white);
}

.news-hero-container,
.news-details-hero-container {
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 90px;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

    .news-breadcrumb a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: color 0.25s ease;
    }

        .news-breadcrumb a:hover {
            color: var(--news-white);
        }

    .news-breadcrumb i {
        font-size: 9px;
    }

.news-hero-content {
    max-width: 750px;
}

.news-hero-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.news-hero-content h1 {
    margin: 0;
    font-size: clamp(37px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.3;
}

.news-hero-content p {
    max-width: 650px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.9;
}

.news-hero-decoration {
    position: absolute;
    border-radius: 50%;
    border: 50px solid rgba(255, 255, 255, 0.035);
}

    .news-hero-decoration.decoration-one {
        width: 310px;
        height: 310px;
        top: -115px;
        left: -60px;
    }

    .news-hero-decoration.decoration-two {
        width: 260px;
        height: 260px;
        right: -110px;
        bottom: -115px;
    }

.news-page-section {
    position: relative;
    z-index: 5;
    margin-top: -55px;
    padding-bottom: 75px;
    background: linear-gradient( 180deg, transparent 0, transparent 55px, var(--news-background) 55px, var(--news-background) 100% );
}

.news-page-wrapper {
    padding: 26px 18px 30px;
    border: 1px solid rgba(215, 232, 243, 0.85);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--news-shadow);
}
.news-page-section > .container {
    width: min(96%, 1680px);
    max-width: 1680px;
}

.news-page-wrapper {
    padding: 28px 22px 32px !important;
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 2px 0 24px;
}

.news-category-tabs {
    display: flex;
    align-items: center;
    gap: 13px;
}

.news-category-button {
    min-width: 130px;
    height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--news-border);
    border-radius: 10px;
    background: var(--news-white);
    color: #335c7e;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(30, 87, 126, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

    .news-category-button i {
        color: #218acb;
    }

    .news-category-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(27, 111, 165, 0.11);
    }

    .news-category-button.active {
        border-color: transparent;
        color: var(--news-white);
        background: linear-gradient( 135deg, #077ec0, #20a4df );
        box-shadow: 0 12px 25px rgba(20, 143, 207, 0.24);
    }

        .news-category-button.active i {
            color: var(--news-white);
        }

.news-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-search-box {
    position: relative;
    width: 310px;
}

    .news-search-box input {
        width: 100%;
        height: 49px;
        padding: 0 45px 0 16px;
        border: 1px solid var(--news-border);
        border-radius: 10px;
        outline: none;
        background: #fff;
        color: var(--news-text);
        font-family: inherit;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }

        .news-search-box input::placeholder {
            color: #a5b4c1;
        }

        .news-search-box input:focus {
            border-color: #2b9edb;
            box-shadow: 0 0 0 4px rgba(43, 158, 219, 0.1);
        }

    .news-search-box > i {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #7492aa;
    }

.news-filter-button {
    height: 49px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--news-border);
    border-radius: 10px;
    background: var(--news-white);
    color: var(--news-text);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.news-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr);
    gap: 26px;
    direction: rtl;
    align-items: start;
}

.featured-news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9e8f1;
    border-radius: 14px;
    background: var(--news-white);
    box-shadow: 0 13px 30px rgba(20, 77, 116, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .featured-news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 38px rgba(20, 77, 116, 0.13);
    }

.featured-news-image {
    position: relative;
    height: 390px;
    display: block;
    overflow: hidden;
    background: #edf5fa;
}

    .featured-news-image::after,
    .news-card-image::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 42%;
        background: linear-gradient( to top, rgba(3, 34, 58, 0.63), transparent );
        pointer-events: none;
    }

    .featured-news-image img,
    .news-card-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.featured-news-card:hover .featured-news-image img,
.news-card:hover .news-card-image img {
    transform: scale(1.045);
}

.news-category-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    min-width: 82px;
    padding: 7px 14px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient( 135deg, #7751c8, #a65eda );
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 7px 16px rgba(70, 50, 130, 0.17);
}

.featured-badge {
    background: linear-gradient( 135deg, #1684d1, #36a9ea );
}

.featured-news-date,
.news-card-date {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.featured-news-body {
    padding: 27px 29px 25px;
}

    .featured-news-body h2 {
        margin: 0 0 14px;
        color: var(--news-text);
        font-size: 23px;
        font-weight: 800;
        line-height: 1.6;
    }

        .featured-news-body h2 a,
        .news-card-body h3 a {
            color: inherit;
            text-decoration: none;
        }

    .featured-news-body p {
        min-height: 58px;
        margin: 0 0 24px;
        color: var(--news-muted);
        font-size: 14px;
        line-height: 2;
    }

.read-more-button {
    width: fit-content;
    min-width: 122px;
    height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid #cbdfea;
    border-radius: 9px;
    color: #1785c8;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

    .read-more-button:hover {
        border-color: #198fd0;
        color: #fff;
        background: #198fd0;
    }

.news-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 18px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce9f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(20, 77, 116, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 17px 32px rgba(20, 77, 116, 0.12);
    }

.news-card-image {
    position: relative;
    height: 165px;
    display: block;
    overflow: hidden;
    background: #edf5fa;
}

.news-card-body {
    padding: 15px 16px 14px;
}

    .news-card-body h3 {
        height: 50px;
        margin: 0 0 7px;
        overflow: hidden;
        color: var(--news-text);
        font-size: 13px;
        font-weight: 800;
        line-height: 1.85;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .news-card-body p {
        height: 44px;
        margin: 0 0 10px;
        overflow: hidden;
        color: var(--news-muted);
        font-size: 11.5px;
        line-height: 1.9;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #198dd0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

    .news-card-link i {
        transition: transform 0.25s ease;
    }

    .news-card-link:hover i {
        transform: translateX(-4px);
    }

.news-pagination {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pagination-page,
.pagination-navigation {
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e6ef;
    border-radius: 8px;
    color: #456b89;
    background: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pagination-page {
    width: 39px;
}

.pagination-navigation {
    min-width: 85px;
    padding: 0 14px;
    gap: 8px;
}

    .pagination-page:hover,
    .pagination-navigation:hover,
    .pagination-page.active {
        border-color: #158bd0;
        color: #fff;
        background: #158bd0;
    }

    .pagination-navigation.disabled {
        pointer-events: none;
        opacity: 0.4;
    }

.news-empty-state,
.news-no-filter-results {
    padding: 65px 20px;
    text-align: center;
}

.news-no-filter-results {
    grid-column: 1 / -1;
}

.news-empty-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #138fd1;
    background: #e5f5fd;
    font-size: 29px;
}

.news-empty-state h2,
.news-no-filter-results h3 {
    margin-bottom: 10px;
    color: var(--news-text);
    font-weight: 800;
}

.news-empty-state p,
.news-no-filter-results p {
    color: var(--news-muted);
}

.reset-news-filter {
    margin-top: 10px;
    display: inline-flex;
    padding: 11px 18px;
    border-radius: 8px;
    color: #fff;
    background: #158bd0;
    text-decoration: none;
    font-weight: 700;
}

/* تفاصيل الخبر */

.news-details-hero {
    min-height: 360px;
}

.news-details-heading {
    max-width: 950px;
}

.news-details-category {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 700;
}

.news-details-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.55;
}

.news-details-meta {
    margin-top: 19px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

    .news-details-meta span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.news-details-section {
    position: relative;
    z-index: 4;
    margin-top: -58px;
    padding-bottom: 80px;
    background: linear-gradient( 180deg, transparent 0, transparent 58px, var(--news-background) 58px );
}

.news-details-card {
    overflow: hidden;
    border: 1px solid #dbe8f1;
    border-radius: 21px;
    background: #fff;
    box-shadow: var(--news-shadow);
}

.news-details-image {
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #eaf3f8;
}

    .news-details-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-details-content {
    padding: 35px 45px 30px;
}

.news-details-content-header {
    padding-bottom: 25px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid #e4edf3;
}

.content-small-title {
    display: block;
    margin-bottom: 8px;
    color: #168dd0;
    font-size: 13px;
    font-weight: 700;
}

.news-details-content-header h2 {
    margin: 0;
    color: var(--news-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.6;
}

.back-to-news-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #d4e4ed;
    border-radius: 9px;
    color: #188acb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.news-article-body {
    padding: 31px 0;
    color: #536f86;
    font-size: 16px;
    line-height: 2.25;
    text-align: justify;
}

    .news-article-body p {
        margin-bottom: 20px;
    }

    .news-article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

.news-details-footer {
    padding-top: 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e4edf3;
}

.news-share-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--news-text);
    font-weight: 700;
}

.news-share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-news-button {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e6ef;
    border-radius: 9px;
    color: #168bcf;
    background: #fff;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

    .share-news-button:hover {
        color: #fff;
        background: #168bcf;
    }

.news-copy-message {
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 30px);
    padding: 12px 22px;
    border-radius: 9px;
    color: #fff;
    background: #113f61;
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

    .news-copy-message.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

@media (max-width: 1399px) {
    .news-page-section > .container {
        width: min(97%, 1500px);
    }

    .news-content-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
        gap: 22px;
    }

    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .news-card-image {
        height: 150px;
    }
}

@media (max-width: 1199px) {
    .news-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .news-category-tabs {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .news-content-layout {
        grid-template-columns: 1fr;
    }

    .featured-news-image {
        height: 400px;
    }

    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .news-page-section > .container {
        width: 100%;
        max-width: 100%;
        padding-inline: 10px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        height: 230px;
    }
}
/* =========================================================
   Company News Responsive Fix
   ضعيه في نهاية company-news.css
========================================================= */

.news-hero,
.news-page-section,
.news-page-wrapper,
.news-toolbar,
.news-content-layout,
.news-grid,
.featured-news-card,
.news-card {
    min-width: 0;
}

.news-hero,
.news-page-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

    .news-page-section *,
    .news-hero * {
        box-sizing: border-box;
    }

/* Tablet */

@media (max-width: 1199px) {

    .news-toolbar {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .news-category-tabs {
        width: 100%;
        max-width: 100%;
        display: flex;
        gap: 9px;
        overflow-x: auto;
        padding: 2px 0 7px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .news-category-button {
        flex: 0 0 auto;
        min-width: 125px;
    }

    .news-toolbar-actions {
        width: 100%;
    }

    .news-search-box {
        width: auto;
        min-width: 0;
        flex: 1;
    }

    .news-content-layout {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 767px) {

    .news-hero {
        min-height: auto;
        margin-top: 0 !important;
    }

    .news-hero-container {
        width: 100%;
        max-width: 100%;
        padding: 35px 18px 85px;
        margin: 0;
    }

    .news-breadcrumb {
        max-width: 100%;
        margin-bottom: 17px;
        gap: 7px;
        overflow: hidden;
        font-size: 11px;
        white-space: nowrap;
    }

        .news-breadcrumb span,
        .news-breadcrumb a {
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .news-hero-content {
        width: 100%;
        max-width: 100%;
    }

    .news-hero-label {
        font-size: 13px;
    }

    .news-hero-content h1 {
        max-width: 100%;
        margin: 0;
        font-size: 31px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .news-hero-content p {
        max-width: 100%;
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.9;
    }

    .news-hero-decoration.decoration-one {
        width: 230px;
        height: 230px;
        top: -100px;
        left: -110px;
        border-width: 35px;
    }

    .news-hero-decoration.decoration-two {
        width: 180px;
        height: 180px;
        right: -100px;
        bottom: -80px;
        border-width: 32px;
    }

    .news-page-section {
        margin-top: -48px;
        padding-bottom: 50px;
        background: linear-gradient( 180deg, transparent 0, transparent 48px, var(--news-background) 48px, var(--news-background) 100% );
    }

        .news-page-section > .container {
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding-inline: 12px;
            box-sizing: border-box;
        }

    .news-page-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 18px 12px 25px !important;
        border-radius: 18px;
        overflow: hidden;
    }

    /* Tabs */

    .news-toolbar {
        width: 100%;
        max-width: 100%;
        padding-bottom: 18px;
        gap: 13px;
    }

    .news-category-tabs {
        width: 100%;
        max-width: 100%;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 7px;
    }

    .news-category-button {
        min-width: 116px;
        height: 45px;
        padding: 0 12px;
        gap: 7px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Search */

    .news-toolbar-actions {
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .news-search-box {
        width: 100%;
        min-width: 0;
    }

        .news-search-box input {
            width: 100%;
            min-width: 0;
            height: 46px;
            padding-right: 40px;
            font-size: 13px;
        }

    .news-filter-button {
        width: auto;
        min-width: 82px;
        height: 46px;
        padding: 0 14px;
        font-size: 12px;
    }

    /* Cards */

    .news-content-layout {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .featured-news-card,
    .news-card {
        width: 100%;
        max-width: 100%;
    }

    .featured-news-image {
        width: 100%;
        height: 260px;
    }

    .featured-news-body {
        padding: 20px 17px;
    }

        .featured-news-body h2 {
            font-size: 19px;
            line-height: 1.7;
        }

        .featured-news-body p {
            min-height: auto;
            font-size: 13px;
            line-height: 1.9;
        }

    .news-grid {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card-image {
        width: 100%;
        height: 235px;
    }

    .news-card-body {
        padding: 17px;
    }

        .news-card-body h3 {
            height: auto;
            min-height: 50px;
            font-size: 14px;
        }

        .news-card-body p {
            height: auto;
            min-height: 44px;
            font-size: 12px;
        }

    .news-category-badge {
        right: 11px;
        top: 11px;
        min-width: 75px;
        padding: 6px 11px;
        font-size: 11px;
    }

    /* Pagination */

    .news-pagination {
        width: 100%;
        max-width: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pagination-pages {
        max-width: 100%;
        gap: 5px;
        overflow-x: auto;
    }

    .pagination-navigation {
        min-width: 75px;
        padding-inline: 10px;
    }
}

/* Very small phones */

@media (max-width: 420px) {

    .news-hero-container {
        padding-inline: 15px;
    }

    .news-hero-content h1 {
        font-size: 27px;
    }

    .news-page-section > .container {
        padding-inline: 8px;
    }

    .news-page-wrapper {
        padding: 15px 9px 22px !important;
    }

    .news-category-button {
        min-width: 108px;
        height: 43px;
        padding-inline: 9px;
        font-size: 11px;
    }

    .news-toolbar-actions {
        grid-template-columns: 1fr;
    }

    .news-filter-button {
        width: 100%;
    }

    .featured-news-image,
    .news-card-image {
        height: 215px;
    }
}