/**
 * Modern blog rebrand — editorial magazine feel on Jazeera greens.
 */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

body.rebrand main.blog-page {
    --blog-ink: #121a1f;
    --blog-muted: #66757c;
    --blog-soft: #eff4f2;
    --blog-surface: #ffffff;
    --blog-page: #f4f8f6;
    --blog-accent: var(--red-color, #0b9f6d);
    --blog-accent-rgb: var(--red-color-rgb, 11, 159, 109);
    --blog-radius: 22px;
    --blog-radius-sm: 14px;
    color: var(--blog-ink);
    background: var(--blog-page);
    font-family: "Manrope", system-ui, sans-serif;
}

body.rebrand main.blog-page h1,
body.rebrand main.blog-page h2,
body.rebrand main.blog-page h3,
body.rebrand main.blog-page h4,
body.rebrand main.blog-page h5,
body.rebrand main.blog-page .font-heading {
    font-family: "Manrope", system-ui, sans-serif !important;
    letter-spacing: -0.03em;
}

body.rebrand .scroll-progress {
    background: var(--blog-accent) !important;
}

/* —— Hero —— */
body.rebrand main.blog-page > section.blog-page__hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(var(--blog-accent-rgb), 0.09) 0%, transparent 42%),
        linear-gradient(180deg, #e8f3ee 0%, var(--blog-soft) 48%, var(--blog-page) 100%) !important;
    padding: 8rem 0 3.25rem !important;
    border-bottom: 0;
}

body.rebrand main.blog-page > section.blog-page__hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -40% auto;
    width: min(52vw, 560px);
    height: min(52vw, 560px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--blog-accent-rgb), 0.14), transparent 68%);
    pointer-events: none;
}

body.rebrand .archive-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.75rem 2rem;
}

body.rebrand .blog-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    color: var(--blog-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.rebrand .blog-page__eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--blog-accent);
}

body.rebrand .archive-header-title {
    max-width: 46rem;
}

body.rebrand .blog-page__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
}

body.rebrand .archive-header h1.font-heading {
    margin: 0 !important;
    color: var(--blog-ink);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
}

body.rebrand .blog-page__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--blog-accent-rgb), 0.12);
    color: var(--blog-accent);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
    position: static;
    top: auto;
    font-family: inherit;
}

/* legacy <sub> count — keep safe if present elsewhere */
body.rebrand .archive-header h1 sub {
    all: unset;
    display: none !important;
}

body.rebrand .archive-header-title > p {
    margin: 0;
    max-width: 38rem;
    color: var(--blog-muted);
    font-size: 1.08rem;
    line-height: 1.65;
    font-weight: 500;
}

/* Clean modern breadcrumb — no pill box, no icon-font oval */
body.rebrand .blog-breadcrumb,
body.rebrand .archive-header .breadcrumb {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: var(--blog-muted) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    white-space: nowrap;
}

body.rebrand .blog-breadcrumb a,
body.rebrand .archive-header .breadcrumb a {
    color: var(--blog-accent) !important;
    text-decoration: none !important;
    transition: opacity 0.15s ease;
}

body.rebrand .blog-breadcrumb a:hover,
body.rebrand .archive-header .breadcrumb a:hover {
    opacity: 0.75;
}

body.rebrand .blog-breadcrumb__sep,
body.rebrand .archive-header .breadcrumb span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: rgba(18, 26, 31, 0.35) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    position: static !important;
}

body.rebrand .blog-breadcrumb__sep::before,
body.rebrand .archive-header .breadcrumb span::before,
body.rebrand .blog-breadcrumb span::before {
    content: none !important;
    display: none !important;
    font-family: inherit !important;
}

body.rebrand .blog-breadcrumb__current {
    color: var(--blog-muted) !important;
}

body.rebrand .archive-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
}

body.rebrand .archive-header .blog-breadcrumb {
    margin-bottom: 1.15rem !important;
}

/* Extra modern polish */
body.rebrand main.blog-page > section.blog-page__hero {
    padding: 7.25rem 0 2.5rem !important;
}

body.rebrand .featured-slider-1 {
    margin-top: -0.5rem;
}

body.rebrand .featured-slider-1 .hero-1 {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.rebrand .featured-slider-1 .hero-1:hover {
    box-shadow: 0 28px 64px rgba(12, 36, 28, 0.11);
}

body.rebrand .recent-posts .container,
body.rebrand .trending .container,
body.rebrand .featured-slider-1 .container,
body.rebrand .blog-page__hero .container {
    max-width: 1180px;
}

body.rebrand .post-card-1 .post-meta-1 {
    top: 14px;
    left: 14px;
}

body.rebrand .trending .text-center.mt-65 {
    margin-top: 1.75rem !important;
}

/* —— Featured —— */
body.rebrand .featured-slider-1 {
    background: transparent;
    padding: 0.5rem 0 1.5rem !important;
}

body.rebrand .featured-slider-1 .container {
    max-width: 1180px;
}

body.rebrand .featured-slider-1 .hero-1 {
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
    background: var(--blog-surface);
    border: 1px solid rgba(18, 26, 31, 0.06);
    box-shadow: 0 24px 60px rgba(12, 36, 28, 0.08);
}

body.rebrand .featured-slider-1 .slider-single > .row {
    margin: 0;
    min-height: 420px;
}

body.rebrand .featured-slider-1 .slider-single > .row > [class*="col-"] {
    padding: 0;
}

body.rebrand .featured-slider-1 .slider-single > .row > .col-lg-6.align-self-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.25rem;
}

body.rebrand .featured-slider-1 .post-meta-1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem !important;
}

body.rebrand .featured-slider-1 .post-meta-1 .post-meta-1 {
    margin: 0 !important;
}

body.rebrand .featured-slider-1 .post-title {
    margin-bottom: 1rem !important;
    font-size: clamp(1.55rem, 2.6vw, 2.35rem) !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
}

body.rebrand .featured-slider-1 .post-title a {
    color: var(--blog-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.rebrand .featured-slider-1 .post-title a:hover {
    color: var(--blog-accent);
}

body.rebrand .featured-slider-1 .post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.35rem !important;
    color: var(--blog-muted) !important;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 500;
}

body.rebrand .featured-slider-1 .post-meta-2,
body.rebrand .featured-slider-1 .blog-author {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start !important;
    justify-content: flex-start;
    gap: 0.75rem;
    width: auto;
    max-width: 100%;
    margin: 0.25rem 0 0 !important;
    padding: 0;
    float: none !important;
    clear: both;
    text-align: left;
    color: var(--blog-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

body.rebrand .featured-slider-1 .blog-author img,
body.rebrand .featured-slider-1 .blog-author__avatar {
    float: none !important;
    flex: 0 0 auto;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}

body.rebrand .featured-slider-1 .blog-author__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--blog-accent-rgb), 0.12);
    color: var(--blog-accent);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

body.rebrand .featured-slider-1 .blog-author__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    text-align: left;
}

body.rebrand .featured-slider-1 .blog-author__label {
    color: var(--blog-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

body.rebrand .featured-slider-1 .author-namge {
    color: var(--blog-ink) !important;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

body.rebrand .blog-slider-big-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 420px !important;
    border-radius: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: none;
    transition: transform 0.55s ease;
}

body.rebrand .featured-slider-1 .slider-single:hover .blog-slider-big-image {
    transform: scale(1.03);
}

body.rebrand .featured-slider-1 .col-lg-6:has(.blog-slider-big-image) {
    overflow: hidden;
}

body.rebrand .featured-slider-1 .slick-arrow,
body.rebrand .featured-slider-1-arrow .slick-arrow,
body.rebrand .flow-arrow {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    border: 1px solid rgba(18, 26, 31, 0.08) !important;
    box-shadow: 0 12px 28px rgba(12, 36, 28, 0.12) !important;
    opacity: 1 !important;
}

body.rebrand .tag-category {
    border-radius: 999px !important;
    padding: 0.5rem 0.9rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-right: 0 !important;
    border: 0;
}

body.rebrand .tag-category.bg-brand-4,
body.rebrand .tag-category.bg-brand-1,
body.rebrand .tag-category.bg-info {
    background: rgba(var(--blog-accent-rgb), 0.12) !important;
    color: var(--blog-accent) !important;
    box-shadow: none;
}

body.rebrand .post-card-1 .tag-category.bg-brand-4,
body.rebrand .post-card-1 .tag-category.bg-brand-1,
body.rebrand .post-card-1 .tag-category.bg-info {
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--blog-ink) !important;
    backdrop-filter: blur(8px);
}

body.rebrand .tag-category.text-dark {
    color: var(--blog-accent) !important;
}

body.rebrand .featured-slider-1 .post-date {
    color: var(--blog-muted) !important;
    font-size: 0.88rem;
    font-weight: 600;
}

/* —— Sections —— */
body.rebrand .recent-posts,
body.rebrand .trending {
    background: var(--blog-page);
}

body.rebrand .recent-posts {
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
}

body.rebrand .trending {
    padding-bottom: 4.5rem !important;
}

body.rebrand .bg-square-2 {
    display: none !important;
}

body.rebrand .header-title {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.75rem !important;
    padding-bottom: 0;
    border: 0;
}

body.rebrand .header-title h3 {
    position: relative;
    margin: 0;
    padding-left: 0.95rem;
    color: var(--blog-ink);
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    font-weight: 800;
}

body.rebrand .header-title h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    border-radius: 4px;
    background: var(--blog-accent);
}

body.rebrand .header-title .sub-header-title {
    color: var(--blog-muted) !important;
    font-size: 0.92rem;
    font-weight: 600;
}

body.rebrand .recent-posts .row,
body.rebrand .blog-index-article-content {
    --bs-gutter-x: 1.35rem;
    --bs-gutter-y: 1.35rem;
}

body.rebrand .recent-posts .row > [class*="col-"],
body.rebrand .blog-index-article-content > [class*="col-"] {
    margin-bottom: 1.35rem !important;
}

/* —— Cards —— */
body.rebrand .post-card-1 {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--blog-radius);
    border: 1px solid rgba(18, 26, 31, 0.06);
    background: var(--blog-surface);
    box-shadow: 0 14px 36px rgba(12, 36, 28, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

body.rebrand .post-card-1::before {
    content: none !important;
}

body.rebrand .post-card-1.hover-up:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px rgba(12, 36, 28, 0.12);
    border-color: rgba(var(--blog-accent-rgb), 0.22);
}

body.rebrand .post-card-1 .post-thumb {
    position: relative;
    overflow: hidden;
}

body.rebrand .post-card-1 .thumb-overlay,
body.rebrand .post-card-1.large .thumb-overlay,
body.rebrand .col-md-6 .post-card-1 .thumb-overlay,
body.rebrand .col-lg-4.col-md-6 .post-card-1 .thumb-overlay {
    min-height: 0 !important;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s ease, background-position 0.55s ease;
}

body.rebrand .post-card-1:hover .thumb-overlay {
    transform: scale(1.05);
    background-position: center;
}

body.rebrand .post-card-1 .post-content {
    display: flex;
    flex: 1;
    background: var(--blog-surface);
    border-radius: 0;
    padding: 1.25rem 1.35rem 1.45rem !important;
}

body.rebrand .post-card-1 .post-card-content {
    gap: 0.55rem;
}

body.rebrand .post-card-1 .entry-meta {
    float: none !important;
    margin: 0 0 0.15rem !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blog-accent) !important;
}

body.rebrand .post-card-1 .post-on {
    color: inherit !important;
}

body.rebrand .post-card-1 .post-title {
    margin: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

body.rebrand .post-card-1.large .post-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
}

body.rebrand .post-card-1 .post-title a {
    color: var(--blog-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.rebrand .post-card-1 .post-title a:hover {
    color: var(--blog-accent);
}

body.rebrand .post-card-1 .post-meta-2 {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.85rem;
    color: var(--blog-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

body.rebrand .post-meta-2 img {
    float: none !important;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    border-radius: 50%;
    object-fit: cover;
}

body.rebrand .author-namge {
    color: var(--blog-muted) !important;
}

/* —— Load more —— */
body.rebrand .btn-blog-search-more {
    min-width: 240px;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 1rem 1.9rem !important;
    background: var(--blog-accent) !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 30px rgba(var(--blog-accent-rgb), 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.rebrand .btn-blog-search-more:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(var(--blog-accent-rgb), 0.32);
}

@media (max-width: 991.98px) {
    body.rebrand main.blog-page > section.blog-page__hero {
        padding: 6.5rem 0 2.25rem !important;
    }

    body.rebrand .archive-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body.rebrand .featured-slider-1 .slider-single > .row > .col-lg-6.align-self-center {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    body.rebrand .blog-slider-big-image {
        min-height: 240px !important;
    }

    body.rebrand .featured-slider-1 .slider-single > .row {
        min-height: 0;
    }
}

@supports not selector(:has(*)) {
    body.rebrand .featured-slider-1 .col-lg-6 {
        overflow: hidden;
    }
}
