/*
Theme Name: HostCreed Blog Theme
Theme URI: https://hostcreed.com
Author: HostCreed Team
Author URI: https://hostcreed.com
Description: Fully customized, modern responsive WordPress blog & magazine theme integrated with HostCreed design system.
Version: 5.1
License: GNU General Public License v2 or later
Text Domain: zbd
*/

/* ==========================================================================
   SEO & ACCESSIBILITY STYLES
   Skip-to-content, focus indicators, screen reader utilities.
   These are critical for WCAG 2.1 AA compliance and search engine friendliness.
   ========================================================================== */

/* Skip to Content — Hidden until keyboard focused */
.skip-to-content {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    z-index: -1 !important;
    background: #3b82f6;
    color: #ffffff !important;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skip-to-content:focus {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    z-index: 999999 !important;
    outline: none;
}

/* Share Pill Hover Style */
.zbd-share-pill {
    transition: all 0.2s ease-in-out !important;
}
.zbd-share-pill:hover {
    background-color: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Focus Indicators — Visible keyboard focus for accessibility */
:focus-visible {
    outline: 2px solid var(--color-main, #3b82f6);
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Screen Reader Only — Visually hidden, accessible to assistive tech */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.screen-reader-text:focus {
    display: block;
    width: auto;
    height: auto;
    padding: 15px 23px 14px;
    clip: auto !important;
    z-index: 100000;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   ISOLATED WORDPRESS CONTENT WRAPPER (.zbd-wp-wrapper)
   All theme-specific styles are scoped strictly inside .zbd-wp-wrapper 
   to eliminate CSS conflicts with HostCreed Header and Footer.
   ========================================================================== */

.zbd-wp-wrapper {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    min-height: 500px;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.zbd-wp-wrapper .zbd-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .zbd-wp-wrapper .zbd-grid {
        grid-template-columns: minmax(0, 1fr) 300px !important;
        gap: 2rem !important;
        align-items: start !important;
    }
}

@media (min-width: 1200px) {
    .zbd-wp-wrapper .zbd-grid {
        grid-template-columns: minmax(0, 1fr) 340px !important;
    }
}

.zbd-wp-wrapper .zbd-main-col {
    min-width: 0 !important;
    width: 100% !important;
}

.zbd-wp-wrapper .zbd-main-col,
.zbd-wp-wrapper .zbd-side-col {
    min-width: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.zbd-wp-wrapper .zbd-main-col > *:first-child,
.zbd-wp-wrapper .zbd-side-col > *:first-child {
    margin-top: 0 !important;
}

@media (min-width: 768px) {
    .zbd-wp-wrapper .zbd-side-col {
        align-self: flex-start !important;
    }
}

/* --------------------------------------------------------------------------
   Cards & Layout Components
   -------------------------------------------------------------------------- */
.zbd-wp-wrapper .zbd-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   Headings & Typography
   -------------------------------------------------------------------------- */
.zbd-wp-wrapper h1 { font-size: 1.75rem; font-weight: 800; color: #0f172a; line-height: 1.3; margin-bottom: 1rem; }
.zbd-wp-wrapper h2 { font-size: 1.35rem; font-weight: 700; color: #0f172a; line-height: 1.35; margin-bottom: 0.85rem; }
.zbd-wp-wrapper h3 { font-size: 1.15rem; font-weight: 700; color: #0f172a; line-height: 1.4; margin-bottom: 0.75rem; }
.zbd-wp-wrapper h4 { font-size: 1.05rem; font-weight: 600; color: #1e293b; line-height: 1.4; margin-bottom: 0.5rem; }
.zbd-wp-wrapper h5, 
.zbd-wp-wrapper h6 { font-size: 0.95rem; font-weight: 600; color: #334155; margin-bottom: 0.5rem; }

.zbd-wp-wrapper .zbd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #f1f5f9;
}

.zbd-wp-wrapper .zbd-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    position: relative;
}

.zbd-wp-wrapper .zbd-section-title::after {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Post Lists & Cards
   -------------------------------------------------------------------------- */
.zbd-wp-wrapper ul.zbd-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zbd-wp-wrapper ul.zbd-posts-list > li {
    display: flex;
    gap: 1.25rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}

.zbd-wp-wrapper ul.zbd-posts-list > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zbd-wp-wrapper ul.zbd-posts-list > li:first-child {
    padding-top: 0;
}

.zbd-wp-wrapper .zbd-post-thumb {
    flex-shrink: 0;
    width: 270px;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.zbd-wp-wrapper .zbd-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.zbd-wp-wrapper .zbd-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

@media (max-width: 575px) {
    .zbd-wp-wrapper ul.zbd-posts-list > li {
        flex-direction: column;
    }
    .zbd-wp-wrapper .zbd-post-thumb {
        width: 100%;
        height: 180px;
    }
}

.zbd-wp-wrapper .zbd-post-details {
    flex-grow: 1;
    min-width: 0;
}

.zbd-wp-wrapper .zbd-post-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.zbd-wp-wrapper .zbd-post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zbd-wp-wrapper .zbd-post-title a:hover {
    color: #3b82f6;
}

.zbd-wp-wrapper .zbd-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.825rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.zbd-wp-wrapper .zbd-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.zbd-wp-wrapper .zbd-post-excerpt {
    font-size: 0.935rem;
    color: #475569;
    line-height: 1.6;
    margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   Sidebar & Widgets Styling
   -------------------------------------------------------------------------- */
.zbd-wp-wrapper .zbd-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.zbd-wp-wrapper .zbd-widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #f1f5f9;
}

.zbd-wp-wrapper .zbd-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zbd-wp-wrapper .zbd-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.925rem;
}

.zbd-wp-wrapper .zbd-cat-list li:last-child {
    border-bottom: none;
}

.zbd-wp-wrapper .zbd-cat-list a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.zbd-wp-wrapper .zbd-cat-list a:hover {
    color: #3b82f6;
}

.zbd-wp-wrapper .zbd-cat-count {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
}

/* --------------------------------------------------------------------------
   Search & Form Controls Inside Content
   -------------------------------------------------------------------------- */
.zbd-wp-wrapper .zbd-search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.zbd-wp-wrapper .zbd-search-input {
    flex-grow: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.zbd-wp-wrapper .zbd-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.zbd-wp-wrapper .zbd-search-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.zbd-wp-wrapper .zbd-search-btn:hover {
    background: #2563eb;
}

/* --------------------------------------------------------------------------
   Pagination (.zbd-pagination)
   -------------------------------------------------------------------------- */
.zbd-wp-wrapper .zbd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.75rem;
}

.zbd-wp-wrapper .zbd-pagination a,
.zbd-wp-wrapper .zbd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.zbd-wp-wrapper .zbd-pagination a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.zbd-wp-wrapper .zbd-pagination .current {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* --------------------------------------------------------------------------
   Single Post & Page Content Styling
   -------------------------------------------------------------------------- */
.zbd-wp-wrapper .zbd-single-header {
    margin-bottom: 1.5rem;
}

.zbd-wp-wrapper .zbd-single-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.zbd-wp-wrapper .zbd-single-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden; /* Clear floating elements inside post body */
}

.zbd-wp-wrapper .zbd-single-article-wrap {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.zbd-wp-wrapper .zbd-single-content p,
.zbd-wp-wrapper .zbd-single-content div,
.zbd-wp-wrapper .zbd-single-content span {
    max-width: 100%;
}

.zbd-wp-wrapper .zbd-single-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    margin: 1rem 0;
    display: block;
}

.zbd-wp-wrapper .zbd-single-content iframe,
.zbd-wp-wrapper .zbd-single-content embed,
.zbd-wp-wrapper .zbd-single-content video,
.zbd-wp-wrapper .zbd-single-content table,
.zbd-wp-wrapper .zbd-single-content pre,
.zbd-wp-wrapper .zbd-single-content code {
    max-width: 100% !important;
    overflow-x: auto;
}

.zbd-wp-wrapper .zbd-breadcrumbs {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.zbd-wp-wrapper .zbd-featured-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.zbd-wp-wrapper .zbd-breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Comments & Reply Form Styling
   -------------------------------------------------------------------------- */
.zbd-comments-area {
    margin-top: 0.5rem;
}

.zbd-comment-item {
    border-bottom: 1px solid #f1f5f9;
}

.zbd-comment-item:last-child {
    border-bottom: none;
}

.zbd-comment-item .comment-text p {
    margin-bottom: 0.5rem;
    font-size: 0.925rem;
    line-height: 1.65;
    color: #334155;
}

.zbd-comment-item ul.children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
    border-left: 2px solid #e2e8f0;
}

#commentform .form-control {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.925rem !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
}

#commentform .form-control:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
}

#commentform .btn-primary {
    background-color: #0052cc !important;
    border-color: #0052cc !important;
    color: #ffffff !important;
    padding: 0.6rem 1.75rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.2s ease !important;
}

#commentform .btn-primary:hover {
    background-color: #0747a6 !important;
    border-color: #0747a6 !important;
}

/* Author Badge Tooltip */
.zbd-author-badge {
    position: relative;
    cursor: pointer;
}

.zbd-author-badge[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: #0f172a;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25 ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 50;
}

.zbd-author-badge[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 50;
}

.zbd-author-badge[data-tooltip]:hover::before,
.zbd-author-badge[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Pagination Styling
   -------------------------------------------------------------------------- */
.zbd-wp-wrapper .pagination,
.zbd-wp-wrapper .wp-pagenav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-top: 1.75rem !important;
    padding-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
}

.zbd-wp-wrapper #pagination-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
}

.zbd-wp-wrapper #pagination-links .pages {
    font-size: 0.875rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-right: 0.75rem !important;
    padding: 0.45rem 0.85rem !important;
    background-color: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

.zbd-wp-wrapper #pagination-links a,
.zbd-wp-wrapper #pagination-links .current,
.zbd-wp-wrapper #pagination-links .expand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 0.6rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.zbd-wp-wrapper #pagination-links a {
    color: #334155 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

.zbd-wp-wrapper #pagination-links a:hover {
    color: #0052cc !important;
    background-color: #f0f7ff !important;
    border-color: #0052cc !important;
}

.zbd-wp-wrapper #pagination-links .current {
    color: #ffffff !important;
    background-color: #0052cc !important;
    border: 1px solid #0052cc !important;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.25) !important;
}

.zbd-wp-wrapper #pagination-links .expand {
    color: #94a3b8 !important;
    background-color: transparent !important;
    border: none !important;
    min-width: 24px !important;
}

/* --------------------------------------------------------------------------
   Newsletter Input & Button Seamless Alignment Styling
   -------------------------------------------------------------------------- */
.zbd-newsletter-input-group {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.zbd-newsletter-input-group:focus-within {
    border-color: #0052cc !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15) !important;
}

.zbd-newsletter-input-group .zbd-newsletter-input {
    flex: 1 1 auto !important;
    height: 44px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    box-shadow: none !important;
    border-radius: 8px 0 0 8px !important;
    outline: none !important;
}

.zbd-newsletter-input-group .zbd-newsletter-input::placeholder {
    color: #94a3b8 !important;
}

.zbd-newsletter-input-group .zbd-newsletter-btn {
    height: 44px !important;
    padding: 0 24px !important;
    background-color: #0052cc !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.zbd-newsletter-input-group .zbd-newsletter-btn:hover {
    background-color: #0043a8 !important;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Secondary Topbar Styling
   -------------------------------------------------------------------------- */
#hc-secondary-topbar {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 0.825rem !important;
    color: #475569 !important;
    position: relative !important;
    z-index: 1050 !important;
    overflow: visible !important;
}

#hc-secondary-topbar .container {
    overflow: visible !important;
}

#hc-secondary-topbar .hc-topbar-link {
    color: #475569 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 500 !important;
    padding: 0.4rem 0 !important;
    transition: color 0.2s ease !important;
}

#hc-secondary-topbar .hc-topbar-link:hover {
    color: #0052cc !important;
}

#hc-secondary-topbar .hc-topbar-divider {
    width: 1px !important;
    height: 14px !important;
    background-color: #cbd5e1 !important;
}

#hc-secondary-topbar .hc-topbar-dropdown {
    position: relative !important;
    display: inline-block !important;
}

#hc-secondary-topbar .hc-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 170px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem 0 !important;
    z-index: 999999 !important;
}

#hc-secondary-topbar .hc-topbar-dropdown.active .hc-dropdown-menu {
    display: block !important;
}

#hc-secondary-topbar .hc-dropdown-menu a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    background-color: #ffffff !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

#hc-secondary-topbar .hc-dropdown-menu a:hover {
    background-color: #f1f5f9 !important;
    color: #0052cc !important;
}

/* --------------------------------------------------------------------------
   Header Nav Menu Smooth Blue Underline Hover Effect
   -------------------------------------------------------------------------- */
.main-header .nabbar-nav .mainmenu {
    display: flex !important;
    align-items: center !important;
    gap: 1.75rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-header .nabbar-nav .mainmenu li {
    position: relative !important;
    display: inline-block !important;
}

.main-header .nabbar-nav .mainmenu li a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
}

.main-header .nabbar-nav .mainmenu li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 4px !important;
    left: 0 !important;
    width: 0% !important;
    height: 2px !important;
    background-color: #0052cc !important;
    border-radius: 2px !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.main-header .nabbar-nav .mainmenu li a:hover,
.main-header .nabbar-nav .mainmenu li.current-menu-item > a,
.main-header .nabbar-nav .mainmenu li.current-cat > a {
    color: #0052cc !important;
}

.main-header .nabbar-nav .mainmenu li a:hover::after,
.main-header .nabbar-nav .mainmenu li.current-menu-item > a::after,
.main-header .nabbar-nav .mainmenu li.current-cat > a::after {
    width: 100% !important;
}

/* ==========================================================================
   COMPLETE MOBILE RESPONSIVE OPTIMIZATIONS (Max Width: 991px & 575px)
   ========================================================================== */

/* Tablet & Mobile Layout Adaptations (< 991px) */
@media (max-width: 991px) {
    .zbd-wp-wrapper .zbd-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .zbd-wp-wrapper .zbd-side-col {
        width: 100% !important;
    }

    #hc-secondary-topbar .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Mobile Devices (< 767px) */
@media (max-width: 767px) {
    #hc-secondary-topbar {
        font-size: 0.775rem !important;
    }
    
    #hc-secondary-topbar .hc-topbar-left,
    #hc-secondary-topbar .hc-topbar-right {
        gap: 0.5rem !important;
    }

    .zbd-single-title {
        font-size: 1.6rem !important;
        line-height: 1.35 !important;
    }

    .zbd-breadcrumbs {
        font-size: 0.8rem !important;
        flex-wrap: wrap !important;
        gap: 0.25rem 0.5rem !important;
    }
}

/* Small Mobile Screens (< 575px) */
@media (max-width: 575px) {
    #hc-secondary-topbar .hc-tb-text {
        display: none !important;
    }

    #hc-secondary-topbar i {
        margin-right: 0 !important;
        font-size: 1.05rem !important;
    }

    #hc-secondary-topbar .hc-topbar-link {
        padding: 0.35rem 0.2rem !important;
    }

    .zbd-wp-wrapper {
        padding-top: 1.25rem !important;
        padding-bottom: 2rem !important;
    }

    .zbd-wp-wrapper .zbd-card {
        padding: 1.15rem !important;
        border-radius: 12px !important;
    }

    .zbd-wp-wrapper ul.zbd-posts-list > li {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .zbd-wp-wrapper .zbd-post-thumb {
        width: 100% !important;
        height: 190px !important;
        border-radius: 10px !important;
    }

    .zbd-wp-wrapper .zbd-post-title {
        font-size: 1.05rem !important;
        line-height: 1.4 !important;
    }

    .zbd-wp-wrapper .zbd-post-meta {
        font-size: 0.8rem !important;
        gap: 0.5rem 0.75rem !important;
    }

    .zbd-wp-wrapper .zbd-post-excerpt {
        font-size: 0.885rem !important;
        line-height: 1.55 !important;
    }

    .zbd-wp-wrapper .pagination,
    .zbd-wp-wrapper .wp-pagenav {
        margin-top: 1.25rem !important;
    }

    .zbd-wp-wrapper #pagination-links {
        gap: 0.35rem !important;
    }

    .zbd-wp-wrapper #pagination-links a,
    .zbd-wp-wrapper #pagination-links span {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.825rem !important;
    }

    .zbd-newsletter-input-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .zbd-newsletter-input-group .zbd-newsletter-input {
        width: 100% !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        padding: 0.6rem 0.85rem !important;
    }

    .zbd-newsletter-input-group .zbd-newsletter-btn {
        width: 100% !important;
        border-radius: 8px !important;
        padding: 0.65rem 1rem !important;
    }
}

/* ==========================================================================
   OFF-CANVAS DRAWER MENU & HEADER BUTTON MOBILE FIXES
   ========================================================================== */

/* 1. Off-Canvas Drawer Menu Left-Alignment */
@media (max-width: 991px) {
    .header-menu .inner {
        text-align: left !important;
    }

    .header-menu .mainmenu {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 1rem !important;
        width: 100% !important;
    }

    .header-menu .mainmenu li {
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .header-menu .mainmenu li a {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: left !important;
        width: 100% !important;
        padding: 0.85rem 0 !important;
        font-size: 1rem !important;
    }

    .header-menu .mainmenu li a::after {
        display: none !important;
    }

    /* Single Post & Container Overflow Guard (< 991px) */
    .zbd-wp-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .zbd-wp-wrapper .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .zbd-wp-wrapper .zbd-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .zbd-wp-wrapper .zbd-main-col,
    .zbd-wp-wrapper .zbd-side-col {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .zbd-wp-wrapper .zbd-card,
    .zbd-wp-wrapper .zbd-sidebar-card,
    .zbd-wp-wrapper .zbd-ad-widget {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .zbd-single-content {
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .zbd-single-content img,
    .zbd-single-content iframe,
    .zbd-single-content table,
    .zbd-single-content pre,
    .zbd-single-content video {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}

/* 2. Homepage Mobile Pagination Centering (< 767px) */
@media (max-width: 767px) {
    .zbd-wp-wrapper .pagination,
    .zbd-wp-wrapper .wp-pagenav {
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .zbd-wp-wrapper #pagination-links {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* 3. Header Get Started Button Size & Label Visibility Fix (< 500px) */
@media (max-width: 500px) {
    .main-header .nabbar-nav .nav-right-side-bar .btns span {
        display: inline-block !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
    }

    .main-header .nabbar-nav .nav-right-side-bar .btns {
        padding: 6px 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50px !important;
        height: auto !important;
        line-height: 1 !important;
    }
}

/* --------------------------------------------------------------------------
   Sidebar Social Media Widget Styling
   -------------------------------------------------------------------------- */
.zbd-social-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.zbd-social-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

/* --------------------------------------------------------------------------
   Footer Social Icons — Sleek Monochrome (Black & White) Styling
   -------------------------------------------------------------------------- */
.footer-social-links a {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #94a3b8 !important;
    background: transparent !important;
    transition: all 0.2s ease-in-out !important;
}
.footer-social-links a i {
    color: #94a3b8 !important;
    transition: color 0.2s ease-in-out !important;
}
.footer-social-links a:hover {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
}
.footer-social-links a:hover i {
    color: #ffffff !important;
}