/*
Theme Name: Jess Dobbs Custom Theme
Theme URI: https://jessdobbs.com
Author: Jess Dobbs
Author URI: https://jessdobbs.com
Description: A clean, personal blog theme for faith, family, and natural living.
Version: 1.0
Text Domain: jessdobbs
*/

/* =============================================
   Harrington – Custom Local Font
   ============================================= */
@font-face {
    font-family: 'Harrington';
    src: url('fonts/Harrington.woff2') format('woff2'),
         url('fonts/Harrington.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Improves loading performance */
}

/* =============================================
   CSS Variables
   ============================================= */
:root {
     /* Your original palette – kept for continuity */
    --bg-color: #fdfdfd;           /* Soft off-white background */
    --text-color: #2c2c2c;         /* Dark charcoal text */
    --heading-color: #003087;      /* Muted teal/green – your current signature */
    --accent-color: #c8102e;       /* Warm muted gold/brown accent */
    --card-bg: #ffffff;            /* White cards */
    --border-color: #e0e0e0;       /* Subtle borders */

    /* New logo-inspired brand colors */
    --logo-black: #000000;         /* Pure black – use for strong headings, logo text */
    --logo-red: #ff0000;           /* Bright red – use sparingly for hearts, emphasis, or CTAs */
    --logo-blue: #0000ff;          /* Vibrant blue – use for links, active states, underlines */

    /* Softer, more usable coordinating shades (recommended) */
    --soft-red: #c8102e;           /* Deeper, more elegant red for better harmony */
    --soft-blue: #003087;          /* Navy blue – calmer, more professional alternative to bright blue */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Georgia', serif;
}

/* =============================================
   Global & Base Styles
   ============================================= */
html {
    scroll-behavior: smooth;
}
   
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

a {
    color: var(--soft-red);
    text-decoration: underline;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--soft-blue);
}

h1, h2, h3, h4 {
    color: var(--logo-black);
	font-family: 'Harrington', cursive;
    font-weight: 400;
    line-height: 1.3;
}

h1 {
	font-size: 45px;
}

h2 {
	font-size: 40px;
}

h3 {
	font-size: 35px;
}

h4 {
	font-size: 30px;
}

blockquote {
    font-family: 'Shadows Into Light', cursive;
	font-size: 23px;
}

/* =============================================
   Header & Navigation
   ============================================= */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	position: relative;           /* ← This is the key fix! Creates containing block */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
}

.site-branding {
    flex: 0 1 auto;
}

.site-title {
    margin: 0;
    font-family: 'Shadows Into Light', cursive;
    font-size: 4rem;                    /* Adjust size to match your logo feel – try 3.5rem to 5rem */
    font-weight: 400;                   /* Normal weight for script fonts */
    letter-spacing: 1px;
    color: var(--logo-black);           /* #000000 from your logo */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Soft shadow for depth */
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.site-description {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: #777;
    font-style: italic;
	font-family: 'Sacramento', cursive;
}

.main-navigation {
    flex: 1;
    text-align: right;
}

.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.primary-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
	position: relative;
    padding-bottom: 6px;
}

.primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.primary-menu li a:hover::after,
.primary-menu li.current-menu-item a::after {
    width: 100%;
    left: 0;
	color: var(--soft-blue);
    border-bottom: 2px solid var(--logo-blue);
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
    color: var(--soft-blue);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;                    /* Increased from 15px for breathing room */
    margin-right: 40px;           /* More space from menu on desktop */
	margin-left: 40px;
}

.social-icons i {
    font-size: 32px;
    transition: transform 0.3s;
}

.social-icons a:hover i {
    transform: scale(1.15);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--heading-color);
    padding: 10px;
}

.menu-icon-open,
.menu-icon-close {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.menu-toggle:hover .menu-icon-open,
.menu-toggle:hover .menu-icon-close {
    transform: scale(1.15);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .main-navigation.toggled {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .primary-menu {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        margin: 0;
        text-align: center; /* Centers items in dropdown */
    }

    .header-container {
        padding: 15px 20px;
    }

    .site-branding {
        flex: 1;
        text-align: center;
    }
	
	.site-branding img {
		max-width: 85%;
		height: auto;
	}

    .social-icons {
        display: none;
    }
}

/* =============================================
   Layout (Content + Sidebar Grid)
   ============================================= */
.content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.primary-content {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar,
.widget-area {
    grid-column: 2;
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr !important; /* Override any specificity issues */
        gap: 40px;
    }

    .primary-content,
    .sidebar,
    .widget-area {
        grid-column: 1 !important; /* Force both into the single column */
        grid-row: auto;            /* Let them stack naturally in source order */
        width: 100%;
    }

    /* Force post grid to single column on small screens */
    .post-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .content-wrapper {
        padding: 20px 15px;
    }

    .post-grid .card {
        margin: 0 auto;
        max-width: 100%;
    }
}

/* =============================================
   Post Grid & Cards
   ============================================= */
.post-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
    gap: 30px;
    margin-top: 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-content {
    padding: 20px;
}

.entry-title {
    margin: 0 0 10px;
}

.entry-title a {
	color: var(--logo-black);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--soft-red);
}

.entry-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 12px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--soft-red);
    font-weight: 600;
}

/* Archive / Category Header */
.archive-header {
    width: 100%;
    margin: 0;
    padding: 20px 0px;
    background: rgba(139, 115, 85, 0.05);
    border-radius: 8px;
    text-align: center;
}

.archive-title {
    margin: 0 0 8px;
    font-size: 2.4rem;
}

.archive-description {
    margin: 0;
    padding: 20px 30px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

/* Widgets */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

/* =============================================
   Hero Carousel
   ============================================= */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 650px;
    overflow: hidden;
	margin-bottom: 60px;
	max-width: 1200px;
	margin: 0 auto;
	border-radius: 20px;
}

.swiper.hero-swiper,
.swiper-slide,
.slide-bg,
.slide-overlay {
    height: 100%;
    width: 100%;
	border-radius: 20px;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 0 30px;
    text-align: center;
}

.slide-main-text {
    max-width: 900px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-title {
    font-size: clamp(1.7rem, 8vw, 1.7rem);
    font-weight: 900;
	padding-top: 10px;
    line-height: 1.05;
    margin: 0 0 20px;
}

.slide-excerpt {
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    margin: 0 0 35px;
    max-width: 850px;
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.slide-content .read-more {
    background: rgba(255,255,255,0.9);
    color: #000;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.4s;
}

.slide-content .read-more:hover {
    background: white;
    transform: translateY(-6px);
}

/* Bottom Meta Bar caption style */
.slide-meta-bar {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
	max-width: 800px;
	margin: 50px auto 0px;
    background: rgba(255, 255, 255, 1); 
    backdrop-filter: blur(5px);           /* Modern blur effect (optional, nice touch) */
    padding: 15px 30px 0px 30px;
    text-align: center;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    z-index: 11;
	border-radius: 20px;
}

.slide-meta-bar .meta-date,
.slide-meta-bar .meta-category,
.slide-meta-bar .meta-read {
    opacity: 0.9;
}

.slide-meta-bar .meta-sep {
    margin: 0 8px;
    opacity: 0.7;
}

.slide-bg {
    position: absolute;
    top: 0; 
	left: 0;
    width: 100%;
    height: 100%;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
	border-radius: 20px;
}

/* Navigation – White circles */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0,0,0,0.4);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    --swiper-navigation-size: 25px;
}

.swiper-pagination {
	display: none;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
}

/* Mobile */
@media (max-width: 992px) {
    .hero-carousel {
        display: none;
    }
}

/* =============================================
   Comments Area – Prettier Styling
   ============================================= */
.comments-area {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-top: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.comment-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.comment .avatar {
    border-radius: 50%;  /* Rounded avatars */
    margin-right: 20px;
    float: left;
}

.comment-author, .comment-author a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.comment-metadata {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.comment-content {
    margin-top: 15px;
    font-size: 1.1rem;
}

.reply {
    margin-top: 15px;
}

.comment-reply-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.comment-reply-link:hover {
    color: var(--text-color);
}

/* Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.comment-form button[type="submit"] {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s;
}

.comment-form button[type="submit"]:hover {
    background: var(--heading-color);
	cursor: pointer;
}

/* Nested Replies */
.children {
    margin-left: 40px;
	margin-top: 20px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
	list-style-type: none;
}

/* =============================================
   Single Post & Misc
   ============================================= */
.single .single-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.single .single-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ... (add back author-bio, nav-links, reading-time, footer, etc. if needed) ... */

/* Site Footer */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px;
    margin-top: 60px;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.copyright {
    margin: 0;
    line-height: 1.6;
}

.back-to-top {
    display: inline-block;
    margin-top: 20px;
    color: var(--logo-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.back-to-top:hover {
    color: var(--heading-color);
}

.heart-icon {
    color: var(--logo-red);
}

.cat-badge.featured {
    background: var(--soft-red);
    color: white;
}

/* =============================================
   Minimal Related Posts Section
   ============================================= */
.minimal-related {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--heading-color);
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.related-item {
    text-align: center;
}

.related-image-link {
    display: block;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-image-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.related-thumb {
    width: 100%;
    height: 180px;               /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
}

.related-post-title {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
}

.related-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-title a:hover {
    color: var(--accent-color);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    .related-thumb {
        height: 140px;
    }
}

/* =============================================
   Spiffy Previous/Next Navigation
   ============================================= */
.spiffy-nav {
    margin: 50px 0 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-previous,
.nav-next {
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 15px;
    background: rgba(139, 115, 85, 0.05); /* Subtle warm tint */
}

.nav-previous:hover,
.nav-next:hover {
    background: rgba(139, 115, 85, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.nav-previous .nav-text {
    text-align: left;
}

.nav-next .nav-text {
    text-align: right;
}

.nav-arrow {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    display: block;
    margin-bottom: 6px;
}

.nav-title {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
}

.nav-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin: 0 15px;
    border-radius: 6px;
    overflow: hidden;
}

.nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumb {
    width: 100%;
    height: 100%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: bold;
}

/* Mobile stacking */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .nav-previous,
    .nav-next {
        flex-direction: row-reverse; /* Image on right for next, left for prev */
    }

    .nav-next .nav-thumb {
        margin-left: 15px;
        margin-right: 0;
    }

    .nav-previous .nav-thumb {
        margin-right: 15px;
        margin-left: 0;
    }
}

/* =============================================
   Elegant Pagination Styling
   ============================================= */
.pagination {
    margin: 60px 0 80px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination .page-numbers,
.pagination .prev,
.pagination .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 50px;              /* Rounded buttons */
    background: rgba(139, 115, 85, 0.1); /* Subtle warm tint */
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.pagination .page-numbers:hover,
.pagination .prev:hover,
.pagination .next:hover {
    background: var(--heading-color);
    color: white;
    border-color: var(--heading-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.pagination .current {
    background: var(--accent-color); 
    color: white;
    border-color: var(--accent-color);
    font-weight: 700;
    cursor: default;
}

/* Prev/Next with arrows */
.pagination .prev,
.pagination .next {
    min-width: 120px;
    padding: 0 20px;
}

.pagination .prev::before {
    margin-right: 8px;
    font-weight: bold;
}

.pagination .next::after {
    margin-left: 8px;
    font-weight: bold;
}

/* Mobile: Stack if too many pages */
@media (max-width: 768px) {
    .pagination .nav-links {
        flex-direction: column;
        gap: 16px;
    }

    .pagination .page-numbers,
    .pagination .prev,
    .pagination .next {
        width: 100%;
        max-width: 300px;
    }
}

/* =============================================
   Sidebar Widgets – Elegant Styling
   ============================================= */
.widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.widget-title {
    font-size: 1.4rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.widget .wp-block-heading {
    font-size: 1.4rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Recent Posts with Thumbnails */
.widget_recent_entries ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_recent_entries li {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border-color);
}

.widget_recent_entries .post-thumb {
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.widget_recent_entries .post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.widget_recent_entries li:hover .post-thumb {
    transform: scale(1.08);
}

.widget_recent_entries a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.widget_recent_entries a:hover {
    color: var(--accent-color);
}

.widget_recent_entries .post-date {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* Recent Comments */
.widget_recent_comments ul, .wp-block-latest-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_recent_comments li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.widget_recent_comments .avatar {
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.widget_recent_comments a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.widget_recent_comments a:hover {
    text-decoration: underline;
}

.widget_recent_comments .comment-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-top: 4px;
}

/* Categories – Count on same line + badge style */
.widget_categories ul,
.wp-block-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_categories li,
.wp-block-categories-list li {
    margin-bottom: 12px;
}

.widget_categories a,
.wp-block-categories-list a {
    color: var(--text-color);
    text-decoration: none;
    display: inline;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    font-weight: 500;
}

.widget_categories a:hover,
.wp-block-categories-list a:hover {
    color: var(--accent-color);
}

.widget_categories .count,
.wp-block-categories-list .wp-block-categories-list__count {
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
    margin-left: 10px;
    flex-shrink: 0;
}

/* =============================================
   Static Page Styles
   ============================================= */
.page .page-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.page .page-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.page .entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.page .entry-title {
    font-size: 3rem;
    margin: 0 0 20px;
    color: var(--heading-color);
}

.page .entry-content {
    font-size: 1.15rem;
    line-height: 1.9;
}

.page .entry-content p {
    margin-bottom: 1.8em;
}

.page .entry-content h2,
.page .entry-content h3 {
    color: var(--heading-color);
    margin: 2.5em 0 1em;
}

/* Remove post meta/categories from pages */
.page .entry-meta,
.page .entry-categories,
.page .entry-tags {
    display: none;
}

/* =============================================
   Full-Width Page Templates (No Sidebar)
   ============================================= */
.page-full-width {
    max-width: 1100px;              /* Wider than normal content for full-width feel */
    margin: 0 auto;
    padding: 40px 20px;
}

.full-width {
    width: 100%;
}

/* Optional: Style specific to About page */
.about-page .page-featured-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin-bottom: 50px;
}

.about-page img {
	text-align: center;
	display: block;
	margin: 0 auto;
}

.about-page .entry-content {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.18rem;
    line-height: 1.85;
}

/* =============================================
   Prevent Horizontal Overflow on Mobile & All Devices
   ============================================= */

/* Force all images, videos, iframes, and embeds to stay within their container */
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content .wp-block-image img,
.entry-content .wp-block-embed__wrapper iframe {
    max-width: 100% !important;
    height: auto !important;
    display: block;               /* Prevents extra bottom space */
    margin: 1.5em auto;           /* Nice centering with breathing room */
}

/* Handle tables (if you ever add one) */
.entry-content table {
    width: 100% !important;
    overflow-x: auto;             /* Horizontal scroll on very wide tables */
    display: block;
}

/* Break long words/links (prevents unbreakable text overflow) */
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th,
.entry-content a {
    word-wrap: break-word;        /* Modern: break-word */
    overflow-wrap: break-word;    /* Preferred in 2026+ */
    hyphens: auto;                /* Optional: soft hyphens for long words */
}

/* General container safety net */
.entry-content,
.primary-content,
.content-wrapper,
.container {
    overflow-x: hidden;           /* Hide any accidental overflow */
    box-sizing: border-box;
}

/* Extra safety for very narrow screens */
@media (max-width: 480px) {
    .entry-content img {
        margin: 1em 0;            /* Less side margin on tiny phones */
    }
}

/* =============================================
   Fix Overflow for WordPress Image Blocks with Captions
   ============================================= */

/* Mobile-specific override for very narrow screens */
@media (max-width: 480px) {
    .entry-content figure.wp-block-image {
        margin: 1em 0 !important;
    }
		/* Force all figure-based images (with or without caption) to stay within container */
	.entry-content figure.wp-block-image,
	.entry-content figure.wp-block-image.alignwide,
	.entry-content figure.wp-block-image.alignfull,
	.entry-content figure.wp-block-image.aligncenter,
	.entry-content figure.wp-block-image.alignleft,
	.entry-content figure.wp-block-image.alignright {
		max-width: 100% !important;
		width: 100% !important;
		margin: 1.5em auto !important;     /* Centers nicely with breathing room */
		padding: 0 !important;
		overflow: hidden;
	}

	/* Ensure the img inside the figure never overflows */
	.entry-content figure img {
		max-width: 100% !important;
		height: auto !important;
		width: 100% !important;            /* Makes it fluid */
		display: block;
		object-fit: contain;               /* Prevents cropping/distortion */
	}

	/* Caption styling – keeps it neat */
	.entry-content figcaption {
		font-size: 0.95rem;
		color: #666;
		text-align: center;
		margin-top: 8px;
		padding: 0 10px;
		font-style: italic;
	}

	/* Extra safety for wide/full alignments */
	.entry-content .alignwide,
	.entry-content .alignfull {
		margin-left: auto !important;
		margin-right: auto !important;
		max-width: 100% !important;
	}
	
	/* Custom fix */ 
	figure.wp-caption[style] {
		width: 100% !important;
	}
	.entry-content figure img.emoji {
		width: 1em !important;
	}
}