/*
Theme Name: GenesisBudget Theme
Theme URI: https://blog.genesisbudget.com
Author: GenesisBudget
Author URI: https://www.genesisbudget.com
Description: Custom WordPress theme matching the GenesisBudget main site design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: genesisbudget-theme
Tags: budget, finance, responsive, custom-colors
*/

/* ========== CSS Variables ========== */
:root {
    /* Color Palette - Matching GenesisBudget */
    --primary: #2C3E50;
    --primary-light: #3A506B;
    --primary-dark: #1A2530;
    
    --secondary: #3498DB;
    --secondary-light: #5DADE2;
    --secondary-dark: #2874A6;
    
    --accent: #F39C12;
    --accent-light: #F8C471;
    --accent-dark: #D68910;
    
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F1C40F;
    --info: #3498DB;
    
    --light: #ECF0F1;
    --dark: #2C3E50;
    
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Typography */
    --font-family-base: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --line-height-base: 1.5;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 1rem;
    --spacing-4: 1.5rem;
    --spacing-6: 3rem;
    
    /* Border & Shadow */
    --border-radius: 0.5rem;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s;
}

/* ========== General Styles ========== */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark);
    background-color: var(--gray-100);
}

/* Ensure site wrapper takes full height */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

.site-content {
    flex: 1 0 auto;
    padding: var(--spacing-4) 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    margin-bottom: var(--spacing-3);
    color: var(--primary);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* ========== Navigation ========== */
.site-header {
    background-color: var(--primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
    width: 100%;
}

.site-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo a:hover {
    text-decoration: none;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-menu li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color var(--transition-fast) ease;
}

.main-menu li a:hover {
    background-color: var(--primary-light);
    border-radius: var(--border-radius);
    text-decoration: none;
}

.main-site-link {
    margin-left: auto;
}

.btn-back-to-site {
    background-color: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    display: inline-block;
}

.btn-back-to-site:hover {
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-back-to-site i {
    margin-right: 0.5rem;
}

/* ========== Footer ========== */
.site-footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content .container {
    max-width: 100%;
    padding: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

/* ========== Blog Layout ========== */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.blog-post {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition-fast) ease;
}

.blog-post:hover {
    transform: translateY(-5px);
}

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

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.post-meta {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.post-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 0.5rem;
    color: var(--gray-400);
}

.post-meta i {
    margin-right: 0.25rem;
}

.post-excerpt {
    color: var(--gray-700);
    line-height: 1.6;
}

/* ========== Single Post ========== */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.single-post-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.single-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-800);
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .site-navigation {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .site-logo a {
        flex-direction: column;
        text-align: center;
    }
    
    .site-logo img {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }
    
    .main-menu li {
        width: 100%;
        text-align: center;
    }
    
    .main-menu li a {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .main-site-link {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .btn-back-to-site {
        display: block;
        width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-container,
    .single-post-container {
        padding: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        text-align: center;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        font-size: 0.8125rem;
        gap: 0.35rem;
    }
    
    .post-meta span {
        font-size: 0.8125rem;
    }
}


/* ========== Footer Positioning Failsafe ========== */
/* Additional rules to ensure footer always stays at bottom */
body > #page {
    min-height: 100vh;
}

#page > .site-content {
    min-height: calc(100vh - 400px); /* Adjust based on header + footer height */
}

/* Prevent WordPress admin bar from affecting layout */
body.admin-bar #page {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar #page {
        min-height: calc(100vh - 46px);
    }
}


/* ========== Lightbox Image Styles ========== */
/* Make images appear clickable */
.glightbox img,
a[href*=".jpg"] img,
a[href*=".jpeg"] img,
a[href*=".png"] img,
a[href*=".gif"] img,
a[href*=".webp"] img {
    cursor: zoom-in;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.glightbox:hover img,
a[href*=".jpg"]:hover img,
a[href*=".jpeg"]:hover img,
a[href*=".png"]:hover img,
a[href*=".gif"]:hover img,
a[href*=".webp"]:hover img {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Remove underline from image links */
.glightbox,
a[href*=".jpg"],
a[href*=".jpeg"],
a[href*=".png"],
a[href*=".gif"],
a[href*=".webp"] {
    text-decoration: none !important;
    border: none;
    display: inline-block;
}


/* ========== Post Views Styling ========== */
.post-views {
    display: inline-block;
    margin-left: 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.post-views i {
    margin-right: 0.25rem;
    color: var(--secondary);
}


/* ============================================
   LEAD GENERATION & CONVERSION FEATURES
   ============================================ */

/* CTA Boxes */
.genesis-cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.genesis-cta-box.cta-box-green {
    background: linear-gradient(135deg, var(--success) 0%, #1e8449 100%);
}

.genesis-cta-box.cta-box-orange {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.cta-title {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.cta-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Newsletter Signup Box */
.genesis-newsletter-box {
    background: var(--gray-100);
    border: 2px solid var(--secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.newsletter-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.newsletter-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary);
}

.newsletter-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.newsletter-privacy {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

/* Reading Time */
.reading-time {
    display: inline-block;
    margin-left: 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.reading-time i {
    margin-right: 0.25rem;
    color: var(--secondary);
}

/* Related Posts */
.related-posts-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.related-posts-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

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

.related-post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

/* Dark mode override for related posts section */
@media (prefers-color-scheme: dark) {
    .related-posts-section {
        background: rgb(33, 38, 45) !important;
    }
    
    .related-post-card {
        background: #2d3748 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    .related-posts-title,
    h3.related-posts-title,
    .related-posts-section .related-posts-title,
    .related-posts-section h3 {
        color: #e2e8f0 !important;
        background-color: transparent !important;
    }
    
    .related-post-title a {
        color: #e2e8f0 !important;
    }
    
    .related-post-title a:hover {
        color: #63b3ed !important;
    }
    
    .related-post-excerpt {
        color: #cbd5e0 !important;
    }
}

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

.related-post-image {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

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

.related-post-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

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

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

.related-post-excerpt {
    color: var(--gray-700);
    font-size: 0.875rem;
    margin: 0;
}

/* Social Share Buttons */
.social-share-buttons {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    text-align: center;
}

.share-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.share-btn i {
    font-size: 1rem;
}

.share-btn span {
    display: inline-block;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #145dbf;
}

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

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

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

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

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-instagram:hover {
    background: linear-gradient(45deg, #d67a26 0%, #cf5a30 25%, #c41e36 50%, #b31c59 75%, #a01477 100%);
}

.share-pinterest {
    background: #e60023;
}

.share-pinterest:hover {
    background: #bd001c;
}

.share-email {
    background: var(--gray-700);
}

.share-email:hover {
    background: var(--gray-800);
}

/* Copy Notification */
.copy-notification {
    background: var(--success);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Post Footer CTA */
.post-footer-cta {
    margin: 3rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
}

.footer-cta-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.footer-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-cta,
.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary-cta {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-cta:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Floating CTA Button */
.floating-cta-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-cta-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(52, 152, 219, 0.8);
    }
}

/* Popular Posts Widget */
.popular-posts-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.popular-posts-widget .widget-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.popular-post-item a:hover {
    color: var(--secondary);
}

.popular-post-views {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .share-btn {
        justify-content: center;
        width: 100%;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .floating-cta-button {
        bottom: 190px;
        right: 20px;
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   PREMIUM FEATURES STYLING
   ============================================ */

/* 1. TABLE OF CONTENTS */
.table-of-contents {
    background: var(--gray-100);
    border: 2px solid var(--secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-title {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.toc-item {
    margin: 0.5rem 0;
}

.toc-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.toc-item a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}

.toc-sub-item {
    margin-left: 1.5rem;
}

.toc-sub-item a {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* 2. READING PROGRESS BAR */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    z-index: 9999;
    transition: width 0.2s ease;
}

/* 3. BREADCRUMBS */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--gray-400);
}

.breadcrumb-current {
    color: var(--gray-700);
    font-weight: 500;
}

/* 4. CLICK-TO-TWEET BOXES */
.click-to-tweet-box {
    background: #1da1f2;
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ctt-content {
    flex: 1;
}

.ctt-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.ctt-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.ctt-button {
    background: white;
    color: #1da1f2;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ctt-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* 5. AUTHOR BOX */
.author-box {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    border: 1px solid var(--gray-300);
}

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

.author-box-content {
    flex: 1;
}

.author-box-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.author-box-name a {
    color: var(--primary);
    text-decoration: none;
}

.author-box-name a:hover {
    color: var(--secondary);
}

.author-box-bio {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-box-links {
    display: flex;
    gap: 1rem;
}

.author-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.author-link:hover {
    text-decoration: underline;
}

/* 6. LAST UPDATED DATE */
.last-updated {
    background: var(--warning);
    color: var(--dark);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-size: 0.875rem;
    display: inline-block;
}

.last-updated i {
    margin-right: 0.5rem;
}

/* 7. BACK TO TOP BUTTON */
.back-to-top-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

.back-to-top-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* 8. PRINT BUTTON */
.print-button {
    background: var(--gray-700);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.print-button:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
}

@media print {
    .floating-cta-button,
    .back-to-top-btn,
    .social-share-buttons,
    .genesis-cta-box,
    .site-header,
    .site-footer,
    .print-button {
        display: none !important;
    }
}

/* 9. BUDGET CALCULATOR WIDGET */
.budget-calculator {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-input-group label {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.875rem;
}

.calc-input-group input {
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

.calc-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.calc-result {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-300);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: var(--gray-700);
}

.result-value {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.25rem;
}

.result-message {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0 0 0;
    text-align: center;
    font-weight: 500;
}

.calc-cta {
    display: block;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 0.875rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.calc-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* 10. CONTENT UPGRADE BOXES */
.content-upgrade-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
}

.cu-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.cu-content {
    flex: 1;
}

.cu-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cu-description {
    margin: 0;
    opacity: 0.95;
}

.cu-button {
    background: white;
    color: var(--accent);
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* 11. CLICK-TO-COPY BOXES */
.click-to-copy-box {
    background: var(--gray-100);
    border: 2px dashed var(--secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.copy-content {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    flex: 1;
    font-size: 0.9rem;
    overflow-x: auto;
}

.copy-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-button:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* 12. ESTIMATED SAVINGS CALCULATOR */
.savings-calculator {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin: 3rem 0;
    color: white;
    text-align: center;
}

.calc-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.calc-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.savings-form {
    max-width: 500px;
    margin: 0 auto;
}

.calc-slider-group {
    margin: 1.5rem 0;
}

.calc-slider-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.calc-slider-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.calc-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.calc-button-large {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.calc-button-large:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.savings-result {
    margin-top: 2rem;
}

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

.result-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    backdrop-filter: blur(10px);
}

.result-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.result-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.result-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.savings-cta {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.cta-button-large {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* 14. STICKY SIDEBAR (handled in JavaScript) */

/* 14.5 COMMENTS SECTION */
.comments-area {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid var(--gray-300);
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 600;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.comment-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.comment-reply-link:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* Comment Form Styling */
#respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.comment-notes {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.required {
    color: var(--danger);
}

.comment-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-form-field {
    flex: 1;
}

.comment-form-field.full-width {
    flex: 1 1 100%;
}

.comment-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.comment-form-field input[type="text"],
.comment-form-field input[type="email"],
.comment-form-field input[type="url"],
.comment-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form-field input[type="text"]:focus,
.comment-form-field input[type="email"]:focus,
.comment-form-field input[type="url"]:focus,
.comment-form-field textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.comment-form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    margin-top: 1rem;
}

.submit {
    background: var(--secondary);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-right: 0.5rem;
}

.comment-form-cookies-consent label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Responsive Comment Form */
@media (max-width: 768px) {
    .comment-form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .comments-area {
        padding: 1.5rem 0;
    }
    
    .comment {
        padding: 1rem;
    }
}

/* 15. DARK MODE */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background-color: #0d1117;
}

body.dark-mode .site-footer {
    background-color: #0d1117;
}

body.dark-mode .post-content,
body.dark-mode .single-post-container {
    background-color: #21262d;
    color: #e0e0e0;
}

body.dark-mode a {
    color: #58a6ff;
}

/* Related Posts Dark Mode */
body.dark-mode .related-posts-section {
    background-color: rgb(33, 38, 45) !important;
}

body.dark-mode .related-posts-title,
body.dark-mode h3.related-posts-title {
    color: #e0e0e0 !important;
    background-color: transparent !important;
}

body.dark-mode .related-post-card {
    background-color: #21262d !important;
    border-color: #30363d;
}

body.dark-mode .related-post-title a {
    color: #e0e0e0 !important;
}

body.dark-mode .related-post-title a:hover {
    color: #58a6ff !important;
}

body.dark-mode .related-post-excerpt {
    color: #8b949e !important;
}

body.dark-mode .blog-post,
body.dark-mode .author-box,
body.dark-mode .table-of-contents {
    background-color: #21262d;
    border-color: #30363d;
}

body.dark-mode .toc-title {
    color: #58a6ff;
}

body.dark-mode .toc-item a {
    color: #58a6ff;
}

body.dark-mode .toc-item a:hover {
    color: #79c0ff;
}

body.dark-mode .calc-input-group input {
    background-color: #0d1117;
    color: #e0e0e0;
    border-color: #30363d;
}

/* Dark mode comment styles */
body.dark-mode .comments-area {
    border-top-color: #30363d;
}

body.dark-mode .comments-title,
body.dark-mode .comment-reply-title {
    color: #58a6ff;
}

body.dark-mode .comment {
    background-color: #21262d;
    border-left-color: #58a6ff;
}

body.dark-mode .comment-content,
body.dark-mode .comment-content p,
body.dark-mode .comment-author {
    color: #e0e0e0;
}

body.dark-mode .comment-metadata {
    color: #8b949e;
}

body.dark-mode .comment-reply-link {
    color: #58a6ff;
}

body.dark-mode .comment-reply-link:hover {
    color: #79c0ff;
}

body.dark-mode .comment-notes {
    color: #8b949e;
}

body.dark-mode .comment-form-field label {
    color: #e0e0e0;
}

body.dark-mode .comment-form-field input[type="text"],
body.dark-mode .comment-form-field input[type="email"],
body.dark-mode .comment-form-field input[type="url"],
body.dark-mode .comment-form-field textarea {
    background-color: #0d1117;
    border-color: #30363d;
    color: #e0e0e0;
}

body.dark-mode .comment-form-field input:focus,
body.dark-mode .comment-form-field textarea:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

body.dark-mode .submit {
    background: #238636;
    color: #ffffff;
}

body.dark-mode .submit:hover {
    background: #2ea043;
}

/* Improve dark mode text contrast for content */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #f0f6fc;
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode .post-content,
body.dark-mode .entry-content {
    color: #c9d1d9;
}

body.dark-mode strong,
body.dark-mode b {
    color: #f0f6fc;
}

body.dark-mode code {
    background-color: #161b22;
    color: #f0f6fc;
    border: 1px solid #30363d;
}

body.dark-mode blockquote {
    border-left-color: #30363d;
    color: #8b949e;
}

body.dark-mode .sidebar {
    background-color: #21262d;
}

body.dark-mode .widget {
    background-color: #0d1117;
    border-color: #30363d;
}

body.dark-mode .widget-title {
    color: #f0f6fc;
}

/* Dark mode social share buttons */
body.dark-mode .social-share-buttons {
    background-color: #0d1117;
    border: 1px solid #30363d;
}

body.dark-mode .share-title {
    color: #58a6ff;
}

body.dark-mode .share-btn {
    color: white !important;
}

body.dark-mode .share-btn span,
body.dark-mode .share-btn i {
    color: white !important;
}

/* Dark mode newsletter box */
body.dark-mode .genesis-newsletter-box {
    background-color: #0d1117;
    border-color: #58a6ff;
}

body.dark-mode .newsletter-icon {
    color: #58a6ff;
}

body.dark-mode .newsletter-title {
    color: #58a6ff;
}

body.dark-mode .newsletter-description {
    color: #8b949e;
}

body.dark-mode .newsletter-input {
    background-color: #0d1117;
    border-color: #30363d;
    color: #e0e0e0;
}

body.dark-mode .newsletter-input:focus {
    border-color: #58a6ff;
}

/* Dark mode author box text */
body.dark-mode .author-box .author-name {
    color: #58a6ff;
}

body.dark-mode .author-box .author-bio {
    color: #8b949e;
}

/* Dark mode breadcrumbs */
body.dark-mode .breadcrumb {
    color: #8b949e;
}

body.dark-mode .breadcrumb a {
    color: #58a6ff;
}

body.dark-mode .breadcrumb-current {
    color: #c9d1d9;
}

/* Dark mode post meta */
body.dark-mode .post-meta,
body.dark-mode .post-meta a {
    color: #8b949e;
}

body.dark-mode .post-meta a:hover {
    color: #58a6ff;
}

/* Dark mode blog post cards */
body.dark-mode .blog-post-excerpt {
    color: #8b949e;
}

body.dark-mode .read-more {
    color: #58a6ff;
}

body.dark-mode .read-more:hover {
    color: #79c0ff;
}

/* Dark mode CTA buttons */
body.dark-mode .post-footer-cta {
    background: linear-gradient(135deg, #1f6feb 0%, #0969da 100%);
}

body.dark-mode .footer-cta-content h3,
body.dark-mode .footer-cta-content p {
    color: white !important;
}

body.dark-mode .btn-primary-cta {
    background: white;
    color: #0d1117 !important;
}

body.dark-mode .btn-primary-cta i {
    color: #0d1117 !important;
}

body.dark-mode .btn-secondary-cta {
    color: white !important;
    border-color: white;
}

body.dark-mode .floating-cta-button {
    background: #238636;
    color: white !important;
}

body.dark-mode .floating-cta-button i {
    color: white !important;
}

body.dark-mode .floating-cta-button:hover {
    background: #2ea043;
}

/* Dark mode genesis CTA boxes */
body.dark-mode .genesis-cta-box {
    background: linear-gradient(135deg, #1f6feb 0%, #0969da 100%);
}

body.dark-mode .cta-title,
body.dark-mode .cta-description {
    color: white !important;
}

body.dark-mode .cta-button {
    background: white;
    color: #0d1117 !important;
}

/* Dark mode toggle button in dark mode */
body.dark-mode .dark-mode-toggle {
    background: #f0f6fc;
    color: #0d1117;
}

body.dark-mode .dark-mode-toggle:hover {
    background: #c9d1d9;
}

/* Dark mode back to top button */
body.dark-mode .back-to-top-btn {
    background: #238636;
}

body.dark-mode .back-to-top-btn:hover {
    background: #2ea043;
}

.dark-mode-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 998;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* 16. ROI DISPLAY */
.roi-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.roi-stat {
    text-align: center;
}

.roi-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.roi-label {
    color: var(--gray-700);
    font-size: 0.875rem;
}

/* 17. VIDEO EMBED WRAPPER */
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.video-embed-wrapper iframe,
.video-embed-wrapper object,
.video-embed-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* 18. ENHANCED SEARCH */
.enhanced-search-widget {
    margin-bottom: 2rem;
}

.enhanced-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-500);
    font-size: 1rem;
}

.enhanced-search-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 3rem;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    font-size: 1rem;
}

.enhanced-search-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.search-submit-btn {
    position: absolute;
    right: 0.5rem;
    background: var(--secondary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    background: var(--secondary-dark);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .click-to-tweet-box,
    .content-upgrade-box,
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .result-grid,
    .roi-display {
        grid-template-columns: 1fr;
    }
    
    .social-proof-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .back-to-top-btn {
        bottom: 130px;
        right: 20px;
    }
    
    .dark-mode-toggle {
        bottom: 70px;
        right: 20px;
        top: auto;
    }
    
    .click-to-copy-box {
        flex-direction: column;
    }
    
    .copy-button {
        width: 100%;
        justify-content: center;
    }
}


/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    /* Root Variables for Dark Mode */
    :root {
        --bg-primary: #1a202c;
        --bg-secondary: #2d3748;
        --bg-tertiary: #4a5568;
        --text-primary: #e2e8f0;
        --text-secondary: #cbd5e0;
        --text-muted: #a0aec0;
        --border-color: #4a5568;
    }
    
    /* Body and General Elements */
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    /* Headers and Titles */
    h1, h2, h3, h4, h5, h6 {
        color: var(--text-primary);
    }
    
    /* "You Might Also Like" Section */
    .related-posts-section h2,
    .related-posts-title,
    .you-might-also-like {
        color: var(--text-primary) !important;
    }
    
    /* Blog Cards - Main Fix for Your Issue */
    .blog-card,
    .post-card,
    .related-post-card,
    .card,
    article.post {
        background-color: var(--bg-secondary) !important;
        border-color: var(--border-color) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    .blog-card:hover,
    .post-card:hover,
    .related-post-card:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Card Titles */
    .blog-card h3,
    .blog-card h3 a,
    .post-card h3,
    .post-card h3 a,
    .related-post-card h3,
    .related-post-card h3 a,
    .card-title,
    .card-title a,
    .entry-title,
    .entry-title a {
        color: var(--text-primary) !important;
    }
    
    .blog-card h3 a:hover,
    .post-card h3 a:hover,
    .related-post-card h3 a:hover,
    .card-title a:hover,
    .entry-title a:hover {
        color: #63b3ed !important;
    }
    
    /* Card Excerpts and Text */
    .blog-card .excerpt,
    .blog-card p,
    .post-card .excerpt,
    .post-card p,
    .related-post-card .excerpt,
    .related-post-card p,
    .card-text,
    .entry-summary,
    .entry-content p {
        color: var(--text-secondary) !important;
    }
    
    /* Meta Information (Date, Author, etc) */
    .blog-card .meta,
    .post-card .meta,
    .card .meta,
    .entry-meta,
    .post-meta,
    .byline,
    .posted-on,
    time {
        color: var(--text-muted) !important;
    }
    
    /* Links */
    a {
        color: #63b3ed;
    }
    
    a:hover {
        color: #4299e1;
    }
    
    .read-more,
    .read-more-link {
        color: #63b3ed !important;
    }
    
    .read-more:hover,
    .read-more-link:hover {
        color: #4299e1 !important;
    }
    
    /* Sidebar */
    .sidebar,
    .widget {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
    }
    
    .widget-title {
        color: var(--text-primary);
    }
    
    /* Search Bar */
    .search-form input[type="search"],
    .search-field {
        background-color: var(--bg-primary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    .search-form input[type="search"]::placeholder {
        color: var(--text-muted);
    }
    
    /* Buttons */
    .btn,
    button,
    input[type="submit"] {
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    .btn:hover,
    button:hover,
    input[type="submit"]:hover {
        background-color: #3182ce;
    }
    
    /* Post Content */
    .post-content,
    .entry-content,
    .article-content {
        color: var(--text-secondary);
    }
    
    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content h4,
    .post-content h5,
    .post-content h6,
    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        color: var(--text-primary);
    }
    
    /* Blockquotes */
    blockquote {
        border-left-color: #3182ce;
        background-color: var(--bg-secondary);
        color: var(--text-secondary);
    }
    
    /* Code Blocks */
    code,
    pre {
        background-color: var(--bg-primary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    /* Tables */
    table {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
    }
    
    table th {
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
    }
    
    table td {
        border-color: var(--border-color);
    }
    
    table tr:nth-child(even) {
        background-color: var(--bg-primary);
    }
    
    /* Comments */
    .comment,
    .comment-body {
        background-color: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    .comment-author,
    .comment-meta {
        color: var(--text-primary);
    }
    
    .comment-content {
        color: var(--text-secondary);
    }
    
    /* Footer */
    .site-footer {
        background-color: var(--bg-secondary);
        color: var(--text-secondary);
        border-top-color: var(--border-color);
    }
    
    /* Pagination */
    .pagination a,
    .page-numbers {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    .pagination a:hover,
    .page-numbers:hover {
        background-color: var(--bg-tertiary);
    }
    
    .pagination .current,
    .page-numbers.current {
        background-color: #3182ce;
        color: white;
    }
    
    /* Category Pills/Tags */
    .category-pill,
    .tag-pill,
    .post-categories a,
    .post-tags a {
        background-color: var(--bg-tertiary);
        color: var(--text-primary);
    }
    
    .category-pill:hover,
    .tag-pill:hover,
    .post-categories a:hover,
    .post-tags a:hover {
        background-color: #3182ce;
        color: white;
    }
    
    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="range"],
    input[type="date"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="color"],
    textarea,
    select {
        background-color: var(--bg-primary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    input::placeholder,
    textarea::placeholder {
        color: var(--text-muted);
    }
    
    /* Lists */
    ul, ol {
        color: var(--text-secondary);
    }
    
    /* HR */
    hr {
        border-color: var(--border-color);
    }
    
    /* Alert Boxes */
    .alert,
    .notice {
        background-color: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
}


/* ========== CRITICAL DARK MODE FIX - MAXIMUM SPECIFICITY ========== */
@media (prefers-color-scheme: dark) {
    /* Force dark background on related posts section - HIGHEST PRIORITY */
    div.related-posts-section,
    .single-post .related-posts-section,
    article .related-posts-section {
        background: rgb(33, 38, 45) !important;
        background-color: rgb(33, 38, 45) !important;
    }
    
    /* Force light text and transparent background on title */
    .related-posts-section h3.related-posts-title,
    .related-posts-section .related-posts-title,
    div.related-posts-section h3,
    h3.related-posts-title {
        color: rgb(226, 232, 240) !important;
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Force dark cards */
    .related-posts-section .related-post-card,
    div.related-post-card {
        background: rgb(45, 55, 72) !important;
        background-color: rgb(45, 55, 72) !important;
    }
    
    /* Force light text on card titles */
    .related-post-card .related-post-title a,
    .related-post-card h4 a {
        color: rgb(226, 232, 240) !important;
    }
    
    /* Force light text on excerpts */
    .related-post-card .related-post-excerpt,
    .related-post-card p {
        color: rgb(203, 213, 224) !important;
    }
}


/* ========================================
   ADMIN COMMENTS COLUMN STYLING
   ======================================== */

/* Comments column styling */
.wp-admin .column-post_comments {
    text-align: center;
    width: 80px;
}

.wp-admin .post-com-count-wrapper {
    display: inline-block;
    position: relative;
}

.wp-admin .post-com-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wp-admin .post-com-count:hover {
    background: #135e96;
    transform: scale(1.1);
}

.wp-admin .comment-count-approved {
    display: block;
}

.wp-admin .post-com-count-no-comments {
    display: inline-block;
    opacity: 0.3;
    font-size: 20px;
    color: #8c8f94;
}

.wp-admin .post-com-count-no-comments .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Hover effect for comment count link */
.wp-admin a:hover .post-com-count {
    background: #135e96;
}

/* Mobile responsive */
@media screen and (max-width: 782px) {
    .wp-admin .column-post_comments {
        display: table-cell !important;
        width: auto;
    }
}


/* ============================================
   ENHANCED BLOG CONTROLS & ORGANIZATION
   ============================================ */

/* Blog Controls Container */
.blog-controls {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.blog-controls-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Category Filter */
.category-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.category-filter label {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

.category-filter label i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

#category-select {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--dark);
    background-color: white;
    cursor: pointer;
    transition: border-color var(--transition-fast) ease;
}

#category-select:hover {
    border-color: var(--secondary);
}

#category-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Sort Options */
.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

.sort-options label i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

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

.sort-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--gray-300);
    background-color: white;
    color: var(--gray-700);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.sort-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background-color: rgba(52, 152, 219, 0.05);
}

.sort-btn.active {
    border-color: var(--secondary);
    background-color: var(--secondary);
    color: white;
}

.sort-btn i {
    font-size: 0.875rem;
}

/* Results Info */
.results-info {
    background: var(--gray-100);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
}

.results-info p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.results-info strong {
    color: var(--primary);
    font-weight: 600;
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px; /* For smooth scrolling with fixed header */
}

.category-section:last-child {
    margin-bottom: 2rem;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.category-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title i {
    color: var(--accent);
}

.category-count {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.category-description {
    margin: 1rem 0;
    opacity: 0.95;
    line-height: 1.6;
}

.view-category-btn {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.view-category-btn:hover {
    background-color: var(--accent);
    color: white;
    transform: translateX(5px);
}

.view-category-btn i {
    transition: transform var(--transition-fast) ease;
}

.view-category-btn:hover i {
    transform: translateX(3px);
}

/* Page Header Enhancement */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.no-posts h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive Design for Blog Controls */
@media (max-width: 992px) {
    .blog-controls-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-filter,
    .sort-options {
        width: 100%;
    }
    
    .sort-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-buttons {
        width: 100%;
    }
    
    .sort-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-count {
        font-size: 0.875rem;
    }
    
    .view-category-btn {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .category-filter {
        min-width: auto;
    }
    
    .category-filter,
    .sort-options {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .category-filter label,
    .sort-options label {
        text-align: center;
    }
    
    #category-select {
        width: 100%;
    }
    
    .sort-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sort-btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-info {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .results-info p {
        font-size: 0.875rem;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post {
    animation: fadeIn 0.5s ease-out;
}

.category-section {
    animation: fadeIn 0.6s ease-out;
}


/* ============================================
   DARK MODE SUPPORT FOR BLOG CONTROLS
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Blog Controls Container */
    .blog-controls {
        background: rgb(45, 55, 72);
        border: 1px solid rgb(74, 85, 104);
    }
    
    /* Labels */
    .category-filter label,
    .sort-options label {
        color: rgb(226, 232, 240);
    }
    
    .category-filter label i,
    .sort-options label i {
        color: rgb(99, 179, 237);
    }
    
    /* Category Select Dropdown */
    #category-select {
        background-color: rgb(30, 41, 59);
        color: rgb(226, 232, 240);
        border-color: rgb(74, 85, 104);
    }
    
    #category-select:hover {
        border-color: rgb(99, 179, 237);
        background-color: rgb(51, 65, 85);
    }
    
    #category-select:focus {
        border-color: rgb(99, 179, 237);
        box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
        background-color: rgb(51, 65, 85);
    }
    
    #category-select option {
        background-color: rgb(30, 41, 59);
        color: rgb(226, 232, 240);
    }
    
    /* Sort Buttons */
    .sort-btn {
        background-color: rgb(30, 41, 59);
        color: rgb(226, 232, 240);
        border-color: rgb(74, 85, 104);
    }
    
    .sort-btn:hover {
        border-color: rgb(99, 179, 237);
        color: rgb(99, 179, 237);
        background-color: rgba(99, 179, 237, 0.1);
    }
    
    .sort-btn.active {
        border-color: rgb(99, 179, 237);
        background-color: rgb(99, 179, 237);
        color: rgb(15, 23, 42);
    }
    
    /* Results Info */
    .results-info {
        background: rgb(30, 41, 59);
        border-left-color: rgb(99, 179, 237);
    }
    
    .results-info p {
        color: rgb(203, 213, 224);
    }
    
    .results-info strong {
        color: rgb(226, 232, 240);
    }
    
    /* Category Headers */
    .category-header {
        background: linear-gradient(135deg, rgb(30, 41, 59) 0%, rgb(51, 65, 85) 100%);
        border: 1px solid rgb(74, 85, 104);
    }
    
    .category-title {
        color: rgb(226, 232, 240);
    }
    
    .category-title i {
        color: rgb(251, 191, 36);
    }
    
    .category-description {
        color: rgb(203, 213, 224);
    }
    
    .view-category-btn {
        background-color: rgb(99, 179, 237);
        color: rgb(15, 23, 42);
    }
    
    .view-category-btn:hover {
        background-color: rgb(251, 191, 36);
        color: rgb(15, 23, 42);
    }
    
    /* Blog Posts */
    .blog-post {
        background-color: rgb(45, 55, 72);
        border: 1px solid rgb(74, 85, 104);
    }
    
    .post-title a {
        color: rgb(226, 232, 240);
    }
    
    .post-title a:hover {
        color: rgb(99, 179, 237);
    }
    
    .post-meta {
        color: rgb(148, 163, 184);
    }
    
    .post-excerpt {
        color: rgb(203, 213, 224);
    }
    
    /* Page Header */
    .page-title {
        color: rgb(226, 232, 240);
    }
    
    .page-subtitle {
        color: rgb(148, 163, 184);
    }
    
    /* No Posts Message */
    .no-posts {
        background: rgb(45, 55, 72);
        border: 1px solid rgb(74, 85, 104);
    }
    
    .no-posts h2 {
        color: rgb(226, 232, 240);
    }
    
    .no-posts p {
        color: rgb(203, 213, 224);
    }
    
    /* Sort Indicator */
    .sort-indicator {
        color: rgb(251, 191, 36);
    }
}

/* ============================================
   UPDATED RESPONSIVE BREAKPOINTS FOR 5-COL GRID
   ============================================ */

/* Large Desktop (5 columns) - Default */
@media (min-width: 1400px) {
    .blog-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop (4 columns) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Medium Desktop/Tablet Landscape (3 columns) */
@media (max-width: 1199px) and (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet (2 columns) */
@media (max-width: 991px) and (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Mobile (1 column) */
@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Additional mobile adjustments for smaller cards */
@media (max-width: 1199px) {
    .post-thumbnail img {
        height: 180px;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
    
    .post-content {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .post-thumbnail img {
        height: 200px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
}


/* Sort Indicator in Category Title */
.sort-indicator {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.9;
    color: var(--accent);
}
