/*
Theme Name: adultfriendfinder
Description: A modern, SEO-optimized WordPress theme designed for dating blogs and relationship advice content. Built with Elementor compatibility and mobile-first responsive design.
Author: ilke K.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: datinglove
Tags: dating, blog, relationship, advice, elementor, responsive, seo, modern
*/

/* ==========================================================================
   DatingLove Theme Styles
   ========================================================================== */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2b2f33;
    background-color: #ffffff;
    font-weight: 400;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

#page,
.site {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

/* Sticky footer layout */
html, body { height: 100%; }
.site { 
    display: flex; 
    min-height: 100vh; 
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible; /* Allow sticky sidebar */
}
.site-main, .site-content { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* AFF Red / Dark Gray / White Palette */
:root {
    --primary-red: #f70202;
    --secondary-red: #d00202;
    --accent-pink: #ff5a6f;
    --accent-purple: #7a2d3b;
    --dark-bg: #111315;
    --darker-bg: #0b0c0d;
    --card-bg: #1b1d20;
    --text-light: #ffffff;
    --text-gray: #aeb2b6;
    --text-muted: #9ca3af;
    --text-hero-meta: rgba(255, 255, 255, 0.8);
    --text-dark: #2a2d31;
    --transparent-bg-opacity: 0.8;
    --transparent-text-color: #ffffff;
    --transparent-blur: 10px;
    --border-color: #2a2d31;
    --gradient-primary: linear-gradient(135deg, #f70202 0%, #ff5a6f 100%);
    --gradient-secondary: linear-gradient(135deg, #7a2d3b 0%, #f70202 100%);
    --gradient-dark: linear-gradient(135deg, #0b0c0d 0%, #1b1d20 100%);
    --header-height: 70px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure containers inside header/footer are transparent */
.site-header .container,
.site-footer .container {
    background: transparent !important;
}

/* Front page: overlay header over hero (desktop) */
@media (min-width: 769px) {
    .home .site-header.header--transparent {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important; /* White border with 0.2 opacity */
        z-index: 1000;
    }
    .home .site-header.header--transparent .container { background: transparent !important; }
}

.site-header {
    background: #ffffff;
    color: #2b2f33;
    padding: 1rem 0;
    border-bottom: 1px solid #e6e8eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
}

/* Header layout variants (Customizer toggles colors; these handle layout) */
.header--center .container { display:flex; flex-direction:column; align-items:center; gap:.5rem; }
.header--center .main-navigation .nav-menu { display:flex; gap:1.2rem; }
.header--logo-left .container { display:flex; align-items:center; justify-content:space-between; }

/* Header Search */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-search {
    position: relative;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent !important; /* Remove faded white background */
    border-radius: 4px;
    padding: 0.25rem;
}

/* Dark mode search form background */
[data-theme="dark"] .header-search .search-form,
body:not([class*="light"]) .header-search .search-form {
    background: transparent !important; /* Remove background in dark mode too */
}

.header-search .search-field {
    padding: 0.5rem 1rem;
    border: none !important; /* Remove border */
    border-radius: 4px;
    font-size: 0.875rem;
    width: 200px;
    transition: border-color 0.3s ease, width 0.3s ease;
    background: rgba(255, 255, 255, 0.6) !important; /* 0.6 opacity white background */
}

.header-search .search-field:focus {
    outline: none;
    border: none !important; /* Remove border on focus too */
    width: 250px;
}

.header-search .search-submit {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.header-search .search-submit svg {
    stroke: currentColor;
    fill: none;
}

.header-search .search-submit:hover {
    color: var(--primary-red);
}

/* Dark mode search icon */
body:not([class*="light"]) .header-search .search-submit,
[data-theme="dark"] .header-search .search-submit {
    color: #ffffff !important;
}

body:not([class*="light"]) .header-search .search-submit:hover,
[data-theme="dark"] .header-search .search-submit:hover {
    color: var(--primary-red) !important;
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }
    
    /* Mobile Search - shown in mobile menu */
    .main-navigation .mobile-search {
        display: none;
    }
    
    .main-navigation.active .mobile-search {
        display: block;
    }
    
    .mobile-search {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        background: #f8f9fa;
    }
    
    .mobile-search .search-form {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .mobile-search .search-field {
        flex: 1;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        font-size: 1rem;
        background: #ffffff;
    }
    
    .mobile-search .search-field:focus {
        outline: none;
        border-color: var(--primary-red);
    }
    
    .mobile-search .search-submit {
        background: var(--primary-red);
        border: none;
        padding: 0.75rem 1rem;
        border-radius: 4px;
        cursor: pointer;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }
    
    .mobile-search .search-submit:hover {
        background: var(--secondary-red);
    }
    
    .mobile-search .search-submit svg {
        color: #ffffff;
    }
}

@media (min-width: 769px) {
    .mobile-search {
        display: none;
    }
}

/* Ensure headers are always visible - prevent shrinking on scroll */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e6e8eb;
    padding: 1rem 0;
    transition: none !important;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    min-height: auto !important;
    height: auto !important;
}

/* Prevent any header shrinking or collapsing */
.site-header,
.site-header .container,
.site-branding,
.site-branding img,
.main-navigation {
    transform: none !important;
    transition: none !important;
}

.site-header.scrolled,
.site-header.shrink,
.site-header.is-scrolled {
    padding: 1rem 0 !important;
    min-height: auto !important;
    height: auto !important;
}

/* Force remove all navigation backgrounds */
.main-navigation a,
.main-navigation a:visited,
.main-navigation a:focus,
.main-navigation a:active {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Red hover color for all nav links */
.main-navigation a:hover {
    color: var(--primary-red) !important; /* Red hover color */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Specific override for transparent header */
.header--transparent .main-navigation a,
.header--transparent .main-navigation a:visited,
.header--transparent .main-navigation a:focus,
.header--transparent .main-navigation a:active {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.header--transparent .main-navigation a:hover {
    color: var(--primary-red) !important; /* Red hover color */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Logo sizing - enforce max height strictly */
.site-header .custom-logo,
.site-header .custom-logo-dark,
.site-header .site-branding img,
.site-header .site-branding a img {
    max-height: 48px !important;
    height: auto !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-header .custom-logo,
    .site-header .custom-logo-dark,
    .site-header .site-branding img,
    .site-header .site-branding a img {
        max-height: 40px !important;
        max-width: 180px !important;
    }
}

/* Force readable nav on single posts */
.single .site-header .main-navigation a {
    color: var(--text-dark) !important;
}
.single .site-header .main-navigation a:hover {
    color: var(--primary-red) !important;
}
.single .site-title a {
    color: var(--text-dark) !important;
}

/* Ensure solid header on singles - prevent shrinking */
.single .site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0 !important;
    min-height: auto !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
}

.site-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Navigation */
.main-navigation {
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: color 0.3s ease;
    text-decoration: none;
    position: relative;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.main-navigation a:hover {
    color: var(--primary-red) !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Content Area */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }
}

/* Post Cards (Blog Index) */
.posts-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.post-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.post-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-card:hover {
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

.post-card:hover .post-title a {
    color: var(--primary-red);
}

.post-thumbnail {
    height: 280px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    background: #f8f9fa;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    display: block;
}

.post-card:hover .post-thumbnail img {
    opacity: 0.92;
}

.post-content {
    padding: 0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6c737a;
    font-weight: 400;
}

.post-category {
    color: var(--primary-red);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 0;
}

.post-category::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--primary-red);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.post-title {
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.875rem;
}

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

.post-title a:hover {
    color: var(--primary-red);
}

.post-excerpt {
    color: #6c737a;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

.post-stats {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Article Layout - Design 5 */
.article-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible !important; /* Ensure sticky sidebar works */
    box-sizing: border-box;
    position: relative;
}

@media (min-width: 1025px) {
    .article-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px !important;
    margin: 0 auto;
    margin-top: 50px; /* Desktop margin-top */
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.article-layout > * {
    min-width: 0;
    box-sizing: border-box;
}

.article-main {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.article-sidebar {
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    height: fit-content;
    position: static;
    align-self: flex-start;
    width: 300px;
    max-width: 300px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .article-sidebar {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

.article-hero {
    background: linear-gradient(135deg, #2b2f33 0%, #495057 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.article-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    background: transparent !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-category {
    display: inline-block;
    background: #f70202;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem !important;
    margin-top: 0;
    margin-right: auto;
    margin-left: 0;
    text-align: left;
    width: auto;
    position: relative !important;
    z-index: 10;
    align-self: flex-start;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.5);
}

.article-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    color: var(--text-hero-meta);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: var(--text-hero-meta);
}

.article-body {
    background: white;
    border-radius: 0;
    padding: 4rem;
    margin: -2rem 0 2rem 0;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 3;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2b2f33;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

.article-title {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

.article-subtitle {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
}

.article-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    color: #2b2f33;
    position: relative;
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: #f70202;
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: #2b2f33;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 5px solid #f70202;
    padding: 2rem;
    margin: 3rem 0;
    font-style: italic;
    color: #495057;
    font-size: 1.2rem;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-size: 4rem;
    color: #f70202;
    font-family: serif;
    line-height: 1;
}

.article-content ul, .article-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-footer {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 3rem;
    margin-top: 3rem;
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2b2f33;
}

.article-tags .tag {
    display: inline-block;
    background: white;
    color: #2b2f33;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 0.8rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border: 2px solid #e6e8eb;
}

.article-tags .tag:hover {
    background: #f70202;
    color: white;
    border-color: #f70202;
}

/* Prevent archive tag pages (body.tag) from inheriting chip styles */
body.tag {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Ensure archive pages use page background (dark/light) and not white cards */
body.tag .site-main,
body.archive .site-main,
body.category .site-main,
body.tag .container,
body.archive .container,
body.category .container,
body.tag .content-area,
body.archive .content-area,
body.category .content-area {
    background: transparent !important;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.share-label {
    font-weight: 600;
    color: #2b2f33;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
}

.share-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.share-btn svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: block;
    flex-shrink: 0;
}

.share-facebook { 
    background: #3b5998; 
    color: white; 
}

.share-facebook:hover { 
    background: #2d4373; 
    color: white; 
}

.share-twitter { 
    background: #1da1f2; 
    color: white; 
}

.share-twitter:hover { 
    background: #0d8bd9; 
    color: white; 
}

.share-linkedin { 
    background: #0077b5; 
    color: white; 
}

.share-linkedin:hover { 
    background: #005885; 
    color: white; 
}

.share-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.sidebar-widget {
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

/* Dark theme sidebar widget borders */
body:not([class*="light"]) .sidebar-widget,
[data-theme="dark"] .sidebar-widget {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none !important;
}

.sidebar-widget input,
.sidebar-widget textarea,
.sidebar-widget select {
    border: 1px solid #e6e8eb !important;
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
}

.sidebar-widget input:focus,
.sidebar-widget textarea:focus,
.sidebar-widget select:focus {
    border-color: var(--primary-red) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 18, 43, 0.1);
}

/* Remove all borders from widget areas */
.widget-area,
.widget-area *,
#secondary,
#secondary * {
    border: none !important;
    box-shadow: none !important;
}

.widget-area .widget,
#secondary .widget {
    border: none !important;
    box-shadow: none !important;
}

.sidebar-widget h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    padding-left: 0.75rem;
}

.sidebar-widget h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background: var(--primary-red);
}

.sidebar-widget ul, .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li, .sidebar-menu li {
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: padding-left 0.2s ease;
}

/* Dark theme sidebar widget list borders */
body:not([class*="light"]) .sidebar-widget li,
body:not([class*="light"]) .sidebar-menu li,
[data-theme="dark"] .sidebar-widget li,
[data-theme="dark"] .sidebar-menu li {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.sidebar-widget li:last-child, .sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-widget li:hover, .sidebar-menu li:hover {
    padding-left: 0.375rem;
}

.sidebar-widget a, .sidebar-menu a {
    color: #6c737a;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.sidebar-widget a:hover, .sidebar-menu a:hover {
    color: #f70202;
}

/* Related Articles Widget */
.related-articles-widget .related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-article-link {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    padding: 0.5rem 0;
}

.related-article-link:hover {
    opacity: 0.8;
}

.related-article-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.related-article-content {
    flex: 1;
    min-width: 0;
}

.related-article-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.related-article-link:hover .related-article-title {
    color: var(--primary-red);
}

.related-article-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Featured Articles Widget */
.featured-articles-widget .featured-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-article-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-article-link {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    padding: 0.5rem 0;
}

.featured-article-link:hover {
    opacity: 0.8;
}

.featured-article-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.featured-article-thumb::after {
    content: '★';
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-red);
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

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

.featured-article-content {
    flex: 1;
    min-width: 0;
}

.featured-article-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.featured-article-link:hover .featured-article-title {
    color: var(--primary-red);
}

.featured-article-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.related-articles {
    margin-top: 2rem;
}

.related-article {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e6e8eb;
}

.related-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.related-article-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.related-article-content h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.related-article-content h5 a {
    color: #2b2f33;
    text-decoration: none;
}

.related-article-content h5 a:hover {
    color: #f70202;
}

.related-article-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Desktop: Full width layout with sticky sidebar */
@media (min-width: 1025px) {
    .article-wrapper {
        overflow: visible !important; /* Ensure overflow doesn't prevent sticky */
        position: relative;
    }
    
    .article-layout {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
        max-width: 1200px !important;
        margin: 0 auto;
        margin-top: 50px; /* Desktop margin-top */
        padding: 0 20px;
        width: 100%;
        align-items: start;
        position: relative;
        overflow: visible !important; /* Ensure overflow doesn't prevent sticky */
    }
    
    .article-main {
        width: 100%;
        margin-left: 0;
        margin-right: auto;
    }
    
    .article-sidebar {
        position: -webkit-sticky !important; /* Safari support */
        position: sticky !important;
        top: calc(var(--header-height, 70px) + 1rem) !important;
        align-self: start !important;
        width: 300px !important;
        max-width: 300px !important;
        min-width: 300px !important;
        height: fit-content !important;
        max-height: calc(100vh - var(--header-height, 70px) - 2rem) !important;
        overflow-y: auto !important;
        overflow-x: visible !important;
        will-change: transform;
        z-index: 10;
    }
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 20px; /* Mobile margin-top */
    }
    
    .article-layout > * {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .article-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    .article-sidebar {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 768px) {
    .article-hero {
        aspect-ratio: 4/3;
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .article-hero-content {
        padding: 0 1.5rem;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .article-category {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .article-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .article-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .article-meta {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-body {
        padding: 2rem 1.5rem !important;
        margin: 0 0 2rem 0 !important;
    }
    
    .article-content {
        font-size: 0.95rem !important;
    }
    
    .article-content h2 {
        font-size: 1.5rem !important;
        margin: 2rem 0 1rem 0;
    }
    
    .article-content h2::before {
        display: none;
    }
    
    .article-content h3 {
        font-size: 1.3rem !important;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .article-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .article-content blockquote {
        font-size: 1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.entry-header {
    position: relative;
}

.post-featured-image {
    height: 400px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta-header {
    padding: 2rem;
    background: #ffffff;
}

.post-categories {
    margin-bottom: 1rem;
}

.post-category {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

.entry-content {
    padding: 0 2rem 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

/* Post Footer */
.entry-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
}

.post-tags {
    margin-bottom: 2rem;
}

.tags-label {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tag-link {
    display: inline-block;
    background: #e9ecef;
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.tag-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-buttons a {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-facebook {
    background: #3b5998;
    color: #ffffff;
}

.share-twitter {
    background: #1da1f2;
    color: #ffffff;
}

.share-linkedin {
    background: #0077b5;
    color: #ffffff;
}

.share-buttons a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.author-description {
    color: #6c757d;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e6e8eb;
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-3px);
}

.related-post-thumbnail {
    height: 150px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

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

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

.related-post-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #ffffff;
    border: 1px solid #e6e8eb;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

/* Sidebar */
.blog-sidebar {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    height: fit-content;
}

.widget {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Dark theme widget borders */
body:not([class*="light"]) .widget,
[data-theme="dark"] .widget {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    padding-left: 0.75rem;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background: var(--primary-red);
}

/* Remove left border from Related/Featured article widget titles */
.related-articles-widget .widget-title::before,
.featured-articles-widget .widget-title::before {
    display: none;
}

.related-articles-widget .widget-title,
.featured-articles-widget .widget-title {
    padding-left: 0;
}

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

.widget li {
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: padding-left 0.2s ease;
}

/* Dark theme widget list borders */
body:not([class*="light"]) .widget li,
[data-theme="dark"] .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    padding-left: 0.375rem;
}

.widget a {
    color: #6c737a;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.widget a:hover {
    color: var(--primary-red);
}

/* Dating-specific styles */
.dating-tips {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-left: 4px solid #e74c3c;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
}

.relationship-advice {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
}

/* Footer */
.site-footer {
    background: var(--darker-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 0 !important; /* Remove margin-top */
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Mobile menu toggle - MUST be visible - Higher specificity to override everything */
    .site-header .main-navigation button.menu-toggle,
    #site-navigation button.menu-toggle,
    nav#site-navigation button.menu-toggle,
    .main-navigation button.menu-toggle,
    button.menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--text-dark) !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-left: auto !important;
        border: 2px solid var(--text-dark) !important;
        border-radius: 4px !important;
        background: transparent !important;
        order: 2 !important;
        z-index: 1001 !important;
        position: relative !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }
    
    .site-header .main-navigation button.menu-toggle .menu-toggle-icon,
    #site-navigation button.menu-toggle .menu-toggle-icon,
    nav#site-navigation button.menu-toggle .menu-toggle-icon,
    .main-navigation button.menu-toggle .menu-toggle-icon,
    button.menu-toggle .menu-toggle-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        position: relative;
    }
    
    .site-header .main-navigation button.menu-toggle .menu-toggle-icon svg,
    #site-navigation button.menu-toggle .menu-toggle-icon svg,
    nav#site-navigation button.menu-toggle .menu-toggle-icon svg,
    .main-navigation button.menu-toggle .menu-toggle-icon svg,
    button.menu-toggle .menu-toggle-icon svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 24px !important;
        height: 24px !important;
        stroke: #ffffff !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .site-header .main-navigation button.menu-toggle .menu-toggle-icon .close-icon,
    #site-navigation button.menu-toggle .menu-toggle-icon .close-icon,
    nav#site-navigation button.menu-toggle .menu-toggle-icon .close-icon,
    .main-navigation button.menu-toggle .menu-toggle-icon .close-icon,
    button.menu-toggle .menu-toggle-icon .close-icon {
        display: none !important;
    }
    
    .site-header .main-navigation button.menu-toggle.active .menu-toggle-icon .menu-icon,
    #site-navigation button.menu-toggle.active .menu-toggle-icon .menu-icon,
    nav#site-navigation button.menu-toggle.active .menu-toggle-icon .menu-icon,
    .main-navigation button.menu-toggle.active .menu-toggle-icon .menu-icon,
    button.menu-toggle.active .menu-toggle-icon .menu-icon {
        display: none !important;
    }
    
    .site-header .main-navigation button.menu-toggle.active .menu-toggle-icon .close-icon,
    #site-navigation button.menu-toggle.active .menu-toggle-icon .close-icon,
    nav#site-navigation button.menu-toggle.active .menu-toggle-icon .close-icon,
    .main-navigation button.menu-toggle.active .menu-toggle-icon .close-icon,
    button.menu-toggle.active .menu-toggle-icon .close-icon {
        display: block !important;
    }
    
    /* Hide old hamburger spans - we're using SVG icons now */
    .site-header .main-navigation button.menu-toggle .menu-toggle-icon span,
    #site-navigation button.menu-toggle .menu-toggle-icon span,
    nav#site-navigation button.menu-toggle .menu-toggle-icon span,
    .main-navigation button.menu-toggle .menu-toggle-icon span,
    button.menu-toggle .menu-toggle-icon span {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .site-header .main-navigation button.menu-toggle .menu-toggle-text,
    #site-navigation button.menu-toggle .menu-toggle-text,
    nav#site-navigation button.menu-toggle .menu-toggle-text,
    .main-navigation button.menu-toggle .menu-toggle-text,
    button.menu-toggle .menu-toggle-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Menu list is hidden by default, shown above in main-navigation rules */
    
    /* Header layout on mobile */
    .header--logo-left .container,
    .header--center .container {
        flex-wrap: wrap;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    
    .site-branding {
        flex: 1;
        min-width: 0;
    }
    
    /* Keep main-navigation visible for the button, but hide menu by default */
    .main-navigation {
        position: relative;
    }
    
    /* Full-page mobile menu overlay */
    .main-navigation.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: block;
    }
    
    /* Mobile search in menu - positioned inside menu */
    .mobile-search-wrapper {
        display: none;
        width: 100%;
        border-bottom: 1px solid #e6e8eb;
        padding: 0 1.5rem; /* Add horizontal padding for mobile spacing - match menu item padding */
        box-sizing: border-box;
    }
    
    .main-navigation.active .mobile-search-wrapper {
        display: block;
    }
    
    .mobile-search {
        width: 100%;
        padding: 1rem 0; /* Remove horizontal padding, let wrapper handle it */
        background: transparent !important;
    }
    
    .mobile-search .search-form {
        background: transparent !important; /* Remove background from form */
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .mobile-search .search-field {
        background: transparent !important; /* Remove faded white background */
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        flex: 1;
        margin-right: 0.5rem; /* Add space on right before button */
    }
    
    .mobile-search .search-field::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .mobile-search .search-submit {
        color: #ffffff !important;
    }
    
    .mobile-search .search-submit svg {
        stroke: currentColor;
    }
    
    /* Hide the menu list by default, show when active - full page overlay */
    .main-navigation .nav-menu {
        display: none !important;
        position: fixed;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #ffffff;
        border-top: 1px solid #e6e8eb;
        padding: 0;
        padding-top: 70px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 999 !important;
        flex-direction: column;
        gap: 0;
        margin: 0;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open,
    html.menu-open {
        overflow: hidden !important;
        height: 100vh !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Also prevent scrolling on the site container */
    body.menu-open .site,
    html.menu-open .site {
        overflow: hidden !important;
        height: 100vh !important;
    }
    
    /* Show menu when navigation is active */
    .main-navigation.active .nav-menu {
        display: flex !important;
        flex-direction: column;
    }
    
    /* Nav items styling in mobile menu */
    .main-navigation.active .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin: 0;
        list-style: none;
    }
    
    .main-navigation.active .nav-menu li.mobile-search-wrapper {
        border-bottom: 1px solid #e6e8eb;
    }
    
    .main-navigation.active .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: none;
        font-size: 1rem;
        color: #ffffff !important; /* Force white color for visibility on dark background */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .main-navigation.active .nav-menu a::after {
        display: none;
    }
    
    .main-navigation.active .nav-menu a:hover {
        background: rgba(0, 0, 0, 0.03) !important;
        color: var(--primary-red) !important;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        color: var(--text-dark) !important;
        width: 100%;
    }
    
    .main-navigation a:hover {
        color: var(--primary-red) !important;
        background: transparent !important;
    }
    
    /* Article responsive */
    .article-hero {
        aspect-ratio: 4/3 !important;
        padding: 2rem 0 !important;
        min-height: 50vh !important;
    }
    
    .article-hero-content {
        padding: 0 1.5rem !important;
        min-height: auto !important;
    }
    
    .article-category {
        font-size: 0.7rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .article-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .article-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .article-meta {
        font-size: 0.85rem !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .article-body {
        padding: 2rem 1.5rem !important;
        margin: 0 0 2rem 0 !important; /* Remove negative margin on mobile */
    }
    
    .article-content {
        font-size: 0.95rem !important;
    }
    
    .article-content h2 {
        font-size: 1.5rem !important;
        margin: 2rem 0 1rem 0 !important;
    }
    
    .article-content h3 {
        font-size: 1.3rem !important;
        margin: 1.5rem 0 0.75rem 0 !important;
    }
    
    .article-content p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
    
    .article-content blockquote {
        font-size: 1rem !important;
        padding: 1.5rem !important;
    }
    
    .article-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 15px !important;
    }
    
    .article-layout > * {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .article-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .article-sidebar {
        position: static !important;
    }
    
    /* Blog/Post Index Mobile Styles */
    .blog-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: 1rem !important;
    }
    
    .blog-sidebar {
        order: 2;
    }
    
    .blog-content {
        order: 1;
    }
    
    .posts-grid {
        gap: 1.5rem !important;
    }
    
    .post-card {
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .post-thumbnail {
        height: 200px !important;
        margin-bottom: 1rem !important;
        border-radius: 4px;
    }
    
    .post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .post-content {
        padding: 0 !important;
    }
    
    .post-meta {
        font-size: 0.85rem !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .post-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .post-title a {
        font-size: 1.5rem !important;
    }
    
    .post-excerpt {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }
    
    .post-footer {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .read-more {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .post-stats {
        font-size: 0.85rem !important;
    }
    
    .pagination {
        margin-top: 2rem !important;
    }
    
    .pagination .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .pagination .page-numbers {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem !important;
    }
    
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    
    .post {
        padding: 1rem !important;
    }
    
    .site-main {
        padding: 1rem 0 !important;
    }
    
    /* Container responsive */
    .container {
        max-width: 100% !important;
        padding: 0 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    /* Ensure site-content doesn't shift */
    .site-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: visible !important; /* Allow sticky sidebar */
        box-sizing: border-box !important;
    }
    
    /* Fix any wrapper that might cause shifting */
    .elementor-page .site-content,
    .elementor-page .site-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Prevent horizontal scroll */
    body,
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }
    
    /* Fix images and media to prevent overflow */
    img,
    video,
    iframe,
    embed,
    object {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    /* Exception: post thumbnails should maintain aspect ratio */
    .post-thumbnail img {
        height: 200px !important;
        object-fit: cover;
    }
    
    /* Ensure all post elements are constrained */
    .post-card,
    .post-content,
    .post-excerpt,
    .post-title,
    .post-meta,
    .post-footer {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }
    
    /* Fix blog layout overflow */
    .blog-layout,
    .blog-content,
    .posts-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure post thumbnails don't overflow */
    .post-thumbnail,
    .post-thumbnail img,
    .post-thumbnail a {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        box-sizing: border-box;
    }
    
    /* Fix text overflow */
    .post-title,
    .post-title a,
    .post-excerpt p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }
}

/* Elementor Compatibility */
.elementor-page .site-main {
    padding: 0;
}

.elementor-page .post {
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* Footer */
.site-footer {
    background: var(--darker-bg);
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 0 !important; /* Remove margin-top */
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #adb5bd;
    line-height: 1.6;
    margin: 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-copyright p {
    color: #adb5bd;
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* SEO and Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
