.blog-body {
    background:
        radial-gradient(circle at 12% 18%, rgba(226, 177, 95, .1), transparent 24%),
        linear-gradient(180deg, #fff 0%, #f8fafc 48%, #fff 100%);
}

.blog-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    padding-top: 78px;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(270deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 36%, rgba(255,255,255,.55) 66%, rgba(255,255,255,.08) 100%),
        radial-gradient(circle at 80% 42%, rgba(226,177,95,.12), transparent 30%);
}

.blog-hero__media {
    position: absolute;
    inset: 0;
    background: #fff;
}

.blog-hero__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.blog-hero__grid {
    position: relative;
    z-index: 2;
    min-height: 420px;
    display: grid;
    grid-template-columns: 1fr minmax(420px, 620px);
    align-items: center;
    direction: ltr;
}

.blog-hero__copy {
    grid-column: 2;
    direction: rtl;
    text-align: right;
}

.blog-hero__copy h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.25;
    font-weight: 900;
}

.blog-hero__copy h2 {
    margin: 12px 0 0;
    color: var(--gold);
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.35;
    font-weight: 900;
}

.blog-hero__copy p {
    width: min(540px, 100%);
    margin: 22px 0 0;
    color: #566174;
    font-size: 18px;
    line-height: 1.95;
    font-weight: 700;
}

.blog-search-section {
    position: relative;
    z-index: 4;
    padding: 0 0 22px;
    margin-top: -34px;
}

.blog-search {
    width: min(760px, 100%);
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 8px;
    direction: rtl;
    background: #fff;
    border: 1px solid rgba(7, 26, 52, .12);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(7, 26, 52, .1);
}

.blog-search__field {
    min-width: 0;
    flex: 1;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: #f8fafc;
    border: 1px solid rgba(7, 26, 52, .08);
    border-radius: 10px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.blog-search__field:focus-within {
    border-color: rgba(201, 137, 47, .48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 137, 47, .1);
}

.blog-search__field i {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--navy);
}

.blog-search input {
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 0;
    color: var(--navy);
    font-family: inherit;
    font-weight: 800;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 0;
}

.blog-search button {
    min-width: 128px;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 26px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    background: var(--navy);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(7, 26, 52, .16);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.blog-search button:hover {
    transform: translateY(-1px);
    background: #09233f;
    box-shadow: 0 14px 30px rgba(7, 26, 52, .2);
}

.blog-search button i {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.blog-search input::-webkit-search-decoration,
.blog-search input::-webkit-search-cancel-button,
.blog-search input::-webkit-search-results-button,
.blog-search input::-webkit-search-results-decoration {
    display: none;
}

.blog-categories {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: 0 0 20px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(201,137,47,.14);
    border-radius: 18px;
    box-shadow: 0 24px 65px rgba(7,26,52,.08);
}

.category-item {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 142px;
    gap: 8px;
    color: var(--navy);
    font-family: inherit;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(201,137,47,.16);
    cursor: pointer;
}

.category-item:last-child {
    border-left: 0;
}

.category-item.active {
    margin: 14px;
    min-height: 114px;
    color: var(--gold);
    border: 1px solid rgba(201,137,47,.55);
    border-radius: 12px;
    background: rgba(201,137,47,.04);
}

.category-item i {
    width: 34px;
    height: 34px;
    color: currentColor;
    stroke-width: 1.7;
}

.category-item strong {
    font-size: 15px;
    font-weight: 900;
}

.category-item span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.blog-content {
    padding-top: 24px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    direction: ltr;
}

.blog-sidebar {
    display: grid;
    gap: 24px;
    direction: rtl;
}

.popular-card {
    overflow: hidden;
    padding: 28px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 8%, rgba(226,177,95,.18), transparent 28%),
        linear-gradient(145deg, #06182f, #09233f 58%, #041326);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(7,26,52,.18);
}

.popular-card h2,
.sidebar-newsletter h2,
.blog-section-title h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
}

.popular-card h2 {
    color: #fff;
}

.popular-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.popular-item {
    display: grid;
    grid-template-columns: 74px 1fr 34px;
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.popular-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.popular-item img {
    width: 74px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-item h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 900;
}

.popular-item span {
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 800;
}

.popular-item b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--gold);
    font-size: 13px;
    border: 1px solid rgba(226,177,95,.7);
    border-radius: 50%;
}

.sidebar-newsletter {
    position: relative;
    overflow: hidden;
    padding: 28px 24px 34px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 100%, rgba(226,177,95,.14), transparent 30%),
        #fff;
    border: 1px solid rgba(201,137,47,.12);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(7,26,52,.07);
}

.sidebar-newsletter h2 {
    color: var(--navy);
}

.sidebar-newsletter p {
    margin: 12px 0 20px;
    color: #667085;
    line-height: 1.8;
    font-weight: 800;
}

.sidebar-newsletter input,
.newsletter-action input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    color: var(--navy);
    font-family: inherit;
    font-weight: 800;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    outline: 0;
}

.sidebar-newsletter button,
.newsletter-action button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    color: #fff;
    font-family: inherit;
    font-weight: 900;
    background: linear-gradient(135deg, #d79a36, #b87314);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(184,115,20,.22);
}

.sidebar-newsletter button {
    width: 100%;
    margin-top: 12px;
}

.sidebar-newsletter button i,
.newsletter-action button i {
    width: 17px;
}

.posts-area {
    min-width: 0;
    direction: rtl;
}

.blog-section-title {
    margin-bottom: 20px;
    text-align: right;
}

.blog-section-title h2 {
    color: var(--navy);
}

.blog-section-title h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    background: var(--gold);
    border-radius: 999px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(7,26,52,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(7,26,52,.1);
}

.post-image {
    position: relative;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image span {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, #d79a36, #b87314);
    border-radius: 7px;
}

.post-body {
    padding: 20px 20px 18px;
}

.post-body time {
    display: block;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
}

.post-body h3 {
    margin: 10px 0 9px;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.65;
    font-weight: 900;
}

.post-body p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 700;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    width: 15px;
    height: 15px;
}

.load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(360px, 100%);
    min-height: 58px;
    margin: 34px auto 0;
    color: var(--navy);
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    background: #fff;
    border: 1px solid rgba(201,137,47,.7);
    border-radius: 9px;
    cursor: pointer;
}

.load-more i {
    width: 18px;
    color: var(--gold);
}

.blog-newsletter-banner {
    padding: 0 0 20px;
}

.blog-newsletter-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 30px;
    align-items: center;
    min-height: 158px;
    overflow: hidden;
    padding: 32px 42px;
    color: #fff;
    background: var(--navy);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(7,26,52,.2);
}

.blog-newsletter-panel > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-newsletter-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,26,52,.1), rgba(7,26,52,.78) 40%, rgba(7,26,52,.94));
}

.newsletter-copy,
.newsletter-action {
    position: relative;
    z-index: 1;
}

.newsletter-copy h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
}

.newsletter-copy p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.76);
    line-height: 1.8;
    font-weight: 800;
}

.newsletter-action {
    display: grid;
    grid-template-columns: 1fr 140px;
    overflow: hidden;
    background: #fff;
    border-radius: 9px;
}

.newsletter-action input {
    border: 0;
    border-radius: 0;
}

.newsletter-action button {
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 1180px) {
    .category-strip {
        grid-template-columns: repeat(4, 1fr);
    }

    .blog-layout,
    .blog-newsletter-panel {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: 2;
    }

    .posts-area {
        order: 1;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .blog-hero {
        min-height: auto;
        padding: 50px 0;
    }

    .blog-hero::before {
        background: rgba(255,255,255,.82);
    }

    .blog-hero__grid {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .blog-hero__copy {
        grid-column: 1;
        text-align: center;
    }

    .blog-search {
        flex-direction: column;
        align-items: stretch;
        margin-right: auto;
        margin-left: auto;
    }

    .blog-search button {
        width: 100%;
    }

    .blog-categories {
        margin-top: 0;
    }

    .category-strip,
    .posts-grid,
    .newsletter-action {
        grid-template-columns: 1fr;
    }

    .category-item {
        min-height: 106px;
        border-left: 0;
        border-bottom: 1px solid rgba(201,137,47,.14);
    }

    .popular-card,
    .sidebar-newsletter,
    .blog-newsletter-panel {
        padding: 24px 18px;
    }

    .blog-section-title {
        text-align: center;
    }

    .blog-section-title h2::after {
        margin-right: auto;
        margin-left: auto;
    }
}

/* --- Pagination --- */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.blog-pagination .page-number,
.blog-pagination .page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 900;
    transition: all .2s;
}

.blog-pagination .page-number:hover,
.blog-pagination .page-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.blog-pagination .page-number.is-active {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border-color: var(--navy);
    color: #fff;
    cursor: default;
}

.blog-pagination .page-arrow.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.blog-pagination .page-arrow svg {
    width: 18px;
    height: 18px;
}

.blog-pagination .page-dots {
    color: var(--muted);
    font-weight: 900;
    padding: 0 2px;
}
