/*
Theme Name: PROMarketer
Theme URI: https://mista.biz
Author: Mista.Biz
Author URI: https://mista.biz
Description: A professional marketing theme for WordPress.
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: promarketer
Tags: blog, marketing, professional
*/

/* ------------------------------------------------------------------------- *
 *  1. Variables & Reset
 * ------------------------------------------------------------------------- */
:root {
    --primary-color: #0F172A;
    --secondary-color: #64748B;
    --accent-color: #3B82F6;
    --background-color: #F8FAFC;
    --border-color: #E2E8F0;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: #334155;
    line-height: 1.6;
}

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

/* ------------------------------------------------------------------------- *
 *  1.5. Typography (Global)
 * ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: 0;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Add a stylish accent to H2s within content */
.entry-content h2 {
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--accent-color);
}

/* ------------------------------------------------------------------------- *
 *  2. Layout & Containers
 * ------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#wrapper {
    width: 100%;
    padding-top: 40px; /* Space below header/hero */
}

/* Clearfix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* ------------------------------------------------------------------------- *
 *  3. Header & Navigation
 * ------------------------------------------------------------------------- */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

#logo {
    flex-shrink: 0;
}

#header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Push to the right if space allows */
}

/* Ensure navigation doesn't break layout */
.main-navigation {
    margin-left: 40px;
    flex-grow: 1;
}

@media (max-width: 991px) {
    #header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation {
        margin: 15px 0;
        width: 100%;
    }
    
    #header-actions {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
}

.site-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

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

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
}

/* ------------------------------------------------------------------------- *
 *  4. Hero Section (Blog Header)
 * ------------------------------------------------------------------------- */
/* Note: Most Hero styles are inline in header.php for dynamic values */
.blog-hero {
    text-align: center;
    margin-bottom: 40px;
}

.blog-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 3rem;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ------------------------------------------------------------------------- *
 *  5. Main Content Grid
 * ------------------------------------------------------------------------- */
#posts-container {
    display: flex;
    gap: 40px;
    padding-bottom: 60px;
}

#posts {
    flex: 2; /* Takes ~66% width */
    min-width: 0; /* Prevent flex overflow */
}

#sidebar {
    flex: 1; /* Takes ~33% width */
    min-width: 300px;
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-card-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-cat {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.blog-card-header .entry-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-card-header .entry-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

.blog-card-header .entry-title a:hover {
    color: var(--accent-color);
}

.blog-card-excerpt {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Blog Card Footer & Read More */
.blog-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}

.read-more-link:hover {
    transform: translateX(5px);
    color: var(--primary-dark);
}

/* ------------------------------------------------------------------------- *
 *  6. Sidebar Widgets
 * ------------------------------------------------------------------------- */
.widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8fafc;
}

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

.widget ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: var(--accent-color);
}

/* Custom Widgets */
.box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.box h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.btn-full {
    display: block;
    width: 100%;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: #2563EB; /* Darker Blue */
}

.guide-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.guide-list .icon {
    font-size: 1.2rem;
}

/* ------------------------------------------------------------------------- *
 *  7. Pagination
 * ------------------------------------------------------------------------- */
.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}

.blog-pagination a, 
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    background: #fff;
    transition: all 0.2s;
}

.blog-pagination a:hover,
.blog-pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ------------------------------------------------------------------------- *
 *  8. Footer
 * ------------------------------------------------------------------------- */
#footer-area {
    background: #1E293B;
    color: #94A3B8;
    padding: 60px 0 20px;
    margin-top: 60px;
    display: block !important; /* Force display for debug */
}

#footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

#footer-content .box,
#footer-content .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

#footer-content h2,
#footer-content .widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

#footer-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-content .widget ul li,
#footer-content li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

#footer-content .widget ul li:last-child,
#footer-content li:last-child {
    border-bottom: none;
}

#footer-content a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

#footer-content a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------------- *
 *  9. Single Post
 * ------------------------------------------------------------------------- */
.single .post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.single .entry-header {
    padding: 30px 30px 0 30px;
    margin-bottom: 20px;
    text-align: center;
}

.single .entry-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.single .entry-meta {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.single .entry-content {
    padding: 0 30px 30px 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.single .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Table of Contents Styles */
.promarketer-toc {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promarketer-toc:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.promarketer-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    cursor: pointer;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.promarketer-toc-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

.promarketer-toc-title::before {
    content: "📑"; 
    margin-right: 12px;
    font-size: 1.3rem;
}

.promarketer-toc-toggle {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0; /* Reset default padding */
}

.promarketer-toc-toggle:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(180deg);
}

.promarketer-toc-toggle.collapsed {
    transform: rotate(-180deg);
    background: #e2e8f0;
}

.promarketer-toc-toggle.collapsed:hover {
    background: var(--accent-color);
    transform: rotate(0deg);
}

.promarketer-toc-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

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

.promarketer-toc-list.hidden {
    display: none;
}

.promarketer-toc-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.promarketer-toc-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 9px; /* Align with text */
}

.promarketer-toc-list li a {
    text-decoration: none;
    color: #334155; /* Darker grey */
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.5;
}

.promarketer-toc-list li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Indentation for h3, h4 */
.promarketer-toc-list li.toc-h3 { 
    margin-left: 20px; 
    border-left: 2px solid #f1f5f9; 
    padding-left: 20px; 
}
.promarketer-toc-list li.toc-h3::before { 
    display: none; /* Remove bullet for sub-items */
}
.promarketer-toc-list li.toc-h3 a {
    font-size: 0.95rem;
    color: #64748b;
}
.promarketer-toc-list li.toc-h3 a:hover {
    color: var(--accent-color);
}
.promarketer-toc-list li.toc-h4 { margin-left: 40px; }
.promarketer-toc-list li.toc-h5 { margin-left: 60px; }
.promarketer-toc-list li.toc-h6 { margin-left: 80px; }

/* Conversion Blocks Styles */
.pm-conversion-block {
    margin: 40px 0;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* CTA Box */
.pm-cta-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.pm-cta-box h3 {
    color: #0369a1;
    margin-top: 0;
}

.pm-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0284c7;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.2s;
}

.pm-btn:hover {
    background: #0369a1;
}

/* Alert Box */
.pm-alert-box {
    border-left: 4px solid;
    text-align: left;
}

.pm-alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.pm-alert-success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.pm-alert-warning {
    background: #fefce8;
    border-color: #eab308;
    color: #854d0e;
}

/* Author Box Styles */
.promarketer-author-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px 30px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.author-box-avatar {
    flex-shrink: 0;
    margin-bottom: 5px;
}

.author-box-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #f1f5f9;
}

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

.author-box-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.author-box-name a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.author-box-bio {
    margin: 15px 0;
    font-size: 1rem;
    color: #475569;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.author-box-link a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}

/* ------------------------------------------------------------------------- *
 *  10. Focus Mode Styles
 * ------------------------------------------------------------------------- */
/* Focus Mode Styles temporarily disabled to restore layout */
/*
body.focus-mode-active #sidebar,
body.focus-mode-active #secondary,
body.focus-mode-active .site-footer {
    display: none !important;
}

body.focus-mode-active #posts-container {
    display: block; 
    max-width: 800px;
    margin: 0 auto;
}

body.focus-mode-active #posts {
    width: 100%;
    border-right: none;
}

body.focus-mode-active .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}
*/



/* ------------------------------------------------------------------------- *
 *  Mobile Responsive Adjustments
 * ------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    /* Main Layout */
    #posts-container {
        flex-direction: column;
    }
    
    #posts, #sidebar {
        width: 100%;
        flex: auto;
    }
    
    /* Navigation */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        padding: 10px;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 999;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }

    /* Review Box */
    .pm-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pm-review-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Author Box Mobile */
    .promarketer-author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .author-box-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .author-box-content .author-box-title {
        justify-content: center;
    }
    
    .pm-review-price {
        font-size: 1.5rem;
    }
    
    .pm-review-button {
        width: 100%;
        text-align: center;
    }
    
    .pm-review-pros-cons {
        grid-template-columns: 1fr; /* Stack Pros and Cons */
    }
    
    /* CTA Boxes */
    .pm-cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .pm-cta-action {
        width: 100%;
        margin-top: 15px;
    }
    
    .pm-cta-action .pm-btn {
        display: block;
        width: 100%;
    }
    
    /* Related Posts */
    .related-posts-list {
        flex-direction: column;
    }
    
    .related-post-item {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Social Share */
    .social-share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .share-btn {
        flex: 1 1 45%; /* 2 buttons per row */
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 480px) {
    .share-btn {
        flex: 1 1 100%; /* 1 button per row */
    }
    
    .blog-hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
}

/* Force layout safety and overrides */
#sidebar {
    display: block !important;
}

#footer-area {
    display: block !important;
}

@media screen and (min-width: 769px) {
    #posts-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    #posts {
        width: auto !important;
        flex: 2 !important;
    }
    #sidebar {
        width: auto !important;
        flex: 1 !important;
        display: block !important;
    }
}

/* ------------------------------------------------------------------------- *
 *  11. Restored Components (Social, Forms)
 * ------------------------------------------------------------------------- */

/* Social Share Buttons */
.social-share-container {
    margin: 40px 0;
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.social-share-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.social-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}

.share-facebook { background-color: #1877F2; }
.share-linkedin { background-color: #0077B5; }
.share-pinterest { background-color: #BD081C; }
.share-twitter { background-color: #1DA1F2; }
.share-whatsapp { background-color: #25D366; }

/* Comments Area */
.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.comment-body {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
}

.comment-metadata {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-content p {
    margin-bottom: 15px;
}

.reply {
    font-size: 0.85rem;
}

.comment-reply-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: block;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color);
    outline: 2px solid rgba(59, 130, 246, 0.2);
}

.form-submit {
    margin-bottom: 0;
}

.submit {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit:hover {
    background-color: #2563EB; /* Darker blue */
}

/* ------------------------------------------------------------------------- *
 *  12. Blog Filters Bar
 * ------------------------------------------------------------------------- */
.blog-filters-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 40px;
}

.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    background: #fff;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.filter-search {
    flex-grow: 0;
}

.filter-search .search-form {
    display: flex;
    align-items: center;
}

.filter-search .search-field {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    height: 40px;
    font-size: 0.9rem;
    min-width: 200px;
}

.filter-search .search-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    height: 40px;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-search .search-submit:hover {
    background-color: #1e293b; /* Slightly lighter/different shade */
}

@media (max-width: 768px) {
    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-search .search-field {
        width: 100%;
        min-width: 0;
        flex-grow: 1;
    }
}

/* ------------------------------------------------------------------------- *
 *  14. SEO/SEA Widgets & Sidebar
 * ------------------------------------------------------------------------- */

/* Sticky Sidebar */
@media (min-width: 992px) {
    #sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
        align-self: start;
        height: auto;
        /* Ensure it doesn't overlap footer */
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: thin; /* Firefox */
    }
    
    #sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    #sidebar::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 3px;
    }
}

/* Review Widget */
.pm-review-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pm-review-widget .widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.pm-review-stars {
    font-size: 1.5rem;
    color: #fbbf24; /* Amber/Gold */
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.pm-review-stars .empty {
    color: #cbd5e1;
}

.rating-score {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 5px;
    font-weight: 600;
    letter-spacing: normal;
}

.pm-review-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pm-review-summary {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.5;
    font-style: italic;
}

.btn-review-widget {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #22c55e; /* Green for conversion */
    border-color: #22c55e;
}

.btn-review-widget:hover {
    background-color: #16a34a;
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Popular Posts Widget */
.pm-popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-popular-posts li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.pm-popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pm-popular-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
}

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

.pm-popular-thumb a:hover img {
    transform: scale(1.1);
}

.pm-popular-content {
    flex-grow: 1;
}

.pm-popular-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 5px;
    text-decoration: none;
    transition: color 0.2s;
}

.pm-popular-title:hover {
    color: var(--accent-color);
}

.pm-popular-date {
    font-size: 0.8rem;
    color: #94a3b8;
}
/* ------------------------------------------------------------------------- *
 *  13. Google Translate Customization
 * ------------------------------------------------------------------------- */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
}

.goog-te-gadget-simple {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 15px !important;
    border-radius: 50px !important; /* Pill shape */
    font-size: 14px !important;
    line-height: 20px !important;
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.goog-te-gadget-simple:hover {
    background-color: #fff !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Hide Google Icon and Branding */
.goog-te-gadget-simple img {
    display: none !important;
}

/* Add a Globe Icon via CSS before the text */
.goog-te-gadget-simple::before {
    content: "🌍"; /* Globe Emoji as icon */
    font-size: 18px;
    margin-right: 8px;
    line-height: 1;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: var(--primary-color) !important;
    font-family: var(--body-font) !important;
    font-weight: 600;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    border-left: none !important;
    color: var(--primary-color) !important;
}

/* Add a custom arrow */
.goog-te-gadget-simple .goog-te-menu-value::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.5;
}

/* Hide Google's default elements that we don't want */
.goog-te-gadget-simple .goog-te-menu-value span:nth-child(3),
.goog-te-gadget-simple .goog-te-menu-value span:nth-child(5) {
    display: none !important;
}

/* Hide Google Top Bar - Aggressive */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

/* Hide Tooltips */
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}

/* Responsive adjustment for header actions */
@media (max-width: 991px) {
    #header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

/* ------------------------------------------------------------------------- *
 *  15. Plugin Compatibility
 * ------------------------------------------------------------------------- */

/* Contact Form 7 / WPForms Basic Styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select,
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="url"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form input[type="number"],
div.wpforms-container-full .wpforms-form input[type="date"],
div.wpforms-container-full .wpforms-form textarea,
div.wpforms-container-full .wpforms-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 10px;
}

div.wpforms-container-full .wpforms-form button[type="submit"],
.wpcf7 input[type="submit"] {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover {
    background-color: var(--accent-hover);
}

/* Enhanced Google Translate Widget Styles */
.goog-te-gadget-simple {
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goog-te-gadget-simple:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: var(--secondary-color) !important;
    margin: 0 !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: var(--secondary-color) !important;
    border-left: none !important;
    font-family: var(--body-font) !important;
    font-weight: 500 !important;
}

/* Hide the Google Icon for cleaner look */
.goog-te-gadget-simple img {
    display: none !important;
}



/* Page Builder Full Width Helper */
.full-width-wrapper #content {
    padding: 0;
    max-width: 100%;
}
.full-width-wrapper .entry-content {
    max-width: 100%;
    padding: 0;
}

/* WooCommerce Basic Layout Fixes */
.woocommerce-container #posts {
    width: 100%;
    border-right: none;
}
.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------------- *
 *  16. Focus Mode & Meta Improvements
 * ------------------------------------------------------------------------- */

/* Focus Mode Button */
.focus-mode-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.focus-toggle-btn {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.focus-toggle-btn:hover,
.focus-toggle-btn[aria-pressed="true"] {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.focus-toggle-btn::before {
    content: "👁️"; /* Eye icon */
    font-size: 1.1em;
}

/* Entry Meta Styling */
.single .entry-meta {
    margin-top: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.single .entry-meta .posted-on {
    color: var(--primary-color);
    font-weight: 500;
}

.single .entry-meta .updated-on {
    display: block;
    font-size: 0.85rem;
    color: #64748b; /* Slate 500 */
    font-style: italic;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 5px;
}
/* Attempt to force font family on the dropdown frame */
.goog-te-menu-frame {
    font-family: var(--body-font) !important;
}

/* If the menu is rendered inline or accessible */
.goog-te-menu2 {
    font-family: var(--body-font) !important;
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
}

.goog-te-menu2-item div,
.goog-te-menu2-item-selected div {
    font-family: var(--body-font) !important;
    color: var(--primary-color) !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
}

.goog-te-menu2-item:hover div {
    background-color: #f1f5f9 !important;
    color: var(--accent-color) !important;
}

.goog-te-menu2-item-selected div {
    background-color: #f1f5f9 !important;
    font-weight: 600 !important;
}

/* ------------------------------------------------------------------------- *
 *  17. Product Review Box
 * ------------------------------------------------------------------------- */
.pm-review-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 40px 0;
    overflow: hidden;
    font-family: var(--body-font);
}

.pm-review-header {
    background: #f8fafc;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pm-review-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.pm-review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-stars-outer {
    position: relative;
    display: inline-block;
    color: #cbd5e1; /* Gray star color */
    font-size: 18px;
    line-height: 1;
}

.pm-stars-outer::before {
    content: "★★★★★";
}

.pm-stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    color: #fbbf24; /* Gold star color */
}

.pm-stars-inner::before {
    content: "★★★★★";
}

.pm-rating-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.pm-review-content {
    padding: 25px;
}

.pm-review-summary p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

.pm-review-pros-cons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.pm-pros, .pm-cons {
    flex: 1 1 300px;
}

.pm-pros h4, .pm-cons h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-pros h4 { color: #16a34a; }
.pm-cons h4 { color: #dc2626; }

.pm-pros h4::before { content: "✓"; background: #dcfce7; color: #16a34a; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.pm-cons h4::before { content: "✕"; background: #fee2e2; color: #dc2626; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

.pm-pros ul, .pm-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-pros li, .pm-cons li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #475569;
}

.pm-pros li::before {
    content: "•";
    color: #16a34a;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pm-cons li::before {
    content: "•";
    color: #dc2626;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pm-review-footer {
    background: #f8fafc;
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pm-review-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pm-review-button {
    background: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
}

.pm-review-button:hover {
    background: var(--accent-hover);
    color: white;
}

@media (max-width: 600px) {
    .pm-review-header, .pm-review-footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .pm-review-button {
        width: 100%;
        text-align: center;
    }
    .pm-review-rating {
        width: 100%;
    }
}
