/**
 * Main Theme Styles
 *
 * Global styles for the WordPress theme.
 * These styles apply to both PHP-rendered and React-enhanced sections.
 *
 * @package My_Theme
 * @since 1.0.0
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --color-primary: #0073e6;
    --color-primary-dark: #005cb3;
    --color-secondary: #2d3748;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-bg: #f7fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-secondary);
}

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

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

/* ========================================
   Container
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   WPBeginner Dark Main Navigation Header
   ======================================== */
.site-header.wpb-dark-header {
    background-color: #262524;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1a1918;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 1rem;
    position: relative;
}

/* Site Branding / Logo */
.site-branding .site-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1;
}

.site-branding .custom-logo-link img {
    max-height: 34px;
    width: auto;
    display: block;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    text-decoration: none;
}

.logo-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ff5500;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: lowercase;
}

.logo-text {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    white-space: nowrap;
}

/* Navigation Menu */
.main-navigation.wpb-dark-nav {
    display: flex;
    align-items: center;
}

.main-navigation .menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
}

.primary-menu-container {
    display: flex;
    align-items: center;
}

.primary-menu-container ul,
.primary-menu-container li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.primary-menu-container ul.menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.primary-menu-container ul.menu > li {
    position: relative;
}

.primary-menu-container ul.menu > li > a {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    padding: 1.125rem 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.primary-menu-container ul.menu > li > a:hover,
.primary-menu-container ul.menu > li.current-menu-item > a,
.primary-menu-container ul.menu > li.current_page_item > a {
    color: #ff5500 !important;
}

/* Dropdown Sub-menu Styling (Clean WPBeginner Popup Card) */
.primary-menu-container ul.menu ul.sub-menu,
.primary-menu-container ul.menu ul.children {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0 !important;
    display: none;
    z-index: 9999;
    border: 1px solid #e2e8f0;
}

.primary-menu-container ul.menu li:hover > ul.sub-menu,
.primary-menu-container ul.menu li:focus-within > ul.sub-menu,
.primary-menu-container ul.menu li.focus > ul.sub-menu {
    display: block;
    animation: wpbMenuFadeIn 0.2s ease-in-out;
}

@keyframes wpbMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.primary-menu-container ul.menu ul.sub-menu li,
.primary-menu-container ul.menu ul.children li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.primary-menu-container ul.menu ul.sub-menu li a,
.primary-menu-container ul.menu ul.children li a {
    color: #2d3748 !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    display: block;
    text-decoration: none;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.primary-menu-container ul.menu ul.sub-menu li:last-child a,
.primary-menu-container ul.menu ul.children li:last-child a {
    border-bottom: none;
}

.primary-menu-container ul.menu ul.sub-menu li a:hover,
.primary-menu-container ul.menu ul.children li a:hover {
    background-color: #fff5eb;
    color: #ff5500 !important;
    padding-left: 1.5rem;
}

/* Header Search Form */
.header-search-icon {
    display: flex;
    align-items: center;
}

.search-form-dark {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-dark {
    background: #383634;
    border: 1px solid #4a4745;
    border-radius: 20px;
    padding: 0.3rem 2.2rem 0.3rem 0.85rem;
    font-size: 0.8125rem;
    color: #ffffff;
    outline: none;
    width: 130px;
    transition: all 0.2s ease;
}

.search-input-dark::placeholder {
    color: #a0aec0;
}

.search-input-dark:focus {
    background: #1a1918;
    border-color: #ff5500;
    width: 160px;
}

.search-btn-dark {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.search-btn-dark:hover {
    color: #ff5500;
}

/* ========================================
   Responsive Navigation (Screen sizes <= 991px)
   ======================================== */
@media (max-width: 991px) {
    .main-navigation .menu-toggle {
        display: flex;
    }

    .primary-menu-container {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #262524;
        border-top: 1px solid #383634;
        box-shadow: 0 12px 30px rgba(0,0,0,0.5);
        padding: 1rem 1.5rem;
        z-index: 10000;
    }

    .main-navigation.toggled .primary-menu-container {
        display: block;
        animation: wpbSlideDown 0.25s ease-out;
    }

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

    .primary-menu-container ul.menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .primary-menu-container ul.menu > li {
        width: 100%;
        border-bottom: 1px solid #343230;
    }

    .primary-menu-container ul.menu > li > a {
        padding: 0.75rem 0;
        width: 100%;
        justify-content: space-between;
    }

    .primary-menu-container ul.menu ul.sub-menu {
        position: static;
        box-shadow: none;
        background: #1a1918;
        border: none;
        border-radius: 4px;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }

    .primary-menu-container ul.menu ul.sub-menu li a {
        color: #cbd5e0 !important;
        padding-left: 1rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 0.85rem;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    .search-input-dark {
        width: 90px;
    }
    .search-input-dark:focus {
        width: 130px;
    }
}

/* ========================================
   WPBeginner Orange Info Banner (Second Bar)
   ======================================== */
.wpb-orange-banner {
    background-color: #ff5500;
    color: #ffffff;
    padding: 1rem 0;
}

.orange-banner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.orange-banner-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.orange-banner-titles .sub-title {
    font-size: 0.8125rem;
    font-weight: 600;
    opacity: 0.95;
    display: block;
    color: #ffffff;
}

.orange-banner-titles .main-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.15rem 0 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.trophy-icon {
    display: none;
    color: #ffffff;
    opacity: 0.9;
}

@media (min-width: 992px) {
    .trophy-icon {
        display: block;
    }
}

.orange-banner-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.stat-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0 1.25rem;
    border-right: 1px dashed rgba(255, 255, 255, 0.4);
    transition: opacity 0.2s ease;
}

.stat-block:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-block:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.75rem;
    opacity: 0.92;
    display: block;
    line-height: 1.25;
    max-width: 130px;
}

.stat-arrow {
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .orange-banner-wrap {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem;
    }
    .orange-banner-left {
        justify-content: center;
    }
    .stat-block {
        padding: 0 0.75rem;
    }
}

@media (max-width: 640px) {
    .stat-lbl {
        display: none;
    }
    .stat-block {
        gap: 0.35rem;
    }
}

/* ========================================
   Main Content
   ======================================== */
.site-main {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 2rem 0;
}

/* ========================================
   Posts Grid (Archive/Blog)
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.posts-grid article {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.posts-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.post-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

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

.entry-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-summary {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--color-primary);
}

/* ========================================
   Breadcrumb Styles
   ======================================== */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--color-text-light);
}

.breadcrumb-list a {
    color: var(--color-text-light);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ========================================
   2-Column WPBeginner Layout Grid
   ======================================== */
.single-post-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .single-post-layout-grid {
        grid-template-columns: 1fr 340px;
    }
}

@media (min-width: 1200px) {
    .single-post-layout-grid {
        grid-template-columns: 1fr 360px;
        gap: 3rem;
    }
}

.single-post-primary {
    min-width: 0;
}

/* WPBeginner Entry Header Meta */
.entry-category-badge {
    margin-bottom: 0.75rem;
}

.entry-category-badge a {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    background-color: #ebf8ff;
    color: #0073e6;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.entry-category-badge a:hover {
    background-color: #0073e6;
    color: #ffffff;
    text-decoration: none;
}

.entry-meta-wpbeginner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.75rem;
    font-size: 0.875rem;
    color: #4a5568;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.author-meta .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.author-meta .author-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.meta-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.author-meta .author-name {
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
}

.author-meta .author-name:hover {
    color: #0073e6;
}

.meta-divider {
    width: 1px;
    height: 24px;
    background-color: #cbd5e0;
}

.date-meta, .reading-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reading-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #4a5568;
}

/* WPBeginner Callout / Alert Box */
.wpb-alert {
    background-color: #fff9db;
    border: 1px solid #fcc419;
    border-left: 5px solid #f59f00;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.wpb-alert h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #862e9c;
    font-size: 1.15rem;
}

/* WPBeginner Author Bio Card */
.author-bio-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 576px) {
    .author-bio-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

.author-bio-avatar .author-bio-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-bio-role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0073e6;
}

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

.author-bio-name a {
    color: #1a202c;
    text-decoration: none;
}

.author-bio-name a:hover {
    color: #0073e6;
}

.author-bio-text {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   WPBeginner Sticky Sidebar & Widgets
   ======================================== */
.site-sidebar {
    position: sticky;
    top: 90px;
}

.widget {
    background: #ffffff;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, #0073e6 0%, #005cb3 100%);
    color: #ffffff;
    border: none;
    padding: 0;
    overflow: hidden;
}

.widget-newsletter-card {
    padding: 1.75rem;
}

.widget-newsletter-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.widget-newsletter-title {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.widget-newsletter-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.widget-newsletter-form .form-group {
    margin-bottom: 0.75rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.9375rem;
    background: #ffffff;
    color: #1a202c;
}

.newsletter-input:focus {
    outline: 2px solid #ffffff;
}

.newsletter-submit-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ff6b00;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.newsletter-submit-btn:hover {
    background: #e05e00;
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

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

.popular-post-rank {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0073e6;
    min-width: 28px;
}

.popular-post-title {
    font-size: 0.9375rem;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.popular-post-title a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
}

.popular-post-title a:hover {
    color: #0073e6;
}

.popular-post-date {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Recommended Tools Widget */
.recommended-tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #edf2f7;
}

.tool-info {
    display: flex;
    flex-direction: column;
}

.tool-name {
    font-size: 0.9375rem;
    color: #1a202c;
}

.tool-desc {
    font-size: 0.75rem;
    color: #718096;
}

.tool-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.badge-popular {
    background: #feebc8;
    color: #c05621;
}

.badge-pro {
    background: #e9d8fd;
    color: #6b46c1;
}

.badge-free {
    background: #c6f6d5;
    color: #22543d;
}

/* ========================================
   Single Post Styles - Beautiful Design
   ======================================== */
.single-post-article {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .single-post-article {
        padding: 2.5rem;
    }
}

.single-post-article .entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.single-post-article .entry-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--color-secondary);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .single-post-article .entry-title {
        font-size: 2.5rem;
    }
}

/* Featured Image */
.featured-image {
    margin: 1.5rem 0 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.featured-image-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Entry Content */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

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

.entry-content h2 {
    font-size: 1.75rem;
    margin-top: 2em;
    margin-bottom: 1em;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 1.75em;
    margin-bottom: 0.75em;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-size: 1.25rem;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

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

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-text-light);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

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

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

/* Entry Footer */
.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.post-tags {
    font-size: 0.875rem;
}

.tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background-color: var(--color-bg);
    border-radius: 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* Post Navigation */
.post-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 200px;
}

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

.nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.post-navigation a {
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
}

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

/* ========================================
   Share Section (React Enhancement) - Beautiful
   ======================================== */
.share-section {
    background: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
}

/* ========================================
   Related Posts Section (React Enhancement) - Beautiful
   ======================================== */
.related-posts-section {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
}

/* ========================================
   Comments Section - Beautiful Styling
   ======================================== */
.comments-section {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

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

.comment-list .comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--color-bg);
    border-radius: 0.75rem;
    border-left: 4px solid var(--color-primary);
    transition: all 0.2s ease;
}

.comment-list .comment:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.comment-list .children .comment {
    background-color: var(--color-white);
    border-left-color: var(--color-text-light);
}

.comment-body {
    position: relative;
}

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

.comment-author .avatar {
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--color-secondary);
    font-style: normal;
}

.comment-author .fn a {
    color: var(--color-secondary);
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--color-primary);
}

.comment-author .says {
    display: none;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.comment-meta a {
    color: var(--color-text-light);
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--color-primary);
}

.comment-content {
    color: var(--color-text);
    line-height: 1.7;
}

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

.comment-content p:last-child {
    margin-bottom: 0;
}

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

.comment-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

.comment-reply-link {
    display: inline-block;
    padding: 0.375rem 1rem;
    margin-top: 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-border);
}

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

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

.comment-form-comment {
    order: 1;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    order: 2;
}

@media (min-width: 768px) {
    .comment-form {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .comment-form-comment {
        grid-column: 1 / -1;
    }
}

.comment-form label {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.comment-form label .required {
    color: #e53e3e;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background-color: var(--color-white);
    transition: all 0.2s ease;
}

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

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

.comment-form .form-submit {
    order: 3;
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.comment-form .form-submit input[type="submit"] {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 230, 0.3);
}

.comment-form .form-submit input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.4);
}

/* Comment Navigation */
.comment-navigation {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* No Comments Message */
.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
    font-style: italic;
    background-color: var(--color-bg);
    border-radius: 0.75rem;
}

/* Closed Comments */
.comments-closed {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-light);
    background-color: #fff5f5;
    border-radius: 0.75rem;
    border: 1px solid #feb2b2;
}
.pagination,
.posts-navigation,
.post-navigation {
    margin-top: 3rem;
    text-align: center;
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

.page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.page-numbers:hover,
.nav-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: #231f20;
    color: var(--color-white);
    padding: 0;
    margin: 0;
    width: 100%;
}

.site-footer .widget {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-info a {
    color: var(--color-white);
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-navigation a:hover {
    color: var(--color-white);
}

/* ========================================
   Accessibility
   ======================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-bg);
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    z-index: 99999;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   Featured WordPress Solutions Section
   ======================================== */
.featured-solutions-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.featured-solutions-title {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #4a5568;
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.75rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.solution-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.solution-card:hover {
    border-color: #e2e8f0;
    background: #f7fafc;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.solution-icon-box {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.solution-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.solution-icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b00, #ff8c3a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.placeholder-letter {
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.solution-info {
    flex-grow: 1;
}

.solution-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.solution-card:hover .solution-name {
    color: #ff5500;
}

.solution-desc {
    font-size: 0.775rem;
    color: #718096;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .container {
        text-align: center;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .main-navigation,
    .share-buttons,
    .related-posts {
        display: none;
    }

    .site-main {
        padding: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
