/*
Theme Name: Zaidora
Theme URI: https://www.templates.zaidapp.com/zaidora/
Author: Tofique Khan
Author URI: https://www.tofiquekhan.com/
Description: Zaidora is a clean, lightweight, and performance-optimized WordPress blog theme designed for writers, personal bloggers, and content creators.
Version: 2.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zaidora
Tags: blog, grid-layout, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, wide-columns, block-patterns, block-styles, custom-colors, custom-header, sticky-post, theme-license
*/



/* 
 * Core Design System
 */
:root {
    --primary: #004E9E;
    --accent: #FF8700;
    --gold: #ebcb78;
    --white: #FFFFFF;

    /* Theme Variables (Light) */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;
    --bg-top-header: #FFFFFF;
    --bg-footer: #2b2415;
    --bg-toc: #f8fbff;
    --text-main: #1E293B;
    --text-muted: #4F545A;
    --text-toc: #002D5B;
    --border-color: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --primary-font: 'Plus Jakarta Sans', sans-serif;
}

body.theme-dark {
    --bg-body: #0a0c10;
    --bg-card: #161b22;
    --bg-header: #0d1117;
    --bg-top-header: #0d1117;
    --bg-toc: #1c2128;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --text-toc: #adbac7;
    --border-color: #30363d;
    --glass-bg: rgba(22, 27, 34, 0.9);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Base Reset & Typography */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.sticky {
    background: #f9f9f9;
    padding: 0px;
    border: 1px solid #eee;
}

.gallery-caption {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.bypostauthor {
    font-weight: bold;
}

body {
    font-family: var(--primary-font);
    color: var(--text-main);
    background-color: var(--bg-body);
    font-size: 16px;
    line-height: 1.625;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--accent);
}

/* Layout System */
.container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

/* Layout Logic Overrides */
.layout-left-sidebar .row.g-5 {
    flex-direction: row-reverse;
}

.layout-full-width .content-area {
    max-width: 900px;
    margin: 0 auto;
}

.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Header Re-styling & Sticky */
.header-main.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: tkSlideDown 0.3s ease;
}

@keyframes tkSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.site-header.scroll-active {
    padding: 0.6rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile Header Redesign */
@media (max-width: 991.98px) {
    .top-header {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .contact-info .contact-text {
        display: none;
    }

    .contact-info .me-2 {
        margin-right: 0 !important;
    }

    .contact-info {
        gap: 15px !important;
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .site-logo img {
        max-height: 40px !important;
    }

    .header-cta {
        gap: 12px !important;
    }

    .header-action-icons {
        gap: 8px !important;
    }

    .header-action-icons button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem !important;
        background: rgba(var(--primary-rgb, 0, 78, 158), 0.05);
    }

    .menu-toggle {
        font-size: 1.5rem !important;
        line-height: 1;
        padding: 5px !important;
    }

    /* Mobile Drawer Improvements */
    .mobile-nav-overlay {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .mobile-nav-content {
        width: 300px;
        border-radius: 0;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    }

    .mobile-nav-header {
        padding: 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: #f8fbff;
    }

    .mobile-logo img {
        max-height: 35px;
    }

    .mobile-nav-title {
        letter-spacing: 0.1em;
        font-weight: 700;
        color: var(--primary);
        font-size: 0.75rem;
        padding: 25px 25px 10px;
    }

    .mobile-menu-inner {
        padding: 0 15px;
    }

    .mobile-menu-items li a,
    .mobile-menu-items li .nav-link {
        padding: 12px 0;
        border-radius: 10px;
        font-size: 0.95rem;
        transition: all 0.2s;
        /* Reset button */
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-main);
    }

    .mobile-menu-items li a:hover,
    .mobile-menu-items li .nav-link:hover {
        font-weight: 700;
        text-transform: uppercase;
        padding: 12px 0;
    }
}

/* Page Hero Section */
.page-hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #001f3f 0%, #004e9e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.page-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
}

.page-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Breadcrumbs Styling inside Hero */
.page-hero-breadcrumbs .tk-breadcrumbs {
    margin-bottom: 0 !important;
}

.page-hero-breadcrumbs .breadcrumb {
    background: transparent !important;
    padding: 0;
    margin: 0;
}

.page-hero-breadcrumbs .breadcrumb-item,
.page-hero-breadcrumbs .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.page-hero-breadcrumbs .breadcrumb-item.active {
    color: #ffffff !important;
}

.page-hero-breadcrumbs .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5) !important;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    padding: 0 10px;
}

/* Mobile Breadcrumbs Horizontal Scroll */
@media (max-width: 767.98px) {
    .page-hero-section {
        padding: 40px 0;
    }

    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero-breadcrumbs .breadcrumb {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important;
    }

    .page-hero-breadcrumbs .breadcrumb::-webkit-scrollbar {
        display: none !important;
    }

    .page-hero-breadcrumbs .breadcrumb-item {
        flex: 0 0 auto;
    }
}

.header-placeholder {
    width: 100%;
    display: none;
}

/* Accessibility Panel Styles */
.tk-acc-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #004e9e;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.tk-acc-btn:hover {
    transform: scale(1.1);
    background: #003a7a;
}

.tk-acc-panel {
    position: fixed;
    bottom: 30px;
    right: -350px;
    /* Initially hidden */
    width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    color: #1a1a1a;
}

.tk-acc-panel.active {
    right: 30px;
}

.tk-acc-header {
    background: #f8fbff;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tk-acc-body {
    padding: 25px;
}

.tk-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.tk-theme-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 5px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: inherit;
}

.tk-theme-btn .preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tk-theme-btn .preview.default {
    background: #fff;
    border: 1px solid #ccc;
}

.tk-theme-btn .preview.dark {
    background: #1a1a1a;
}

.tk-theme-btn .preview.system {
    background: linear-gradient(135deg, #fff 50%, #1a1a1a 50%);
    border: 1px solid #ccc;
}

.tk-theme-btn .preview.high-contrast {
    background: #000;
    border: 2px solid #ffff00;
}

.tk-theme-btn.active {
    border-color: #004e9e;
    background: #f0f7ff;
}

/* Accessibility Switching Classes (Applied to Body) */
body.font-small {
    font-size: 14px;
}

body.font-small p {
    font-size: 0.9rem;
}

body.font-large {
    font-size: 18px;
}

body.font-large p {
    font-size: 1.15rem;
}

body.font-large .h1,
body.font-large h1 {
    font-size: 3.5rem;
}

/* Dark Mode Specific Overrides */
body.theme-dark {
    background-color: var(--bg-body);
    color: var(--text-main);
}

body.theme-dark .blog-card,
body.theme-dark .post-content,
body.theme-dark .widget,
body.theme-dark .glass,
body.theme-dark .tk-acc-panel,
body.theme-dark .comments-area {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
}

body.theme-dark .tk-acc-header {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom-color: var(--border-color);
}

body.theme-dark .tk-acc-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.theme-dark .tk-theme-btn {
    border-color: var(--border-color);
}

body.theme-dark .tk-theme-btn.active {
    border-color: var(--primary, #004e9e);
    background: rgba(0, 78, 158, 0.15);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark a,
body.theme-dark .card-title a,
body.theme-dark .nav-menu a,
body.theme-dark .breadcrumb-item.active {
    color: var(--text-main);
}

body.theme-dark .tk-contact-content .bg-white,
body.theme-dark .tk-glass-card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

body.theme-dark .tk-contact-content .tk-glass-card a.text-dark {
    color: var(--text-main);
}

body.theme-dark .tk-modern-form input[type="text"],
body.theme-dark .tk-modern-form input[type="email"],
body.theme-dark .tk-modern-form input[type="tel"],
body.theme-dark .tk-modern-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-main);
}

body.theme-dark .tk-modern-form input:focus,
body.theme-dark .tk-modern-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

body.theme-dark .tk-contact-content .bg-light {
    background-color: rgba(255,255,255,0.02);
    border-color: var(--border-color);
}

body.theme-dark .tk-contact-content .btn-white {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-main);
}

body.theme-dark .tk-contact-content .btn-white:hover {
    background-color: var(--primary);
    color: #fff;
}

body.theme-dark .text-muted,
body.theme-dark .card-excerpt,
body.theme-dark .card-meta,
body.theme-dark .breadcrumb-item a,
body.theme-dark .meta-item {
    color: var(--text-muted) !important;
}

body.theme-dark .site-header,
body.theme-dark .top-header,
body.theme-dark .header-main.sticky {
    background-color: var(--bg-header) !important;
    border-bottom-color: var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.theme-dark .post-tags-list .text-muted,
body.theme-dark .tk-social-share-wrap .text-muted {
    color: var(--text-main) !important;
}

body.theme-dark .share-twitter {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    color: #000000 !important;
}

body.theme-dark .share-twitter:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #000000 !important;
}

body.theme-dark .shadow-sm,
body.theme-dark .shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}

body.theme-dark .shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Dual Logo Toggling */
body.theme-dark .logo-default {
    display: none !important;
}

body.theme-dark .logo-dark {
    display: block !important;
}

/* Sub-menu Dark Mode Support */
body.theme-dark .nav-menu .sub-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.theme-dark .nav-menu .sub-menu li a {
    color: var(--text-main) !important;
    border-bottom-color: var(--border-color) !important;
}

body.theme-dark .nav-menu .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary) !important;
}

/* Top Header Social Icons in Dark Mode */
body.theme-dark .top-header .social-link {
    background-color: #2c333a !important;
    color: #adbac7 !important;
}

body.theme-dark .top-header .social-link:hover {
    background-color: var(--accent) !important;
    color: #fff !important;
}

/* Table of Contents - Dark Theme Support */
body.theme-dark .tk-toc-container {
    background: var(--bg-toc) !important;
    border-color: var(--border-color) !important;
}

body.theme-dark .tk-toc-title {
    color: var(--text-toc) !important;
}

body.theme-dark .tk-toc-list li a {
    color: var(--text-muted) !important;
}

body.theme-dark .tk-toc-list li a:hover {
    color: var(--primary) !important;
}

body.theme-dark .tk-toc-list li.tk-toc-h3 {
    border-left-color: var(--border-color) !important;
}

/* Tag Cloud - Dark Theme Support */
.tagcloud a {
    display: inline-block;
    padding: 6px 15px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 30px;
    font-size: 0.85rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

body.theme-dark .tagcloud a {
    background: #1c2128;
    color: #adbac7;
    border-color: #30363d;
}

.tagcloud a:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Single Post Tags Styling */
.tk-tags-container a {
    display: inline-block;
    padding: 6px 15px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 30px;
    font-size: 0.85rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tk-tags-container a:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    transform: translateY(-2px);
}

body.theme-dark .tk-tags-container a {
    background: #1c2128;
    color: #adbac7;
    border-color: #30363d;
}

body.theme-dark .tk-tags-container a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Post Content Links Styling */
.entry-content a:not(.btn):not(.tag-cloud-link):not(.wp-block-button__link),
.post-body a:not(.btn):not(.tag-cloud-link):not(.wp-block-button__link) {
    color: var(--primary);
    font-weight: 500;
}

.entry-content a:hover,
.post-body a:hover {
    color: var(--accent);
    text-decoration: none;
}

body.theme-dark .entry-content a:not(.btn):not(.tag-cloud-link):not(.wp-block-button__link),
body.theme-dark .post-body a:not(.btn):not(.tag-cloud-link):not(.wp-block-button__link) {
    color: #adbac7;
}

/* Social Sharing Icons Styling */
.tk-social-share .share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff !important;
}

.share-facebook {
    background-color: #3b5998;
    border: 1px solid #3b5998;
}

.share-twitter {
    background-color: #000000;
    border: 1px solid #000000;
}

.share-linkedin {
    background-color: #0077b5;
    border: 1px solid #0077b5;
}

.share-whatsapp {
    background-color: #25d366;
    border: 1px solid #25d366;
}

.tk-social-share .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Author Social Icons */
.author-social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
}

.author-social-link:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    transform: scale(1.1);
}

body.theme-dark .author-social-link {
    background: #1c2128;
    color: #adbac7 !important;
    border-color: #30363d;
}

/* Pagination Dark Mode Fix */
.pagination {
    margin-top: 50px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background: #fff;
    color: var(--primary);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover:not(.dots) {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

body.theme-dark .page-numbers {
    background: #1c2128;
    color: #adbac7;
    border-color: #30363d;
}

body.theme-dark .page-numbers.current {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

/* Header Icons Styling */
.header-action-icons button {
    transition: transform 0.3s ease, color 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.header-action-icons button:hover {
    transform: scale(1.1);
    background: rgba(0, 78, 158, 0.1);
}

body.theme-dark .theme-icon-dark {
    display: none;
}

body.theme-dark .theme-icon-light {
    display: inline-block;
    color: #ffcc00;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.search-overlay-content {
    width: 80%;
    max-width: 800px;
    text-align: center;
}

.search-form-overlay {
    position: relative;
    border-bottom: 2px solid #fff;
}

.search-field-overlay {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 10px 60px 10px 10px;
    outline: none;
}

.search-submit-overlay {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
}

/* High Contrast Theme */
body.theme-high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.theme-high-contrast * {
    border-color: #fff !important;
    background-color: transparent !important;
    color: #fff !important;
}

body.theme-high-contrast a {
    text-decoration: underline !important;
    color: #ffff00 !important;
}

body.theme-high-contrast .tk-acc-panel * {
    background-color: #fff !important;
    color: #000 !important;
}

@media (max-width: 768px) {
    .tk-acc-panel {
        width: calc(100% - 40px);
        right: -110%;
    }

    .tk-acc-panel.active {
        right: 20px;
    }
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a,
.nav-menu button.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    /* Reset button styles */
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}

.nav-menu a:after,
.nav-menu button.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu button.nav-link:hover:after {
    width: 100%;
}

/* Blog Grid & Cards */
.blog-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

/* List View Styles */
.blog-listing.view-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.view-list .blog-card {
    flex-direction: row;
    min-height: 250px;
    align-items: stretch;
}

.view-list .card-image {
    flex: 0 0 35%;
    max-width: 400px;
    aspect-ratio: auto;
    /* Allow image to fill height */
}

.view-list .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.view-list .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .view-list .blog-card {
        flex-direction: column;
    }

    .view-list .card-image {
        flex: 0 0 auto;
        max-width: 100%;
        aspect-ratio: 16/9;
    }

    .view-list .card-content {
        padding: 1.5rem;
    }
}

.blog-card {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #EEF2F7;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Blog Banner System */
.blog-banner-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-banner-active {
    height: 380px;
    /* Slightly taller for more presence */
}

.blog-banner-none {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #f8fbff 0%, #edf2f7 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-banner-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    /* Modern gradient overlay */
    z-index: 1;
}

.blog-banner-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* Premium Glassmorphism for Banner Header */
.blog-banner-active .blog-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: inline-block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: heroFadeUp 0.8s ease-out forwards;
}

.blog-banner-active .blog-header h1 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 3.2rem;
    letter-spacing: -1px;
}

.blog-banner-active .blog-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 650px;
}

.blog-banner-active .text-primary {
    color: #ffd700 !important;
    /* Gold badge on dark banner for premium feel */
    background: rgba(0, 72, 255, 1);
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block !important;
    backdrop-filter: blur(5px);
}

.blog-banner-none .text-primary {
    color: var(--primary) !important;
    background: transparent;
    padding: 0;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Overrides for Blog Index */
body.theme-dark .blog-banner-none {
    background: var(--bg-header) !important;
    border-bottom-color: var(--border-color) !important;
}

body.theme-dark .blog-header h1 {
    color: var(--text-main) !important;
}

body.theme-dark .blog-header p {
    color: var(--text-muted) !important;
}

body.theme-dark .blog-banner-active .blog-header h1 {
    color: #fff !important;
    /* Keep white on image banner */
}

body.theme-dark .blog-banner-active .blog-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 768px) {
    .blog-banner-active {
        height: auto;
        min-height: 220px;
        padding: 3rem 0;
    }

    .blog-banner-active .blog-header {
        padding: 1.5rem;
    }
}

/* Single Post */
.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.post-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid #EEF2F7;
    margin-bottom: 3rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* Sidebar Widgets */
.widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #EEF2F7;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Post Categories Widget */
.post-categories {
    margin: 0;
    padding: 0;
}

.post-categories .cat-item {
    transition: all 0.3s ease;
}

.post-categories .cat-item:hover {
    padding-left: 8px;
}

.post-categories .cat-item a {
    font-size: 14px;
    color: var(--text-main) !important;
}

.post-categories .cat-item a:hover {
    color: var(--primary) !important;
}

.count-badge {
    background: rgba(0, 78, 158, 0.1);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cat-item:hover .count-badge {
    background: var(--primary);
    color: #fff;
}

body.theme-dark .count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

body.theme-dark .cat-item:hover .count-badge {
    background: var(--primary);
    color: #fff;
}

/* Glass Effect Refinement */
.glass {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Sync Footer with Main Site Styling */
.site-footer {
    background-color: var(--footer-dark);
    color: var(--white);
    padding: 60px 0 0;
    font-size: 14px;
}

.site-footer.no-widgets {
    padding-top: 0;
}

.site-footer .footer-logo img {
    max-width: 280px;
    height: auto;
}

.footer-list-heading,
.site-footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-list-heading::after,
.site-footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li i {
    font-size: 10px;
    margin-right: 12px;
    color: var(--accent);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--gold) !important;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links .social-link {
    width: 36px;
    height: 36px;
    background-color: var(--gold);
    color: var(--footer-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

/* Footer Responsive Overrides */
@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 3rem;
        text-align: center;
    }

    .site-footer .footer-brand {
        margin-bottom: 2rem;
    }

    .footer-logo {
        display: inline-block;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .footer-list-heading::after,
    .site-footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li {
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .site-footer .col-md-6 {
        margin-bottom: 2rem;
    }
}

.social-links .social-link:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: var(--bg-footer);
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
    margin-left: 5px;
}

body.theme-dark .footer-bottom {
    background-color: #000000;
}

/* Header Re-styling */
.top-header {
    background-color: var(--bg-top-header);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header .social-links {
    display: flex;
    gap: 8px;
    margin: 0;
}

.top-header .social-link {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.contact-info a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.contact-info i {
    color: var(--accent);
}

.site-header {
    background-color: var(--white);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.site-header .container {
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 20px;
}

.site-logo img {
    max-height: 55px;
    width: auto;
    display: block;
}

.site-header .nav-menu>ul {
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-header .nav-menu ul li {
    position: relative;
    list-style: none;
}

.site-header .nav-menu ul li a,
.site-header .nav-menu ul li button.nav-link {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    /* Reset button */
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}

.site-header .nav-menu ul li a .menu-arrow,
.site-header .nav-menu ul li button.nav-link .menu-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.site-header .nav-menu ul li:hover>a .menu-arrow,
.site-header .nav-menu ul li:hover>button.nav-link .menu-arrow {
    transform: rotate(180deg);
}
/* Dropdown Sub-menu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 15px 0;
    flex-direction: column !important;
    gap: 0 !important;
}

.nav-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 3rd Level Dropdown */
.nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -15px;
    transform: translateX(10px);
}

.nav-menu .sub-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu li a {
    padding: 10px 25px !important;
    font-size: 12px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: 1px solid #f8f8f8;
}

.nav-menu .sub-menu li a:hover {
    background: #fdfaf3;
    color: var(--primary) !important;
}

/* Mega Menu System */
.nav-menu .mega-menu {
    position: static !important;
}

.nav-menu .mega-menu>.sub-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap;
    padding: 30px !important;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.nav-menu .mega-menu>.sub-menu>li {
    flex: 1;
    min-width: 200px;
    border-bottom: none !important;
    padding: 0 15px;
}

.nav-menu .mega-menu>.sub-menu>li>a {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    padding: 0 0 15px 0 !important;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 15px;
}

.nav-menu .mega-menu>.sub-menu .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
}

.nav-menu .mega-menu .sub-menu li a {
    padding: 8px 0 !important;
    border-bottom: none !important;
}

.site-header .nav-menu ul li a:hover {
    color: var(--primary);
}

.contact-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.contact-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Nav Enhancements */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.mobile-nav-content {
    width: 320px;
    height: 100%;
    background: #fff;
    position: absolute;
    right: 0;
    padding: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-logo img {
    max-height: 45px;
    width: auto;
}

.menu-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.mobile-nav-title {
    padding: 20px 25px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mobile-menu-inner {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 25px;
}

.mobile-menu-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list ul li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-menu-list ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu-list ul li a:hover {
    color: var(--primary);
}

.mobile-menu-list .sub-menu {
    padding-left: 20px;
    background: #fcfcfc;
    border-top: 1px solid #f5f5f5;
}

.submenu-toggle {
    cursor: pointer;
    padding: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.mobile-nav-footer {
    padding: 30px 25px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.mobile-social-links {
    display: flex;
    gap: 15px;
}

.mobile-social-links a {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.3s;
}

/* Dark Mode Overrides for Mobile Nav */
body.theme-dark .mobile-nav-content {
    background: var(--bg-card);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

body.theme-dark .mobile-nav-header,
body.theme-dark .mobile-nav-footer {
    border-color: var(--border-color);
    background: var(--bg-header);
}

body.theme-dark .mobile-menu-list ul li {
    border-color: var(--border-color);
}

body.theme-dark .mobile-menu-list ul li a,
body.theme-dark .mobile-nav-title,
body.theme-dark .menu-close {
    color: var(--text-main);
}

body.theme-dark .mobile-menu-list .sub-menu {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
}

body.theme-dark .mobile-social-links a {
    background: #2c333a;
    color: #adbac7;
    border: 1px solid #30363d;
}

/* Mega Menu & 3rd Level Dark Mode */
body.theme-dark .nav-menu .mega-menu>.sub-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

body.theme-dark .nav-menu .mega-menu>.sub-menu>li>a {
    color: var(--primary) !important;
    border-bottom-color: var(--border-color) !important;
}

body.theme-dark .nav-menu .sub-menu .sub-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

body.dark .site-header .nav-menu ul li a,
body.dark .site-header .nav-menu ul li button.nav-link {
    color: #fff !important;
}

.mobile-social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.overflow-hidden {
    overflow: hidden !important;
}

/* Home Listing Adjustments */
.text-primary.fw-bold.text-uppercase.small.tracking-wider {
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.blog-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* WordPress Core */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Pagination Styling */
.pagination {
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 78, 158, 0.1);
}

.page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 78, 158, 0.2);
}

.page-numbers.prev,
.page-numbers.next {
    font-size: 0.8rem;
    background: #f8fbff;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .post-content {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.6rem;
    }
}

/* AJAX Load More Button */
#load-more-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 2rem;
}

#load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 78, 158, 0.2);
}

#load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

#load-more-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.2rem;
}

body.theme-dark #load-more-btn:hover {
    box-shadow: 0 10px 20px rgba(0, 78, 158, 0.4);
}

/* Professional Comment Form Styling */
.professional-form .comment-form-author,
.professional-form .comment-form-email,
.professional-form .comment-form-url,
.professional-form .comment-form-comment {
    margin-bottom: 20px;
}

.professional-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.professional-form input[type="text"],
.professional-form input[type="email"],
.professional-form input[type="url"],
.professional-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--primary-font);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

body.theme-dark .professional-form input[type="text"],
body.theme-dark .professional-form input[type="email"],
body.theme-dark .professional-form input[type="url"],
body.theme-dark .professional-form textarea {
    background-color: #1c2128;
    border-color: #30363d;
}

.professional-form input:focus,
.professional-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 78, 158, 0.1);
    outline: none;
    background-color: var(--bg-card);
    transform: translateY(-1px);
}

body.theme-dark .professional-form input:focus,
body.theme-dark .professional-form textarea:focus {
    background-color: #161b22;
    box-shadow: 0 0 0 4px rgba(0, 78, 158, 0.2);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-form-cookies-consent input {
    margin-top: 5px;
}

.comment-form-cookies-consent label {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .professional-form input[type="text"],
    .professional-form input[type="email"],
    .professional-form input[type="url"],
    .professional-form textarea {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Custom Buttons & Components */
.tk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tk-btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 78, 158, 0.15);
}

.tk-btn-primary:hover {
    background: var(--accent);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 135, 0, 0.25);
}

.tk-btn i {
    margin-left: 10px;
    transition: transform 0.5s ease;
}

.tk-btn:hover i {
    transform: rotate(360deg);
}

#load-more-btn.loading i {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* Dark Mode Adjustments for Buttons */
body.theme-dark .tk-btn-primary {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

body.theme-dark .tk-btn-primary:hover {
    box-shadow: 0 15px 30px rgba(255, 135, 0, 0.15);
}

@media (max-width: 768px) {
    .professional-form input[type="text"],
    .professional-form input[type="email"],
    .professional-form input[type="url"],
    .professional-form textarea {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.table-responsive table {
    width: 100%;
    margin-bottom: 0 !important;
}
.table-responsive table th,
.table-responsive table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}
.table-responsive table th {
    background: var(--bg-body);
    font-weight: 700;
}

/* FAQ Accordion Section */
.post-faq-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.post-faq-section .section-subtitle {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 78, 158, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.post-faq-section .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-accordion-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.faq-accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background 0.3s ease;
}
.faq-accordion-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    padding-right: 25px;
    line-height: 1.4;
}
.faq-accordion-header .toggle-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.faq-accordion-item.active {
    border-color: var(--primary);
}
.faq-accordion-item.active .faq-accordion-header {
    padding-bottom: 1rem;
}
.faq-accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: #fff;
}
.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}
.faq-accordion-item.active .faq-accordion-content {
    max-height: 1000px;
    opacity: 1;
}
.faq-accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Dark Mode Overrides */
body.theme-dark .post-faq-section .section-subtitle {
    background: rgba(0, 78, 158, 0.2);
}
body.theme-dark .faq-accordion-header .toggle-icon {
    background: #1c2128;
}
body.theme-dark .table-responsive table th {
    background: #1c2128;
}

/* 
 * Premium Comment System Styling
 */
.comments-area {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

body.theme-dark .comments-area {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
}

.comments-title::before {
    content: '';
    width: 35px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

.comment-list {
    margin: 2.5rem 0;
    padding: 0;
}

.comment-list .comment {
    list-style: none;
    margin-bottom: 2.5rem;
}

.comment-list .children {
    list-style: none;
    padding-left: 3.5rem;
    margin-top: 2rem;
    border-left: 2px solid var(--border-color);
}

.comment-body {
    background: var(--bg-body);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.comment-body:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

body.theme-dark .comment-body {
    background: rgba(255, 255, 255, 0.02);
}

body.theme-dark .comment-body:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 1.25rem;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 60px;
    height: 60px;
}

body.theme-dark .comment-author .avatar {
    border-color: #30363d;
}

.comment-author .fn {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    text-transform: capitalize;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-content {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    text-align: right;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary) !important;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 6px 15px;
    background: rgba(0, 78, 158, 0.05);
    border-radius: 50px;
}

.comment-reply-link:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.comment-awaiting-moderation {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-awaiting-moderation::before {
    content: '\f017';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Edit link styling */
.comment-edit-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 15px;
    font-weight: 600;
}

.comment-edit-link:hover {
    color: var(--primary);
}

/* Responsive Comments */
@media (max-width: 991.98px) {
    .comments-area {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .comment-list .children {
        padding-left: 1.5rem;
    }
    
    .comment-body {
        padding: 1.5rem;
    }
    
    .comment-meta {
        gap: 12px;
    }
    
    .comment-author .avatar {
        width: 50px;
        height: 50px;
    }
    
    .comments-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .comment-list .children {
        padding-left: 1rem;
        margin-top: 1.5rem;
    }
    
    .comment-body {
        padding: 1.25rem;
    }
    
    .comment-author .fn {
        display: block;
        width: 100%;
        margin-top: 5px;
    }
    
    .comment-meta {
        align-items: flex-start;
    }
    
    .comment-metadata {
        margin-top: 3px;
    }
}
