/**
 * Long War Journal
 * Hybrid Theme Styles
 *
 * @package Long_War_Journal
 */

/* ========================================
   GENERAL STYLES
   ======================================== */

/* Header and Footer */

.podcast-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem !important;
    margin-bottom: 1rem;
}

.chronicle-journal-header-group {
    padding: var(--wp--preset--spacing--md) 0 var(--wp--preset--spacing--xs) 0;
    border-bottom: 3px solid
        var(--wp--preset--color--border, var(--wp--preset--color--accent));
    background-color: var(--wp--preset--color--alabaster, #efedea);
}

/* Keep the fixed-width header search and logo from overflowing as the window
   shrinks — the wrapper group must never exceed the viewport, and the search
   keeps its 621px size only while there's room for it. */
.chronicle-journal-header-group .wp-block-group {
    max-width: 100%;
}

.chronicle-journal-header-group .wp-block-search {
    width: 100%;
    max-width: 621px;
}

.chronicle-journal-header-group .wp-block-search__input {
    min-width: 0;
}

.chronicle-journal-header-group img {
    max-width: 100%;
    height: auto;
}

.chronicle-journal-footer-group {
    padding: var(--wp--preset--spacing--lg);
    margin-top: var(--wp--preset--spacing--sm);
}

footer {
    border-top: 3px solid
        var(--wp--preset--color--border, var(--wp--preset--color--accent));
    background-color: var(--wp--preset--color--alabaster, #efedea);
}

.chronicle-journal-footer-group .footer-links {
    padding-left: clamp(3rem, 2rem + 4vw, 8rem);
}

.chronicle-journal-footer-group .footer-links a {
    text-decoration: none;
    color: var(--wp--preset--color--text);
}

.chronicle-journal-footer-group .footer-links a:hover {
    text-decoration: underline;
    color: var(--wp--preset--color--highlight);
}

/* Footer top: logo left, description + social icons right */
.chronicle-journal-footer-group .footer-top {
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
    margin-bottom: var(--wp--preset--spacing--md);
}

.footer-logo-col {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.footer-info-col .footer-desc {
    margin: 0 0 var(--wp--preset--spacing--sm) 0;
    line-height: 1.6;
    color: var(--wp--preset--color--text, #121212);
}

.footer-info-col .footer-social {
    gap: 10px;
}

/* Divider above the legal / links bar */
.chronicle-journal-footer-group .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin-top: var(--wp--preset--spacing--sm);
    padding-top: var(--wp--preset--spacing--md) !important;
    align-items: center;
}

/* Borders */
.has-camel-border-bottom {
    border-bottom: 3px solid
        var(--wp--preset--color--border, var(--wp--preset--color--accent));
}

/* Taxonomy and Categories */
.taxonomy-category a {
    border: 1px solid var(--wp--preset--color--taxonomy, #efedea);
    background-color: var(--wp--preset--color--taxonomy);
    color: var(--wp--preset--color--text);
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: var(--wp--preset--font-size--small);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.taxonomy-category a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.taxonomy-category a:hover {
    background-color: var(--wp--preset--color--subtext);
    border-color: var(--wp--preset--color--subtext);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.taxonomy-category a:hover::before {
    left: 100%;
}

.taxonomy-category a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.taxonomy-category span {
    visibility: hidden;
}

/* Article category badge — visible News/Analysis designation on the single post page,
   placed below the byline. Uses its own class so the global
   ".taxonomy-category.wp-block-post-terms { display:none }" hide does not apply. */
.article-category {
    margin-top: 0;
    margin-bottom: 0;
    font-family: var(
        --wp--preset--font-family--urw-din,
        "urw-din",
        "URW DIN",
        "Helvetica Neue",
        Arial,
        sans-serif
    );
}

/* Beat the global ".taxonomy-category.wp-block-post-terms { display:none }" hide — WordPress
   always adds the taxonomy-category class to a category post-terms block. */
.article-category.taxonomy-category.wp-block-post-terms {
    display: block;
}

/* Even, consistent gap on both sides of the badge wherever it sits between the
   byline and the date — margin lives on the sibling relationship, not the
   badge itself, so it stays equal regardless of the surrounding line-height. */
.wp-block-post-author + .article-category {
    margin-top: var(--wp--preset--spacing--xs);
}

.article-category + .wp-block-post-date {
    margin-top: var(--wp--preset--spacing--xs);
}

/* Render as a colored badge so the News/Analysis designation reads as a status marker,
   not a plain text label. */
.article-category a {
    display: inline-block;
    color: #fff;
    background: var(--wp--preset--color--accent, #00558c);
    border: none;
    border-radius: 3px;
    padding: 0.2em 0.6em;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: none;
    transform: none;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.article-category a::before {
    content: none;
}

.article-category a:hover {
    background: var(--wp--preset--color--alternate, #2e4a62);
    box-shadow: none;
    transform: none;
    text-decoration: none;
}

/* News/Analysis designation colors — category slugs added via
   chronicle_journal_article_category_class() in functions.php. */
.article-category.category-news a {
    background: var(--wp--preset--color--accent, #00558c);
}

.article-category.category-news a:hover {
    background: var(--wp--preset--color--alternate, #2e4a62);
}

.article-category.category-analysis a {
    background: var(--wp--preset--color--fire-red-engine, #c62828);
}

.article-category.category-analysis a:hover {
    background: #a02121;
}

.article-category.category-generation-jihad a {
    background: #000;
}

.article-category.category-generation-jihad a:hover {
    background: #2a2a2a;
}

/* Brand-colored headline on the single article page */
.post-container h1.wp-block-post-title {
    color: var(--wp--preset--color--alternate, #2e4a62);
}

@media (max-width: 768px) {
    .post-container h1.wp-block-post-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 480px) {
    .post-container h1.wp-block-post-title {
        font-size: 1.6rem !important;
    }
}

/* Learn More Link */
.wp-block-post-excerpt__more-link {
    text-decoration: none;
    background-color: var(--wp--preset--color--accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-block-post-excerpt__more-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.wp-block-post-excerpt__more-link:hover {
    background-color: var(--wp--preset--color--alternate, #2e4a62);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wp-block-post-excerpt__more-link:hover::before {
    left: 100%;
}

.wp-block-post-excerpt__more-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
button,
.button,
input[type="submit"],
.wp-block-button__link {
    background-color: var(--wp--preset--color--text, #1a1a1a);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

button::before,
.button::before,
input[type="submit"]::before,
.wp-block-button__link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background-color: var(--wp--preset--color--highlight, #1b5f9e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:hover::before,
.button:hover::before,
input[type="submit"]:hover::before,
.wp-block-button__link:hover::before {
    left: 100%;
}

button:active,
.button:active,
input[type="submit"]:active,
.wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Outline Button */
.is-style-outline .wp-block-button__link {
    background-color: var(--wp--preset--color--background);
    color: var(--wp--preset--color--text, #1b5f9e);
    border: 2px solid var(--wp--preset--color--text, #1b5f9e);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.is-style-outline .wp-block-button__link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.is-style-outline .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--alternate, #2e4a62);
    border-color: var(--wp--preset--color--alternate, #2e4a62);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.is-style-outline .wp-block-button__link:hover::before {
    left: 100%;
}

.is-style-outline .wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Patterns and Layout */
.chronicle-journal-pattern {
    padding: clamp(3rem, 1rem + 2vw, 4rem) 0;
}

/* ========================================
   FEATURED POSTS SECTION
   ======================================== */

.featured-posts-grid {
    gap: var(--wp--preset--spacing--md) !important;
}

/* Main featured post (large) */
.featured-main-column .featured-post-large .featured-post-image {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-main-column .featured-post-large .featured-post-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-main-column .featured-post-large:hover .featured-post-image img {
    transform: scale(1.02);
}

.featured-main-column .hero-post-title a {
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Secondary posts (smaller) */
.featured-secondary-column .featured-post-small {
    margin-bottom: var(--wp--preset--spacing--md);
    padding-bottom: var(--wp--preset--spacing--sm);
    border-bottom: 1px solid var(--wp--preset--color--chinese-white, #e0e0e0);
}

.featured-secondary-column .featured-post-small:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-secondary-column .featured-post-image {
    margin-bottom: 0;
    border-radius: 6px;
    overflow: hidden;
}

.featured-secondary-column .featured-post-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-secondary-column .featured-post-small:hover .featured-post-image img {
    transform: scale(1.03);
}

.featured-secondary-column .hero-post-title a {
    font-size: 1rem;
    line-height: 1.4;
}

.featured-secondary-column .featured-post-content .has-small-font-size {
    margin-top: var(--wp--preset--spacing--xs);
}

/* Podcast Highlight Card */
.featured-podcast-column .podcast-highlight-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.podcast-highlight-title {
    margin: 0 0 var(--wp--preset--spacing--xs) 0 !important;
    font-size: 1.125rem !important;
}

.podcast-badges-mini {
    padding: var(--wp--preset--spacing--xs) 0;
}

.podcast-badges-mini .podcast-badge {
    margin: 0 !important;
}

.podcast-badges-mini .podcast-badge img {
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.podcast-badges-mini .podcast-badge:hover img {
    transform: scale(1.05);
}

/* Featured Posts Responsive */
@media (max-width: 1024px) {
    .featured-posts-grid {
        flex-wrap: wrap !important;
    }

    .featured-main-column {
        flex-basis: 100% !important;
    }

    .featured-secondary-column {
        flex-basis: 55% !important;
    }

    .featured-podcast-column {
        flex-basis: 40% !important;
    }

    .featured-podcast-column .podcast-highlight-card {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .featured-posts-grid {
        flex-direction: column !important;
    }

    .featured-main-column,
    .featured-secondary-column,
    .featured-podcast-column {
        flex-basis: 100% !important;
    }

    .featured-main-column .hero-post-title a {
        font-size: 1.25rem;
    }

    .featured-podcast-column .podcast-highlight-card {
        flex-direction: column;
    }

    .featured-secondary-column .featured-post-small {
        display: flex;
        flex-direction: row;
        gap: var(--wp--preset--spacing--sm);
        align-items: flex-start;
    }

    .featured-secondary-column .featured-post-small .featured-post-image {
        flex-shrink: 0;
        width: 140px;
    }

    .featured-secondary-column .featured-post-small .featured-post-content {
        flex: 1;
        min-width: 0;
    }
}

.hero-post-title a,
.patterns-post-title a {
    /** Same size with --wp--preset--font-size--h6(using this var will have undefined behavior) */
    font-size: 1.25rem;
    color: var(--wp--preset--color--text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hero-post-title a:hover,
.patterns-post-title a:hover {
    color: var(--wp--preset--color--highlight, #1b5f9e);
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2.hero-post-title,
h2.patterns-post-title {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

/* Post Meta */
.wp-block-group.has-small-font-size {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--sm);
    margin-top: var(--wp--preset--spacing--md);
    /* padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md); */
}

.wp-block-post-author,
.wp-block-post-author,
.wp-block-post-date {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--wp--preset--color--text);
}

.wp-block-post-author__avatar {
    margin-right: 0;
}

.wp-block-post-author img {
    border-radius: 50%;
    border: 2px solid var(--wp--preset--color--accent, #c69c6a);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .wp-block-post-author img,
.chronicle-journal-pattern .wp-block-post-author img {
    width: 32px;
    height: 32px;
}

/* Featured images - equal height and object-fit cover for all post listings */
.hero-section .wp-block-post-featured-image,
.wp-block-query .wp-block-post-featured-image,
.wp-block-post-template .wp-block-post-featured-image {
    /* height: 280px; */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.hero-section .wp-block-post-featured-image img,
.wp-block-query .wp-block-post-featured-image img,
.wp-block-post-template .wp-block-post-featured-image img {
    width: 100%;
    /* height: 280px; */
    object-fit: cover;
    object-position: center;
}

/* Smaller captions and meta text for all post listings */
.hero-section .wp-block-post-terms,
.hero-section .wp-block-post-author,
.hero-section .wp-block-post-date,
.wp-block-query .wp-block-post-terms,
.wp-block-query .wp-block-post-author,
.wp-block-query .wp-block-post-date,
.wp-block-post-template .wp-block-post-terms,
.wp-block-post-template .wp-block-post-author,
.wp-block-post-template .wp-block-post-date {
    font-size: 0.875rem;
}

.hero-section .taxonomy-category a,
.wp-block-query .taxonomy-category a,
.wp-block-post-template .taxonomy-category a {
    font-size: 0.75rem;
    /*     padding: 3px 8px; */
}

/* Hide category taxonomy terms */
.taxonomy-category.wp-block-post-terms {
    display: none;
}

/* Smaller excerpt text for all post listings */
.hero-section .wp-block-post-excerpt,
.wp-block-query .wp-block-post-excerpt,
.wp-block-post-template .wp-block-post-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.hero-section .wp-block-post-excerpt__excerpt,
.wp-block-query .wp-block-post-excerpt__excerpt,
.wp-block-post-template .wp-block-post-excerpt__excerpt {
    font-size: 0.875rem;
}

/* Remove default h2 margins for all post listings */
.hero-section h2,
.hero-section .hero-post-title,
.wp-block-query h2,
.wp-block-post-template h2,
.wp-block-query .wp-block-post-title,
.wp-block-post-template .wp-block-post-title {
    margin-block-start: 0;
    margin-block-end: 0.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.wp-block-post-author .wp-block-post-author__name {
    color: var(--wp--preset--color--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-block-post-author .wp-block-post-author__name a,
.wp-block-post-date a {
    text-decoration: none;
    color: var(--wp--preset--color--text);
}

.wp-block-post-author .wp-block-post-author__name a:hover,
.wp-block-post-date a:hover {
    text-decoration: underline;
    color: var(--wp--preset--color--highlight);
}

/* Full-height image coverage for promotions column */
.promotions-column-image {
    display: flex;
    flex-direction: column;
}

.promotions-column-image .wp-block-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.promotions-column-image .wp-block-image figure {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.promotions-column-image .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    flex: 1;
}

/* Single Post */
.post-container {
    padding: var(--wp--preset--spacing--lg);
}

/* Post Meta */
.wp-block-post-author img {
    border-radius: 50%;
}

.wp-block-post-author {
    align-items: center;
}

/* Post Author Biography */
.wp-block-post-author-biography {
    background: var(--wp--preset--color--alabaster, #efedea);
    padding: 2rem;
    margin: 2rem 0 var(--wp--preset--spacing--sm) 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--wp--preset--color--accent, #c69c6a);
}

.wp-block-post-author-biography .wp-block-post-author-biography__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.wp-block-post-author-biography .wp-block-post-author-biography__name {
    font-family: var(--wp--preset--font-family--urw-din, "URW DIN", sans-serif);
    font-size: var(--wp--preset--font-size--h4);
    font-weight: 900;
    color: var(--wp--preset--color--text, #1a1a1a);
    margin: 0 0 0.5rem 0;
    line-height: var(--wp--custom--line-height--h-3);
}

.wp-block-post-author-biography .wp-block-post-author-biography__content {
    font-size: var(--wp--preset--font-size--medium);
    line-height: var(--wp--custom--line-height--normal);
    color: var(--wp--preset--color--text, #1a1a1a);
    margin: 0;
}

.wp-block-post-author-biography .wp-block-post-author-biography__content p {
    margin: 0 0 1rem 0;
}

.wp-block-post-author-biography
    .wp-block-post-author-biography__content
    p:last-child {
    margin-bottom: 0;
}

/* Author biography layout */
.wp-block-post-author-biography {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.wp-block-post-author-biography__avatar {
    flex-shrink: 0;
}

.wp-block-post-author-biography__text {
    flex: 1;
}

/* Comment Pagination */
.wp-block-comments-pagination {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.wp-block-comments-pagination .wp-block-comments-pagination-previous,
.wp-block-comments-pagination .wp-block-comments-pagination-next {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--wp--preset--color--text, #1a1a1a);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0 0.5rem;
}

.wp-block-comments-pagination .wp-block-comments-pagination-previous::before,
.wp-block-comments-pagination .wp-block-comments-pagination-next::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.wp-block-comments-pagination .wp-block-comments-pagination-previous:hover,
.wp-block-comments-pagination .wp-block-comments-pagination-next:hover {
    background-color: var(--wp--preset--color--highlight, #1b5f9e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.wp-block-comments-pagination
    .wp-block-comments-pagination-previous:hover::before,
.wp-block-comments-pagination .wp-block-comments-pagination-next:hover::before {
    left: 100%;
}

.wp-block-comments-pagination .wp-block-comments-pagination-previous:active,
.wp-block-comments-pagination .wp-block-comments-pagination-next:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-block-comments-pagination .wp-block-comments-pagination-numbers {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0 1rem;
}

.wp-block-comments-pagination .wp-block-comments-pagination-numbers a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: var(--wp--preset--color--alabaster, #efedea);
    color: var(--wp--preset--color--text, #1a1a1a);
    text-decoration: none;
    border-radius: 4px;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 2.5rem;
    text-align: center;
}

.wp-block-comments-pagination .wp-block-comments-pagination-numbers a:hover {
    background-color: var(--wp--preset--color--accent, #c69c6a);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wp-block-comments-pagination .wp-block-comments-pagination-numbers .current {
    background-color: var(--wp--preset--color--highlight, #1b5f9e);
    color: #fff;
    font-weight: 700;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: var(--wp--preset--font-size--small);
    min-width: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

/* Disabled state for pagination */
.wp-block-comments-pagination .wp-block-comments-pagination-previous:disabled,
.wp-block-comments-pagination .wp-block-comments-pagination-next:disabled {
    background-color: rgba(26, 26, 26, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
}

.wp-block-comments-pagination
    .wp-block-comments-pagination-previous:disabled:hover,
.wp-block-comments-pagination
    .wp-block-comments-pagination-next:disabled:hover {
    background-color: rgba(26, 26, 26, 0.3);
    transform: none;
    box-shadow: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   PATTERNS STYLES
   ======================================== */

.brand-highlights {
    padding: var(--wp--preset--spacing--md) 0;
    background-color: var(--wp--preset--color--alabaster, #efedea);
}

/* ========================================
   UTILITY STYLES
   ======================================== */

/* WordPress Block Color Classes */
.has-text-color.has-white-color,
.has-text-color.has-white-color p,
.has-text-color.has-white-color h1,
.has-text-color.has-white-color h2,
.has-text-color.has-white-color h3,
.has-text-color.has-white-color h4,
.has-text-color.has-white-color h5,
.has-text-color.has-white-color h6,
.has-text-color.has-white-color strong,
.has-text-color.has-white-color span {
    color: var(--wp--preset--color--white) !important;
}

.has-padding-top-lg {
    padding-top: clamp(3rem, 1rem + 2vw, 4rem);
}

.has-no-padding-top {
    padding-top: 0;
}

.has-no-padding-bottom {
    padding-bottom: 0;
}

.has-lg-padding-top {
    padding-top: var(--wp--preset--spacing--lg);
}

.has-lg-padding-bottom {
    padding-bottom: var(--wp--preset--spacing--lg);
}

.has-md-padding-top {
    padding-top: var(--wp--preset--spacing--md);
}

.has-md-padding-bottom {
    padding-bottom: var(--wp--preset--spacing--md);
}

.has-sm-padding-top {
    padding-top: var(--wp--preset--spacing--sm);
}

.has-sm-padding-bottom {
    padding-bottom: var(--wp--preset--spacing--sm);
}

.has-xs-padding-top {
    padding-top: var(--wp--preset--spacing--xs);
}

.has-xs-padding-bottom {
    padding-bottom: var(--wp--preset--spacing--xs);
}

.has-font-size-h4 {
    font-size: 1.125rem;
}

/* Block Gap Utilities */
footer,
.wp-block-group,
.has-no-block-gap-top {
    margin-block-start: 0 !important;
}

.has-no-block-gap-top > *:first-child {
    margin-block-start: 0 !important;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

/* Main Navigation */
.wp-block-navigation {
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
}

.wp-block-navigation .wp-block-navigation-item__content {
    color: var(--wp--preset--color--text, #1a1a1a);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
    background-color: var(--wp--preset--color--highlight, #1b5f9e);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Submenu Container */
.wp-block-navigation__submenu-container {
    background-color: #fff;
    border: 1px solid var(--wp--preset--color--border, #efedea);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 200px;
    margin-top: 0.25rem;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-navigation-item:focus-within .wp-block-navigation__submenu-container,
.wp-block-navigation-item:hover .wp-block-navigation__submenu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Level 1 Submenu Items */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    color: var(--wp--preset--color--text, #1a1a1a);
    padding: 0.75rem 1.5rem;
    font-size: var(--wp--preset--font-size--small);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:hover {
    background-color: var(--wp--preset--color--highlight, #1b5f9e);
    color: #fff;
    padding-left: 2rem;
}

.wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:last-child {
    border-bottom: none;
}

/* Level 2 Submenu Container */
.wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container {
    left: 100%;
    top: 0;
    margin-left: 0.25rem;
    min-width: 180px;
    border-left: 3px solid var(--wp--preset--color--accent, #c69c6a);
}

/* Level 2 Submenu Items */
.wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content {
    padding: 0.5rem 1.25rem;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--subtext);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:hover {
    background-color: var(--wp--preset--color--highlight, #1b5f9e);
    color: #fff;
    padding-left: 1.75rem;
}

/* Level 3 Submenu Container */
.wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container {
    left: 100%;
    top: 0;
    margin-left: 0.25rem;
    min-width: 160px;
    border-left: 3px solid var(--wp--preset--color--highlight, #1b5f9e);
}

/* Level 3 Submenu Items */
.wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content {
    padding: 0.4rem 1rem;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--subtext);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:hover {
    background-color: var(--wp--preset--color--alternate, #2e4a62);
    color: #fff;
    padding-left: 1.5rem;
}

/* Submenu Indicators */
.wp-block-navigation-item.has-child:hover
    .wp-block-navigation-item__content::after {
    transform: rotate(180deg);
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    .wp-block-navigation__submenu-container {
        position: static;
        box-shadow: none;
        border: none;
        background-color: var(--wp--preset--color--alabaster, #efedea);
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        padding: 0;
    }

    .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
        padding: 0.5rem 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .wp-block-navigation__submenu-container
        .wp-block-navigation__submenu-container {
        position: static;
        margin-left: 1rem;
        border-left: 2px solid var(--wp--preset--color--accent, #c69c6a);
        background-color: rgba(198, 156, 106, 0.1);
    }

    .wp-block-navigation__submenu-container
        .wp-block-navigation__submenu-container
        .wp-block-navigation-item__content {
        padding: 0.4rem 1.5rem;
    }

    .wp-block-navigation__submenu-container
        .wp-block-navigation__submenu-container
        .wp-block-navigation__submenu-container {
        margin-left: 1rem;
        border-left: 2px solid var(--wp--preset--color--highlight, #1b5f9e);
        background-color: rgba(27, 95, 158, 0.1);
    }

    .wp-block-navigation__submenu-container
        .wp-block-navigation__submenu-container
        .wp-block-navigation__submenu-container
        .wp-block-navigation-item__content {
        padding: 0.3rem 1.25rem;
    }
}

.white {
    color: #fff;
}

/* ========================================
   LEGACY STYLES
   ======================================== */

/* .entry-content */
.entry-content {
    padding-bottom: var(--wp--preset--spacing--lg);
}

/* Center block elements but keep text left-aligned */
.entry-content,
.wp-block-post-content {
    text-align: left;
}

.entry-content > *,
.wp-block-post-content > * {
    margin-left: auto;
    margin-right: auto;
}

/* Center images within post content */
.entry-content .wp-block-image,
.wp-block-post-content .wp-block-image {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .wp-block-image img,
.wp-block-post-content .wp-block-image img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Keep paragraphs and headings left-aligned */
.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content p,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 {
    text-align: left;
}

/* Post content links styling */
.entry-content a,
.wp-block-post-content a {
    color: #467aa9;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-content a:hover,
.wp-block-post-content a:hover {
    color: #2d5a8a;
    text-decoration: underline;
}

/* Paragraphs and Text Elements */
p {
    margin: 0 0 1.5rem 0;
}

/* Lists */
ul,
ol {
    margin: 0 0 1.5rem 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

ul.wp-block-post-template,
ol.wp-block-post-template {
    margin: 0;
}

/* Blockquotes */
blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--wp--preset--color--accent, #c69c6a);
    background-color: rgba(198, 156, 106, 0.1);
    font-style: italic;
    font-size: 1.125rem;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Code Elements */
code {
    background-color: rgba(26, 26, 26, 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 0.9em;
}

pre {
    background-color: rgba(26, 26, 26, 0.1);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(26, 26, 26, 0.2);
}

th {
    background-color: rgba(198, 156, 106, 0.1);
    font-weight: 600;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Prevent oversized images from breaking layout */
img.alignnone {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* Ensure all images respect container boundaries */
.wp-block-image img,
figure img,
p img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent images from overflowing their containers */
.wp-block-image,
figure,
p {
    max-width: 100%;
    overflow: hidden;
}

/* Legacy Image Alignments */
img.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

img.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

img.aligncenter {
    display: block;
    margin: 0 auto 1rem auto;
}

img.alignwide {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
}

img.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: 100vw;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 2px solid rgba(26, 26, 26, 0.2);
    margin: 2rem 0;
}

/* Form Elements */
input,
textarea,
select {
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: clamp(1rem, 0.875rem + 0.5vw, 1.125rem);
    padding: 0.75rem;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 4px;
    background-color: #fff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--wp--preset--color--highlight, #1b5f9e);
    box-shadow: 0 0 0 2px rgba(27, 95, 158, 0.2);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* iPad Air and Mini Landscape (768px to 1180px) */
@media screen and (min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {
    .chronicle-journal-footer-group {
        padding: var(--wp--preset--spacing--md);
    }

    .chronicle-journal-footer-group .footer-links {
        padding-left: clamp(2rem, 1.5rem + 3vw, 4rem);
    }

    .chronicle-journal-pattern,
    .hero-section {
        padding: var(--wp--preset--spacing--md);
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Tablet and Mobile (1024px and below) */
@media (max-width: 1024px) {
    .chronicle-journal-footer-group .footer-links {
        padding-left: clamp(3rem, 2rem + 4vw, 5rem);
    }

    .chronicle-journal-pattern,
    .hero-section {
        padding: var(--wp--preset--spacing--lg);
    }
}

/* Tablet and Mobile (768px and below) */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 0.5rem;
    }

    /* Hero section adjustments */
    .hero-section .wp-block-group.has-small-font-size {
        padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
        gap: var(--wp--preset--spacing--xs);
    }

    .hero-section .wp-block-post-author img {
        width: 28px;
        height: 28px;
    }

    /* Author biography adjustments */
    .wp-block-post-author-biography {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .wp-block-post-author-biography .wp-block-post-author-biography__avatar {
        width: 60px;
        height: 60px;
        margin: 0 auto 0.5rem auto;
    }

    .wp-block-post-author-biography .wp-block-post-author-biography__name {
        font-size: var(--wp--preset--font-size--h5);
    }

    .wp-block-post-author-biography .wp-block-post-author-biography__content {
        font-size: var(--wp--preset--font-size--small);
    }

    /* Footer adjustments */
    .chronicle-journal-footer-group .wp-block-group {
        flex-direction: column;
        gap: var(--wp--preset--spacing--sm);
        align-items: flex-start;
        padding-top: var(--wp--preset--spacing--lg);
    }

    .chronicle-journal-footer-group .footer-links {
        flex-direction: column;
        gap: var(--wp--preset--spacing--xs);
        align-items: flex-start;
        padding-left: 0;
        margin-left: 0;
    }

    .chronicle-journal-footer-group .footer-links p {
        padding-top: var(--wp--preset--spacing--xs);
    }

    /* Image alignment adjustments */
    img.alignleft,
    img.alignright {
        float: none;
        margin: 0 0 1rem 0;
        text-align: center;
    }

    /* Hero pattern mobile adjustments */
    .chronicle-journal-pattern .wp-block-post-template,
    .hero-section .wp-block-post-template {
        margin-left: 0;
        padding-left: 0;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .chronicle-journal-pattern,
    .hero-section {
        padding: var(--wp--preset--spacing--lg);
    }

    /* Author biography adjustments */
    .wp-block-post-author-biography {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .wp-block-post-author-biography .wp-block-post-author-biography__avatar {
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   ARCHIVE & BLOG LIST STYLES
   ======================================== */

/* Blog Post List Item */
.blog-post-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    gap: 1.5rem !important;
    align-items: flex-start !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--wp--preset--color--background, #fff);
    cursor: pointer;
}

.blog-post-item:hover {
    border-color: var(--wp--preset--color--border, #e0e0e0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    background: var(--wp--preset--color--alabaster, #fafafa);
}

/* Make entire blog post item clickable via title link overlay */
.blog-post-item .wp-block-post-title a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Keep other links (category, author, date, read more) clickable above the overlay */
.blog-post-item a:not(.wp-block-post-title a),
.blog-post-item button {
    position: relative;
    z-index: 2;
}

.blog-post-item:last-child {
    margin-bottom: 0;
}

/* Featured Image in List View */
.blog-post-item .wp-block-post-featured-image {
    margin: 0;
    flex-shrink: 0;
    width: 350px;
    height: 250px;
}

.blog-post-item .wp-block-post-featured-image img {
    width: 100%;
    height: 250px;
    object-fit: fill;
    border-radius: 4px;
}

/* Post Details */
.blog-post-item .post-details {
    flex: 1;
}

.blog-post-item .post-category {
    margin-bottom: 0.5rem;
}

.blog-post-item .post-category a {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--wp--preset--color--accent);
    text-decoration: none;
}

.blog-post-item .post-category a:hover {
    text-decoration: underline;
}

.blog-post-item .wp-block-post-title {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
    line-height: 1.3;
}

.blog-post-item .wp-block-post-title a {
    text-decoration: none;
    color: var(--wp--preset--color--text);
}

.blog-post-item .wp-block-post-title a:hover {
    color: var(--wp--preset--color--accent);
}

.blog-post-item .wp-block-post-excerpt {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--text-secondary, #666);
    line-height: 1.6;
    font-family:
        "lato",
        "Lato",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.blog-post-item .wp-block-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--wp--preset--color--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-post-item .wp-block-read-more:hover {
    text-decoration: underline;
}

/* Archive filter bar — minimal underline controls */
.archive-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 1rem;
}

/* Active filters — small removable pills */
.archive-active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 2.25rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef1f4;
    color: #1a1a1a;
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.filter-pill:hover {
    background: #e1e6ec;
}

.filter-pill-x {
    font-size: 15px;
    line-height: 1;
    color: #8a94a0;
}

.filter-pill:hover .filter-pill-x {
    color: var(--wp--preset--color--accent, #1b5f9e);
}

.filter-clear {
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: 13px;
    color: #8a94a0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.filter-clear:hover {
    color: var(--wp--preset--color--accent, #1b5f9e);
}

.archive-filters select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 150px;
    padding: 8px 26px 8px 2px;
    border: none;
    border-bottom: 1.5px solid #cfcfcf;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M6 8 0 1.4 1.4 0 6 4.6 10.6 0 12 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 11px;
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: 15px;
    color: var(--wp--preset--color--text, #1a1a1a);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.archive-filters select:hover,
.archive-filters select:focus {
    border-bottom-color: var(--wp--preset--color--accent, #1b5f9e);
    outline: none;
}

.archive-apply {
    padding: 9px 26px;
    border: none;
    border-radius: 999px;
    background: var(--wp--preset--color--accent, #1b5f9e);
    color: #fff;
    font-family: var(--wp--preset--font-family--urw-din, "urw-din", sans-serif);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.archive-apply:hover {
    opacity: 0.9;
}

/* Archive body: main feed + standard sidebar */
.archive-body {
    align-items: flex-start;
    gap: 3rem;
}

.archive-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* Sidebar */
.blog-with-sidebar {
    align-items: flex-start;
    gap: 3rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
    background: var(--wp--preset--color--background, #fff);
    border-radius: 4px;
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wp--preset--color--accent);
    font-size: 1rem;
}

.sidebar-widget .wp-block-search__input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sidebar-widget .wp-block-search__button {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--wp--preset--color--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.sidebar-widget .wp-block-search__button:hover {
    opacity: 0.9;
}

.sidebar-widget .wp-block-categories-list,
.sidebar-widget .wp-block-archives-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-widget .wp-block-categories-list li,
.sidebar-widget .wp-block-archives-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget .wp-block-categories-list li:last-child,
.sidebar-widget .wp-block-archives-list li:last-child {
    border-bottom: none;
}

.sidebar-widget .wp-block-categories-list a,
.sidebar-widget .wp-block-archives-list a {
    text-decoration: none;
    color: var(--wp--preset--color--text);
    display: flex;
    justify-content: space-between;
}

.sidebar-widget .wp-block-categories-list a:hover,
.sidebar-widget .wp-block-archives-list a:hover {
    color: var(--wp--preset--color--accent);
}

.sidebar-widget .wp-block-latest-posts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-widget .wp-block-latest-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget .wp-block-latest-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget .wp-block-latest-posts a {
    text-decoration: none;
    color: var(--wp--preset--color--text);
    font-weight: 500;
}

.sidebar-widget .wp-block-latest-posts a:hover {
    color: var(--wp--preset--color--accent);
}

.sidebar-widget .wp-block-latest-posts__post-date {
    display: block;
    font-size: 0.875rem;
    color: var(--wp--preset--color--text-secondary, #999);
    margin-top: 0.25rem;
}

.sidebar-widget .wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-widget .wp-block-tag-cloud a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--wp--preset--color--background-alt, #f5f5f5);
    border-radius: 3px;
    text-decoration: none;
    color: var(--wp--preset--color--text);
    font-size: 0.875rem;
}

.sidebar-widget .wp-block-tag-cloud a:hover {
    background: var(--wp--preset--color--accent);
    color: white;
}

/* Responsive Design for Blog List */
@media (max-width: 768px) {
    .blog-with-sidebar {
        flex-direction: column;
    }

    .blog-with-sidebar .main-content,
    .blog-with-sidebar .sidebar {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    .blog-post-item {
        flex-direction: column !important;
    }

    .blog-post-item .wp-block-post-featured-image {
        width: 100%;
    }

    .blog-post-item .wp-block-post-featured-image img {
        width: 100%;
        height: auto;
    }
}

/* Pavak Custom Stylesheet */

.latest-posts-with-heading {
    background-color: #c69c6a;
    color: #fff;
}

/* ========================================
   LATEST NEWS FEED - NYT Style
   ======================================== */

.latest-news-feed {
    padding: 0;
    background-color: #fff;
}

/* Tabs Section */
.news-feed-tabs {
    border-top: 2px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    margin-bottom: 0;
    gap: 0 !important;
}

.news-feed-tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: transparent;
    gap: 8px !important;
    align-items: center !important;
    transition: all 0.2s ease;
}

.news-feed-tab.active {
    background: #fff;
    border: 1px solid #dfdfdf;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    margin-top: -1px;
    margin-bottom: -1px;
    position: relative;
}

.news-feed-tab .tab-label {
    font-family: var(
        --wp--preset--font-family--source-sans-3,
        "Source Sans 3",
        sans-serif
    );
    font-size: 15.9px;
    font-weight: 700;
    color: #727272;
    margin: 0;
    line-height: 1;
}

.news-feed-tab.active .tab-label {
    color: #363636;
}

.news-feed-tab:hover .tab-label {
    color: #363636;
}

.news-feed-tab .search-icon {
    margin: 0 !important;
    width: 16px;
    height: 16px;
}

.news-feed-tab .search-icon img {
    width: 16px !important;
    height: 16px !important;
}

/* Content Section */
.news-feed-content {
    margin-top: 30px !important;
    gap: 40px !important;
}

.news-feed-main {
    padding-right: 0;
}

/* Individual News Item */
.news-feed-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-feed-item {
    padding: 20px 0;
    border-bottom: 1px solid #dfdfdf;
    gap: 0 !important;
    align-items: flex-start !important;
}

.news-feed-item:first-child {
    padding-top: 0;
}

/* Meta line (author + date) — matches the opening cards */
.news-feed-meta {
    margin: 8px 0 0 0;
}

.news-feed-date {
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: 11px;
    font-weight: 700;
    color: var(--wp--preset--color--subtext, #727272);
    margin: 0;
}

/* Article Section */
.news-feed-article {
    flex: 1;
    gap: 20px !important;
    align-items: flex-start !important;
}

.news-feed-text {
    flex: 1;
    padding-right: 20px;
}

/* Title */
.news-feed-title {
    font-family: var(
        --wp--preset--font-family--urw-din,
        "urw-din",
        "URW DIN",
        "Helvetica Neue",
        Arial,
        sans-serif
    );
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #121212;
    margin: 0 0 8px 0 !important;
}

.news-feed-title a {
    color: #121212;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-feed-title a:hover {
    color: var(--wp--preset--color--highlight, #1b5f9e);
    text-decoration: underline;
}

/* Excerpt/Summary — matches the opening cards */
.news-feed-excerpt {
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: 14px;
    line-height: 21px;
    color: var(--wp--preset--color--alternate, #2e4a62);
    margin: 12px 0 0 0 !important;
}

.news-feed-excerpt p {
    margin: 0;
}

/* Author — matches the opening cards (bold, normal case) */
.news-feed-author {
    font-family: var(--wp--preset--font-family--lato, "Lato", sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #121212;
    margin: 0 !important;
    text-transform: none;
    letter-spacing: normal;
}

.news-feed-author .wp-block-post-author__name {
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
}

/* Thumbnail — landscape 16:9 (crops via object-fit, so the ratio never distorts) */
.news-feed-thumbnail {
    width: 256px !important;
    height: 144px !important;
    flex-shrink: 0;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 8px;
}

.news-feed-thumbnail img {
    width: 256px !important;
    height: 144px !important;
    object-fit: cover;
    border-radius: 8px !important;
}

/* Sidebar */
.news-feed-sidebar {
    padding-left: 20px;
    border-left: 1px solid #dfdfdf;
}

.sidebar-ad-block {
    margin-bottom: 20px;
    background: #f8f8f8;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    padding: 10px;
}

.sidebar-ad-block .ad-label {
    font-family: var(
        --wp--preset--font-family--source-sans-3,
        "Source Sans 3",
        sans-serif
    );
    font-size: 8.9px;
    color: #727272;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 10px 0;
}

.sidebar-ad-block .ad-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 1px dashed #ccc;
}

/* Pagination */
.news-feed-pagination {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dfdfdf;
    gap: 8px !important;
}

.news-feed-pagination .page-numbers,
.news-feed-pagination a {
    font-family: var(
        --wp--preset--font-family--source-sans-3,
        "Source Sans 3",
        sans-serif
    );
    font-size: 14px;
    color: #000;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-feed-pagination .page-numbers.current,
.news-feed-pagination a.current {
    font-weight: 700;
}

.news-feed-pagination a:hover {
    background: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .news-feed-content {
        flex-direction: column !important;
    }

    .news-feed-main {
        width: 100% !important;
        flex-basis: 100% !important;
        padding-right: 0;
    }

    .news-feed-sidebar {
        width: 100% !important;
        flex-basis: 100% !important;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #dfdfdf;
        padding-top: 20px;
        margin-top: 20px;
        display: flex;
        gap: 20px;
    }

    .sidebar-ad-block {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .news-feed-item {
        flex-direction: column !important;
    }

    .news-feed-article {
        width: 100%;
        flex-direction: column-reverse !important;
    }

    .news-feed-thumbnail {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        margin-bottom: 15px !important;
    }

    .news-feed-thumbnail img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .news-feed-text {
        padding-right: 0;
    }

    .news-feed-sidebar {
        flex-direction: column;
    }
}

/* Make the entire post block clickable (patterns/non-archive contexts) */
.wp-block-post {
    position: relative;
    border-radius: 8px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
    overflow: hidden;
    padding: 10px;
}
/* Hover effect for the post block */
.wp-block-post:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    cursor: pointer;
}
/* Expand the post title link to cover the whole text block */
.wp-block-post .patterns-post-title a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* Ensure other links (like author, date, categories) remain clickable */
.wp-block-post a:not(.patterns-post-title a),
.wp-block-post button {
    position: relative;
    z-index: 2;
}
.wp-block-post:hover .patterns-post-title a {
    text-decoration: none;
}

/* Neutralize global .wp-block-post hover inside archive blog list — .blog-post-item handles it */
.blog-list-view > .wp-block-post {
    padding: 0;
    border-radius: 0;
    overflow: visible;
    transition: none;
    background: none;
    box-shadow: none;
    transform: none;
}
.blog-list-view > .wp-block-post:hover {
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

/* ========================================
   ADDITIONAL RESPONSIVE RULES
   ======================================== */

/* Consolidated breakpoints (largest -> smallest). Header, post-grid,
   maps/visuals, footer, and news-feed responsive rules grouped per breakpoint. */
@media (max-width: 1024px) {
    /* Hide-on-tablet helper */
    .hide-on-tablet {
        display: none !important;
    }

    /* Post grid section padding */
    .hero-section,
    .chronicle-journal-pattern {
        padding-left: var(--wp--preset--spacing--md);
        padding-right: var(--wp--preset--spacing--md);
    }
}

@media (max-width: 768px) {
    /* Header */
    .chronicle-journal-header-group {
        padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--xs);
    }

    .chronicle-journal-header-group .wp-block-image img {
        width: 280px !important;
    }

    .chronicle-journal-header-group .wp-block-search {
        width: 100% !important;
        max-width: 100% !important;
    }

    .chronicle-journal-header-group .wp-block-search__input {
        width: 100% !important;
    }

    /* Hide-on-mobile helper */
    .hide-on-mobile {
        display: none !important;
    }

    /* Post grid section */
    .hero-section,
    .chronicle-journal-pattern {
        padding-left: var(--wp--preset--spacing--sm);
        padding-right: var(--wp--preset--spacing--sm);
    }

    .hero-section h1.wp-block-heading {
        font-size: 1.5rem;
    }

    .hero-section .wp-block-post-template,
    .chronicle-journal-pattern .wp-block-post-template {
        gap: var(--wp--preset--spacing--md);
    }

    /* Maps & Visuals section */
    .latest-posts-with-heading {
        padding-left: var(--wp--preset--spacing--sm) !important;
        padding-right: var(--wp--preset--spacing--sm) !important;
    }

    .latest-posts-with-heading h2 {
        font-size: 1.375rem;
    }

    /* Footer */
    .chronicle-journal-footer-group .wp-block-columns {
        flex-direction: column !important;
    }

    .chronicle-journal-footer-group .wp-block-column {
        flex-basis: 100% !important;
    }

    .chronicle-journal-footer-group .wp-block-buttons {
        justify-content: flex-start !important;
    }

    .chronicle-journal-footer-group .wp-block-image img {
        width: 250px !important;
    }
}

@media (max-width: 480px) {
    /* Header */
    .chronicle-journal-header-group .wp-block-image img {
        width: 220px !important;
    }

    /* All Posts / News Feed */
    .latest-news-feed {
        padding-left: var(--wp--preset--spacing--xs) !important;
        padding-right: var(--wp--preset--spacing--xs) !important;
    }

    .news-feed-title {
        font-size: 17px !important;
    }
}

/* ========================================
   OPENING BLOCK (Figma Design)
   ======================================== */

/* Main Container */
.opening-block {
    padding-left: var(--wp--preset--spacing--md);
    padding-right: var(--wp--preset--spacing--md);
}

/* Content column */
.opening-block-content {
    min-width: 0;
}

/* Hero Row */
.opening-hero-row {
    margin-bottom: 0;
    padding: 16px;
    align-items: stretch;
}

.opening-hero-row .wp-block-query {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.opening-hero-row .wp-block-post-template {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.opening-hero-row .wp-block-post {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.opening-hero-card {
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.opening-hero-card .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 0;
}

.opening-hero-card .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.opening-hero-card:hover .wp-block-post-featured-image img {
    transform: scale(1.02);
}

.opening-hero-title {
    margin-top: 16px !important;
    margin-bottom: 8px !important;
}

.opening-hero-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.opening-hero-title a:hover {
    color: var(--wp--preset--color--highlight, #1b5f9e) !important;
}

.opening-hero-card .wp-block-post-excerpt__excerpt {
    font-size: 14px;
    line-height: 21px;
    color: var(--wp--preset--color--alternate, #2e4a62);
}

/* Posts Grid */
.opening-posts-grid {
    margin-top: 16px;
    align-items: stretch;
}

/* Reset the global wp-block-post card styles inside the opening grid — the inner .opening-post-card handles all styling */
.opening-posts-grid > .wp-block-post {
    border-radius: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
    overflow: visible;
    transition: none;
    display: flex;
}

.opening-posts-grid > .wp-block-post:hover {
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

.opening-post-card {
    border-radius: 8px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.opening-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.opening-post-card .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 0;
}

.opening-post-card .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.opening-post-card:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
}

.opening-post-title {
    margin-top: 16px !important;
}

.opening-post-title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.opening-post-title a:hover {
    color: var(--wp--preset--color--highlight, #1b5f9e) !important;
}

.opening-post-card .wp-block-post-excerpt__excerpt {
    font-size: 14px;
    line-height: 21px;
    color: var(--wp--preset--color--alternate, #2e4a62);
}

/* Sidebar */
.opening-block-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    /* Keep the column wide enough that the Apple Podcasts embed never clips.
       Reset to 0 in the stacked layout (<=1024px) so mobile can't overflow. */
    min-width: 380px;
    max-width: 300px;
}

/* Apple shrank its show embed; the markup still says height="450". */
iframe[src*="embed.podcasts.apple.com"] {
    height: 175px;
}

.opening-block-sidebar .wp-block-cover {
    transition: transform 0.3s ease;
}

.opening-block-sidebar .wp-block-cover:hover {
    transform: scale(1.02);
}

.opening-block-sidebar .wp-block-separator {
    margin-top: var(--wp--preset--spacing--sm);
    margin-bottom: var(--wp--preset--spacing--sm);
    border-top-width: 2px;
    border-color: #808080;
}

/* Sidebar Visuals — minimalist list: featured image + title below, nothing else */
.sidebar-visuals .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-visual-image img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-visual-image {
    transition: transform 0.3s ease;
}

.sidebar-visual-image:hover {
    transform: scale(1.02);
}

.sidebar-visual-title,
.sidebar-visual-title a {
    font-family: var(
        --wp--preset--font-family--urw-din,
        "urw-din",
        "URW DIN",
        "Helvetica Neue",
        Arial,
        sans-serif
    );
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
    margin: 8px 0 0;
    text-decoration: none;
    color: inherit;
}

.sidebar-visual-title a:hover {
    text-decoration: underline;
}

/* ========================================
   OPENING BLOCK RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .opening-block-sidebar {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 1024px) {
    .opening-block {
        flex-direction: column !important;
    }

    .opening-block-content {
        width: 100%;
    }

    /* Hide the sidebar (podcast / visuals) below 1024px — home page, articles, archives. */
    .opening-block > .wp-block-template-part,
    .post-container > .wp-block-template-part,
    .archive-body > .wp-block-template-part {
        display: none;
    }

    .opening-hero-row {
        flex-direction: column !important;
    }

    .opening-hero-card {
        width: 100% !important;
        flex-basis: 100% !important;
    }
}

@media (max-width: 768px) {
    .opening-block {
        padding-left: var(--wp--preset--spacing--sm);
        padding-right: var(--wp--preset--spacing--sm);
    }

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

    .opening-block-sidebar {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 480px) {
    .opening-block {
        padding-left: var(--wp--preset--spacing--xs);
        padding-right: var(--wp--preset--spacing--xs);
    }

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

    .opening-hero-row {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .opening-hero-card {
        padding: 10px !important;
    }

    .opening-hero-title,
    .opening-hero-title a {
        font-size: 18px !important;
        line-height: 23px !important;
    }

    .opening-post-title,
    .opening-post-title a {
        font-size: 17px !important;
        line-height: 22px !important;
    }

    .opening-post-card {
        padding: 10px !important;
    }

    .opening-block-sidebar {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .opening-block-sidebar .wp-block-cover {
        min-height: 180px !important;
    }

    .archive-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .archive-filters select,
    .archive-apply {
        width: 100%;
        min-width: 0;
    }
}
