/* ==============================
   Jawhara Blog Style
   Dark + Brown Gold Identity
   No Hero Version
============================== */

:root {
    --be-dark: #0d0b07;
    --be-dark-2: #14110b;
    --be-card: rgba(255, 255, 255, 0.045);
    --be-card-2: rgba(255, 255, 255, 0.07);
    --be-gold: #96793D;
    --be-gold-2: #a98743;
    --be-gold-light: #d8b66a;
    --be-white: #ffffff;
    --be-muted: rgba(255, 255, 255, 0.72);
    --be-border: rgba(169, 135, 67, 0.35);
}

/* Remove Astra Default Breadcrumb / Intro / Title On Blog Pages */
body.blog .ast-breadcrumbs-wrapper,
body.archive .ast-breadcrumbs-wrapper,
body.single-post .ast-breadcrumbs-wrapper,
body.blog .ast-breadcrumb-trail,
body.archive .ast-breadcrumb-trail,
body.single-post .ast-breadcrumb-trail,
body.blog .ast-archive-description,
body.archive .ast-archive-description,
body.single-post .ast-archive-description,
body.blog .entry-header,
body.archive .entry-header,
body.single-post .entry-header,
body.blog .page-header,
body.archive .page-header,
body.single-post .page-header {
    display: none !important;
}

/* Astra Background Fix */
body.blog,
body.archive,
body.single-post {
    background: var(--be-dark) !important;
}

body.blog #content,
body.archive #content,
body.single-post #content,
body.blog .site-content,
body.archive .site-content,
body.single-post .site-content,
body.blog .site-main,
body.archive .site-main,
body.single-post .site-main,
body.blog .ast-container,
body.archive .ast-container,
body.single-post .ast-container,
body.blog article,
body.archive article,
body.single-post article {
    background: transparent !important;
}

body.blog .ast-container,
body.archive .ast-container,
body.single-post .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.be-blog-page {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 10%, rgba(169, 135, 67, 0.18), transparent 28%),
        radial-gradient(circle at 10% 40%, rgba(150, 121, 61, 0.13), transparent 30%),
        linear-gradient(180deg, #0d0b07 0%, #100d08 48%, #080604 100%);
    color: var(--be-white);
    font-family: 'Cairo', sans-serif;
    overflow: hidden;
}

.be-blog-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 90px 90px;
    opacity: 0.45;
    pointer-events: none;
}

.be-blog-container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Listing Without Hero */
.be-blog-listing {
    position: relative;
    padding: 100px 0 100px;
}

.be-blog-listing-no-hero {
    padding-top: 115px;
}

.be-listing-head {
    max-width: 880px;
    margin: 0 auto 48px;
    text-align: center;
}

.be-blog-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 9px 22px;
    border-radius: 999px;
    background: rgba(169, 135, 67, 0.16);
    border: 1px solid var(--be-border);
    color: var(--be-gold-light);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.be-listing-head h1 {
    max-width: 850px;
    margin: 0 auto;
    color: var(--be-white);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -1px;
}

.be-listing-head p,
.be-archive-desc {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--be-muted);
    font-size: 17px;
    line-height: 1.9;
}

.be-archive-desc p {
    margin: 0;
    color: var(--be-muted);
}

/* Posts Grid */
.be-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.be-post-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
    border: 1px solid var(--be-border);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    transition: all 0.35s ease;
}

.be-post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(216, 182, 106, 0.65);
    box-shadow: 0 34px 85px rgba(0, 0, 0, 0.34);
}

.be-post-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 390px;
}

.be-post-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 245px;
    background: rgba(169, 135, 67, 0.16);
}

.be-post-card-featured .be-post-thumb {
    min-height: 100%;
}

.be-post-thumb img {
    width: 100%;
    height: 100% !important;
    min-height: 245px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.55s ease, filter 0.55s ease;
}

.be-post-card:hover .be-post-thumb img {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.05);
}

.be-post-thumb-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 42%, rgba(0,0,0,0.62) 100%),
        linear-gradient(120deg, rgba(150,121,61,0.18), transparent 52%);
    pointer-events: none;
}

.be-post-thumb-placeholder {
    min-height: 245px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, rgba(216,182,106,0.22), transparent 55%),
        linear-gradient(135deg, #1b1308, #0d0b07);
}

.be-post-thumb-placeholder span {
    color: var(--be-gold-light);
    font-size: 22px;
    font-weight: 900;
}

.be-post-content {
    padding: 26px;
}

.be-post-card-featured .be-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.be-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    font-weight: 600;
}

.be-post-meta span {
    position: relative;
}

.be-post-meta span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--be-gold-2);
    transform: translateY(-50%);
}

.be-post-category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 13px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(169, 135, 67, 0.16);
    border: 1px solid rgba(169, 135, 67, 0.38);
    color: var(--be-gold-light) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.be-post-card h2 {
    margin: 0 0 14px;
    color: var(--be-white);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.45;
}

.be-post-card-featured h2 {
    font-size: 34px;
}

.be-post-card h2 a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.be-post-card h2 a:hover {
    color: var(--be-gold-light) !important;
}

.be-post-card p {
    margin: 0 0 22px;
    color: var(--be-muted);
    font-size: 15px;
    line-height: 1.9;
}

.be-read-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.be-read-more span {
    color: var(--be-gold-light);
    transition: transform 0.3s ease;
}

.be-read-more:hover {
    color: var(--be-gold-light) !important;
}

.be-read-more:hover span {
    transform: translateX(-5px);
}

/* Pagination */
.be-blog-pagination {
    margin-top: 55px;
    text-align: center;
}

.be-blog-pagination .nav-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.be-blog-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.055);
    border: 1px solid var(--be-border);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800;
    transition: all 0.3s ease;
}

.be-blog-pagination .page-numbers.current,
.be-blog-pagination .page-numbers:hover {
    background: var(--be-gold-2);
    border-color: var(--be-gold-light);
}

/* Empty */
.be-empty-posts {
    padding: 60px 25px;
    border-radius: 24px;
    text-align: center;
    background: var(--be-card);
    border: 1px solid var(--be-border);
}

.be-empty-posts h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 32px;
}

.be-empty-posts p {
    margin: 0;
    color: var(--be-muted);
}

/* Single Body Without Hero */
.be-single-body-section {
    padding: 100px 0 100px;
}

.be-single-body-section-no-hero {
    padding-top: 115px;
}

.be-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

.be-single-article {
    overflow: hidden;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.035));
    border: 1px solid var(--be-border);
    box-shadow: 0 28px 80px rgba(0,0,0,0.26);
}

.be-single-head {
    padding: 42px 42px 30px;
    border-bottom: 1px solid rgba(169, 135, 67, 0.25);
}

.be-single-head h1 {
    margin: 10px 0 22px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -1px;
}

.be-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    font-weight: 700;
}

.be-single-meta span {
    position: relative;
}

.be-single-meta span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--be-gold-light);
    transform: translateY(-50%);
}

.be-single-featured-image {
    position: relative;
    overflow: hidden;
    max-height: 560px;
    background: rgba(169, 135, 67, 0.08);
}

.be-single-featured-image img,
.be-single-main-img {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: cover;
}

.be-single-content {
    padding: 42px;
    color: rgba(255,255,255,0.84);
    font-size: 18px;
    line-height: 2.05;
}

.be-single-content h2,
.be-single-content h3,
.be-single-content h4,
.be-single-content h5,
.be-single-content h6 {
    color: #ffffff;
    font-weight: 900;
    line-height: 1.45;
    margin: 38px 0 16px;
}

.be-single-content h2 {
    font-size: 34px;
}

.be-single-content h3 {
    font-size: 28px;
}

.be-single-content p {
    margin: 0 0 20px;
    color: rgba(255,255,255,0.82);
}

.be-single-content a {
    color: var(--be-gold-light) !important;
    text-decoration: none;
    font-weight: 800;
}

.be-single-content ul,
.be-single-content ol {
    margin: 0 0 24px;
    padding-right: 22px;
}

.be-single-content li {
    margin-bottom: 10px;
}

.be-single-content blockquote {
    margin: 34px 0;
    padding: 26px 28px;
    border-right: 4px solid var(--be-gold-light);
    border-radius: 18px;
    background: rgba(169,135,67,0.12);
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.8;
}

.be-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.be-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 16px;
}

.be-single-content table th,
.be-single-content table td {
    padding: 14px 16px;
    border: 1px solid var(--be-border);
    color: #ffffff;
}

.be-single-content table th {
    background: rgba(169,135,67,0.22);
}

.be-page-links,
.be-single-tags,
.be-post-navigation {
    padding: 0 42px 34px;
}

.be-single-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.be-single-tags span {
    color: #ffffff;
    font-weight: 900;
}

.be-single-tags a {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--be-gold-light) !important;
    text-decoration: none !important;
    background: rgba(169,135,67,0.12);
    border: 1px solid var(--be-border);
    font-size: 13px;
    font-weight: 800;
}

.be-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.be-post-navigation a {
    display: block;
    min-height: 120px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid var(--be-border);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.be-post-navigation a:hover {
    background: rgba(169,135,67,0.14);
    border-color: var(--be-gold-light);
    transform: translateY(-4px);
}

.be-post-navigation span {
    display: block;
    margin-bottom: 7px;
    color: var(--be-gold-light);
    font-size: 13px;
    font-weight: 800;
}

.be-post-navigation strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.6;
}

.be-next-post {
    text-align: left;
}

/* Sidebar */
.be-single-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 22px;
}

.be-sidebar-card {
    padding: 24px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
    border: 1px solid var(--be-border);
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.be-sidebar-card h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
}

.be-sidebar-card p {
    margin: 0;
    color: var(--be-muted);
    line-height: 1.8;
}

.be-latest-posts {
    display: grid;
    gap: 15px;
}

.be-latest-post {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 13px;
    align-items: center;
    text-decoration: none !important;
}

.be-latest-post img,
.be-latest-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 14px;
}

.be-latest-post img {
    object-fit: cover;
}

.be-latest-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(169,135,67,0.18);
    border: 1px solid var(--be-border);
    color: var(--be-gold-light);
    font-weight: 900;
}

.be-latest-post strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.55;
    transition: color 0.3s ease;
}

.be-latest-post small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,0.58);
    font-size: 12px;
}

.be-latest-post:hover strong {
    color: var(--be-gold-light);
}

.be-cta-card {
    background:
        radial-gradient(circle at top left, rgba(216,182,106,0.22), transparent 45%),
        linear-gradient(135deg, rgba(169,135,67,0.24), rgba(255,255,255,0.035));
}

.be-cta-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    width: 170px;
    height: 52px;
    border-radius: 6px;
    background: #a98743;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 900;
    transition: all 0.3s ease;
}

.be-cta-card a:hover {
    background: #96793d;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

/* Responsive */
@media (max-width: 1024px) {
    .be-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .be-post-card-featured {
        grid-column: span 2;
    }

    .be-single-layout {
        grid-template-columns: 1fr;
    }

    .be-single-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .be-blog-listing,
    .be-blog-listing-no-hero {
        padding: 85px 0 75px;
    }

    .be-listing-head {
        margin-bottom: 34px;
    }

    .be-listing-head h1 {
        font-size: 34px;
    }

    .be-listing-head p,
    .be-archive-desc {
        font-size: 16px;
    }

    .be-posts-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .be-post-card-featured {
        grid-column: span 1;
        display: block;
        min-height: auto;
    }

    .be-post-card-featured h2 {
        font-size: 25px;
    }

    .be-post-content,
    .be-post-card-featured .be-post-content {
        padding: 24px;
    }

    .be-single-body-section,
    .be-single-body-section-no-hero {
        padding: 85px 0 75px;
    }

    .be-single-head {
        padding: 30px 22px 24px;
    }

    .be-single-head h1 {
        font-size: 34px;
    }

    .be-single-meta {
        gap: 10px 18px;
        font-size: 13px;
    }

    .be-single-content {
        padding: 28px 22px;
        font-size: 16px;
        line-height: 2;
    }

    .be-single-content h2 {
        font-size: 27px;
    }

    .be-single-content h3 {
        font-size: 23px;
    }

    .be-page-links,
    .be-single-tags,
    .be-post-navigation {
        padding: 0 22px 28px;
    }

    .be-post-navigation {
        grid-template-columns: 1fr;
    }

    .be-next-post {
        text-align: right;
    }

    .be-single-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .be-blog-container {
        width: min(100% - 24px, 1180px);
    }

    .be-listing-head h1,
    .be-single-head h1 {
        font-size: 30px;
    }

    .be-post-card {
        border-radius: 20px;
    }

    .be-post-card h2 {
        font-size: 22px;
    }

    .be-single-article {
        border-radius: 20px;
    }
}