/* Blog, post, and post-archive presentation. */

body.blog,
body.single-post,
body.category,
body.tag,
body.author,
body.date,
body.search,
body.blog #inner-wrap,
body.single-post #inner-wrap,
body.category #inner-wrap,
body.tag #inner-wrap,
body.author #inner-wrap,
body.date #inner-wrap,
body.search #inner-wrap,
body.blog .content-area,
body.single-post .content-area,
body.category .content-area,
body.tag .content-area,
body.author .content-area,
body.date .content-area,
body.search .content-area {
    background: #f6f8fb;
}

body.blog .content-area,
body.category .content-area,
body.tag .content-area,
body.author .content-area,
body.date .content-area,
body.search .content-area {
    margin-top: 3.5rem;
    margin-bottom: 4.5rem;
}

body.blog #archive-container.post-archive,
body.category #archive-container.post-archive,
body.tag #archive-container.post-archive,
body.author #archive-container.post-archive,
body.date #archive-container.post-archive,
body.search #archive-container.post-archive {
    column-gap: 28px;
    row-gap: 34px;
}

body.blog #archive-container.post-archive .entry-list-item,
body.category #archive-container.post-archive .entry-list-item,
body.tag #archive-container.post-archive .entry-list-item,
body.author #archive-container.post-archive .entry-list-item,
body.date #archive-container.post-archive .entry-list-item,
body.search #archive-container.post-archive .entry-list-item {
    margin: 0;
}

body.blog #archive-container.post-archive .loop-entry,
body.category #archive-container.post-archive .loop-entry,
body.tag #archive-container.post-archive .loop-entry,
body.author #archive-container.post-archive .loop-entry,
body.date #archive-container.post-archive .loop-entry,
body.search #archive-container.post-archive .loop-entry {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(8, 38, 60, 0.12);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(8, 38, 60, 0.06);
}

body.blog #archive-container.post-archive .post-thumbnail,
body.category #archive-container.post-archive .post-thumbnail,
body.tag #archive-container.post-archive .post-thumbnail,
body.author #archive-container.post-archive .post-thumbnail,
body.date #archive-container.post-archive .post-thumbnail,
body.search #archive-container.post-archive .post-thumbnail {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25% !important;
    background: #eef3f7;
}

body.blog #archive-container.post-archive .post-thumbnail-inner,
body.category #archive-container.post-archive .post-thumbnail-inner,
body.tag #archive-container.post-archive .post-thumbnail-inner,
body.author #archive-container.post-archive .post-thumbnail-inner,
body.date #archive-container.post-archive .post-thumbnail-inner,
body.search #archive-container.post-archive .post-thumbnail-inner {
    position: absolute;
    inset: 0;
    height: auto;
    padding-bottom: 0 !important;
}

body.blog #archive-container.post-archive .post-thumbnail img,
body.category #archive-container.post-archive .post-thumbnail img,
body.tag #archive-container.post-archive .post-thumbnail img,
body.author #archive-container.post-archive .post-thumbnail img,
body.date #archive-container.post-archive .post-thumbnail img,
body.search #archive-container.post-archive .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.blog #archive-container.post-archive .entry-content-wrap,
body.category #archive-container.post-archive .entry-content-wrap,
body.tag #archive-container.post-archive .entry-content-wrap,
body.author #archive-container.post-archive .entry-content-wrap,
body.date #archive-container.post-archive .entry-content-wrap,
body.search #archive-container.post-archive .entry-content-wrap {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px;
}

body.blog #archive-container.post-archive .entry-taxonomies,
body.category #archive-container.post-archive .entry-taxonomies,
body.tag #archive-container.post-archive .entry-taxonomies,
body.author #archive-container.post-archive .entry-taxonomies,
body.date #archive-container.post-archive .entry-taxonomies,
body.search #archive-container.post-archive .entry-taxonomies {
    margin-bottom: 8px;
}

body.blog #archive-container.post-archive .entry-taxonomies a,
body.category #archive-container.post-archive .entry-taxonomies a,
body.tag #archive-container.post-archive .entry-taxonomies a,
body.author #archive-container.post-archive .entry-taxonomies a,
body.date #archive-container.post-archive .entry-taxonomies a,
body.search #archive-container.post-archive .entry-taxonomies a {
    color: var(--global-palette1, #155492);
    font-size: 0.8125rem;
    font-weight: 700;
}

body.blog #archive-container.post-archive .entry-title,
body.category #archive-container.post-archive .entry-title,
body.tag #archive-container.post-archive .entry-title,
body.author #archive-container.post-archive .entry-title,
body.date #archive-container.post-archive .entry-title,
body.search #archive-container.post-archive .entry-title {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 1vw + 0.9rem, 1.45rem);
    line-height: 1.25;
}

body.blog #archive-container.post-archive .entry-title a,
body.category #archive-container.post-archive .entry-title a,
body.tag #archive-container.post-archive .entry-title a,
body.author #archive-container.post-archive .entry-title a,
body.date #archive-container.post-archive .entry-title a,
body.search #archive-container.post-archive .entry-title a {
    color: var(--global-palette6, #08263c);
}

body.blog #archive-container.post-archive .entry-title a:hover,
body.blog #archive-container.post-archive .entry-title a:focus,
body.category #archive-container.post-archive .entry-title a:hover,
body.category #archive-container.post-archive .entry-title a:focus,
body.tag #archive-container.post-archive .entry-title a:hover,
body.tag #archive-container.post-archive .entry-title a:focus,
body.author #archive-container.post-archive .entry-title a:hover,
body.author #archive-container.post-archive .entry-title a:focus,
body.date #archive-container.post-archive .entry-title a:hover,
body.date #archive-container.post-archive .entry-title a:focus,
body.search #archive-container.post-archive .entry-title a:hover,
body.search #archive-container.post-archive .entry-title a:focus {
    color: var(--global-palette1, #155492);
}

body.blog #archive-container.post-archive .entry-meta,
body.category #archive-container.post-archive .entry-meta,
body.tag #archive-container.post-archive .entry-meta,
body.author #archive-container.post-archive .entry-meta,
body.date #archive-container.post-archive .entry-meta,
body.search #archive-container.post-archive .entry-meta {
    color: var(--global-palette5, #596579);
    font-size: 0.875rem;
}

body.blog #archive-container.post-archive .entry-summary,
body.category #archive-container.post-archive .entry-summary,
body.tag #archive-container.post-archive .entry-summary,
body.author #archive-container.post-archive .entry-summary,
body.date #archive-container.post-archive .entry-summary,
body.search #archive-container.post-archive .entry-summary {
    margin-top: 16px;
    color: var(--global-palette5, #596579);
    font-size: 0.98rem;
    line-height: 1.6;
}

body.blog #archive-container.post-archive .entry-footer,
body.category #archive-container.post-archive .entry-footer,
body.tag #archive-container.post-archive .entry-footer,
body.author #archive-container.post-archive .entry-footer,
body.date #archive-container.post-archive .entry-footer,
body.search #archive-container.post-archive .entry-footer {
    margin-top: auto;
    padding-top: 18px;
}

body.blog #archive-container.post-archive .more-link-wrap,
body.category #archive-container.post-archive .more-link-wrap,
body.tag #archive-container.post-archive .more-link-wrap,
body.author #archive-container.post-archive .more-link-wrap,
body.date #archive-container.post-archive .more-link-wrap,
body.search #archive-container.post-archive .more-link-wrap {
    margin: 0;
}

body.blog #archive-container.post-archive .post-more-link,
body.category #archive-container.post-archive .post-more-link,
body.tag #archive-container.post-archive .post-more-link,
body.author #archive-container.post-archive .post-more-link,
body.date #archive-container.post-archive .post-more-link,
body.search #archive-container.post-archive .post-more-link {
    color: var(--global-palette1, #155492);
    font-weight: 700;
}

body.single-post .entry.single-entry {
    border: 1px solid rgba(8, 38, 60, 0.1);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(8, 38, 60, 0.05);
}

body.single-post .entry-content-wrap {
    background: #fff;
}

body.single-post .entry-content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

body.blog .pagination,
body.category .pagination,
body.tag .pagination,
body.author .pagination,
body.date .pagination,
body.search .pagination {
    margin-top: 3rem;
}

body.blog .pagination .nav-links,
body.category .pagination .nav-links,
body.tag .pagination .nav-links,
body.author .pagination .nav-links,
body.date .pagination .nav-links,
body.search .pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

body.blog .pagination .page-numbers,
body.category .pagination .page-numbers,
body.tag .pagination .page-numbers,
body.author .pagination .page-numbers,
body.date .pagination .page-numbers,
body.search .pagination .page-numbers {
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(8, 38, 60, 0.14);
    border-radius: 6px;
    background: #fff;
    color: var(--global-palette6, #08263c);
    text-align: center;
    text-decoration: none;
}

body.blog .pagination .page-numbers.current,
body.blog .pagination .page-numbers:hover,
body.blog .pagination .page-numbers:focus,
body.category .pagination .page-numbers.current,
body.category .pagination .page-numbers:hover,
body.category .pagination .page-numbers:focus,
body.tag .pagination .page-numbers.current,
body.tag .pagination .page-numbers:hover,
body.tag .pagination .page-numbers:focus,
body.author .pagination .page-numbers.current,
body.author .pagination .page-numbers:hover,
body.author .pagination .page-numbers:focus,
body.date .pagination .page-numbers.current,
body.date .pagination .page-numbers:hover,
body.date .pagination .page-numbers:focus,
body.search .pagination .page-numbers.current,
body.search .pagination .page-numbers:hover,
body.search .pagination .page-numbers:focus {
    border-color: var(--global-palette1, #155492);
    background: var(--global-palette1, #155492);
    color: #fff;
}

body.blog .pagination .page-numbers.dots,
body.category .pagination .page-numbers.dots,
body.tag .pagination .page-numbers.dots,
body.author .pagination .page-numbers.dots,
body.date .pagination .page-numbers.dots,
body.search .pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

@media (max-width: 767px) {
    body.blog .content-area,
    body.category .content-area,
    body.tag .content-area,
    body.author .content-area,
    body.date .content-area,
    body.search .content-area {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }

    body.blog #archive-container.post-archive,
    body.category #archive-container.post-archive,
    body.tag #archive-container.post-archive,
    body.author #archive-container.post-archive,
    body.date #archive-container.post-archive,
    body.search #archive-container.post-archive {
        row-gap: 24px;
    }

    body.blog #archive-container.post-archive .entry-content-wrap,
    body.category #archive-container.post-archive .entry-content-wrap,
    body.tag #archive-container.post-archive .entry-content-wrap,
    body.author #archive-container.post-archive .entry-content-wrap,
    body.date #archive-container.post-archive .entry-content-wrap,
    body.search #archive-container.post-archive .entry-content-wrap {
        padding: 20px;
    }
}

/* ── BeTheme Author Avatar Frame Parity ── */
.entry-author .entry-author-avatar {
    width: 64px !important;
    height: 64px !important;
    border-width: 8px !important;
    border-style: solid !important;
    border-color: #f8f8f8 !important;
    -webkit-border-radius: 100% !important;
    border-radius: 100% !important;
    overflow: hidden !important;
    display: block !important;
    line-height: 0 !important;
    padding: 0 !important;
    float: left !important;
    margin-right: 1.25rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.entry-author .entry-author-avatar img {
    border-radius: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Ensure centering layout functions properly if center style is active */
.entry-author-style-center .entry-author-avatar {
    float: none !important;
    margin: 0 auto 1rem !important;
}

/* ── Section Post Intro Share Styles ── */
.section-post-intro-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(8, 38, 60, 0.08);
    border-radius: 8px;
    margin: 2.5rem 0;
    box-shadow: 0 4px 12px rgba(8, 38, 60, 0.03);
}

.section-post-intro-share .share-title {
    font-weight: 700;
    color: var(--global-palette6, #08263c);
    font-size: 0.95rem;
}

.section-post-intro-share .share-buttons-wrap {
    display: flex;
    gap: 8px;
}

.section-post-intro-share .share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    color: #ffffff !important;
    font-size: 0.9rem;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-decoration: none !important;
}

.section-post-intro-share .share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.section-post-intro-share .share-facebook { background: #1877f2; }
.section-post-intro-share .share-x { background: #0f1419; }
.section-post-intro-share .share-linkedin { background: #0077b5; }
.section-post-intro-share .share-copy { background: var(--global-palette1, #155492); }
.section-post-intro-share .share-email { background: #657786; }


/* ── Premium Editorial Blog Enhancements ── */

/* 1. Editorial Intro Lead */
body.single-post .entry-content > p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--global-palette5, #4a5568);
    font-weight: 400;
    margin-bottom: 2rem;
}

/* 2. Rhythmic Heading Spacing & Typography */
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    color: var(--global-palette6, #08263c);
    letter-spacing: -0.02em;
    line-height: 1.3;
    font-weight: 800;
}

/* Rhythmic Heading Spacing (applied globally in post content) */
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    margin-top: 2.75rem;
    margin-bottom: 1.25rem;
}

/* Explicitly reset margins if heading is nested inside a table to prevent spacing inheritance */
body.single-post .entry-content table h2,
body.single-post .entry-content table h3,
body.single-post .entry-content table h4 {
    margin-top: 0;
    margin-bottom: 0;
}
body.single-post .entry-content h2 {
    font-size: clamp(1.6rem, 2vw + 1.2rem, 2.1rem);
}

body.single-post .entry-content h3 {
    font-size: clamp(1.35rem, 1.5vw + 1rem, 1.65rem);
}

/* 3. Magazine-Style Blockquotes */
body.single-post .entry-content blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--global-palette3, #3cbce6);
    padding: 1.5rem 2rem;
    margin: 2.25rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 1px 3px rgba(11, 31, 51, 0.01);
}

body.single-post .entry-content blockquote p {
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--global-palette5, #4a5568);
    margin-bottom: 0;
}

body.single-post .entry-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--global-palette1, #155492);
}

/* 4. High-Density List Padding for Guides */
body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

body.single-post .entry-content li {
    margin-bottom: 0.65rem;
    line-height: 1.7;
    color: var(--global-palette5, #4a5568);
}

body.single-post .entry-content li::marker {
    color: var(--global-palette3, #3cbce6);
    font-weight: 700;
}

/* 5. Modern Inline Code Blocks */
body.single-post .entry-content code {
    background: #f1f5f9;
    color: #e21d48;
    padding: 3px 6px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    border-radius: 6px;
    border: 1px solid rgba(8, 38, 60, 0.05);
}

/* 6. Sophisticated Author Biography Card */
body.single-post .entry-author {
    background: #ffffff !important;
    border: 1px solid rgba(8, 38, 60, 0.08) !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    margin-top: 3rem !important;
    box-shadow: 0 4px 18px rgba(8, 38, 60, 0.03) !important;
}

body.single-post .entry-author-profile {
    display: block !important;
}

body.single-post .entry-author-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--global-palette6, #08263c) !important;
    margin-bottom: 0.25rem !important;
}

body.single-post .entry-author-occupation {
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--global-palette3, #3cbce6) !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
}

body.single-post .entry-author-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--global-palette5, #596579) !important;
}

/* ── 7. Premium Related Posts Carousel Cards Overrides ── */
.entry-related .entry-related-carousel .loop-entry {
    background: #ffffff !important;
    border: 1px solid rgba(8, 38, 60, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(8, 38, 60, 0.04) !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Elegant lift, glow, and hover interaction */
.entry-related .entry-related-carousel .loop-entry:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(60, 188, 230, 0.6) !important; /* Brand Cyan highlight border on hover */
    box-shadow: 0 16px 36px rgba(8, 38, 60, 0.1) !important;
}

/* Zoom animation on thumbnail images */
.entry-related .entry-related-carousel .loop-entry .post-thumbnail {
    overflow: hidden !important;
    position: relative !important;
    border-bottom: 1px solid rgba(8, 38, 60, 0.05) !important;
}

.entry-related .entry-related-carousel .loop-entry .post-thumbnail img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.entry-related .entry-related-carousel .loop-entry:hover .post-thumbnail img {
    transform: scale(1.06) !important;
}

/* Card inner content padding and layout refinement */
.entry-related .entry-related-carousel .loop-entry .entry-content-wrap {
    padding: 20px 24px 24px !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Taxonomies (categories) badge */
.entry-related .entry-related-carousel .loop-entry .entry-taxonomies {
    margin-bottom: 8px !important;
}

.entry-related .entry-related-carousel .loop-entry .entry-taxonomies a {
    color: var(--global-palette3, #3cbce6) !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Title typography scaling */
.entry-related .entry-related-carousel .loop-entry .entry-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
}

.entry-related .entry-related-carousel .loop-entry .entry-title a {
    color: var(--global-palette6, #08263c) !important;
    transition: color 0.25s ease !important;
}

.entry-related .entry-related-carousel .loop-entry:hover .entry-title a {
    color: var(--global-palette1, #155492) !important;
}

/* Metadata styling */
.entry-related .entry-related-carousel .loop-entry .entry-meta {
    font-size: 0.8rem !important;
    color: var(--global-palette5, #596579) !important;
    margin-top: auto !important; /* Push metadata to bottom */
}






