/*!
Theme Name: Benqu
Theme URI: https://itcroctheme.com/wp/demos/benqu/
Author: itcroc
Author URI:  https://themeforest.net/user/itcroc
Description: Benqu - News & Magazine WordPress Theme
Version: 1.1.16
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: benqu
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Header Single Row Layout (Logo and Menu in a Single Row)
   ========================================================================== */

.benqu-main-header .header-menu-single-row {
    padding: 10px 0;
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

[data-theme="dark"] .benqu-main-header .header-menu-single-row {
    background: #0a0d12 !important;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-menu-single-row .header-logo-nav-wrap {
    min-width: 0;
}

/* Ensure clean Single Row Header layout without overcrowding */
.header-menu-single-row .pfy-sidebarnav,
.header-menu-single-row .bnq-search,
.header-menu-single-row .menu-right,
.benqu-main-header .pfy-top-bar,
.home .benqu-breadcrumb,
.blog .benqu-breadcrumb {
    display: none !important;
}

.header-menu-single-row .pfy-logo {
    padding-right: 35px;
    flex-shrink: 0;
}

/* Ensure only ONE appropriate logo link is shown based on dark/light mode */
.header-menu-single-row .pfy-logo a,
.header-menu-single-row .pfy-logo a.site-logo,
.header-menu-single-row .pfy-logo a.custom-logo-link {
    display: inline-flex !important;
    align-items: center;
}

.header-menu-single-row .pfy-logo a img,
.header-menu-single-row .pfy-logo a.site-logo img,
.header-menu-single-row .pfy-logo a.custom-logo-link img {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Light mode: hide light-logo when paired with a default logo */
.header-menu-single-row .pfy-logo a.light-logo {
    display: none !important;
}

/* Dark mode: hide default logo and show light-logo */
[data-theme="dark"] .header-menu-single-row .pfy-logo a:not(.light-logo) {
    display: none !important;
}

[data-theme="dark"] .header-menu-single-row .pfy-logo a.light-logo {
    display: inline-flex !important;
    align-items: center;
}

/* If only ONE logo link is present in .pfy-logo, ALWAYS display it in both light and dark modes */
.header-menu-single-row .pfy-logo a:only-of-type,
.header-menu-single-row .pfy-logo a:only-child {
    display: inline-flex !important;
    align-items: center;
}

[data-theme="dark"] .header-menu-single-row .pfy-logo a:only-of-type,
[data-theme="dark"] .header-menu-single-row .pfy-logo a:only-child {
    display: inline-flex !important;
    align-items: center;
}

/* Fallback: Invert single logo if colors clash with background (e.g. before JS swaps or on single logo setups) */
html:not([data-theme="dark"]) .header-menu-single-row .pfy-logo a:only-of-type img[src*="logo-white"],
[data-theme="light"] .header-menu-single-row .pfy-logo a:only-of-type img[src*="logo-white"],
html:not([data-theme="dark"]) .header-menu-single-row .pfy-logo a:only-child img[src*="logo-white"],
[data-theme="light"] .header-menu-single-row .pfy-logo a:only-child img[src*="logo-white"] {
    filter: invert(1) brightness(0.15) !important;
}

[data-theme="dark"] .header-menu-single-row .pfy-logo a:only-of-type img[src*="logo.png"]:not([src*="logo-white.png"]),
[data-theme="dark"] .header-menu-single-row .pfy-logo a:only-child img[src*="logo.png"]:not([src*="logo-white.png"]) {
    filter: invert(1) brightness(2) !important;
}

/* Hide the secondary floating switch completely */
.benqu-switch-box-wrap {
    display: none !important;
}

.header-menu-single-row .header-right {
    flex-shrink: 0;
}

.header-menu-single-row .mainmenu {
    flex: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    min-width: 0;
}

.header-menu-single-row .mainmenu .site-navigation {
    display: flex;
    justify-content: center;
}

.header-menu-single-row .mainmenu .site-navigation .navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.header-menu-single-row .mainmenu .site-navigation .navigation li {
    display: inline-block;
    position: relative;
    white-space: nowrap;
}

.header-menu-single-row .mainmenu .site-navigation .navigation li a {
    display: block;
    padding: 18px 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.header-menu-single-row .mainmenu .site-navigation .navigation li.menu-item-has-children > a {
    padding-right: 34px;
}

.header-menu-single-row .mainmenu .site-navigation .navigation li.menu-item-has-children:after {
    top: 50%;
    transform: translateY(-50%);
    right: 11px;
    font-size: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.header-menu-single-row .mainmenu .site-navigation .navigation li.menu-item-has-children:hover:after {
    transform: translateY(-50%) rotate(90deg);
}

.header-menu-single-row .mainmenu .site-navigation .navigation ul.sub-menu {
    top: 100%;
}

.header-menu-single-row .mainmenu .site-navigation .navigation ul.sub-menu li a {
    padding: 9px 22px;
    font-size: 15px;
    font-weight: 500;
}

/* Screen size adjustments between 992px and 1280px */
@media (min-width: 992px) and (max-width: 1280px) {
    .header-menu-single-row .pfy-logo {
        padding-right: 15px;
    }
    .header-menu-single-row .mainmenu {
        padding: 0 10px;
    }
    .header-menu-single-row .mainmenu .site-navigation .navigation li a {
        padding: 18px 11px;
        font-size: 14px;
    }
    .header-menu-single-row .mainmenu .site-navigation .navigation li.menu-item-has-children > a {
        padding-right: 25px;
    }
    .header-menu-single-row .mainmenu .site-navigation .navigation li.menu-item-has-children:after {
        right: 8px;
    }
    .header-menu-single-row .mainmenu .site-navigation .navigation ul.sub-menu li a {
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* Sticky Header styling */
.benqu-main-header .header-menu-single-row.stickyHeader {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .benqu-main-header .header-menu-single-row.stickyHeader {
    background: #0a0d12 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Theme Change Button (Dark / Light Mode Toggle)
   ========================================================================== */

.theme-mode-toggle {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin-right: 15px;
    vertical-align: middle;
}

.theme-mode-toggle:focus-visible {
    outline: 2px solid var(--color-primary, #3b60fe);
    outline-offset: 3px;
    border-radius: 20px;
}

.theme-mode-toggle__track {
    width: 58px;
    height: 30px;
    border-radius: 30px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .theme-mode-toggle__track {
    background: #1a1e26;
    border-color: #2e3542;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.theme-mode-toggle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-mode-toggle__icon--sun {
    color: #eab308;
}

.theme-mode-toggle__icon--moon {
    color: #94a3b8;
}

[data-theme="dark"] .theme-mode-toggle__icon--sun {
    color: #64748b;
}

[data-theme="dark"] .theme-mode-toggle__icon--moon {
    color: #60a5fa;
}

.theme-mode-toggle__thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

[data-theme="dark"] .theme-mode-toggle__thumb {
    transform: translateX(28px);
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.theme-mode-toggle:hover .theme-mode-toggle__track {
    border-color: #94a3b8;
}

[data-theme="dark"] .theme-mode-toggle:hover .theme-mode-toggle__track {
    border-color: #3b82f6;
}

/* Mobile drawer toggle */
.mobile-theme-toggle-wrap {
    padding: 12px 18px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-theme-toggle-wrap span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

[data-theme="light"] .mobile-theme-toggle-wrap span {
    color: #1d2027;
}

[data-theme="light"] .mobile-theme-toggle-wrap {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Smooth theme transition */
html,
body,
.benqu-main-header,
.header-menu,
.pfy-main-wrapper,
.pfy-site-footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   Brand Comparisons Page Styling (Matching Provided Mockup)
   ========================================================================== */

/* Page Title & Heading Consistency (Prevent Double Title Styling Issues) */
.entry-content h1.wp-block-heading,
.entry-header .entry-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 15px 0 24px 0;
    color: #0f172a;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .entry-content h1.wp-block-heading,
[data-theme="dark"] .entry-header .entry-title {
    color: #f8fafc;
}

/* Hide default entry title header on Brand Comparisons page */
.page-id-27 .entry-header,
.postid-27 .entry-header {
    display: none !important;
}

.brand-comparisons-wrapper {
    position: relative;
    padding: 10px 0 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Audience Filter Navigation */
.audience-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.audience-tab {
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    color: #4b5563;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    border-radius: 4px;
}

[data-theme="dark"] .audience-tab {
    color: #94a3b8;
}

.audience-tab:hover {
    color: #f58220;
}

.audience-tab.active {
    font-weight: 700;
    color: #111827;
}

[data-theme="dark"] .audience-tab.active {
    color: #ffffff;
}

.audience-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #f58220;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Tab Panes Transition */
.tab-pane-content {
    display: none;
    opacity: 0;
}

.tab-pane-content.active {
    display: block;
    animation: fadeInTab 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Main Heading */
.section-main-heading {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0 0 45px 0;
    font-family: inherit;
}

[data-theme="dark"] .section-main-heading {
    color: #ffffff;
}

/* Product Showcase Grid (3 Columns) */
.products-showcase-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 32px;
    align-items: flex-start;
    margin: 0 auto 70px auto;
    width: 100%;
    max-width: 100%;
}

.product-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
}

.product-img-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    margin-bottom: 18px;
}

.product-img-box a {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 100%;
}

.product-mockup-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.product-showcase-card:hover .product-mockup-img {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.16));
}

[data-theme="dark"] .product-mockup-img {
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
}

[data-theme="dark"] .product-showcase-card:hover .product-mockup-img {
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.7));
}

/* Product Name */
.product-name {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    transition: color 0.2s ease;
}

[data-theme="dark"] .product-name {
    color: #f1f5f9;
}

/* Orange Pill Explore Button */
.product-btn-wrap {
    margin-top: auto;
}

.explore-orange-btn {
    display: inline-block;
    background: #f58220;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 28px;
    border-radius: 9999px;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(245, 130, 32, 0.38);
}

.explore-orange-btn:hover {
    background: #e06f10;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(245, 130, 32, 0.55);
}

/* Whiteboard Size Section */
.whiteboard-size-section {
    padding-top: 50px;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .whiteboard-size-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.size-main-heading {
    font-size: 28px;
    margin-bottom: 12px;
}

.size-section-subtitle {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    max-width: 760px;
    margin: 0 auto 45px auto;
    line-height: 1.6;
}

[data-theme="dark"] .size-section-subtitle {
    color: #94a3b8;
}

/* Size Cards Grid (4 Columns) */
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}

.size-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

[data-theme="dark"] .size-box {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.size-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

[data-theme="dark"] .size-box:hover {
    border-color: #374151;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Featured 75" Size Card */
.size-box.featured {
    border-color: #f58220;
    box-shadow: 0 8px 24px rgba(245, 130, 32, 0.18);
    transform: scale(1.02);
}

.size-box.featured:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 14px 32px rgba(245, 130, 32, 0.28);
}

.size-pill-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    margin-bottom: 14px;
}

[data-theme="dark"] .size-pill-tag {
    background: #1e293b;
    color: #94a3b8;
}

.size-pill-tag.popular {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid rgba(245, 130, 32, 0.3);
}

[data-theme="dark"] .size-pill-tag.popular {
    background: rgba(245, 130, 32, 0.15);
    color: #fb923c;
    border-color: rgba(245, 130, 32, 0.4);
}

.size-header {
    margin-bottom: 18px;
}

.size-val {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 4px;
}

[data-theme="dark"] .size-val {
    color: #f8fafc;
}

.size-box.featured .size-val {
    color: #f58220;
}

.size-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

[data-theme="dark"] .size-title {
    color: #94a3b8;
}

.size-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.45;
}

.size-row {
    display: flex;
    flex-direction: column;
}

.size-label {
    font-weight: 700;
    color: #334155;
    font-size: 12px;
}

[data-theme="dark"] .size-label {
    color: #cbd5e1;
}

.size-desc {
    color: #64748b;
}

[data-theme="dark"] .size-desc {
    color: #94a3b8;
}

.size-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 20px;
}

.feat-tag {
    font-size: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 8px;
    color: #475569;
    font-weight: 500;
}

[data-theme="dark"] .feat-tag {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.size-action-btn {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    background: #f1f5f9;
    color: #1e293b !important;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

[data-theme="dark"] .size-action-btn {
    background: #1f2937;
    color: #f3f4f6 !important;
    border-color: #374151;
}

.size-action-btn:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

[data-theme="dark"] .size-action-btn:hover {
    background: #374151;
    color: #ffffff !important;
}

.size-action-btn.primary-btn {
    background: #f58220;
    color: #ffffff !important;
    border-color: #f58220;
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

.size-action-btn.primary-btn:hover {
    background: #e06f10;
    border-color: #e06f10;
    box-shadow: 0 6px 16px rgba(245, 130, 32, 0.45);
}

/* Sticky Demo Sidebar Button (Matching User Image Right Edge) */
.sticky-demo-sidebar-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #f58220;
    color: #ffffff !important;
    padding: 14px 10px;
    border-radius: 8px 0 0 8px;
    z-index: 99999;
    text-decoration: none !important;
    box-shadow: -3px 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    cursor: pointer;
}

.sticky-demo-sidebar-btn span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: #ffffff;
}

.sticky-demo-sidebar-btn:hover {
    background: #e06f10;
    padding-left: 14px;
    box-shadow: -5px 6px 20px rgba(245, 130, 32, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .products-showcase-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }

    .sizes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .size-box.featured {
        transform: none;
    }

    .size-box.featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 640px) {
    .products-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .sizes-grid {
        grid-template-columns: 1fr !important;
    }

    .section-main-heading {
        font-size: 26px;
    }

    .size-main-heading {
        font-size: 22px;
    }

    .audience-tabs-nav {
        gap: 16px;
    }

    .sticky-demo-sidebar-btn {
        display: none;
    }
}

/* ==========================================================================
   Contact Us Page Styling
   ========================================================================== */
.edtech-contact-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.contact-header-section {
    margin-bottom: 35px;
}

.contact-header-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
    max-width: 780px;
    margin: 0;
}

[data-theme="dark"] .contact-header-desc {
    color: #94a3b8;
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: start;
}

/* Form Card */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .contact-form-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

[data-theme="dark"] .form-title {
    color: #f8fafc;
}

.form-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px 0;
    line-height: 1.5;
}

[data-theme="dark"] .form-subtitle {
    color: #94a3b8;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

[data-theme="dark"] .form-group label {
    color: #cbd5e1;
}

.form-group label .required {
    color: #ef4444;
}

.contact-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

[data-theme="dark"] .contact-input {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.contact-input:focus {
    outline: none;
    border-color: #f58220;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

[data-theme="dark"] .contact-input:focus {
    background: #1a2234;
    border-color: #f58220;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.25);
}

.contact-textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-submit-btn {
    display: inline-block;
    width: 100%;
    background: #f58220;
    color: #ffffff;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(245, 130, 32, 0.35);
}

.contact-submit-btn:hover {
    background: #e06f10;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 130, 32, 0.5);
}

.contact-success-msg {
    margin-top: 18px;
    padding: 14px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-size: 14px;
    line-height: 1.5;
}

[data-theme="dark"] .contact-success-msg {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Info Column */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card,
.contact-trust-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-trust-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.info-card-title,
.trust-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 22px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .info-card-title,
[data-theme="dark"] .trust-card-title {
    color: #f8fafc;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff7ed;
    color: #f58220;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

[data-theme="dark"] .info-icon {
    background: rgba(245, 130, 32, 0.15);
    color: #fb923c;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}

[data-theme="dark"] .info-label {
    color: #94a3b8;
}

.info-val {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.info-val:hover {
    color: #f58220;
}

[data-theme="dark"] .info-val {
    color: #f8fafc;
}

[data-theme="dark"] .info-val:hover {
    color: #fb923c;
}

.info-val-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

[data-theme="dark"] .info-val-text {
    color: #cbd5e1;
}

/* Trust list */
.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #334155;
}

[data-theme="dark"] .trust-list li {
    color: #cbd5e1;
}

.trust-list li i {
    color: #10b981;
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 580px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-card {
        padding: 24px 18px;
    }
}

/* ==========================================================================
   Professional Sidebar Widgets: Recent Posts & Random Categories
   ========================================================================== */

/* Widget Section Spacing & Headings */
.widget-area .widget_block {
    margin-bottom: 35px;
}

.widget-area .widget_block .wp-block-heading {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    color: #1e293b;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
    letter-spacing: -0.3px;
}

.widget-area .widget_block .wp-block-heading:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--color-primary, #5541f8);
    border-radius: 2px;
}

[data-theme="dark"] .widget-area .widget_block .wp-block-heading {
    color: #f1f5f9;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Recent Posts Widget
   -------------------------------------------------------------------------- */
.benqu-pro-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benqu-pro-post-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .benqu-pro-post-card {
    background: #121622;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Recent Post Hover Effect */
.benqu-pro-post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(85, 65, 248, 0.35);
    box-shadow: 0 10px 24px rgba(85, 65, 248, 0.1);
}

[data-theme="dark"] .benqu-pro-post-card:hover {
    background: #171d2c;
    border-color: rgba(85, 65, 248, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 15px rgba(85, 65, 248, 0.15);
}

/* Thumbnail */
.benqu-pro-post-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: block;
    background: #e2e8f0;
}

[data-theme="dark"] .benqu-pro-post-thumb {
    background: #1c2230;
}

.benqu-pro-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.benqu-pro-post-card:hover .benqu-pro-post-thumb img {
    transform: scale(1.08);
}

.benqu-pro-post-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 26px;
    background: linear-gradient(135deg, rgba(85, 65, 248, 0.1), rgba(85, 65, 248, 0.2));
}

/* Post index badge */
.benqu-pro-post-num {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.benqu-pro-post-card:hover .benqu-pro-post-num {
    background: var(--color-primary, #5541f8);
}

/* Post Content */
.benqu-pro-post-content {
    flex: 1;
    min-width: 0;
}

.benqu-pro-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    font-size: 11px;
}

.benqu-pro-post-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.4px;
    background: rgba(85, 65, 248, 0.1);
    color: var(--color-primary, #5541f8);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.benqu-pro-post-cat:hover {
    background: var(--color-primary, #5541f8);
    color: #ffffff !important;
}

[data-theme="dark"] .benqu-pro-post-cat {
    background: rgba(85, 65, 248, 0.2);
    color: #a59eff;
}

.benqu-pro-post-date {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

[data-theme="dark"] .benqu-pro-post-date {
    color: #94a3b8;
}

.benqu-pro-post-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.benqu-pro-post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.benqu-pro-post-card:hover .benqu-pro-post-title a {
    color: var(--color-primary, #5541f8);
}

[data-theme="dark"] .benqu-pro-post-title a {
    color: #e2e8f0;
}

[data-theme="dark"] .benqu-pro-post-card:hover .benqu-pro-post-title a {
    color: #8f82ff;
}

/* --------------------------------------------------------------------------
   Categories Widget (Random 5)
   -------------------------------------------------------------------------- */
.benqu-pro-categories {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benqu-pro-categories li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.benqu-cat-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .benqu-cat-item-link {
    background: #121622;
    border-color: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.benqu-cat-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benqu-cat-name-wrap i {
    color: var(--color-primary, #5541f8);
    font-size: 14px;
    transition: transform 0.25s ease, color 0.25s ease;
}

[data-theme="dark"] .benqu-cat-name-wrap i {
    color: #a59eff;
}

.benqu-cat-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.25s ease;
}

[data-theme="dark"] .benqu-cat-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

/* Category Hover Effect */
.benqu-cat-item-link:hover {
    transform: translateX(6px);
    background: rgba(85, 65, 248, 0.06);
    border-color: rgba(85, 65, 248, 0.3);
    color: var(--color-primary, #5541f8) !important;
    box-shadow: 0 6px 18px rgba(85, 65, 248, 0.1);
}

[data-theme="dark"] .benqu-cat-item-link:hover {
    background: #171d2c;
    border-color: rgba(85, 65, 248, 0.45);
    color: #a59eff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(85, 65, 248, 0.15);
}

.benqu-cat-item-link:hover .benqu-cat-name-wrap i {
    transform: scale(1.15) rotate(-5deg);
    color: var(--color-primary, #5541f8);
}

[data-theme="dark"] .benqu-cat-item-link:hover .benqu-cat-name-wrap i {
    color: #a59eff;
}

.benqu-cat-item-link:hover .benqu-cat-count-badge {
    background: var(--color-primary, #5541f8);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(85, 65, 248, 0.35);
}




