/* ==========================================================================
   D&B Properties — Blog Styles
   ========================================================================== */

/* ===== PAGE BANNER ===== */
.page-banner {
    background: var(--navy);
    color: var(--white);
    padding: 120px 0 60px;
    /* Space for fixed header if needed */
    position: relative;
    overflow: hidden;
}

.pb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.pb-breadcrumb {
    font-size: 13px;
    display: flex;
    gap: 8px;
    opacity: 0.7;
    margin-bottom: 24px;
    align-items: center;
}

.pb-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.pb-breadcrumb a:hover {
    opacity: 1;
}

.pb-breadcrumb .current {
    opacity: 1;
    font-weight: 500;
}

.pb-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 40px;
}

.pb-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--light);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

.pb-title {
    font-family: var(--sans);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--white);
}

.pb-sub {
    font-size: 16px;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

.pb-stats {
    display: flex;
    gap: 40px;
}

.pb-stat {
    text-align: left;
}

.pb-stat-val {
    font-family: var(--sans);
    font-size: 32px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.pb-stat-lbl {
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ===== FILTER BAR ===== */
.blog-filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--light);
    position: sticky;
    top: 0;
    z-index: 90;
    /* Below header if header is 100 */
}

.bf-tabs {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.bf-tab {
    padding: 24px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0.6;
}

.bf-tab:hover {
    color: var(--navy);
    opacity: 1;
}

.bf-tab.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
    opacity: 1;
}


/* ===== PROJECT GRID (Reused classes) ===== */
.post-grid-section {
    background: var(--bg);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(11, 11, 69, 0.1);
    border-color: rgba(5, 61, 160, 0.2);
}

.pc-thumb-link {
    display: block;
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.pc-thumb-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .pc-thumb-link img {
    transform: scale(1.05);
}

.pc-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(11, 11, 69, 0.85);
    /* Navy transparent */
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.pc-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pc-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.4;
    font-family: var(--sans);
    /* or font var */
}

.pc-title a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

.pc-title a:hover {
    color: var(--blue);
}

.pc-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.pc-read-more {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.pc-read-more:hover {
    gap: 10px;
    color: var(--navy);
}


/* Pagination styles unified in global.css */


/* ==========================================================================
   SINGLE POST — Premium Editorial Layout
   ========================================================================== */

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.anim-fade-up {
    animation: fadeUp .7s cubic-bezier(.4, 0, .2, 1) both
}

.anim-d1 {
    animation-delay: .1s
}

.anim-d2 {
    animation-delay: .2s
}

.anim-d3 {
    animation-delay: .3s
}

.anim-d4 {
    animation-delay: .4s
}

/* --- Blog Single: Breadcrumb + Header --- */
html {
    scroll-behavior: smooth;
}

.blog-single {
    padding-top: 0;
}

.blog-breadcrumb-wrap {
    background: var(--white, #fff);
    border-bottom: 1px solid rgba(11, 11, 69, .08);
    padding: 14px 0;
}

.blog-breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(35, 35, 35, .55);
    flex-wrap: wrap;
}

.blog-breadcrumb a {
    color: var(--blue, #053da0);
    text-decoration: none;
    transition: color .2s;
}

.blog-breadcrumb a:hover {
    color: var(--navy, #0b0b45);
}

.blog-breadcrumb .sep {
    opacity: .35;
}

.blog-breadcrumb .current {
    color: var(--dark, #1f2937);
    font-weight: 500;
}

.blog-post-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-post-title {
    font-family: var(--sans);
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 600;
    color: var(--navy, #0b0b45);
    line-height: 1.15;
    letter-spacing: -.015em;
    margin: 0 0 18px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b7280;
}

.blog-post-meta .meta-read,
.blog-post-meta .meta-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-post-meta svg {
    width: 16px;
    height: 16px;
    stroke: #9ca3af;
    fill: none;
}

.blog-post-meta .meta-sep {
    color: #d1d5db;
}

/* --- Blog TOC (Table of Contents) --- */
.blog-toc-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--blue, #053da0);
    border-radius: 8px;
    padding: 22px 26px;
    margin: 0 0 36px;
}

.blog-toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--navy, #0b0b45);
    margin: 0 0 14px;
}

.blog-toc-title svg {
    color: var(--blue, #053da0);
    flex-shrink: 0;
}

.blog-toc-list {
    list-style: decimal;
    margin: 0;
    padding-left: 22px;
    counter-reset: toc;
}

.blog-toc-list li {
    margin-bottom: 8px;
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
}

.blog-toc-list li:last-child {
    margin-bottom: 0;
}

.blog-toc-list a {
    color: #374151;
    text-decoration: none;
    transition: color .2s;
}

.blog-toc-list a:hover {
    color: var(--blue, #053da0);
    text-decoration: underline;
}

/* --- Blog Area Projects shortcode --- */
.blog-area-projects {
    margin: 40px 0;
}

/* Reset article-body link styles inside project cards */
.article-body .blog-area-projects a {
    color: inherit;
    font-weight: inherit;
    border-bottom: none;
}

.article-body .blog-area-projects a:hover {
    border-color: transparent;
}

.article-body .blog-area-projects .proj-card .card-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #0B0B45 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-decoration: none;
}

.article-body .blog-area-projects .proj-card .card-cta:hover {
    background: #063692 !important;
    color: #fff !important;
}

/* --- FAQ component inside article body --- */
.article-body .faq-section-component.section {
    padding: 0;
}

.article-body .faq-section-component .container {
    max-width: 100%;
    padding: 0;
}

.article-body .faq-section-component .section-header {
    text-align: left !important;
    margin-bottom: 24px;
}

.article-body .faq-section-component .section-title {
    font-size: 24px;
}

/* --- WordPress Core Accordion Block (FAQ) --- */
.article-body .wp-block-accordion {
    margin: 36px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-body .wp-block-accordion-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.article-body .wp-block-accordion-item.is-open {
    border-color: var(--blue, #053da0);
    box-shadow: 0 4px 16px rgba(11, 11, 69, .08);
}

.article-body .wp-block-accordion-heading {
    margin: 0;
    padding: 0;
    font-family: inherit;
    background: none;
    border: none;
}

.article-body .wp-block-accordion-heading::before {
    display: none;
}

.article-body .wp-block-accordion-heading__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--navy, #0b0b45);
    line-height: 1.4;
    transition: background-color .2s ease;
}

.article-body .wp-block-accordion-heading__toggle:hover {
    background-color: #f9fafb;
}

.article-body .wp-block-accordion-heading__toggle-title {
    flex: 1;
}

.article-body .wp-block-accordion-heading__toggle-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--blue, #053da0);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: transform .25s ease, background-color .2s ease;
}

.article-body .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
    transform: rotate(45deg);
    background: var(--blue, #053da0);
    color: #fff;
}

.article-body .wp-block-accordion-panel {
    padding: 0 24px 20px;
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    border-top: 1px solid #f3f4f6;
}

.article-body .wp-block-accordion-panel[inert],
.article-body .wp-block-accordion-panel[hidden] {
    display: none;
}

.article-body .wp-block-accordion-panel>*:first-child {
    margin-top: 16px;
}

.article-body .wp-block-accordion-panel>*:last-child {
    margin-bottom: 0;
}

.article-body .wp-block-accordion-panel p {
    margin: 0 0 12px;
}

.article-body .wp-block-accordion-panel ul,
.article-body .wp-block-accordion-panel ol {
    margin: 0 0 12px 20px;
}

/* --- Main Layout --- */
.blog-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* --- Article --- */
.article-wrap {
    background: transparent;
    padding: 0;
    min-width: 0;
    /* Prevent grid child from overflowing its column */
}

.article-body {
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    /* Catch any remaining wide embeds/tables */
}

/* Tables inside article body */
.article-body table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Preformatted / code blocks */
.article-body pre {
    overflow-x: auto;
    max-width: 100%;
}

/* Embeds & iframes */
.article-body iframe,
.article-body video,
.article-body embed,
.article-body object {
    max-width: 100%;
}

/* WordPress block images — ensure max-width */
.article-body img {
    max-width: 100%;
    height: auto;
}

/* Article prose */
.article-body h2 {
    font-family: var(--sans);
    font-size: 30px;
    font-weight: 600;
    color: var(--navy);
    margin: 44px 0 18px;
    line-height: 1.2;
    letter-spacing: -.01em;
    position: relative;
    padding-left: 20px;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--blue);
    border-radius: 2px;
}

.article-body h3 {
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin: 32px 0 14px;
    line-height: 1.25;
}

.article-body p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--dark);
    margin-bottom: 20px;
}

.article-body a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(5, 61, 160, .18);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.article-body a:hover {
    border-color: var(--blue);
    color: var(--navy);
}

.article-body strong {
    font-weight: 600;
    color: var(--navy);
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px 8px;
    padding-left: 20px;
}

.article-body li {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 8px;
    color: var(--dark);
}

.article-body li::marker {
    color: var(--blue);
}

/* Blockquote */
.article-body blockquote {
    margin: 36px 0;
    padding: 28px 32px;
    background: rgba(5, 61, 160, .09);
    border-left: 4px solid var(--blue);
    border-radius: 0 10px 10px 0;
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    font-family: var(--sans);
    font-size: 72px;
    font-weight: 700;
    color: var(--blue);
    position: absolute;
    top: -8px;
    left: 20px;
    line-height: 1;
    opacity: .5;
}

.article-body blockquote p {
    font-family: var(--sans);
    font-size: 20px;
    font-style: italic;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 8px;
}

.article-body blockquote cite {
    font-family: var(--sans);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: var(--blue);
    display: block;
    margin-top: 6px;
}

/* Image in article */
.article-body .wp-block-image,
.article-body figure {
    margin: 36px 0;
    overflow: hidden;
}

.article-body .wp-block-image img,
.article-body figure img {
    width: 100%;
    display: block;
    transition: transform .6s ease;
}

.article-body .wp-block-image:hover img,
.article-body figure:hover img {
    transform: scale(1.02);
}

.article-body figcaption {
    padding: 14px 20px;
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    text-align: center;
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(11, 11, 69, .1);
}

.tag-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(35, 35, 35, .52);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(5, 61, 160, .09);
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.tag:hover {
    background: var(--blue);
    color: #fff;
}

/* Share buttons (bottom of article) */
.share-strip-bottom {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(11, 11, 69, .1);
    text-align: center;
}

.share-bottom-label {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 18px;
}

.share-bottom-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius, 6px);
    border: 1.5px solid rgba(11, 11, 69, .1);
    background: var(--white);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.share-btn-lg svg {
    width: 16px;
    height: 16px;
    fill: var(--navy);
    transition: fill .2s;
}

.share-btn-lg:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.share-btn-lg:hover svg {
    fill: #fff;
}

.share-btn-lg.copied {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.share-btn-lg.copied svg {
    fill: #fff;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Newsletter */
.newsletter-card {
    background: linear-gradient(135deg, var(--navy), #111160);
    border-radius: 10px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(5, 61, 160, .15);
}

.newsletter-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(5, 61, 160, .2);
}

.newsletter-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(5, 61, 160, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.newsletter-icon svg {
    width: 22px;
    height: 22px;
    stroke: rgba(255, 255, 255, .8);
    fill: none;
}

.nl-title {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.nl-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.nl-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.nl-input {
    padding: 12px 14px;
    border-radius: var(--radius, 6px);
    border: 1.5px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .08);
    font-family: var(--sans);
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.nl-input::placeholder {
    color: rgba(255, 255, 255, .35)
}

.nl-input:focus {
    border-color: var(--blue);
    background: rgba(255, 255, 255, .12);
}

.nl-submit {
    padding: 12px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius, 6px);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--sans);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.nl-submit:hover {
    background: var(--navy);
    transform: translateY(-1px);
}

/* Popular posts */
.popular-card {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(11, 11, 69, .07);
    border: 1px solid rgba(11, 11, 69, .1);
}

.popular-title {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(11, 11, 69, .1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-title svg {
    width: 18px;
    height: 18px;
    stroke: var(--blue);
    fill: none;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pop-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    padding: 8px;
    border-radius: var(--radius, 6px);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.pop-item:hover {
    background: rgba(5, 61, 160, .09);
}

.pop-item-img {
    width: 76px;
    height: 60px;
    border-radius: var(--radius, 6px);
    overflow: hidden;
    flex-shrink: 0;
}

.pop-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pop-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.pop-item-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.pop-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    transition: color .2s;
}

.pop-item:hover .pop-item-name {
    color: var(--blue)
}

.pop-item-date {
    font-size: 11px;
    color: rgba(35, 35, 35, .52);
}

/* ==========================================================================
   RELATED POSTS SECTION
   ========================================================================== */
.related-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.related-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(35, 35, 35, .52);
    margin-bottom: 8px;
}

.related-title {
    font-family: var(--sans);
    font-size: 34px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -.02em;
}

.related-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.related-all:hover {
    color: var(--navy)
}

.related-all svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    transition: transform .2s;
}

.related-all:hover svg {
    transform: translateX(3px)
}

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

/* Related card */
.rel-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(11, 11, 69, .07);
    border: 1px solid rgba(11, 11, 69, .1);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none;
    display: block;
}

.rel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(11, 11, 69, .11);
    border-color: rgba(5, 61, 160, .18);
}

.rel-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.rel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transition: transform .55s ease;
}

.rel-card:hover .rel-card-img img {
    transform: scale(1.06);
}

.rel-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(5, 61, 160, .85);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.rel-card-body {
    padding: 22px;
}

.rel-card-title {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 10px;
    transition: color .2s;
}

.rel-card:hover .rel-card-title {
    color: var(--blue)
}

.rel-card-excerpt {
    font-size: 14px;
    color: rgba(35, 35, 35, .52);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: rgba(35, 35, 35, .52);
}

.rel-card-meta svg {
    width: 12px;
    height: 12px;
    stroke: rgba(35, 35, 35, .52);
    fill: none;
}

.rel-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ==========================================================================
   RESPONSIVE — ARCHIVE & SINGLE
   ========================================================================== */
@media (max-width: 1100px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 80px 0 40px;
    }

    .pb-title {
        font-size: 32px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .bf-tabs {
        gap: 20px;
    }

    /* Single post responsive */
    .blog-single,
    .related-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .blog-breadcrumb {
        padding: 0 20px;
    }

    .blog-layout {
        padding-left: 0;
        padding-right: 0;
    }

    .blog-post-title {
        font-size: 28px;
    }

    .blog-toc-box {
        padding: 18px 20px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-body .wp-block-image,
    .article-body figure {
        margin: 28px 0;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .share-bottom-btns {
        flex-direction: column;
    }

    .share-bottom-btns .share-btn-lg {
        justify-content: center;
    }

}