/**
 * Custom Styles for Your Magic Is Real
 * Nicolina Tyler Artist Portfolio
 */

 /* Global Styles */

 html body .e-con-inner {
    padding-bottom: 2rem !important;    
}



 /* ==========================================================================
   Header Height & Layout - Desktop & iPad (Half Height)
   ========================================================================== */



/* Reduce header height on desktop and tablet - aggressive overrides */

header.ehp-header,
.elementor-widget-ehp-header header.ehp-header,
.elementor-widget-container header.ehp-header {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

header .ehp-header__elements-container,
.ehp-header .ehp-header__elements-container,
.elementor-widget-ehp-header .ehp-header__elements-container {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: auto !important;
    height: auto !important;
}

/* Target the outer Elementor container */
.elementor-location-header .elementor-element.e-con,
.elementor-location-header .e-con-full {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Desktop header adjustments */
@media (min-width: 1025px) {
    .elementor-widget-ehp-header .elementor-widget-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .ehp-header__elements-container {
        gap: 1rem;
    }
}

/* iPad / Tablet header adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    header.ehp-header,
    .elementor-widget-ehp-header header.ehp-header {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    .ehp-header__elements-container {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
}

/* ==========================================================================
   "Nicolina Tyler" Site Title Typography
   ========================================================================== */

.ehp-header__site-title {
    font-family: 'Libre Baskerville', Georgia, serif !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
}

/* Tagline under Nicolina Tyler */
.ehp-header__site-title .site-tagline {
    font-family: 'Libre Baskerville', Georgia, serif !important;
    font-style: italic !important;
    font-size: 0.65rem !important;
    font-weight: 400 !important;
    color: #666 !important;
    margin-top: 0.1rem !important;
    letter-spacing: 0.03em !important;
}

/* iPad typography scaling */
@media (min-width: 768px) and (max-width: 1024px) {
    .ehp-header__site-title {
        font-size: 1.25rem !important;
    }

    .ehp-header__site-title .site-tagline {
        font-size: 0.6rem !important;
    }
}

/* ==========================================================================
   Mobile Header - Burger Icon Far Right (Force at 767px)
   ========================================================================== */

@media (max-width: 767px) {
    /* Force flexbox layout for header elements */
    .ehp-header__elements-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Site title/logo on the left */
    .ehp-header__site-link-container {
        order: 1 !important;
        flex: 0 1 auto !important;
    }

    /* Hide the full navigation on mobile */
    .ehp-header__navigation {
        display: none !important;
    }

    /* Hide Contact CTA on mobile header bar */
    .ehp-header__ctas-container:not(.ehp-header__navigation .ehp-header__ctas-container) {
        display: none !important;
    }

    /* Show and position burger menu toggle on the far right */
    .ehp-header__menu-cart-container {
        display: flex !important;
        order: 3 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    .ehp-header__button-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        padding: 8px !important;
    }

    /* Style the burger icon */
    .ehp-header__button-toggle svg {
        width: 24px !important;
        height: 24px !important;
        fill: #1a1a1a !important;
    }

    /* Mobile typography */
    .ehp-header__site-title {
        font-size: 1.1rem !important;
    }

    .ehp-header__site-title .site-tagline {
        font-size: 0.55rem !important;
    }
}

/* Ensure dropdown menu displays properly when opened */
@media (max-width: 767px) {
    .ehp-header__navigation.is-dropdown-open,
    .ehp-header[aria-expanded="true"] .ehp-header__navigation {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 9999 !important;
    }

    .ehp-header__navigation.is-dropdown-open .ehp-header__menu,
    .ehp-header[aria-expanded="true"] .ehp-header__menu {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }

    .ehp-header__navigation.is-dropdown-open .ehp-header__item,
    .ehp-header[aria-expanded="true"] .ehp-header__item {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================================
   H1 Headlines - Italic Style
   ========================================================================== */

html body h1,
.elementor-heading-title.elementor-size-xxl,
.elementor-widget-heading h1 {
    font-style: italic !important;
    margin-top: 1em !important;
    margin-bottom: .5em !important;
}

/* ==========================================================================
   Site Tagline - "Your Magic Is Real"
   ========================================================================== */

.site-tagline {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Mobile Hamburger Menu
   ========================================================================== */

/* Hide hamburger on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span::before {
    top: -8px;
}

.mobile-menu-toggle span::after {
    top: 8px;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span {
    background-color: transparent;
}

.mobile-menu-toggle.active span::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide default Elementor menu on mobile, show custom */
    .elementor-nav-menu--dropdown,
    .elementor-menu-toggle {
        /* Let Elementor handle its own toggle, but style it */
    }

    /* Full-screen mobile menu overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .mobile-nav-overlay.active {
        right: 0;
    }

    .mobile-nav-overlay a {
        font-family: 'Libre Baskerville', serif;
        font-size: 1.5rem;
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .mobile-nav-overlay a:hover {
        color: #666;
    }
}

/* ==========================================================================
   Elementor Menu Mobile Override - Hamburger Icon Fix
   ========================================================================== */

/* Push hamburger to the right */
header .elementor-widget-ehp-header nav {
    order: 1;
}

header .elementor-widget-ehp-header button[aria-label="Menu Toggle"] {
    order: 2;
    margin-left: auto;
}

/* Style the hamburger icon - 3 solid black lines */
header button[aria-label="Menu Toggle"] svg {
    width: 28px;
    height: 28px;
    fill: #1a1a1a !important;
}

header button[aria-label="Menu Toggle"] svg path {
    fill: #1a1a1a !important;
}

/* Alternative: Force hamburger lines to be visible */
.site-navigation-toggle-holder {
    order: 999;
    margin-left: auto;
}

.site-navigation-toggle-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.site-navigation-toggle-icon::before,
.site-navigation-toggle-icon::after,
.site-navigation-toggle-icon span {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1a1a1a !important;
    border-radius: 1px;
}

@media (max-width: 1024px) {
    /* Style Elementor's built-in hamburger */
    .elementor-menu-toggle {
        padding: 0.5rem;
        order: 999;
        margin-left: auto;
    }

    .elementor-menu-toggle .eicon-menu-bar {
        font-size: 28px;
        color: #1a1a1a !important;
    }

    .elementor-menu-toggle .eicon-menu-bar::before {
        color: #1a1a1a !important;
    }

    /* Style dropdown menu when open */
    .elementor-nav-menu--dropdown {
        background-color: rgba(255, 255, 255, 0.98) !important;
    }

    .elementor-nav-menu--dropdown li a {
        font-family: 'Libre Baskerville', serif !important;
        font-size: 1.25rem !important;
        padding: 1rem !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: #666;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #666;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumbs .current {
    color: #999;
}

/* Archive Page Styling */
.archive-container .page-header {
    margin-bottom: 2rem;
}

.archive-container .page-header .entry-title {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
}

.archive-container .archive-description {
    color: #666;
    font-size: 1rem;
}

.archive-container .page-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.archive-container .page-content article.post {
    background: #fff;
    overflow: hidden;
}

.archive-container .page-content article.post img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.archive-container .page-content article.post .entry-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    padding: 1rem;
    margin: 0;
}

.archive-container .page-content article.post .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.archive-container .page-content article.post .entry-title a:hover {
    color: #666;
}

.archive-container .page-content article.post p {
    padding: 0 1rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.archive-container .pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.archive-container .pagination a {
    color: #1a1a1a;
    text-decoration: none;
}

.archive-container .pagination a:hover {
    color: #666;
}

/* ==========================================================================
   Single Post Styling - Title & Padding
   ========================================================================== */

/* Post title - Navy blue, larger H1 size */
.single-post .entry-title,
.single-post article h1,
article.post .entry-title,
.single-post-header .entry-title {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: #1a365d;
}

/* Post author */
.post-author {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #2c5282;
    margin-bottom: 0.5rem;
}

.post-author a {
    color: #2c5282;
    text-decoration: none;
}

.post-author a:hover {
    color: #1a365d;
}

/* Post content padding */
.single-post .entry-content,
.single-post article .elementor-widget-container,
article.post .entry-content,
.post-content {
    padding-top: 2rem;
    padding-bottom: 2em;
    margin-bottom: 2em;
}

/* Post meta (date, categories) */
.post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.post-meta a {
    color: #666;
    text-decoration: none;
}

.post-meta a:hover {
    color: #1a365d;
}

/* Bottom categories and tags */
.post-tags,
.post-categories {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e5e5;
}

.post-categories {
    border-top: none;
    padding-top: 0;
}

.post-tags a,
.post-categories a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-tags a:hover,
.post-categories a:hover {
    color: #2c5282;
}

/* Elementor single post content spacing */
.elementor-widget-theme-post-content .elementor-widget-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Single post container */
.single-post .site-main,
.single-post main {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        display: none; /* Hide on mobile as requested */
    }
}

/* ==========================================================================
   Custom Blog Page Layout
   ========================================================================== */

.blog-custom-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px 4rem;
}

/* Page Title — editorial masthead */
.blog-custom-page .page-title {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

/* Blog Intro Paragraph — the subheadline / standfirst */
.blog-intro {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 3.5rem;
    max-width: 640px;
}

/* ==========================================================================
   Blog Sidebar
   ========================================================================== */

.blog-sidebar {
    position: relative;
    margin-top: 6.5em;
}

.sidebar-inner {
    position: sticky;
    top: 100px;
}

.blog-sidebar h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

/* Section Navigation */
.section-nav {
    margin-bottom: 2rem;
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-nav li {
    margin-bottom: 0.5rem;
}

.section-nav a {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 0.25rem 0;
}

.section-nav a:hover {
    color: #1a1a1a;
}

/* Archive Navigation */
.archive-nav {
    margin-top: 2rem;
}

.archive-year {
    margin-bottom: 0.5rem;
}

.year-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    padding: 0.5rem 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-toggle:hover {
    color: #666;
}

.toggle-icon {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

.year-toggle .count {
    color: #999;
    font-size: 0.8rem;
    margin-left: auto;
}

.month-list {
    padding: 0 0 0 1rem;
    margin: 0;
}

/* Month Toggle Button */
.archive-month {
    margin-bottom: 0.25rem;
}

.month-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: #666;
    padding: 0.35rem 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.month-toggle:hover {
    color: #1a1a1a;
}

.month-toggle .toggle-icon {
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
    color: #999;
}

.month-toggle .count {
    color: #999;
    font-size: 0.75rem;
    margin-left: auto;
}

/* Post List under Month */
.post-list {
    list-style: none;
    padding: 0 0 0.5rem 1.25rem;
    margin: 0;
}

.post-list li {
    margin-bottom: 0.35rem;
}

.post-list a {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.post-list a:hover {
    color: #1a1a1a;
}

.post-list .post-day {
    color: #999;
    font-size: 0.7rem;
    margin-right: 0.35rem;
}

/* ==========================================================================
   Blog Main Content
   ========================================================================== */

.blog-main {
    min-width: 0;
}

/* Section Styling — separated by negative space, not rules */
.blog-section {
    margin-bottom: 5.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.75rem;
    color: #1a1a1a;
    margin: 0;
}

.view-all {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all:hover {
    color: #1a1a1a;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.posts-grid-small {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Post Card — flat, editorial */
.post-card {
    background: #fff;
    overflow: hidden;
}

.post-card .post-thumbnail {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1rem;
}

.post-card .post-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.post-card .post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-card .post-title a:hover {
    color: #666;
}

.post-card .post-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.post-card .post-date {
    font-size: 0.75rem;
    color: #999;
}

/* Small Post Card (Countries) */
.post-card-small .post-thumbnail {
    aspect-ratio: 1/1;
}

.post-card-small .post-card-content {
    padding: 0.75rem;
}

.post-card-small .post-title {
    font-size: 0.9rem;
}

.post-card-small h4.post-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    margin: 0 0 0.25rem;
}

/* Country Subsection */
.country-subsection {
    margin-bottom: 2rem;
}

.subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.subsection-header h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0;
}

.view-all-small {
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
}

.view-all-small:hover {
    color: #1a1a1a;
}

/* ==========================================================================
   Blog Page Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 1024px) {
    .blog-custom-page {
        grid-template-columns: 220px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-custom-page {
        grid-template-columns: 1fr;
        padding: 1rem 15px 3rem;
    }

    .blog-sidebar {
        order: 2;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #e5e5e5;
    }

    .sidebar-inner {
        position: static;
    }

    .section-nav,
    .archive-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .section-nav h3,
    .archive-nav h3 {
        grid-column: 1 / -1;
    }

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

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

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-custom-page .page-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Single Post Layout — centered reading column (NYT-style measure)
   ========================================================================== */

.single-post-layout {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-content {
    min-width: 0;
}

/* Generous air between the article's tag line and everything after it */
.single-post .post-tags {
    margin-top: 3.5rem;
}

.single-post .site-main {
    padding-bottom: 4rem;
}

/* ==========================================================================
   Related Posts Section
   ========================================================================== */

.related-posts {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 3rem 20px 4rem;
    border-top: 1px solid #e5e5e5;
}

.related-posts h3 {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #1a365d;
    margin-bottom: 1.25rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post-card {
    background: #fff;
    overflow: hidden;
}

.related-post-thumbnail {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 0.5rem;
}

.related-post-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-content h4 a:hover {
    color: #1a365d;
}

.related-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Related Posts Responsive */
@media (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-posts h3 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Single Post Header (Template-based) — aligned with the reading column
   ========================================================================== */

.single-post-header {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 20px 0;
}

.single-post-header .entry-title {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 2.5rem;
    line-height: 1.25;
    color: #1a365d !important;
    margin: 0.5rem 0 0.75rem;
}

.single-post-header .post-author {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: #2c5282;
    margin-bottom: 0.5rem;
}

.single-post-header .post-author a {
    color: #2c5282;
    text-decoration: none;
}

.single-post-header .post-author a:hover {
    color: #1a365d;
}

.single-post-header .post-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.single-post-header .post-meta a {
    color: #666;
    text-decoration: none;
}

.single-post-header .post-meta a:hover {
    color: #1a365d;
}

/* ==========================================================================
   Sidebar Country Sub-links
   ========================================================================== */

.section-nav li.has-children {
    position: relative;
}

.section-nav .country-sublist {
    display: block;
    font-size: 0.85rem;
    color: #888;
    padding: 0.25rem 0 0.25rem 0.5rem;
    margin: 0;
    line-height: 1.6;
}

.section-nav .country-sublist a {
    display: inline;
    padding: 0;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-nav .country-sublist a:hover {
    color: #1a365d;
}

/* ==========================================================================
   Sidebar Tags Section
   ========================================================================== */

.sidebar-tags {
    margin-top: 2.5rem;
}

.sidebar-tags h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    color: #666;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    background: #f5f5f5;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #1a365d;
    color: #fff;
}

.tag-link .tag-count {
    font-size: 0.7rem;
    color: #999;
    margin-left: 0.25rem;
}

.tag-link:hover .tag-count {
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   Latest Section — lead story + grid (Vogue x NYT front)
   ========================================================================== */

.post-kicker {
    display: block;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.post-kicker a {
    color: #1a365d;
    text-decoration: none;
}

.post-kicker a:hover {
    color: #2c5282;
}

.lead-story {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.lead-story-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.lead-story-title {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.lead-story-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.lead-story-title a:hover {
    color: #1a365d;
}

.lead-story-excerpt {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 1rem;
}

.lead-story .post-date {
    font-size: 0.8rem;
    color: #999;
}

.full-archive-link {
    margin: 2.5rem 0 0;
    text-align: right;
}

.full-archive-link a {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: #1a365d;
    text-decoration: none;
}

.full-archive-link a:hover {
    color: #2c5282;
}

@media (max-width: 900px) {
    .lead-story {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .lead-story-title {
        font-size: 1.6rem;
    }

    .blog-custom-page .page-title {
        font-size: 2.25rem;
    }
}
