/* ==========================================================================
   Timberulove Blog Styles — Premium Timber Merchant Blog Design
   Theme: avanam-toolband (child of Avanam/Base)
   Author: Charlie / IT Services 4 Me
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. GOOGLE FONTS IMPORT
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    --tul-primary: #b18857;
    --tul-primary-dark: #96723f;
    --tul-primary-light: #ddc285;
    --tul-dark: #2a2216;
    --tul-dark-mid: #3d3226;
    --tul-light: #f9f6f1;
    --tul-warm: #efe8cf;
    --tul-card-bg: #ffffff;
    --tul-text: #363636;
    --tul-text-light: #555;
    --tul-meta: #888;
    --tul-border: #e8e0d0;
    --tul-font-heading: 'Roboto Slab', Georgia, 'Times New Roman', serif;
    --tul-font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tul-radius: 4px;
    --tul-radius-lg: 8px;
    --tul-shadow: 0 2px 12px rgba(42, 34, 22, 0.08);
    --tul-shadow-hover: 0 8px 30px rgba(42, 34, 22, 0.15);
    --tul-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --tul-max-width: 1200px;
    --tul-content-width: 900px;
}

/* ==========================================================================
   BLOG LISTING PAGE (body.blog)
   ========================================================================== */

/* --------------------------------------------------------------------------
   2. HERO BANNER
   -------------------------------------------------------------------------- */
body.blog .tul-blog-hero,
body.archive .tul-blog-hero {
    background: var(--tul-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(177, 136, 87, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(221, 194, 133, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, var(--tul-dark) 0%, #1e1a11 100%);
    padding: 80px 24px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.blog .tul-blog-hero::before,
body.archive .tul-blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b18857' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

body.blog .tul-blog-hero .tul-hero-inner,
body.archive .tul-blog-hero .tul-hero-inner {
    max-width: var(--tul-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

body.blog .tul-blog-hero .tul-hero-accent,
body.archive .tul-blog-hero .tul-hero-accent {
    width: 60px;
    height: 3px;
    background: var(--tul-primary-light);
    margin: 0 auto 24px;
    border-radius: 2px;
}

body.blog .tul-blog-hero h1,
body.archive .tul-blog-hero h1 {
    font-family: var(--tul-font-heading);
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

body.blog .tul-blog-hero .tul-hero-subtitle,
body.archive .tul-blog-hero .tul-hero-subtitle {
    font-family: var(--tul-font-body);
    font-size: 18px;
    color: #c9bfa8;
    margin: 0 0 28px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.blog .tul-blog-hero .tul-breadcrumbs,
body.archive .tul-blog-hero .tul-breadcrumbs {
    font-family: var(--tul-font-body);
    font-size: 13px;
    color: #8a7e6d;
    letter-spacing: 0.5px;
}

body.blog .tul-blog-hero .tul-breadcrumbs a,
body.archive .tul-blog-hero .tul-breadcrumbs a {
    color: var(--tul-primary);
    text-decoration: none;
    transition: color var(--tul-transition);
}

body.blog .tul-blog-hero .tul-breadcrumbs a:hover,
body.archive .tul-blog-hero .tul-breadcrumbs a:hover {
    color: var(--tul-primary-light);
}

body.blog .tul-blog-hero .tul-breadcrumbs span,
body.archive .tul-blog-hero .tul-breadcrumbs span {
    margin: 0 8px;
    color: #6b5f4e;
}

/* --------------------------------------------------------------------------
   3. REMOVE DEFAULT THEME HERO / TITLE AREA
   -------------------------------------------------------------------------- */
body.blog .entry-hero-container-inner,
body.archive .entry-hero-container-inner,
body.blog .wp-site-blocks > header + .entry-hero-container-inner,
body.archive .wp-site-blocks > header + .entry-hero-container-inner,
body.blog .hero-section-overlay,
body.archive .hero-section-overlay,
body.blog #main > .archive-header,
body.archive #main > .archive-header {
    display: none !important;
}

/* --------------------------------------------------------------------------
   4. BLOG CONTENT AREA — "Latest Articles" HEADING
   -------------------------------------------------------------------------- */
body.blog .tul-section-heading,
body.archive .tul-section-heading {
    max-width: var(--tul-max-width);
    margin: 50px auto 36px;
    padding: 0 24px;
    text-align: center;
}

body.blog .tul-section-heading h2,
body.archive .tul-section-heading h2 {
    font-family: var(--tul-font-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--tul-text);
    margin: 0 0 12px;
    position: relative;
    display: inline-block;
}

body.blog .tul-section-heading h2::after,
body.archive .tul-section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--tul-primary);
    border-radius: 2px;
}

body.blog .tul-section-heading p,
body.archive .tul-section-heading p {
    font-family: var(--tul-font-body);
    font-size: 16px;
    color: var(--tul-meta);
    margin: 20px 0 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. PAGE BACKGROUND
   -------------------------------------------------------------------------- */
body.blog,
body.archive {
    background-color: var(--tul-light);
}

body.blog #inner-wrap,
body.archive #inner-wrap {
    background: transparent;
}

/* --------------------------------------------------------------------------
   6. ARCHIVE CONTAINER — CARD GRID
   -------------------------------------------------------------------------- */
body.blog .content-container.site-container,
body.archive .content-container.site-container {
    max-width: var(--tul-max-width);
    padding: 0 24px;
}

body.blog #primary,
body.archive #primary {
    background: transparent;
}

body.blog #archive-container,
body.archive #archive-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0;
    margin: 0;
}

/* Remove any existing flex/grid from theme */
body.blog #archive-container.grid-cols,
body.archive #archive-container.grid-cols,
body.blog #archive-container.grid-sm-col-2,
body.archive #archive-container.grid-sm-col-2,
body.blog #archive-container.grid-lg-col-3,
body.archive #archive-container.grid-lg-col-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
}

/* --------------------------------------------------------------------------
   7. BLOG CARD STYLING
   -------------------------------------------------------------------------- */
body.blog .loop-entry,
body.archive .loop-entry {
    background: var(--tul-card-bg);
    border-radius: var(--tul-radius-lg);
    overflow: hidden;
    box-shadow: var(--tul-shadow);
    transition: transform var(--tul-transition), box-shadow var(--tul-transition);
    border: 1px solid rgba(177, 136, 87, 0.08);
    display: flex;
    flex-direction: column;
    margin: 0 !important;
}

body.blog .loop-entry:hover,
body.archive .loop-entry:hover {
    transform: translateY(-6px);
    box-shadow: var(--tul-shadow-hover);
}

/* --- Featured Image --- */
body.blog .loop-entry .post-thumbnail,
body.archive .loop-entry .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

body.blog .loop-entry .post-thumbnail img,
body.archive .loop-entry .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.blog .loop-entry:hover .post-thumbnail img,
body.archive .loop-entry:hover .post-thumbnail img {
    transform: scale(1.07);
}

body.blog .loop-entry .post-thumbnail a,
body.archive .loop-entry .post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- No featured image placeholder --- */
body.blog .loop-entry .post-thumbnail:empty,
body.archive .loop-entry .post-thumbnail:empty,
body.blog .loop-entry:not(:has(.post-thumbnail)) .entry-content-wrap,
body.archive .loop-entry:not(:has(.post-thumbnail)) .entry-content-wrap {
    padding-top: 24px;
}

/* --- Content Wrap --- */
body.blog .loop-entry .entry-content-wrap,
body.archive .loop-entry .entry-content-wrap {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- Category Badge --- */
body.blog .loop-entry .entry-taxonomies,
body.archive .loop-entry .entry-taxonomies,
body.blog .loop-entry .entry-meta .posted-in,
body.archive .loop-entry .entry-meta .posted-in {
    margin-bottom: 10px;
}

body.blog .loop-entry .entry-taxonomies a,
body.archive .loop-entry .entry-taxonomies a,
body.blog .loop-entry .entry-meta .posted-in a,
body.archive .loop-entry .entry-meta .posted-in a {
    display: inline-block;
    background: var(--tul-primary);
    color: #ffffff !important;
    font-family: var(--tul-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: background var(--tul-transition);
    line-height: 1.4;
}

body.blog .loop-entry .entry-taxonomies a:hover,
body.archive .loop-entry .entry-taxonomies a:hover,
body.blog .loop-entry .entry-meta .posted-in a:hover,
body.archive .loop-entry .entry-meta .posted-in a:hover {
    background: var(--tul-primary-dark);
}

/* --- Post Title --- */
body.blog .loop-entry .entry-title,
body.archive .loop-entry .entry-title {
    font-family: var(--tul-font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--tul-text);
}

body.blog .loop-entry .entry-title a,
body.archive .loop-entry .entry-title a {
    color: var(--tul-text);
    text-decoration: none;
    transition: color var(--tul-transition);
}

body.blog .loop-entry .entry-title a:hover,
body.archive .loop-entry .entry-title a:hover {
    color: var(--tul-primary);
}

/* --- Date / Author Meta --- */
body.blog .loop-entry .entry-meta,
body.archive .loop-entry .entry-meta {
    font-family: var(--tul-font-body);
    font-size: 13px;
    color: var(--tul-meta);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

body.blog .loop-entry .entry-meta a,
body.archive .loop-entry .entry-meta a {
    color: var(--tul-meta);
    text-decoration: none;
}

body.blog .loop-entry .entry-meta a:hover,
body.archive .loop-entry .entry-meta a:hover {
    color: var(--tul-primary);
}

body.blog .loop-entry .entry-meta .meta-sep,
body.archive .loop-entry .entry-meta .meta-sep {
    margin: 0 4px;
}

/* --- Excerpt --- */
body.blog .loop-entry .entry-summary p,
body.archive .loop-entry .entry-summary p,
body.blog .loop-entry .entry-summary,
body.archive .loop-entry .entry-summary {
    font-family: var(--tul-font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--tul-text-light);
    margin: 0 0 16px;
    flex-grow: 1;
}

/* --- Read More Link --- */
body.blog .loop-entry .entry-footer,
body.archive .loop-entry .entry-footer,
body.blog .loop-entry .entry-readmore,
body.archive .loop-entry .entry-readmore {
    margin-top: auto;
}

body.blog .loop-entry .entry-footer a,
body.archive .loop-entry .entry-footer a,
body.blog .loop-entry .entry-readmore a,
body.archive .loop-entry .entry-readmore a,
body.blog .loop-entry a.entry-read-more-link,
body.archive .loop-entry a.entry-read-more-link {
    font-family: var(--tul-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--tul-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--tul-transition);
    position: relative;
    padding-bottom: 2px;
}

body.blog .loop-entry .entry-footer a::after,
body.archive .loop-entry .entry-footer a::after,
body.blog .loop-entry .entry-readmore a::after,
body.archive .loop-entry .entry-readmore a::after,
body.blog .loop-entry a.entry-read-more-link::after,
body.archive .loop-entry a.entry-read-more-link::after {
    content: '\2192';
    transition: transform var(--tul-transition);
}

body.blog .loop-entry .entry-footer a:hover,
body.archive .loop-entry .entry-footer a:hover,
body.blog .loop-entry .entry-readmore a:hover,
body.archive .loop-entry .entry-readmore a:hover,
body.blog .loop-entry a.entry-read-more-link:hover,
body.archive .loop-entry a.entry-read-more-link:hover {
    color: var(--tul-primary-dark);
}

body.blog .loop-entry .entry-footer a:hover::after,
body.archive .loop-entry .entry-footer a:hover::after,
body.blog .loop-entry .entry-readmore a:hover::after,
body.archive .loop-entry .entry-readmore a:hover::after,
body.blog .loop-entry a.entry-read-more-link:hover::after,
body.archive .loop-entry a.entry-read-more-link:hover::after {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   8. FEATURED / FIRST CARD — FULL-WIDTH HERO SPANNING ALL COLUMNS
   -------------------------------------------------------------------------- */
body.blog #archive-container .loop-entry:first-child,
body.archive #archive-container .loop-entry:first-child {
    grid-column: 1 / -1;
    position: relative;
    flex-direction: column;
    border: none;
    border-radius: var(--tul-radius-lg);
    overflow: hidden;
    min-height: 420px;
}

body.blog #archive-container .loop-entry:first-child .post-thumbnail,
body.archive #archive-container .loop-entry:first-child .post-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    z-index: 1;
}

body.blog #archive-container .loop-entry:first-child .post-thumbnail img,
body.archive #archive-container .loop-entry:first-child .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: unset;
}

body.blog #archive-container .loop-entry:first-child .entry-content-wrap,
body.archive #archive-container .loop-entry:first-child .entry-content-wrap {
    position: relative;
    z-index: 3;
    padding: 48px 48px 40px;
    margin-top: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

body.blog #archive-container .loop-entry:first-child .entry-taxonomies a,
body.archive #archive-container .loop-entry:first-child .entry-taxonomies a,
body.blog #archive-container .loop-entry:first-child .entry-meta .posted-in a,
body.archive #archive-container .loop-entry:first-child .entry-meta .posted-in a {
    background: var(--tul-primary);
    color: #fff;
}

body.blog #archive-container .loop-entry:first-child .entry-title,
body.archive #archive-container .loop-entry:first-child .entry-title {
    font-size: 30px;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.blog #archive-container .loop-entry:first-child .entry-title a,
body.archive #archive-container .loop-entry:first-child .entry-title a {
    color: #ffffff;
}

body.blog #archive-container .loop-entry:first-child .entry-title a:hover,
body.archive #archive-container .loop-entry:first-child .entry-title a:hover {
    color: var(--tul-primary-light);
}

body.blog #archive-container .loop-entry:first-child .entry-summary p,
body.archive #archive-container .loop-entry:first-child .entry-summary p,
body.blog #archive-container .loop-entry:first-child .entry-summary,
body.archive #archive-container .loop-entry:first-child .entry-summary {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

body.blog #archive-container .loop-entry:first-child .entry-meta,
body.archive #archive-container .loop-entry:first-child .entry-meta {
    color: rgba(255,255,255,0.6);
}

body.blog #archive-container .loop-entry:first-child .entry-meta a,
body.archive #archive-container .loop-entry:first-child .entry-meta a {
    color: rgba(255,255,255,0.7);
}

body.blog #archive-container .loop-entry:first-child .entry-readmore a,
body.archive #archive-container .loop-entry:first-child .entry-readmore a {
    color: var(--tul-primary-light);
}

body.blog #archive-container .loop-entry:first-child:hover,
body.archive #archive-container .loop-entry:first-child:hover {
    transform: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

body.blog #archive-container .loop-entry:first-child:hover .post-thumbnail img,
body.archive #archive-container .loop-entry:first-child:hover .post-thumbnail img {
    transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   9. CTA SECTION AT BOTTOM OF BLOG
   -------------------------------------------------------------------------- */
body.blog .tul-blog-cta,
body.archive .tul-blog-cta {
    max-width: var(--tul-max-width);
    margin: 60px auto 50px;
    padding: 0 24px;
}

body.blog .tul-blog-cta .tul-cta-inner,
body.archive .tul-blog-cta .tul-cta-inner {
    background: var(--tul-dark);
    border: 2px solid var(--tul-primary);
    border-radius: var(--tul-radius-lg);
    padding: 50px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.blog .tul-blog-cta .tul-cta-inner::before,
body.archive .tul-blog-cta .tul-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(177, 136, 87, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

body.blog .tul-blog-cta h3,
body.archive .tul-blog-cta h3 {
    font-family: var(--tul-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 14px;
    position: relative;
}

body.blog .tul-blog-cta p,
body.archive .tul-blog-cta p {
    font-family: var(--tul-font-body);
    font-size: 16px;
    color: #c9bfa8;
    margin: 0 0 28px;
    line-height: 1.7;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

body.blog .tul-blog-cta .tul-cta-btn,
body.archive .tul-blog-cta .tul-cta-btn {
    display: inline-block;
    background: var(--tul-primary);
    color: #ffffff;
    font-family: var(--tul-font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 36px;
    border-radius: var(--tul-radius);
    text-decoration: none;
    transition: all var(--tul-transition);
    position: relative;
}

body.blog .tul-blog-cta .tul-cta-btn:hover,
body.archive .tul-blog-cta .tul-cta-btn:hover {
    background: var(--tul-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(177, 136, 87, 0.3);
}

/* --------------------------------------------------------------------------
   10. SIDEBAR REMOVAL ON BLOG & SINGLE (aggressive overrides)
   -------------------------------------------------------------------------- */

/* --- Hide ALL sidebar elements on blog pages --- */
body.blog #secondary,
body.archive #secondary,
body.blog aside.primary-sidebar,
body.archive aside.primary-sidebar,
body.single-post #secondary,
body.single-post .secondary,
body.single-post aside.primary-sidebar,
body.single-post aside.widget-area,
body.single-post .widget-area:not(.footer-widget-area),
body.single-post .content-area + .widget-area,
body.single-post .site-inner-wrap > aside {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* --- Force full-width layout wrappers on single posts --- */
body.single-post .site-container .site-inner-wrap,
body.single-post .content-wrap,
body.single-post .site-main-wrap {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    flex: 1 1 100% !important;
}

body.single-post .site-inner-wrap {
    display: block !important;
}

body.single-post .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    float: none !important;
}

/* --- Force full-width containers --- */
body.blog .content-container.site-container,
body.archive .content-container.site-container,
body.single-post .content-container.site-container {
    display: block !important;
    max-width: var(--tul-max-width);
}

body.blog #main,
body.archive #main,
body.single-post #main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    float: none !important;
}

/* --- Override theme has-sidebar classes --- */
body.single-post.has-sidebar .site-inner-wrap,
body.single-post.has-right-sidebar .site-inner-wrap,
body.single-post.has-left-sidebar .site-inner-wrap {
    display: block !important;
    grid-template-columns: 1fr !important;
}

body.single-post.has-sidebar #primary,
body.single-post.has-right-sidebar #primary,
body.single-post.has-left-sidebar #primary {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

/* --------------------------------------------------------------------------
   11. PAGINATION STYLING
   -------------------------------------------------------------------------- */
body.blog .pagination,
body.archive .pagination,
body.blog .nav-links,
body.archive .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 48px 0 0;
    padding: 0;
}

body.blog .pagination .page-numbers,
body.archive .pagination .page-numbers,
body.blog .nav-links .page-numbers,
body.archive .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    font-family: var(--tul-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--tul-text);
    background: var(--tul-card-bg);
    border: 1px solid var(--tul-border);
    border-radius: var(--tul-radius);
    text-decoration: none;
    transition: all var(--tul-transition);
}

body.blog .pagination .page-numbers:hover,
body.archive .pagination .page-numbers:hover,
body.blog .nav-links .page-numbers:hover,
body.archive .nav-links .page-numbers:hover {
    background: var(--tul-primary);
    color: #ffffff;
    border-color: var(--tul-primary);
}

body.blog .pagination .page-numbers.current,
body.archive .pagination .page-numbers.current,
body.blog .nav-links .page-numbers.current,
body.archive .nav-links .page-numbers.current {
    background: var(--tul-primary);
    color: #ffffff;
    border-color: var(--tul-primary);
    font-weight: 700;
}

/* ==========================================================================
   SINGLE POST PAGE (body.single-post)
   ========================================================================== */

/* --------------------------------------------------------------------------
   12. SINGLE POST — HERO IMAGE WITH OVERLAY
   -------------------------------------------------------------------------- */
body.single-post {
    background: var(--tul-light);
}

body.single-post .tul-single-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-height: 560px;
    overflow: hidden;
    background: var(--tul-dark);
}

body.single-post .tul-single-hero img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}

body.single-post .tul-single-hero .tul-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(
        to bottom,
        rgba(42, 34, 22, 0.1) 0%,
        rgba(42, 34, 22, 0.3) 40%,
        rgba(42, 34, 22, 0.75) 80%,
        rgba(42, 34, 22, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 24px 48px;
}

body.single-post .tul-single-hero .tul-hero-content {
    max-width: var(--tul-max-width);
    margin: 0 auto;
    width: 100%;
}

body.single-post .tul-single-hero .tul-hero-cat {
    display: inline-block;
    background: var(--tul-primary);
    color: #ffffff;
    font-family: var(--tul-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: background var(--tul-transition);
}

body.single-post .tul-single-hero .tul-hero-cat:hover {
    background: var(--tul-primary-dark);
}

body.single-post .tul-single-hero .tul-hero-title {
    font-family: var(--tul-font-heading);
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    max-width: 800px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.single-post .tul-single-hero .tul-hero-meta {
    font-family: var(--tul-font-body);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

body.single-post .tul-single-hero .tul-hero-meta a {
    color: var(--tul-primary-light);
    text-decoration: none;
}

body.single-post .tul-single-hero .tul-hero-meta a:hover {
    color: #ffffff;
}

body.single-post .tul-single-hero .tul-hero-meta .tul-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    display: inline-block;
}

/* --- Fallback hero (no featured image) --- */
body.single-post .tul-single-hero.tul-no-image {
    background: var(--tul-dark);
    max-height: none;
}

body.single-post .tul-single-hero.tul-no-image .tul-hero-overlay {
    position: relative;
    padding: 80px 24px 50px;
    background: linear-gradient(
        135deg,
        var(--tul-dark) 0%,
        #1e1a11 100%
    );
}

/* --------------------------------------------------------------------------
   13. HIDE DEFAULT THEME SINGLE POST ELEMENTS (we replace them)
   -------------------------------------------------------------------------- */
body.single-post .entry-hero-container-inner,
body.single-post .wp-site-blocks > header + .entry-hero-container-inner {
    display: none !important;
}

/* Hide default in-content featured image (we show it in hero) */
body.single-post .single-entry .post-thumbnail,
body.single-post .single-entry .entry-thumbnail {
    display: none !important;
}

/* Hide default in-content title and meta (we show in hero) */
body.single-post .single-entry .entry-header {
    display: none !important;
}

/* --------------------------------------------------------------------------
   14. SINGLE POST — MAIN CONTENT AREA
   -------------------------------------------------------------------------- */
body.single-post .content-container.site-container {
    max-width: var(--tul-content-width);
    margin: 0 auto;
    padding: 0 24px;
}

body.single-post #primary {
    background: transparent;
    padding-top: 0;
}

body.single-post .single-entry {
    background: var(--tul-card-bg);
    border-radius: var(--tul-radius-lg);
    box-shadow: var(--tul-shadow);
    margin-top: -40px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(177, 136, 87, 0.08);
}

body.single-post .single-entry .entry-content-wrap {
    padding: 56px 60px;
}

/* --------------------------------------------------------------------------
   15. SINGLE POST — ARTICLE TYPOGRAPHY
   -------------------------------------------------------------------------- */
body.single-post .single-entry .entry-content {
    font-family: var(--tul-font-body);
    font-size: 18px;
    line-height: 1.85;
    color: var(--tul-text);
    max-width: var(--tul-content-width);
    margin: 0 auto;
}

body.single-post .single-entry .entry-content p {
    margin-bottom: 1.6em;
    max-width: 75ch;
}

body.single-post .single-entry .entry-content h2 {
    font-family: var(--tul-font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--tul-text);
    margin: 2.2em 0 0.8em;
    line-height: 1.25;
    letter-spacing: -0.3px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tul-border);
}

body.single-post .single-entry .entry-content h3 {
    font-family: var(--tul-font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--tul-text);
    margin: 2em 0 0.7em;
    line-height: 1.3;
}

body.single-post .single-entry .entry-content h4 {
    font-family: var(--tul-font-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--tul-text);
    margin: 1.6em 0 0.5em;
    line-height: 1.4;
}

body.single-post .single-entry .entry-content h5,
body.single-post .single-entry .entry-content h6 {
    font-family: var(--tul-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--tul-text);
    margin: 1.5em 0 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.single-post .single-entry .entry-content a {
    color: var(--tul-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(177, 136, 87, 0.3);
    transition: all var(--tul-transition);
}

body.single-post .single-entry .entry-content a:hover {
    color: var(--tul-primary-dark);
    text-decoration-color: var(--tul-primary);
}

body.single-post .single-entry .entry-content strong {
    font-weight: 600;
    color: var(--tul-text);
}

/* --- Blockquote --- */
body.single-post .single-entry .entry-content blockquote {
    border-left: 4px solid var(--tul-primary);
    background: var(--tul-light);
    margin: 2em 0;
    padding: 24px 28px;
    border-radius: 0 var(--tul-radius) var(--tul-radius) 0;
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
    color: var(--tul-text-light);
    position: relative;
}

body.single-post .single-entry .entry-content blockquote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 60px;
    color: var(--tul-primary);
    opacity: 0.2;
    position: absolute;
    top: -5px;
    left: 16px;
    line-height: 1;
}

body.single-post .single-entry .entry-content blockquote p {
    margin: 0;
}

body.single-post .single-entry .entry-content blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    color: var(--tul-primary);
}

/* --- Lists --- */
body.single-post .single-entry .entry-content ul,
body.single-post .single-entry .entry-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

body.single-post .single-entry .entry-content li {
    margin-bottom: 0.6em;
    line-height: 1.7;
}

body.single-post .single-entry .entry-content ul li::marker {
    color: var(--tul-primary);
}

/* --- Images in Content --- */
body.single-post .single-entry .entry-content img {
    border-radius: var(--tul-radius);
    max-width: 100%;
    height: auto;
}

body.single-post .single-entry .entry-content figure {
    margin: 2em 0;
}

body.single-post .single-entry .entry-content figcaption {
    font-size: 13px;
    color: var(--tul-meta);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* --- Tables --- */
body.single-post .single-entry .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 15px;
}

body.single-post .single-entry .entry-content th {
    background: var(--tul-dark);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    font-family: var(--tul-font-heading);
}

body.single-post .single-entry .entry-content td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--tul-border);
}

body.single-post .single-entry .entry-content tr:nth-child(even) td {
    background: var(--tul-light);
}

/* --- Code blocks --- */
body.single-post .single-entry .entry-content pre,
body.single-post .single-entry .entry-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    background: #1e1a11;
    color: #e8dcc8;
    border-radius: var(--tul-radius);
}

body.single-post .single-entry .entry-content pre {
    padding: 20px 24px;
    overflow-x: auto;
    margin: 2em 0;
}

body.single-post .single-entry .entry-content code {
    padding: 2px 6px;
}

body.single-post .single-entry .entry-content pre code {
    padding: 0;
    background: none;
}

/* --------------------------------------------------------------------------
   16. SINGLE POST — TAGS
   -------------------------------------------------------------------------- */
body.single-post .single-entry .entry-footer {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid var(--tul-border);
}

body.single-post .single-entry .entry-footer .tags-links a {
    display: inline-block;
    background: var(--tul-light);
    color: var(--tul-text-light);
    font-family: var(--tul-font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 6px 6px 0;
    border: 1px solid var(--tul-border);
    transition: all var(--tul-transition);
}

body.single-post .single-entry .entry-footer .tags-links a:hover {
    background: var(--tul-primary);
    color: #ffffff;
    border-color: var(--tul-primary);
}

/* --------------------------------------------------------------------------
   17. SINGLE POST — AUTHOR BIO BOX
   -------------------------------------------------------------------------- */
body.single-post .entry-author-style-normal,
body.single-post .entry-author-box {
    max-width: var(--tul-content-width);
    margin: 32px auto 0;
    padding: 0 24px;
}

body.single-post .entry-author-style-normal .entry-author-inner,
body.single-post .entry-author-box-inner {
    background: var(--tul-card-bg);
    border-radius: var(--tul-radius-lg);
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-shadow: var(--tul-shadow);
    border: 1px solid rgba(177, 136, 87, 0.08);
}

body.single-post .entry-author-style-normal .author-avatar img,
body.single-post .entry-author-box .author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tul-warm);
}

body.single-post .entry-author-style-normal .author-info .author-name,
body.single-post .entry-author-box .author-name {
    font-family: var(--tul-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--tul-text);
    margin: 0 0 4px;
}

body.single-post .entry-author-style-normal .author-info .author-name a,
body.single-post .entry-author-box .author-name a {
    color: var(--tul-text);
    text-decoration: none;
}

body.single-post .entry-author-style-normal .author-description,
body.single-post .entry-author-box .author-description {
    font-family: var(--tul-font-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--tul-text-light);
    margin: 0;
}

/* --------------------------------------------------------------------------
   18. SINGLE POST — SIMILAR POSTS (custom override)
   -------------------------------------------------------------------------- */
body.single-post .tul-similar-posts {
    max-width: var(--tul-max-width);
    margin: 50px auto 60px;
    padding: 0 24px;
}

body.single-post .tul-similar-posts .tul-similar-heading {
    font-family: var(--tul-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--tul-text);
    text-align: center;
    margin: 0 0 12px;
    position: relative;
}

body.single-post .tul-similar-posts .tul-similar-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--tul-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

body.single-post .tul-similar-posts .tul-similar-subtext {
    font-family: var(--tul-font-body);
    font-size: 15px;
    color: var(--tul-meta);
    text-align: center;
    margin: 0 0 32px;
}

body.single-post .tul-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

body.single-post .tul-similar-card {
    background: var(--tul-card-bg);
    border-radius: var(--tul-radius-lg);
    overflow: hidden;
    box-shadow: var(--tul-shadow);
    border: 1px solid rgba(177, 136, 87, 0.08);
    transition: transform var(--tul-transition), box-shadow var(--tul-transition);
    display: flex;
    flex-direction: column;
}

body.single-post .tul-similar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tul-shadow-hover);
}

body.single-post .tul-similar-card .tul-similar-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

body.single-post .tul-similar-card .tul-similar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.single-post .tul-similar-card:hover .tul-similar-thumb img {
    transform: scale(1.05);
}

body.single-post .tul-similar-card .tul-similar-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.single-post .tul-similar-card .tul-similar-cat {
    display: inline-block;
    font-family: var(--tul-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tul-primary);
    margin-bottom: 8px;
}

body.single-post .tul-similar-card .tul-similar-title {
    font-family: var(--tul-font-heading);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
}

body.single-post .tul-similar-card .tul-similar-title a {
    color: var(--tul-text);
    text-decoration: none;
    transition: color var(--tul-transition);
}

body.single-post .tul-similar-card .tul-similar-title a:hover {
    color: var(--tul-primary);
}

body.single-post .tul-similar-card .tul-similar-date {
    font-family: var(--tul-font-body);
    font-size: 13px;
    color: var(--tul-meta);
    margin-top: auto;
}

/* --- Also style the default theme related posts --- */
body.single-post .entry-related {
    background: var(--tul-light) !important;
    padding: 50px 0 60px !important;
}

body.single-post .entry-related .entry-related-title {
    font-family: var(--tul-font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--tul-text);
    text-align: center;
}

body.single-post .entry-related .loop-entry {
    background: var(--tul-card-bg);
    border-radius: var(--tul-radius-lg);
    overflow: hidden;
    box-shadow: var(--tul-shadow);
    border: 1px solid rgba(177, 136, 87, 0.08);
    transition: transform var(--tul-transition), box-shadow var(--tul-transition);
}

body.single-post .entry-related .loop-entry:hover {
    transform: translateY(-4px);
    box-shadow: var(--tul-shadow-hover);
}

/* --------------------------------------------------------------------------
   19. SINGLE POST — POST NAVIGATION
   -------------------------------------------------------------------------- */
body.single-post .post-navigation {
    max-width: var(--tul-content-width);
    margin: 32px auto 0;
    padding: 0 24px;
}

body.single-post .post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

body.single-post .post-navigation .nav-links a {
    font-family: var(--tul-font-body);
    font-size: 15px;
    color: var(--tul-text);
    text-decoration: none;
    padding: 16px 20px;
    background: var(--tul-card-bg);
    border-radius: var(--tul-radius);
    box-shadow: var(--tul-shadow);
    border: 1px solid rgba(177, 136, 87, 0.08);
    transition: all var(--tul-transition);
    flex: 1;
}

body.single-post .post-navigation .nav-links a:hover {
    border-color: var(--tul-primary);
    box-shadow: var(--tul-shadow-hover);
}

body.single-post .post-navigation .post-navigation-sub small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tul-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

/* ==========================================================================
   20. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    body.blog .tul-blog-hero h1,
    body.archive .tul-blog-hero h1 {
        font-size: 38px;
    }

    body.blog #archive-container,
    body.archive #archive-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }

    body.blog #archive-container .loop-entry:first-child,
    body.archive #archive-container .loop-entry:first-child {
        grid-column: 1 / -1;
        min-height: 360px;
    }

    body.blog #archive-container .loop-entry:first-child .entry-title,
    body.archive #archive-container .loop-entry:first-child .entry-title {
        font-size: 26px;
    }

    body.single-post .tul-single-hero .tul-hero-title {
        font-size: 34px;
    }

    body.single-post .single-entry .entry-content-wrap {
        padding: 40px 44px;
    }

    body.single-post .tul-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Tablet small (max 768px) --- */
@media (max-width: 768px) {
    body.blog .tul-blog-hero,
    body.archive .tul-blog-hero {
        padding: 60px 20px 50px;
    }

    body.blog .tul-blog-hero h1,
    body.archive .tul-blog-hero h1 {
        font-size: 32px;
    }

    body.blog .tul-blog-hero .tul-hero-subtitle,
    body.archive .tul-blog-hero .tul-hero-subtitle {
        font-size: 16px;
    }

    body.blog #archive-container,
    body.archive #archive-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    body.blog #archive-container .loop-entry:first-child,
    body.archive #archive-container .loop-entry:first-child {
        grid-column: 1 / -1;
        min-height: 320px;
    }

    body.blog #archive-container .loop-entry:first-child .entry-content-wrap,
    body.archive #archive-container .loop-entry:first-child .entry-content-wrap {
        padding: 32px 24px 28px;
    }

    body.blog #archive-container .loop-entry:first-child .entry-title,
    body.archive #archive-container .loop-entry:first-child .entry-title {
        font-size: 22px;
    }

    body.blog .tul-section-heading h2,
    body.archive .tul-section-heading h2 {
        font-size: 26px;
    }

    body.blog .tul-blog-cta .tul-cta-inner,
    body.archive .tul-blog-cta .tul-cta-inner {
        padding: 36px 28px;
    }

    body.blog .tul-blog-cta h3,
    body.archive .tul-blog-cta h3 {
        font-size: 22px;
    }

    body.single-post .tul-single-hero img {
        height: 380px;
    }

    body.single-post .tul-single-hero .tul-hero-overlay {
        padding: 40px 20px 36px;
    }

    body.single-post .tul-single-hero .tul-hero-title {
        font-size: 28px;
    }

    body.single-post .single-entry .entry-content-wrap {
        padding: 28px 24px;
    }

    body.single-post .single-entry .entry-content {
        font-size: 16px;
    }

    body.single-post .single-entry .entry-content h2 {
        font-size: 24px;
    }

    body.single-post .single-entry .entry-content h3 {
        font-size: 20px;
    }

    body.single-post .single-entry .entry-content blockquote {
        padding: 20px 22px;
        font-size: 16px;
    }

    body.single-post .tul-similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    body.single-post .entry-author-style-normal .entry-author-inner,
    body.single-post .entry-author-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 24px;
    }

    body.single-post .post-navigation .nav-links {
        flex-direction: column;
    }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
    body.blog .tul-blog-hero,
    body.archive .tul-blog-hero {
        padding: 48px 16px 40px;
    }

    body.blog .tul-blog-hero h1,
    body.archive .tul-blog-hero h1 {
        font-size: 26px;
    }

    body.blog .tul-blog-hero .tul-hero-subtitle,
    body.archive .tul-blog-hero .tul-hero-subtitle {
        font-size: 15px;
    }

    body.blog #archive-container,
    body.archive #archive-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    body.blog #archive-container .loop-entry:first-child,
    body.archive #archive-container .loop-entry:first-child {
        grid-column: 1 / -1;
        min-height: 280px;
    }

    body.blog #archive-container .loop-entry:first-child .entry-title,
    body.archive #archive-container .loop-entry:first-child .entry-title {
        font-size: 20px;
    }

    body.blog .loop-entry .entry-content-wrap,
    body.archive .loop-entry .entry-content-wrap {
        padding: 18px;
    }

    body.blog .loop-entry .entry-title,
    body.archive .loop-entry .entry-title {
        font-size: 16px;
    }

    body.blog .tul-section-heading h2,
    body.archive .tul-section-heading h2 {
        font-size: 22px;
    }

    body.blog .tul-blog-cta .tul-cta-inner,
    body.archive .tul-blog-cta .tul-cta-inner {
        padding: 28px 20px;
    }

    body.blog .tul-blog-cta h3,
    body.archive .tul-blog-cta h3 {
        font-size: 20px;
    }

    body.single-post .tul-single-hero img {
        height: 280px;
    }

    body.single-post .tul-single-hero .tul-hero-overlay {
        padding: 30px 16px 28px;
    }

    body.single-post .tul-single-hero .tul-hero-title {
        font-size: 24px;
    }

    body.single-post .tul-single-hero .tul-hero-meta {
        font-size: 13px;
        gap: 10px;
    }

    body.single-post .single-entry {
        margin-top: -24px;
        border-radius: var(--tul-radius);
    }

    body.single-post .single-entry .entry-content-wrap {
        padding: 22px 18px;
    }

    body.single-post .single-entry .entry-content {
        font-size: 15px;
    }

    body.single-post .single-entry .entry-content h2 {
        font-size: 22px;
    }

    body.single-post .single-entry .entry-content h3 {
        font-size: 18px;
    }

    body.single-post .tul-similar-grid {
        grid-template-columns: 1fr;
    }

    body.single-post .tul-similar-posts .tul-similar-heading {
        font-size: 22px;
    }
}

/* ==========================================================================
   21. ANIMATION & POLISH
   ========================================================================== */

/* Smooth scroll for on-page links */
html {
    scroll-behavior: smooth;
}

/* Selection color */
body.blog ::selection,
body.archive ::selection,
body.single-post ::selection {
    background: rgba(177, 136, 87, 0.2);
    color: var(--tul-text);
}

/* Focus styles for accessibility */
body.blog a:focus-visible,
body.archive a:focus-visible,
body.single-post a:focus-visible {
    outline: 2px solid var(--tul-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Card entrance animation (subtle) */
@keyframes tulFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.blog .loop-entry,
body.archive .loop-entry {
    animation: tulFadeUp 0.5s ease both;
}

body.blog .loop-entry:nth-child(1),
body.archive .loop-entry:nth-child(1) { animation-delay: 0.05s; }
body.blog .loop-entry:nth-child(2),
body.archive .loop-entry:nth-child(2) { animation-delay: 0.1s; }
body.blog .loop-entry:nth-child(3),
body.archive .loop-entry:nth-child(3) { animation-delay: 0.15s; }
body.blog .loop-entry:nth-child(4),
body.archive .loop-entry:nth-child(4) { animation-delay: 0.2s; }
body.blog .loop-entry:nth-child(5),
body.archive .loop-entry:nth-child(5) { animation-delay: 0.25s; }
body.blog .loop-entry:nth-child(6),
body.archive .loop-entry:nth-child(6) { animation-delay: 0.3s; }
body.blog .loop-entry:nth-child(7),
body.archive .loop-entry:nth-child(7) { animation-delay: 0.35s; }
body.blog .loop-entry:nth-child(8),
body.archive .loop-entry:nth-child(8) { animation-delay: 0.4s; }
body.blog .loop-entry:nth-child(9),
body.archive .loop-entry:nth-child(9) { animation-delay: 0.45s; }

/* Reduce animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    body.blog .loop-entry,
    body.archive .loop-entry {
        animation: none;
    }

    body.blog .loop-entry .post-thumbnail img,
    body.archive .loop-entry .post-thumbnail img,
    body.single-post .tul-similar-card .tul-similar-thumb img {
        transition: none;
    }

    body.blog .loop-entry:hover,
    body.archive .loop-entry:hover,
    body.single-post .tul-similar-card:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    body.blog .tul-blog-hero,
    body.archive .tul-blog-hero,
    body.blog .tul-blog-cta,
    body.archive .tul-blog-cta,
    body.single-post .tul-single-hero .tul-hero-overlay {
        background: #fff !important;
        color: #000 !important;
    }

    body.blog .loop-entry,
    body.archive .loop-entry,
    body.single-post .tul-similar-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

