/* ═══════════════════════════════
   BLOG STYLES
   Loaded on: single posts, blog listing, category, tag, search pages
   ═══════════════════════════════ */

/* ── Blog Layout Utilities ── */
.pd-top-100px---bottom-120px {
    padding-top: 100px;
    padding-bottom: 120px;
}
.position-relative---overflow-hidden {
    position: relative;
    overflow: hidden;
}
.inner-container._780px {
    max-width: 900px;
}
.inner-container.center {
    margin-left: auto;
    margin-right: auto;
}
.color-green-100 {
    color: #03003d;
}
.color-neutral-300 {
    color: #7e7f88;
}
.mg-bottom-12px { margin-bottom: 12px; }
.mg-bottom-64px { margin-bottom: 64px; }
.mg-bottom-40px { margin-bottom: 40px; }
.mg-bottom-24px { margin-bottom: 24px; }
.mg-bottom-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.image-wrapper {
    width: 100%;
    margin-top: 48px;
}
.border-radius-12px {
    border-radius: 12px;
    overflow: hidden;
}
.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.bg-top-half-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
}
.bg-top-half {
    height: 50%;
    background: linear-gradient(135deg, #f5f0ff 0%, #ede8ff 100%);
}
.bg-half-bottom {
    height: 50%;
    background: #fff;
}

/* ── Rich Text Content ── */
.rich-text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 64px;
    text-align: left;
}
.rich-text h1 {
    font-size: 36px;
    font-weight: 800;
    font-family: 'DM Sans', -apple-system, sans-serif;
}
.rich-text h2 {
    color: #03003d;
    font-size: 32px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.316em;
}
.rich-text h3 {
    color: #03003d;
    font-size: 24px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}
.rich-text p {
    color: #4a4a5a;
    font-size: 18px;
    font-family: 'DM Sans', -apple-system, sans-serif;
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 500;
}
.rich-text strong,
.rich-text b {
    color: #1a1a2e;
    font-weight: 700;
}
.rich-text a {
    color: #6B2FA0;
    text-decoration: underline;
}
.rich-text figure {
    margin: 2rem 0;
}
.rich-text figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.rich-text blockquote {
    border-left: 4px solid #ee4000;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #03003d;
    font-style: italic;
    font-size: 1.2rem;
}
.rich-text ul,
.rich-text ol {
    margin-bottom: 16px;
    padding-left: 1.5rem;
}
.rich-text ul li,
.rich-text ol li {
    color: #4a4a5a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 8px;
}
.rich-text ul li *,
.rich-text ol li * {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}
.rich-text ul li strong,
.rich-text ol li strong {
    color: #03003d;
    font-weight: 700;
}

/* ── Author Box ── */
.div-block-10 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.image-18 {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.div-block-11 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.text-block-7 {
    font-weight: 700;
    color: #03003d;
    font-size: 1rem;
}
.text-block-8 {
    color: #7e7f88;
    font-size: 0.875rem;
}
.link-5 {
    color: #ee4000;
    font-size: 0.875rem;
    text-decoration: none;
}
.link-5:hover {
    text-decoration: underline;
}
.link-3 {
    color: #ee4000;
    font-size: 0.9rem;
    text-decoration: none;
}
.blog-hero-btn {
    display: inline-block;
    background: #fff;
    color: #6b2fa0;
    border: 2px solid #e2e0dc;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    box-shadow: none;
    text-decoration: none;
    margin-top: 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.blog-hero-btn:hover {
    border-color: #6b2fa0;
    background: #f5ecfb;
    color: #5a1d8e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107,47,160,0.12);
    text-decoration: none;
}

/* ── Related Posts + Blog Listing ── */
.flex-horizontal {
    display: flex;
    align-items: center;
}
.title-left---button-right {
    justify-content: space-between;
}
.grid-3-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.gap-column-56px { column-gap: 56px; }
.gap-row-48px { row-gap: 48px; }

/* Blog page background */
body.page-template-page-blogs {
    background: linear-gradient(180deg, #faf7fe 0%, #ffffff 100%);
}

/* ── Blog Filter Buttons ── */
.blog-filter-btn {
    display: inline-flex; align-items: center;
    background: #fff; color: #6b2fa0;
    border: 2px solid #e2e0dc; border-radius: 50px;
    padding: 14px 32px; font-size: 15px; font-weight: 700; line-height: 1.4;
    cursor: pointer; transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.blog-filter-btn:hover, .blog-filter-btn:focus {
    border-color: #6b2fa0; background: #f5ecfb;
    color: #5a1d8e; transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107,47,160,0.12);
}
.blog-filter-btn.active {
    background: #6b2fa0; color: #fff; border-color: #6b2fa0;
    box-shadow: 0 6px 24px rgba(107,47,160,0.25);
}
.blog-filter-btn.active:hover {
    background: #5a1d8e; border-color: #5a1d8e; color: #fff;
    transform: translateY(-2px); box-shadow: 0 10px 36px rgba(107,47,160,0.3);
}

/* ── Blog Card ── */
.blog-card-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card-wrapper:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #ffffff;
}
.blog-card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}
.blog-card-content {
    display: flex;
    flex-direction: column;
}
.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.blog-card-wrapper:hover .blog-card-image {
    transform: scale(1.03);
}
.blog-card-title {
    color: #03003d;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 8px;
    transition: color 0.2s ease;
}
.blog-card-wrapper:hover .blog-card-title {
    color: #ee4000;
}
.text-300 {
    font-size: 0.875rem;
}
.medium { font-weight: 500; }
.color-neutral-800 { color: #03003d; }
.pd-top-0 { padding-top: 0; }
.pd-0px { padding: 0; }

/* ── Blog Breadcrumbs ── */
.blog-breadcrumbs {
    padding: 0 24px;
    background: linear-gradient(180deg, #faf7fe 0%, #ffffff 100%);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}
.blog-breadcrumbs a {
    color: #7e7f88;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-breadcrumbs a:hover { color: #6B2FA0; }
.blog-breadcrumbs .sep { color: #ccc; margin: 0 6px; }
.blog-breadcrumbs .current { color: #03003d; font-weight: 500; }

/* ── Blog Hero (single post) ── */
.blog-hero {
    padding: 32px 24px 24px;
    background: linear-gradient(180deg, #faf7fe 0%, #ffffff 100%);
}
.blog-hero-category {
    display: inline-block;
    background: #ede8ff;
    color: #6B2FA0;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}
.blog-hero-title {
    color: #03003d;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.blog-hero-excerpt {
    color: #4a4a5a;
    font-size: 18px;
    margin-bottom: 16px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    line-height: 1.6;
}
.blog-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #7e7f88;
    font-family: 'Inter', sans-serif;
}
.blog-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
}

/* ── Blog Hero Image ── */
.blog-hero-image-wrap { padding: 0 24px 32px; }
.blog-hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ── Blog Inline CTA ── */
.blog-inline-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #faf7fe 0%, #f0ebff 100%);
    border: 1px solid #e2d6f5;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 48px 0;
}
.blog-inline-cta-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #6B2FA0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-inline-cta-icon img { border-radius: 6px; }
.blog-inline-cta-text {
    flex: 1;
    font-size: 15px;
    color: #4a4a5a;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}
.blog-inline-cta-text strong { color: #03003d; }
.blog-inline-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: #6B2FA0;
    color: #fff;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.blog-inline-cta-btn:hover {
    background: #5a1d8e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(107,47,160,0.3);
    text-decoration: none;
    color: #fff;
}

/* ── Blog Author Box (updated) ── */
.blog-author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}
.blog-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #6B2FA0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-author-initial {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
}
.blog-author-info { display: flex; flex-direction: column; gap: 2px; }
.blog-author-name { font-weight: 700; color: #03003d; font-size: 1rem; }
.blog-author-title { color: #7e7f88; font-size: 0.875rem; }
.blog-author-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6B2FA0;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.2s;
}
.blog-author-linkedin:hover { color: #ee4000; text-decoration: underline; }

/* ── Blog Share Buttons ── */
.blog-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.blog-share-label {
    font-size: 14px;
    color: #7e7f88;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.blog-share-btns { display: flex; gap: 8px; }
.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.blog-share-btn:hover {
    background: #6B2FA0;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}
.blog-copy-link.copied { background: #2B8A3E; color: #fff; }

/* ── Blog Related Section ── */
.blog-related-section { padding-top: 80px; padding-bottom: 40px; }

/* ── Featured Blog Card (listing page) ── */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
}
.blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    text-decoration: none;
}
.blog-featured-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 12px;
}
.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-featured-card:hover .blog-featured-image img { transform: scale(1.03); }
.blog-featured-content { padding: 8px 16px 8px 0; }
.blog-featured-badge {
    display: inline-block;
    background: #ee4000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}
.blog-featured-cat {
    display: inline-block;
    background: #ede8ff;
    color: #6B2FA0;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    margin-left: 6px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}
.blog-featured-title {
    color: #03003d;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.2s;
}
.blog-featured-card:hover .blog-featured-title { color: #6B2FA0; }
.blog-featured-excerpt {
    color: #4a4a5a;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}
.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7e7f88;
    font-family: 'Inter', sans-serif;
}

/* ── Blog Card Extras ── */
.blog-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.blog-card-read-time {
    font-size: 12px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
}
.blog-card-excerpt {
    color: #7e7f88;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
}
.blog-card-date {
    font-size: 12px;
    color: #aaa;
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
}

/* ── Blog Responsive (inline) ── */
@media screen and (max-width: 991px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-featured-content { padding: 0 8px 8px; }
    .blogs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px 24px !important; }
    .blog-inline-cta { flex-direction: column; text-align: center; gap: 16px; }
}
@media screen and (max-width: 767px) {
    .blog-hero-title { font-size: 1.8rem; }
    .blogs-grid { grid-template-columns: 1fr !important; }
    .blog-share { flex-direction: column; align-items: flex-start; gap: 12px; }
    .rich-text { padding: 0 16px; }
    .blog-breadcrumbs { padding-top: 80px; }
}

@media screen and (max-width: 767px) {
    .grid-3-columns {
        grid-template-columns: 1fr;
    }
    .pd-top-100px---bottom-120px {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* ── Blog Archive ── */
.archive-header {
    margin-bottom: 2rem;
}
.archive-header h1 { margin-bottom: 0.5rem; }
.archive-desc { color: #555; margin-bottom: 1rem; }

/* Search form */
.blog-search {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin-top: 1rem;
}
.blog-search input[type="text"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}
.blog-search button {
    padding: 0.5rem 1.25rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}
.blog-search button:hover { background: #0055aa; }

/* Post cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.post-card {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.post-card a { color: inherit; display: block; }
.post-card a:hover { text-decoration: none; }
.post-card-thumb img { width: 100%; display: block; }
.post-card-body { padding: 1rem; }
.post-card-cat { font-size: 0.8rem; color: #0066cc; }
.post-card-body h3 { margin: 0.25rem 0 0.5rem; font-size: 1.1rem; }
.post-card-body p { color: #555; font-size: 0.9rem; }
.post-card-date { font-size: 0.8rem; color: #999; margin-top: 0.5rem; display: block; }

/* Single post */
.single-post { padding: 2rem 0; }
.post-header { margin-bottom: 1.5rem; }
.post-meta { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
.post-thumbnail { margin-bottom: 1.5rem; }
.post-thumbnail img { border-radius: 6px; }
.post-content h2, .post-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.post-content p { margin-bottom: 1rem; }
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

/* Pagination */
.pagination { margin-top: 2rem; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 0.5rem; }
.pagination a, .pagination span {
    padding: 0.4rem 0.8rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}
.pagination .current { background: #0066cc; color: #fff; border-color: #0066cc; }

/* Search results */
.search-results { padding: 2rem 0; }

/* ═══════════════════════════════
   BLOG RESPONSIVE — TABLET (max-width: 991px)
   ═══════════════════════════════ */
@media (max-width: 991px) {
    /* ── Blog listing ── */
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px 24px !important;
    }
}

/* ═══════════════════════════════
   BLOG RESPONSIVE — MOBILE (max-width: 767px)
   ═══════════════════════════════ */
@media (max-width: 767px) {
    /* ── Blog hero mobile ── */
    .inner-container._780px.center.text-center h1 {
        font-size: 28px !important;
    }
    .inner-container._780px.center.text-center p {
        font-size: 15px !important;
    }
    .inner-container._780px.center.text-center div[style*="font-size:14px"] {
        font-size: 12px !important;
    }

    /* ── Blog listing ── */
    .blogs-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .blogs-listing-wrap {
        padding: 140px 16px 60px !important;
    }
    .blogs-listing-title {
        font-size: 36px !important;
        margin-bottom: 32px !important;
    }

    /* ── Single blog post ── */
    .display-1 {
        font-size: 28px !important;
    }
    .pd-top-100px---bottom-120px {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .rich-text {
        max-width: 100%;
    }
    .rich-text h2 {
        font-size: 24px;
        margin-top: 32px;
    }
    .rich-text h3 {
        font-size: 20px;
        margin-top: 24px;
    }
    .rich-text p {
        font-size: 1rem;
    }
    .rich-text ul li,
    .rich-text ol li {
        font-size: 1rem;
    }
    .rich-text blockquote {
        font-size: 1rem;
        padding-left: 1rem;
    }
    .div-block-10 {
        flex-direction: row;
        align-items: center;
        max-width: 100%;
    }
    .grid-3-columns {
        grid-template-columns: 1fr;
    }
    .gap-column-56px {
        column-gap: 0;
    }
    .gap-row-48px {
        row-gap: 32px;
    }
    .display-2 {
        font-size: 24px;
    }
    .image-wrapper {
        margin-top: 24px;
    }

    /* ── Blog layout ── */
    .flex-horizontal.title-left---button-right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

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

/* ═══════════════════════════════
   BLOG RESPONSIVE — SMALL MOBILE (max-width: 479px)
   ═══════════════════════════════ */
@media (max-width: 479px) {
    .blogs-listing-title {
        font-size: 28px !important;
    }
    .display-1 {
        font-size: 24px !important;
    }
}
