/*
Theme Name: Lifes24 Editorial Theme
Theme URI: https://lifes24.com/
Author: Lifes24 Editorial Team
Author URI: https://lifes24.com/
Description: Premium, AdSense-optimized editorial magazine theme for Lifes24.com. Features modern Google Fonts typography, high contrast, clean reading experience, responsive sidebar, Table of Contents, Ad containers, and mobile navigation.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lifes24-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES / DESIGN SYSTEM
   ========================================================================== */
:root {
    --l24-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --l24-font-serif: 'Source Serif 4', Georgia, "Times New Roman", serif;
    
    /* Color Palette */
    --l24-primary: #0f172a;        /* Deep slate navy */
    --l24-secondary: #1e293b;      /* Dark slate */
    --l24-accent: #2563eb;         /* Vibrant royal blue */
    --l24-accent-hover: #1d4ed8;   /* Deep royal blue */
    --l24-accent-light: #eff6ff;   /* Soft ice blue tint */
    --l24-accent-sky: #0ea5e9;     /* Modern sky cyan */
    
    --l24-bg: #ffffff;             /* Main canvas */
    --l24-surface: #f8fafc;        /* Card & widget surface */
    --l24-surface-alt: #f1f5f9;    /* Borders & subtle tags */
    --l24-border: #e2e8f0;         /* Primary structural border */
    --l24-border-light: #f1f5f9;   /* Inner divider */
    
    --l24-text: #334155;           /* Primary body text (Slate-700) */
    --l24-heading: #0f172a;        /* High-contrast headings */
    --l24-muted: #64748b;          /* Secondary metadata text */
    --l24-muted-light: #94a3b8;    /* Footnotes & subtle captions */

    /* Radii */
    --l24-radius-sm: 6px;
    --l24-radius: 12px;
    --l24-radius-lg: 18px;
    --l24-radius-full: 9999px;

    /* Elevation Shadows */
    --l24-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --l24-shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.06);
    --l24-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --l24-shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);

    /* Transitions */
    --l24-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESETS & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--l24-font-sans);
    color: var(--l24-text);
    background-color: var(--l24-bg);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.lifes24-drawer-open {
    overflow: hidden;
    touch-action: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--l24-accent);
    text-decoration: none;
    transition: var(--l24-transition);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

:focus-visible {
    outline: 2px solid var(--l24-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   TOP TRUST ANNOUNCEMENT BAR
   ========================================================================== */
.lifes24-top-bar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.8125rem;
    padding: 8px 16px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
    font-weight: 500;
}

.lifes24-top-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lifes24-top-bar-sep {
    color: #475569;
}

.lifes24-top-bar a {
    color: #93c5fd;
    text-decoration: underline;
    font-weight: 600;
}

.lifes24-top-bar a:hover {
    color: #ffffff;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.lifes24-site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--l24-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.lifes24-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lifes24-brand-container {
    display: flex;
    flex-direction: column;
}

.lifes24-brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.lifes24-logo-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.lifes24-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--l24-heading);
    line-height: 1.1;
}

.lifes24-logo-text span {
    color: var(--l24-accent);
}

.lifes24-brand-tagline {
    display: block;
    font-size: 0.6875rem;
    color: var(--l24-muted);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Desktop Menu */
.lifes24-nav-wrap {
    display: flex;
    align-items: center;
}

.lifes24-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lifes24-nav-menu li {
    margin: 0;
}

.lifes24-nav-menu a {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 8px 12px;
    border-radius: var(--l24-radius-sm);
    display: inline-block;
    transition: var(--l24-transition);
}

.lifes24-nav-menu a:hover,
.lifes24-nav-menu .current-menu-item > a,
.lifes24-nav-menu .current-cat > a {
    color: var(--l24-accent);
    background: var(--l24-accent-light);
}

/* Header Actions */
.lifes24-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lifes24-search-toggle {
    background: var(--l24-surface);
    border: 1px solid var(--l24-border);
    color: var(--l24-muted);
    width: 42px;
    height: 42px;
    border-radius: var(--l24-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--l24-transition);
}

.lifes24-search-toggle:hover {
    background: #e2e8f0;
    color: var(--l24-heading);
    border-color: #cbd5e1;
}

.lifes24-mobile-toggle {
    display: none;
    background: var(--l24-surface);
    border: 1px solid var(--l24-border);
    width: 42px;
    height: 42px;
    border-radius: var(--l24-radius-sm);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: var(--l24-transition);
}

.lifes24-mobile-toggle:hover {
    background: #e2e8f0;
}

.lifes24-hamburger-bar {
    width: 20px;
    height: 2px;
    background-color: var(--l24-heading);
    border-radius: 2px;
    transition: var(--l24-transition);
}

/* Quick Search Drawer (Header Dropdown) */
.lifes24-search-drawer {
    background: var(--l24-surface);
    border-top: 1px solid var(--l24-border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.lifes24-search-drawer.is-open {
    max-height: 90px;
    padding: 14px 24px;
}

.lifes24-search-inner {
    max-width: 720px;
    margin: 0 auto;
}

.lifes24-quick-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lifes24-quick-search-input {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius-sm);
    padding: 10px 16px;
    font-size: 0.9375rem;
    color: var(--l24-heading);
    outline: none;
}

.lifes24-quick-search-input:focus {
    border-color: var(--l24-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.lifes24-quick-search-btn {
    background: var(--l24-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--l24-radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--l24-transition);
}

.lifes24-quick-search-btn:hover {
    background: var(--l24-accent-hover);
}

.lifes24-quick-search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--l24-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

/* ==========================================================================
   MOBILE OFF-CANVAS SLIDE DRAWER
   ========================================================================== */
.lifes24-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lifes24-drawer-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lifes24-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lifes24-mobile-drawer.is-active {
    transform: translateX(0);
}

.lifes24-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--l24-border);
    background: var(--l24-surface);
}

.lifes24-drawer-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--l24-heading);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.lifes24-drawer-search {
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--l24-border-light);
}

.lifes24-drawer-search-form {
    display: flex;
    align-items: center;
    background: var(--l24-surface);
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius-sm);
    overflow: hidden;
}

.lifes24-drawer-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 0.9375rem;
    color: var(--l24-heading);
    outline: none;
}

.lifes24-drawer-search-form button {
    border: none;
    background: none;
    padding: 10px 14px;
    font-size: 1rem;
    cursor: pointer;
}

.lifes24-drawer-body {
    padding: 20px;
    flex-grow: 1;
}

.lifes24-drawer-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--l24-muted);
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.lifes24-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lifes24-drawer-menu li {
    margin-bottom: 4px;
}

.lifes24-drawer-menu a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    border-radius: var(--l24-radius-sm);
    transition: var(--l24-transition);
}

.lifes24-drawer-menu a:hover {
    background: var(--l24-accent-light);
    color: var(--l24-accent);
}

.lifes24-drawer-sub a {
    font-size: 0.875rem;
    padding: 9px 14px;
    color: var(--l24-text);
}

.lifes24-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--l24-border);
    background: var(--l24-surface);
    font-size: 0.75rem;
    color: var(--l24-muted);
    text-align: center;
}

/* ==========================================================================
   EDITORIAL HERO WRAPPER
   ========================================================================== */
.lifes24-hero-wrap {
    background: linear-gradient(135deg, #090e17 0%, #1e293b 55%, #0f172a 100%);
    color: #ffffff;
    padding: clamp(36px, 5vw + 10px, 64px) 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #1e293b;
}

.lifes24-hero-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.lifes24-hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.lifes24-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(147, 197, 253, 0.4);
    color: #bfdbfe;
    padding: 5px 14px;
    border-radius: var(--l24-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.lifes24-hero-title {
    font-size: clamp(1.75rem, 3.5vw + 0.8rem, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin: 0 0 16px 0;
    color: #ffffff;
}

.lifes24-hero-subtitle {
    font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.15rem);
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 680px;
}

.lifes24-category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.lifes24-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: var(--l24-radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--l24-transition);
    display: inline-block;
    white-space: nowrap;
}

.lifes24-pill:hover {
    background: var(--l24-accent);
    border-color: var(--l24-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   PRIMARY LAYOUT CONTAINERS
   ========================================================================== */
.lifes24-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) 24px;
}

.lifes24-layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.lifes24-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--l24-border);
}

.lifes24-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--l24-heading);
    margin: 0;
    letter-spacing: -0.3px;
}

.lifes24-section-badge {
    font-size: 0.8125rem;
    color: var(--l24-muted);
    font-weight: 600;
}

/* ==========================================================================
   ARTICLE MAGAZINE CARDS GRID
   ========================================================================== */
.lifes24-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.lifes24-article-card {
    background: #ffffff;
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--l24-shadow-xs);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lifes24-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--l24-shadow-lg);
    border-color: #cbd5e1;
}

.lifes24-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1e293b;
    position: relative;
    overflow: hidden;
}

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

.lifes24-article-card:hover .lifes24-card-thumb img {
    transform: scale(1.05);
}

.lifes24-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lifes24-card-cat-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--l24-accent);
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    display: inline-block;
}

.lifes24-card-headline {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--l24-heading);
    margin: 0 0 10px 0;
}

.lifes24-card-headline a {
    color: var(--l24-heading);
    text-decoration: none;
}

.lifes24-card-headline a:hover {
    color: var(--l24-accent);
}

.lifes24-card-snippet {
    font-size: 0.875rem;
    color: var(--l24-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.lifes24-card-snippet p {
    margin: 0;
}

.lifes24-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--l24-border-light);
    padding-top: 12px;
    font-size: 0.8125rem;
    color: var(--l24-muted);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

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

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius-sm);
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--l24-transition);
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    background: var(--l24-accent);
    color: #ffffff;
    border-color: var(--l24-accent);
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.lifes24-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 88px;
}

.lifes24-widget {
    background: var(--l24-surface);
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius);
    padding: 24px;
    box-shadow: var(--l24-shadow-xs);
}

.lifes24-widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--l24-heading);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--l24-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lifes24-widget-editorial {
    text-align: center;
}

.lifes24-widget-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--l24-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.lifes24-widget-desk-title {
    margin: 0 0 4px 0;
    font-size: 1.125rem;
    color: var(--l24-heading);
    font-weight: 700;
}

.lifes24-widget-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--l24-accent);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.lifes24-widget-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--l24-muted);
    margin: 0 0 14px 0;
}

.lifes24-widget-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--l24-accent);
}

.lifes24-widget-ad-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--l24-radius);
    padding: 18px;
    text-align: center;
}

.lifes24-ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--l24-muted-light);
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.lifes24-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lifes24-sidebar-post-item {
    border-bottom: 1px solid var(--l24-border-light);
    padding-bottom: 12px;
}

.lifes24-sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lifes24-sidebar-post-title {
    color: var(--l24-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.45;
    display: block;
    margin-bottom: 4px;
}

.lifes24-sidebar-post-title:hover {
    color: var(--l24-accent);
}

.lifes24-sidebar-post-date {
    font-size: 0.75rem;
    color: var(--l24-muted);
}

.lifes24-sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lifes24-sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--l24-radius-sm);
    color: #334155;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--l24-transition);
}

.lifes24-sidebar-categories a:hover {
    background: #ffffff;
    color: var(--l24-accent);
    padding-left: 14px;
}

.lifes24-cat-arrow {
    color: var(--l24-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   SINGLE ARTICLE VIEW
   ========================================================================== */
.lifes24-article-wrapper {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.lifes24-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--l24-muted);
    margin-bottom: 20px;
    line-height: 1.4;
}

.lifes24-breadcrumbs a {
    color: var(--l24-muted);
}

.lifes24-breadcrumbs a:hover {
    color: var(--l24-accent);
}

.lifes24-single-title {
    font-size: clamp(1.75rem, 3.2vw + 0.6rem, 2.375rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--l24-heading);
    letter-spacing: -0.6px;
    margin: 8px 0 16px 0;
}

.lifes24-meta-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--l24-muted);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--l24-border);
    margin-bottom: 28px;
}

/* Prose Reading Experience */
.lifes24-prose {
    font-family: var(--l24-font-sans);
    font-size: 1.125rem;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}

.lifes24-prose p {
    margin-top: 0;
    margin-bottom: 24px;
}

.lifes24-prose h2 {
    font-size: clamp(1.35rem, 2vw + 0.5rem, 1.625rem);
    font-weight: 800;
    color: var(--l24-heading);
    margin-top: 44px;
    margin-bottom: 16px;
    line-height: 1.35;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--l24-border-light);
}

.lifes24-prose h3 {
    font-size: clamp(1.15rem, 1.5vw + 0.4rem, 1.3rem);
    font-weight: 700;
    color: var(--l24-heading);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.lifes24-prose ul, .lifes24-prose ol {
    margin-top: 0;
    margin-bottom: 28px;
    padding-left: 24px;
}

.lifes24-prose li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.lifes24-prose blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    background: #f8fafc;
    border-left: 4px solid var(--l24-accent);
    font-style: italic;
    color: #1e293b;
    border-radius: 0 var(--l24-radius-sm) var(--l24-radius-sm) 0;
}

/* Responsive Table Wrapper */
.lifes24-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.9375rem;
    display: table;
}

@media (max-width: 640px) {
    .lifes24-prose table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

.lifes24-prose th, .lifes24-prose td {
    padding: 12px 16px;
    border: 1px solid var(--l24-border);
    text-align: left;
}

.lifes24-prose th {
    background: var(--l24-surface);
    font-weight: 700;
    color: var(--l24-heading);
}

/* Callout Highlights */
.lifes24-highlight-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--l24-radius);
    padding: 24px;
    margin: 32px 0;
}

.lifes24-highlight-box h4 {
    margin: 0 0 10px 0;
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Author E-E-A-T Card */
.lifes24-author-box {
    background: var(--l24-surface);
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius);
    padding: 28px;
    margin: 48px 0 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.lifes24-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--l24-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.lifes24-author-name {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    color: var(--l24-heading);
    font-weight: 700;
}

.lifes24-author-badge {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--l24-radius-full);
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.lifes24-author-bio {
    font-size: 0.9375rem;
    color: var(--l24-text);
    line-height: 1.65;
    margin: 0 0 12px 0;
}

.lifes24-author-link {
    color: var(--l24-accent);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Next / Prev Post Nav */
.lifes24-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--l24-border);
}

.lifes24-post-nav-item {
    background: var(--l24-surface);
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius);
    padding: 16px 20px;
    transition: var(--l24-transition);
}

.lifes24-post-nav-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--l24-shadow-sm);
}

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

.lifes24-nav-direction {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--l24-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.lifes24-nav-link-title a {
    color: var(--l24-heading);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lifes24-nav-link-title a:hover {
    color: var(--l24-accent);
}

/* ==========================================================================
   STATIC PAGES (About, Contact, Legal)
   ========================================================================== */
.lifes24-page-main {
    background: #f8fafc;
    min-height: 60vh;
}

.lifes24-page-container {
    max-width: 900px;
}

.lifes24-page-card {
    background: #ffffff;
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius);
    padding: clamp(24px, 5vw, 56px);
    box-shadow: var(--l24-shadow-sm);
}

.lifes24-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--l24-border-light);
}

.lifes24-page-title {
    font-size: clamp(1.85rem, 3.5vw + 0.6rem, 2.5rem);
    font-weight: 800;
    color: var(--l24-heading);
    letter-spacing: -0.6px;
    margin: 8px 0 16px 0;
}

.lifes24-title-bar {
    width: 56px;
    height: 4px;
    background: var(--l24-accent);
    border-radius: 2px;
    margin: 0 auto;
}

/* Form controls (Contact Form) */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--l24-border);
    border-radius: var(--l24-radius-sm);
    background: #ffffff;
    color: var(--l24-heading);
    font-size: 0.95rem;
    transition: var(--l24-transition);
}

input:focus, textarea:focus {
    border-color: var(--l24-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

input[type="submit"], button[type="submit"] {
    background: var(--l24-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--l24-radius-sm);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--l24-transition);
}

input[type="submit"]:hover, button[type="submit"]:hover {
    background: var(--l24-accent-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lifes24-site-footer {
    background: #090e17;
    color: #94a3b8;
    padding: clamp(48px, 6vw, 72px) 24px 32px;
    margin-top: 64px;
    border-top: 1px solid #1e293b;
}

.lifes24-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
}

.lifes24-footer-brand-col {
    padding-right: 20px;
}

.lifes24-footer-logo .lifes24-logo-text {
    font-size: 1.75rem;
}

.lifes24-footer-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #94a3b8;
    margin: 14px 0 20px 0;
    max-width: 360px;
}

.lifes24-footer-trust-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--l24-radius-full);
    padding: 6px 14px;
    font-size: 0.75rem;
    color: #e2e8f0;
    font-weight: 600;
}

.lifes24-footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 18px 0;
}

.lifes24-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lifes24-footer-links a {
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: var(--l24-transition);
    display: inline-block;
}

.lifes24-footer-links a:hover {
    color: #38bdf8;
    transform: translateX(3px);
}

.lifes24-footer-bottom {
    max-width: 1240px;
    margin: 56px auto 0;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
}

.lifes24-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.lifes24-footer-copy {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.lifes24-back-to-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: var(--l24-radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--l24-transition);
}

.lifes24-back-to-top:hover {
    background: var(--l24-accent);
    border-color: var(--l24-accent);
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLETS & PHONES)
   ========================================================================== */

/* Tablet & Down (<= 1024px) */
@media (max-width: 1024px) {
    .lifes24-layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lifes24-sidebar {
        position: static;
        margin-top: 16px;
    }

    .lifes24-footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .lifes24-footer-brand-col {
        grid-column: span 2;
        padding-right: 0;
    }
}

/* Small Tablet & Mobile (<= 860px) */
@media (max-width: 860px) {
    .lifes24-nav-wrap {
        display: none;
    }

    .lifes24-mobile-toggle {
        display: flex;
    }

    .lifes24-header-inner {
        padding: 10px 16px;
    }

    .lifes24-container {
        padding: 28px 16px;
    }

    .lifes24-article-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
    .lifes24-top-bar {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .lifes24-logo-text {
        font-size: 1.5rem;
    }

    .lifes24-brand-tagline {
        font-size: 0.625rem;
    }

    .lifes24-hero-wrap {
        padding: 32px 16px;
    }

    .lifes24-category-pills {
        gap: 6px;
    }

    .lifes24-pill {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .lifes24-article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lifes24-card-content {
        padding: 16px;
    }

    .lifes24-card-headline {
        font-size: 1.05rem;
    }

    .lifes24-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .lifes24-author-avatar {
        margin-bottom: 8px;
    }

    .lifes24-post-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lifes24-post-nav-next {
        text-align: left;
    }

    .lifes24-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lifes24-footer-brand-col {
        grid-column: span 1;
    }

    .lifes24-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .lifes24-prose {
        font-size: 1.05rem;
        line-height: 1.75;
    }
}

/* Ultra Small Screens (<= 380px) */
@media (max-width: 380px) {
    .lifes24-header-inner {
        padding: 8px 12px;
    }

    .lifes24-logo-text {
        font-size: 1.35rem;
    }

    .lifes24-mobile-toggle,
    .lifes24-search-toggle {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
