﻿<style >
/* ===== CARD ===== */
.news-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    padding: 6px;
}

/* Hover */
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.10);
    border-color: rgba(13,110,253,0.25);
}

/* ===== IMAGE CONTAINER ===== */
.post-media {
    position: relative;
    overflow: hidden;
}

    /* IMPORTANT: fix height (this is what makes it bigger) */
    .post-media .featured-image {
        height: 120px;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }

/* IMAGE */
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

/* Zoom effect */
.news-card:hover .news-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Overlay */
.post-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 60%);
    pointer-events: none;
}

/* ===== CATEGORY BADGE ===== */
.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

/* ===== TITLE ===== */
.post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin: 10px 0 6px;
}

    .post-title a {
        color: #111;
        text-decoration: none;
        transition: 0.2s;
    }

        .post-title a:hover {
            color: #0d6efd;
        }

/* ===== CONTENT ===== */
.post-header {
    padding: 10px 4px;
}

/* ===== SWIPER FIX (important) ===== */
.swiper-slide {
    height: auto;
    display: flex;
}

    .swiper-slide > div {
        width: 100%;
    }

/* ===== SOFT SHINE EFFECT ===== */
.news-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
    transform: rotate(25deg);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.news-card:hover::before {
    opacity: 1;
}

.news-summary {
    font-size: 12px;
    color: #6c757d;
    margin: 6px 0;
    line-height: 1.4;
    max-height: 2.6em;
    overflow: hidden;
}
/* ===== HERO SLIDER ===== */
.block-layout.slider-layout article.post {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #000;
    min-height: 580px;
    transition: all .35s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

/* الصورة */
.block-layout.slider-layout .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 7s ease;
}

/* zoom بسيط للصورة */
.swiper-slide-active .featured-image img {
    transform: scale(1.08);
}

/* overlay */
.block-layout.slider-layout .position-cover.bg-gradient-to-t {
    background: linear-gradient( to top, rgba(0,0,0,0.88) 5%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.15) 65%, transparent 100% ) !important;
    opacity: 1 !important;
}

/* المحتوى */
.block-layout.slider-layout .post-header {
    z-index: 3;
    padding: 2rem !important;
}

/* category */
.block-layout.slider-layout .post-date span:first-child {
    background: rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
    padding: 7px 14px !important;
    border-radius: 999px;
    font-size: 13px;
}

/* title */
.block-layout.slider-layout .post-title {
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -.3px;
}

    .block-layout.slider-layout .post-title a {
        color: #fff !important;
        transition: all .25s ease;
    }

        .block-layout.slider-layout .post-title a:hover {
            opacity: .85;
        }

/* summary */
.block-layout.slider-layout .post-header p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,.78) !important;
}

/* author glass box */
.block-layout.slider-layout .post-meta {
    /*background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.08);
            backdrop-filter: blur(10px);*/
    border-radius: 18px;
    padding: 10px 16px;
    margin-top: 18px !important;
    width: fit-content;
}

/* author image */
.block-layout.slider-layout .post-author img {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255,255,255,.2);
}

/* author name */
.block-layout.slider-layout .post-author a {
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
}

/* navigation buttons */
.block-layout.slider-layout .swiper-nav {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255,255,255,0.14) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15) !important;
    transition: all .25s ease;
}

    .block-layout.slider-layout .swiper-nav:hover {
        transform: translateY(-50%) scale(1.08);
        background: white !important;
    }

        .block-layout.slider-layout .swiper-nav:hover i {
            color: #000 !important;
        }

/* pagination لو فعلتها */
.swiper-pagination-bullet {
    background: rgba(255,255,255,.4);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #fff;
    width: 22px;
    border-radius: 999px;
}

/* hover */
.block-layout.slider-layout article.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
}

/* mobile */
@media(max-width:768px) {

    .block-layout.slider-layout article.post {
        min-height: 420px;
        border-radius: 20px;
    }

    .block-layout.slider-layout .post-header {
        padding: 1.2rem !important;
    }

    .block-layout.slider-layout .post-title {
        font-size: 1.2rem !important;
    }

    .block-layout.slider-layout .post-header p {
        display: none !important;
    }

    .block-layout.slider-layout .swiper-nav {
        width: 38px !important;
        height: 38px !important;
    }
}
/* ===== SECTION HEADER ===== */
.block-header {
    position: relative;
    margin-bottom: 22px;
    border-top: 0 !important;
}

    .block-header h2 {
        margin: 0;
    }

        .block-header h2 a {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 18px;
            border-radius: 16px;
            background: rgba(255,255,255,0.75);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0,0,0,0.06);
            color: #111 !important;
            font-size: 15px;
            font-weight: 800;
            letter-spacing: -.2px;
            transition: all .25s ease;
            position: relative;
            overflow: hidden;
        }

            /* الخط المتدرج */
            .block-header h2 a::before {
                content: "";
                position: absolute;
                inset-inline-start: 0;
                top: 0;
                width: 4px;
                height: 100%;
                background: linear-gradient( to bottom, var(--color-primary), #7c3aed );
            }

            /* hover */
            .block-header h2 a:hover {
                transform: translateY(-2px);
                box-shadow: 0 10px 30px rgba(0,0,0,0.08);
                padding-inline-start: 22px;
            }

            /* icon */
            .block-header h2 a i {
                transition: transform .25s ease;
                font-size: 13px;
            }

            .block-header h2 a:hover i {
                transform: translateX(-3px);
            }

/* dark mode */
.dark .block-header h2 a {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
    color: #fff !important;
}



.news-card-mini .news-summary {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(107,114,128,.85);
}

.dark .news-card-mini .news-summary {
    color: rgba(255,255,255,.65);
}

.news-card-mini .post-title a {
    font-weight: 700;
}

.news-card-mini .post-meta {
    opacity: .75;
}

.news-thumb {
    width: 110px;
    height: 85px;
    border-radius: 12px;
}


.news-card-small .news-summary {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(107,114,128,.85);
}

.dark .news-card-small .news-summary {
    color: rgba(255,255,255,.65);
}

.news-card-small .post-title a {
    font-weight: 700;
}

.news-card-breaking {
    transition: all .25s ease;
}

    .news-card-breaking:hover {
        transform: translateY(-3px);
    }

    /* SUMMARY */
    .news-card-breaking .news-summary {
        font-size: 13.5px;
        line-height: 1.7;
        color: rgba(107,114,128,.85);
    }

.dark .news-card-breaking .news-summary {
    color: rgba(255,255,255,.65);
}

/* BREAKING BADGE */
.breaking-badge {
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    animation: pulseNews 1.5s infinite;
}

/* pulse animation */
@keyframes pulseNews {
    0% {
        box-shadow: 0 0 0 0 rgba(239,68,68,.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239,68,68,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239,68,68,0);
    }
}

/* meta */
.news-card-breaking .post-meta {
    opacity: .75;
}

.news-card-clean {
    transition: all .25s ease;
}

    .news-card-clean:hover {
        transform: translateY(-4px);
    }

.news-feature-card .news-summary {
    font-size: 14px;
    line-height: 1.7;
    max-width: 90%;
}

.news-feature-article {
    min-height: 220px;
}

    /* IMAGE CONTAINER */
    .news-feature-article .post-media {
        height: 220px;
        position: relative;
        overflow: hidden;
    }

    /* IMAGE WRAPPER */
    .news-feature-article .featured-image {
        height: 100%;
    }

        /* IMAGE ITSELF */
        .news-feature-article .featured-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

/* Desktop (أكبر شوي أو ثابت حسب رغبتك) */
@media (max-width: 1024px) {
    .news-feature-article .post-media {
        height: 180px; /* بدل min-height */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-feature-article .post-media {
        height: 240px; /* ترجع طبيعي */
    }
}

/* SUMMARY */
.news-feature-article .news-summary {
    font-size: 13.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-author a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-author img {
    display: block;
}

.news-feature-article .author-hover {
    opacity: 0;
    transform: translateY(6px);
    transition: all .25s ease;
}

/* يظهر عند hover على الكارد */
.news-feature-article:hover .author-hover {
    opacity: 1;
    transform: translateY(0);
}

/* تحسين spacing العام */
.news-feature-article .post-header {
    gap: 6px;
}

/* title spacing */
.news-feature-article .post-title {
    margin-bottom: 2px;
}

/* summary spacing */
.news-feature-article .news-summary {
    margin-bottom: 4px;
}

.news-feature-article .post-header {
    top: 0;
    bottom: 0;
}

.post-author a {
    gap: 10px; /* مسافة بين الصورة والاسم */
}

.post-author .author-name {
    margin-right: 30px;
}

.news-feature-article .news-summary {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* ديسكتوب: سطرين */
    overflow: hidden;
}

/* موبايل: سطر واحد عشان ما يقطع بشكل مزعج */
@media (max-width: 768px) {
    .news-feature-article .news-summary {
        -webkit-line-clamp: 1;
    }
}

.news-feature-article .post-header {
    padding-bottom: 10px;
}

.post-excrept {
    line-height: 1.6;
    margin-top: 6px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* أو 4 حسب المساحة */
    overflow: hidden;
}

.post-excrept {
    line-height: 1.6;
    margin: 6px 0;
    max-height: 60px;
    overflow: hidden;
    position: relative;
    transition: all .35s ease;
}

    /* fade effect */
    .post-excrept::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 25px;
        background: linear-gradient(to bottom, transparent, white);
    }

.post:hover .post-excrept {
    max-height: 300px;
}

    /* remove fade on hover */
    .post:hover .post-excrept::after {
        display: none;
    }


.post {
    position: relative;
}

/* الحالة العادية */
.post-excrept {
    line-height: 1.6;
    margin: 6px 0;
}

/* صندوق الـ tooltip */
.post-summary-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 320px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 50;
}

/* يظهر عند hover */
.post:hover .post-summary-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.news-feature-article .post-media {
    overflow: hidden;
    position: relative;
}

/* الصورة */
.news-feature-article .featured-image img {
    transition: transform .5s ease, filter .5s ease;
    transform: scale(1);
}

/* عند hover على الكارد */
.news-feature-article:hover .featured-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.news-feature-article .post-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.25));
    opacity: 0;
    transition: opacity .4s ease;
}

.news-feature-article:hover .post-media::after {
    opacity: 1;
}

.reading-badge {
    background: #0d6efd;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.featured-side-news article {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.featured-side-news img {
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.featured-side-news .content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
    color: #fff;
}

</style >
