/**
 * Plato Packaging Industry - Material Design 3 (M3) Website & Blog Stylesheet
 * Strict Single Brand Color: Signature Blue (#2196F3)
 * Full Light & Dark Theme Support, Modern Surfaces, Micro-interactions
 * Font: IRANSansX (Regular, Bold, Variable/Light)
 */

@import url('iransansx.css');

/* =========================================================================
   Global IRANSansX Typography Rules
   ========================================================================= */
html[dir="rtl"],
html[dir="rtl"] body,
body.rtl {
    font-family: 'IRANSansX', 'IRANSansXV', 'IRANYekanDigits', Tahoma, sans-serif !important;
}

html[dir="rtl"] strong,
html[dir="rtl"] b,
html[dir="rtl"] th,
html[dir="rtl"] .bold,
html[dir="rtl"] .font-bold,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: 'IRANSansX', 'IRANSansX-Bold', sans-serif !important;
    font-weight: 700 !important;
}

/* =========================================================================
   0. Global Typography is defined in iransansx.css
   ========================================================================= */

/* =========================================================================
   0.1 Global Text Selection Styling (Light & Dark M3 Theming)
   ========================================================================= */
::selection {
    background-color: #2196F3 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

::-moz-selection {
    background-color: #2196F3 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

html[data-theme="dark"] ::selection {
    background-color: #1976D2 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

html[data-theme="dark"] ::-moz-selection {
    background-color: #1976D2 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}



/* =========================================================================
   1. Admin Top Bar Ribbon (WordPress/Custom M3 Top Bar for Logged-in Admins)
   Always strictly RTL & Iran Yekan font even when site language is English
   ========================================================================= */
body.has-admin-bar {
    padding-top: 44px !important;
}

body.has-admin-bar #topNav2.navbar {
    top: 44px !important;
}

body.has-admin-bar #topNav2.navbar.sticky {
    top: 44px !important;
}

.plato-admin-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 44px !important;
    background: #22222a !important;
    color: #e2e8f0 !important;
    z-index: 100000 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    direction: rtl !important;
    text-align: right !important;
    font-family: 'IRANSansX', 'IRANSansXV', Tahoma, sans-serif !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.plato-admin-bar {
    font-family: 'IRANSansX', 'IRANSansXV', Tahoma, sans-serif !important;
    direction: rtl !important;
    text-align: right !important;
}

.plato-admin-bar a,
.plato-admin-bar span,
.plato-admin-bar li,
.plato-admin-bar div {
    font-family: 'IRANSansX', 'IRANSansXV', Tahoma, sans-serif !important;
}

/* Strictly preserve FontAwesome Icon Font */
.plato-admin-bar i,
.plato-admin-bar .fa,
.plato-admin-bar i.fa,
.plato-admin-bar .plato-caret {
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.plato-admin-bar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: background 160ms cubic-bezier(0.2, 0, 0, 1), color 160ms cubic-bezier(0.2, 0, 0, 1);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    height: 32px;
    line-height: 32px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 2px;
}

.plato-admin-bar a:hover,
.plato-admin-bar-item:hover > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.plato-admin-bar-group {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.plato-admin-bar-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.plato-caret {
    font-size: 10px !important;
    opacity: 0.7;
    margin-right: 4px;
    margin-left: 2px;
    transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.plato-admin-bar-item:hover .plato-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.plato-admin-bar-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #33333f;
    color: #cbd5e1;
    font-size: 12px;
    margin: 0 !important;
    margin-left: 7px !important;
    margin-right: 0 !important;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.plato-admin-bar-user .plato-admin-bar-item > a {
    padding: 0 10px !important;
    gap: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.plato-admin-bar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plato-admin-bar-badge {
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 6px;
    border-radius: 9999px;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.plato-admin-bar-badge.badge-primary {
    background: #2196F3 !important;
}
.plato-admin-bar-badge.badge-danger {
    background: #ef4444 !important;
}
.plato-admin-bar-badge.badge-success {
    background: #10b981 !important;
}
.plato-admin-bar-badge.badge-warning {
    background: #f59e0b !important;
    color: #1e1e24 !important;
}
.plato-admin-bar-badge.badge-purple {
    background: #8b5cf6 !important;
}
.plato-admin-bar-badge.badge-slate {
    background: #475569 !important;
    color: #ffffff !important;
}

/* Dropdown menus in admin bar - Floating M3 Card */
.plato-admin-bar-dropdown {
    position: absolute;
    top: 38px;
    right: 0 !important;
    left: auto !important;
    direction: rtl !important;
    text-align: right !important;
    background: #1e1e26;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    padding: 6px;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 1001 !important;
}

.plato-admin-bar-dropdown-user {
    left: 0 !important;
    right: auto !important;
    direction: rtl !important;
    text-align: right !important;
}

.plato-admin-bar-item:hover .plato-admin-bar-dropdown {
    display: block;
}

.plato-admin-bar-dropdown li {
    display: block;
    width: 100%;
}

.plato-admin-bar-dropdown li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    height: auto;
    line-height: 1.5;
    border-radius: 8px;
    margin: 1px 0;
    transition: all 0.15s ease;
}

.plato-admin-bar-dropdown li a i {
    width: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.plato-admin-bar-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.plato-admin-bar-dropdown li a:hover i {
    color: #60a5fa;
}

.plato-admin-bar-dropdown-user li a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.plato-admin-bar-dropdown-user li a.is-logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

.plato-admin-bar-item.is-open .plato-admin-bar-dropdown {
    display: block !important;
}

.plato-admin-bar-item.is-open .plato-caret {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
}

@media (max-width: 991px) {
    .plato-admin-bar a {
        padding: 0 8px;
        font-size: 12.5px;
        gap: 5px;
    }
}

@media (max-width: 767px) {
    .plato-admin-bar {
        overflow: visible !important;
        white-space: nowrap !important;
        padding: 0 6px !important;
        z-index: 100000 !important;
        height: 44px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .plato-admin-bar-group {
        gap: 1px !important;
    }

    .plato-admin-bar-main {
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }

    .plato-admin-bar-user {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
    }

    .plato-admin-bar a {
        padding: 0 6px !important;
        margin: 0 1px !important;
        height: 32px !important;
        line-height: 32px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }

    .plato-admin-bar-badge {
        font-size: 9.5px !important;
        height: 16px !important;
        min-width: 16px !important;
        padding: 0 4px !important;
        line-height: 16px !important;
        margin: 0 1px !important;
    }

    .plato-admin-bar-avatar {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
        margin: 0 !important;
        margin-left: 2px !important;
    }

    .plato-admin-bar-user .plato-admin-bar-item > a {
        padding: 0 5px !important;
        gap: 3px !important;
    }

    .plato-admin-bar-item.hidden-xs,
    .plato-admin-bar .hidden-xs {
        display: none !important;
    }

    /* Contained floating menu card on mobile - strictly contained within viewport */
    .plato-admin-bar-dropdown {
        position: fixed !important;
        top: 48px !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
        padding: 6px !important;
        background: #1c1c24 !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        z-index: 100005 !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .plato-admin-bar-dropdown-user {
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
    }

    .plato-admin-bar-dropdown li a {
        padding: 9px 12px !important;
        font-size: 13.5px !important;
        border-radius: 8px !important;
        margin: 2px 0 !important;
    }
}

/* =========================================================================
   2. Base & Global M3 Surface Styles
   ========================================================================= */
body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-surface);
    transition: background-color var(--md-motion-duration-medium) var(--md-motion-easing-standard),
                color var(--md-motion-duration-medium) var(--md-motion-easing-standard);
}

a {
    color: var(--md-sys-color-primary);
    transition: color var(--md-motion-duration-short) ease;
}

a:hover, a:focus {
    color: var(--md-sys-color-primary-hover);
    text-decoration: none;
}

/* Primary color overrides across all components */
.mdl-button--accent.mdl-button--raised,
.mdl-button--accent.mdl-button--fab,
.btn-primary,
.buy-now,
.learn-more:hover {
    background-color: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border-radius: var(--md-shape-corner-full) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    transition: all var(--md-motion-duration-short) var(--md-motion-easing-standard) !important;
}

.mdl-button--accent.mdl-button--raised:hover,
.btn-primary:hover {
    background-color: var(--md-sys-color-primary-hover) !important;
}

/* =========================================================================
   3. Modern M3 Top Navigation Bar (#topNav2)
   ========================================================================= */
#topNav2.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    min-height: 60px;
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    border-radius: 0;
    margin: 0;
    transition: background-color 250ms ease, backdrop-filter 250ms ease, -webkit-backdrop-filter 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

/* 1. Transparent when scroll is at top of page (:not(.sticky)) on Homepage ONLY */
body.home-page #topNav2.navbar:not(.sticky) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    body.home-page #topNav2.navbar:not(.sticky) .navbar-nav > li > a {
        color: #ffffff !important;
    }

    body.home-page #topNav2.navbar:not(.sticky) .navbar-nav > li > a:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.18) !important;
        box-shadow: none !important;
    }

    body.home-page #topNav2.navbar:not(.sticky) .navbar-nav > li.active > a {
        color: #ffffff !important;
        background: var(--md-sys-color-primary) !important;
        box-shadow: none !important;
    }

    body.home-page #topNav2.navbar:not(.sticky) #demo-menu-lower-left {
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        background: rgba(0, 0, 0, 0.2) !important;
    }
}

/* 1. Homepage Hero Transparent State Navbar */

/* 2. Glass surface with elevation when scrolled (.sticky) on Homepage */
body.home-page #topNav2.navbar.sticky {
    background: var(--md-sys-glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--md-sys-glass-border) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
}

body.home-page #topNav2.navbar.sticky .navbar-nav > li > a {
    color: var(--md-sys-color-on-surface) !important;
}

body.home-page #topNav2.navbar.sticky .navbar-nav > li > a:hover {
    color: var(--md-sys-color-primary) !important;
    background: rgba(33, 150, 243, 0.1) !important;
    box-shadow: none !important;
}

body.home-page #topNav2.navbar.sticky .navbar-nav > li.active > a {
    color: #ffffff !important;
    background: var(--md-sys-color-primary) !important;
    box-shadow: none !important;
}

body.home-page #topNav2.navbar.sticky #demo-menu-lower-left {
    color: var(--md-sys-color-on-surface) !important;
    border-color: var(--md-sys-color-outline-variant) !important;
    background: var(--md-sys-color-surface) !important;
}


/* 3. Subpages (Blog, Single Article, Pages, 404): Solid Surface ALWAYS */
body:not(.home-page) #topNav2.navbar {
    background: var(--md-sys-color-surface) !important;
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
}

html[data-theme="dark"] body:not(.home-page) #topNav2.navbar {
    background: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body:not(.home-page) #topNav2.navbar .navbar-nav > li > a {
    color: var(--md-sys-color-on-surface) !important;
}

body:not(.home-page) #topNav2.navbar .navbar-nav > li > a:hover {
    color: var(--md-sys-color-primary) !important;
    background: rgba(33, 150, 243, 0.1) !important;
    box-shadow: none !important;
}

body:not(.home-page) #topNav2.navbar .navbar-nav > li.active > a {
    color: #ffffff !important;
    background: var(--md-sys-color-primary) !important;
    box-shadow: none !important;
}

body:not(.home-page) #topNav2.navbar #demo-menu-lower-left {
    color: var(--md-sys-color-on-surface) !important;
    border-color: var(--md-sys-color-outline-variant) !important;
    background: var(--md-sys-color-surface-container) !important;
}

html[data-theme="dark"] body:not(.home-page) #topNav2.navbar #demo-menu-lower-left {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: #1e293b !important;
}


/* Navbar Container & Brand Logo Vertical Centering */
#topNav2 .navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
}

#topNav2 .navbar-header {
    display: flex;
    align-items: center;
    height: 60px;
    margin: 0;
}

#topNav2 .navbar-brand {
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    color: var(--md-sys-color-primary) !important;
    height: 60px;
    line-height: 60px;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    text-transform: uppercase !important;
}

#topNav2 .navbar-brand span {
    color: var(--md-sys-color-primary) !important;
}

/* Nav Menu Items (Clean Pill, Simple, No Bottom Shadow) */
#topNav2 .navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 4px;
}

#topNav2 .navbar-nav > li {
    display: inline-block;
    float: none;
}

#topNav2 .navbar-nav > li > a {
    font-size: 13.5px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    margin: 0 !important;
    border-radius: 9999px !important; /* Pure Pill Shape */
    border: none !important;
    position: relative;
    transition: all 180ms ease;
    text-decoration: none !important;
}

#topNav2 .navbar-nav > li > a span,
#topNav2 .navbar-nav > li.products-nav-dropdown > a.products-nav-trigger,
#topNav2 .navbar-nav > li.products-nav-dropdown > a.products-nav-trigger span {
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
}

/* Strictly remove all ::after bottom shadows / lines */
#topNav2 .navbar-nav > li > a::after,
#topNav2 .navbar-nav > li.active > a::after {
    display: none !important;
    content: none !important;
}

/* =========================================================================
   3.1 Navbar Products Dropdown Menu (Matches Language Selector Style)
   ========================================================================= */
#topNav2 .navbar-nav > li.products-nav-dropdown {
    position: relative !important;
}

#topNav2 .navbar-nav > li.products-nav-dropdown > a.products-nav-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
}

#topNav2 .navbar-nav > li.products-nav-dropdown:hover > a.products-nav-trigger,
#topNav2 .navbar-nav > li.products-nav-dropdown > a.products-nav-trigger:hover,
#topNav2 .navbar-nav > li.products-nav-dropdown.active > a.products-nav-trigger,
#topNav2 .navbar-nav > li.products-nav-dropdown.is-open > a.products-nav-trigger {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
}

#topNav2 .navbar-nav > li.products-nav-dropdown .nav-caret,
#topNav2 .navbar-nav > li.products-nav-dropdown .caret {
    font-size: 11px !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
}

/* Dropdown Container - Exactly matching .mdl-menu / language selector */
#topNav2 .products-dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    min-width: 140px !important;
    width: max-content !important;
    max-width: 260px !important;
    padding: 6px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    z-index: 1060 !important;
    list-style: none !important;
    margin: 0 !important;

    /* Light Theme Surface (Identical to Language Menu) */
    background: var(--md-sys-color-surface, #ffffff) !important;
    border: 1px solid var(--md-sys-color-outline-variant, #cbd5e1) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
}

/* Multi-language alignment: Right for RTL, Left for LTR */
[dir="rtl"] #topNav2 .products-dropdown-menu,
html[dir="rtl"] #topNav2 .products-dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
}

[dir="ltr"] #topNav2 .products-dropdown-menu,
html[dir="ltr"] #topNav2 .products-dropdown-menu {
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
}

/* Generous Invisible Hover Bridge ensuring zero accidental gap loss */
#topNav2 .products-dropdown-menu::before {
    content: "" !important;
    position: absolute !important;
    top: -24px !important;
    left: -20px !important;
    right: -20px !important;
    height: 25px !important;
    background: transparent !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    z-index: 1 !important;
}

/* Reveal Menu on Hover & Focus (Instant display, no animation) */
#topNav2 .navbar-nav > li.products-nav-dropdown:hover .products-dropdown-menu:not(.pe-force-hidden),
#topNav2 .navbar-nav > li.products-nav-dropdown:focus-within .products-dropdown-menu:not(.pe-force-hidden),
#topNav2 .navbar-nav > li.products-nav-dropdown.is-open .products-dropdown-menu:not(.pe-force-hidden),
#topNav2 .navbar-nav > li.products-nav-dropdown.is-active .products-dropdown-menu:not(.pe-force-hidden),
#topNav2 .products-dropdown-menu:hover:not(.pe-force-hidden) {
    display: block !important;
}

#topNav2 .products-dropdown-menu.pe-force-hidden {
    display: none !important;
}

/* Product Item - Exactly matching .mdl-menu__item (No animation, simple color hover, ZERO shadow/border) */
#topNav2 .products-dropdown-item,
#topNav2 .navbar-nav li a.products-dropdown-item,
#topNavbar2 li a.products-dropdown-item,
#topNav2 .products-dropdown-menu a {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--md-sys-color-on-surface, #334155) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    transition: background-color 150ms ease, color 150ms ease !important;
    transform: none !important;
    border: none !important;
    border-bottom: none !important;
    border-bottom-width: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
}

/* Hover effect on items: identical to language menu (.mdl-menu__item:hover) */
#topNav2 .products-dropdown-item:hover,
#topNav2 .products-dropdown-item:focus,
#topNav2 .products-dropdown-item:active,
#topNav2 .navbar-nav li a.products-dropdown-item:hover,
#topNav2 .navbar-nav li a.products-dropdown-item:focus,
#topNav2 .navbar-nav li a.products-dropdown-item:active,
#topNavbar2 li a.products-dropdown-item:hover,
#topNavbar2 li a.products-dropdown-item:focus,
#topNavbar2 li a.products-dropdown-item:active,
#topNav2 .products-dropdown-menu a:hover,
#topNav2 .products-dropdown-menu a:focus {
    background-color: var(--md-sys-color-primary-container, rgba(33, 150, 243, 0.1)) !important;
    color: var(--md-sys-color-on-primary-container, #2196F3) !important;
    transform: none !important;
    border: none !important;
    border-bottom: none !important;
    border-bottom-width: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
}

#topNav2 .products-dropdown-item span,
#topNav2 .products-dropdown-item:hover span {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
}

#topNav2 .products-dropdown-item::before,
#topNav2 .products-dropdown-item::after,
#topNavbar2 li a.products-dropdown-item::before,
#topNavbar2 li a.products-dropdown-item::after {
    display: none !important;
    content: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dark Mode Surface (Identical to Language Menu) */
html[data-theme="dark"] #topNav2 .products-dropdown-menu {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] #topNav2 .products-dropdown-item,
html[data-theme="dark"] #topNavbar2 li a.products-dropdown-item,
html[data-theme="dark"] #topNav2 .products-dropdown-menu a {
    color: #e2e8f0 !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html[data-theme="dark"] #topNav2 .products-dropdown-item:hover,
html[data-theme="dark"] #topNav2 .products-dropdown-item:focus,
html[data-theme="dark"] #topNavbar2 li a.products-dropdown-item:hover,
html[data-theme="dark"] #topNav2 .products-dropdown-menu a:hover {
    background-color: rgba(33, 150, 243, 0.18) !important;
    color: #60a5fa !important;
    transform: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Mobile Screen Adaptations */
@media (max-width: 767px) {
    #topNav2 .navbar-nav > li.products-nav-dropdown {
        display: block !important;
        width: 100% !important;
    }

    #topNav2 .products-dropdown-menu {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        margin-top: 6px !important;
        margin-bottom: 8px !important;
        border-radius: 12px !important;
    }

    html[data-theme="dark"] #topNav2 .products-dropdown-menu {
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* =========================================================================
   4. Modern M3 Theme Switcher Control (Light / Dark / System)
   ========================================================================= */
/* =========================================================================
   4. Modern M3 Theme Switcher Control (Light / Dark / System)
   ========================================================================= */
.m3-theme-segmented {
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 9999px !important;
    padding: 3px !important;
    margin: 0 6px !important;
    gap: 3px !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

/* Light Theme Container (Default / Light mode) */
.m3-theme-segmented,
html[data-theme="light"] .m3-theme-segmented,
body:not(.home-page) #topNav2.navbar .m3-theme-segmented,
body.home-page #topNav2.navbar.sticky .m3-theme-segmented {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Dark Theme Container */
html[data-theme="dark"] .m3-theme-segmented,
html[data-theme="dark"] body:not(.home-page) #topNav2.navbar .m3-theme-segmented,
html[data-theme="dark"] body.home-page #topNav2.navbar.sticky .m3-theme-segmented {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

/* Homepage Hero Transparent State Container */
body.home-page #topNav2.navbar:not(.sticky) .m3-theme-segmented {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Base Buttons */
.m3-theme-segmented button {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 13.5px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Inactive button - Light (Default) */
.m3-theme-segmented button:not(.active):not(.is-active),
html[data-theme="light"] .m3-theme-segmented button:not(.active):not(.is-active) {
    color: #64748b !important;
    background: transparent !important;
}
.m3-theme-segmented button:not(.active):not(.is-active):hover,
html[data-theme="light"] .m3-theme-segmented button:not(.active):not(.is-active):hover {
    color: #2196F3 !important;
    background: rgba(33, 150, 243, 0.1) !important;
}

/* Inactive button - Dark */
html[data-theme="dark"] .m3-theme-segmented button:not(.active):not(.is-active) {
    color: #94a3b8 !important;
    background: transparent !important;
}
html[data-theme="dark"] .m3-theme-segmented button:not(.active):not(.is-active):hover {
    color: #60a5fa !important;
    background: rgba(33, 150, 243, 0.2) !important;
}

/* Inactive button - Homepage Transparent Navbar */
body.home-page #topNav2.navbar:not(.sticky) .m3-theme-segmented button:not(.active):not(.is-active) {
    color: rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
}
body.home-page #topNav2.navbar:not(.sticky) .m3-theme-segmented button:not(.active):not(.is-active):hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

/* ACTIVE / SELECTED Button - High Specificity in ALL states */
.m3-theme-segmented button.active,
.m3-theme-segmented button.is-active,
.m3-theme-segmented button.active:hover,
.m3-theme-segmented button.is-active:hover,
.m3-theme-segmented button.active:focus,
.m3-theme-segmented button.is-active:focus,
html[data-theme="light"] .m3-theme-segmented button.active,
html[data-theme="light"] .m3-theme-segmented button.is-active,
html[data-theme="light"] .m3-theme-segmented button.active:hover,
html[data-theme="light"] .m3-theme-segmented button.is-active:hover,
html[data-theme="dark"] .m3-theme-segmented button.active,
html[data-theme="dark"] .m3-theme-segmented button.is-active,
html[data-theme="dark"] .m3-theme-segmented button.active:hover,
html[data-theme="dark"] .m3-theme-segmented button.is-active:hover,
body.home-page #topNav2.navbar .m3-theme-segmented button.active,
body.home-page #topNav2.navbar .m3-theme-segmented button.is-active,
body.home-page #topNav2.navbar .m3-theme-segmented button.active:hover,
body.home-page #topNav2.navbar .m3-theme-segmented button.is-active:hover,
body:not(.home-page) #topNav2.navbar .m3-theme-segmented button.active,
body:not(.home-page) #topNav2.navbar .m3-theme-segmented button.is-active,
body:not(.home-page) #topNav2.navbar .m3-theme-segmented button.active:hover,
body:not(.home-page) #topNav2.navbar .m3-theme-segmented button.is-active:hover {
    background: #2196F3 !important;
    background-color: #2196F3 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.45) !important;
    opacity: 1 !important;
}

.m3-theme-segmented button.active i,
.m3-theme-segmented button.is-active i,
.m3-theme-segmented button.active:hover i,
.m3-theme-segmented button.is-active:hover i {
    color: #ffffff !important;
}

/* Language selector button modernization */
#demo-menu-lower-left.mdl-button {
    background: var(--md-sys-color-surface-container) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: var(--md-shape-corner-full) !important;
    padding: 6px 16px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mdl-menu__container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.mdl-menu__outline,
.mdl-menu__container .mdl-menu__outline,
.mdl-menu__container.is-visible .mdl-menu__outline {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.mdl-menu__container .mdl-menu {
    clip: auto !important;
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
    padding: 6px !important;
    min-width: 140px !important;
    overflow: hidden !important;
}

html[data-theme="dark"] .mdl-menu__container .mdl-menu {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}

.mdl-menu__item {
    color: var(--md-sys-color-on-surface) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: background-color 150ms ease, color 150ms ease !important;
}

html[data-theme="dark"] .mdl-menu__item {
    color: #e2e8f0 !important;
}

.mdl-menu__item:hover {
    background-color: var(--md-sys-color-primary-container) !important;
    color: var(--md-sys-color-on-primary-container) !important;
}

html[data-theme="dark"] .mdl-menu__item:hover {
    background-color: rgba(33, 150, 243, 0.18) !important;
    color: #60a5fa !important;
}

/* =========================================================================
   5. Fix Dark Overlay Sections (Header Slider, Video, About, PageHeader)
   These sections ALWAYS have dark background image overlays.
   Their text MUST ALWAYS BE LIGHT/WHITE in both Light and Dark themes!
   ========================================================================= */
.header-slider-content h1,
.header-slider-content h2,
.header-slider-content h3,
.header-slider-content h4,
.header-slider-content p,
.header-slider-content span,
.slider-1-content h1,
.slider-1-content h2,
.slider-1-content h4,
.slider-1-content p,
.slider-2-content h1,
.slider-2-content h2,
.slider-2-content h4,
.slider-2-content p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

#bgVideo h2,
#bgVideo p,
#callToAction h2,
#callToAction p,
#fOf h1,
#fOf h2,
#fOf p {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

/* Reset & Completely Remove PageHeader & Backgrounds */
#pageHeader,
.blog-page #pageHeader {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    background-image: none !important;
    overflow: hidden !important;
}

#pageHeader:before {
    display: none !important;
    background: none !important;
    content: none !important;
}

/* Fix Content Spacing for Subpages & Eliminate Top Bar Collision */
#main-content,
#main-content.page,
#blog.page,
.blog-page #blog.page {
    margin-top: 60px !important;
    padding-top: 24px !important;
    padding-bottom: 60px !important;
    background-color: var(--md-sys-color-background) !important;
}

body.has-admin-bar #main-content,
body.has-admin-bar #main-content.page,
body.has-admin-bar #blog.page,
body.has-admin-bar.blog-page #blog.page {
    margin-top: 104px !important;
    padding-top: 24px !important;
}

/* =========================================================================
   Unified Breadcrumb Architecture & Spacing Standards
   Applied Identically Across All Pages (Pages, Blog, Products, Why Us, Forms, FAQ)
   ========================================================================= */

/* Unified Breadcrumb Navigation Container */
nav[aria-label="breadcrumb"],
.m3-page-breadcrumb-nav,
.products-breadcrumb-nav,
.product-breadcrumb-nav,
.why-us-breadcrumb-nav,
.blog-breadcrumb-nav,
.article-breadcrumb-nav {
    display: block !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

/* Breadcrumb list */
.m3-breadcrumb,
.breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 6px !important;
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    list-style: none !important;
}

/* Breadcrumb items */
.m3-breadcrumb li,
.breadcrumb li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
}

/* Breadcrumb links */
.m3-breadcrumb li a,
.breadcrumb li a {
    color: var(--md-sys-color-primary) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: color 150ms ease, opacity 150ms ease !important;
}

.m3-breadcrumb li a:hover,
.breadcrumb li a:hover {
    color: var(--md-sys-color-primary-hover) !important;
    text-decoration: underline !important;
}

.m3-breadcrumb li a i,
.breadcrumb li a i {
    font-size: 14px !important;
    opacity: 0.85 !important;
}

/* Active current item */
.m3-breadcrumb li.active,
.breadcrumb li.active {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-weight: 600 !important;
}

/* Separator slash */
.m3-breadcrumb li + li:before,
.breadcrumb li + li:before,
html[dir="rtl"] .m3-breadcrumb li + li:before,
html[dir="rtl"] .breadcrumb li + li:before,
[dir="rtl"] .m3-breadcrumb li + li:before,
[dir="rtl"] .breadcrumb li + li:before {
    content: "/" !important;
    padding: 0 4px !important;
    color: var(--md-sys-color-outline-variant) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    user-select: none !important;
}

/* Unified Page Wrappers Across All Pages */
.m3-page-detail-wrapper,
.products-catalog-wrapper,
.product-detail-wrapper,
.why-us-wrapper,
.m3-faq-wrapper,
.m3-form-page-wrapper,
.blog-top-header {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 50px !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================================================
   Modern M3 Static Pages Content Card Styling
   ========================================================================= */

.m3-page-content-card {
    width: 100% !important;
    max-width: 100% !important;
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 24px !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    margin: 0 0 40px 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    transition: box-shadow 250ms ease, border-color 250ms ease !important;
}

html[data-theme="light"] .m3-page-content-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="dark"] .m3-page-content-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Image at the very top of the card */
.m3-page-featured-media {
    width: 100% !important;
    max-height: 480px !important;
    overflow: hidden !important;
    background: var(--md-sys-color-surface-container) !important;
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
    position: relative !important;
}

html[data-theme="light"] .m3-page-featured-media {
    border-bottom-color: #e2e8f0 !important;
}

html[data-theme="dark"] .m3-page-featured-media {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.m3-page-featured-img {
    width: 100% !important;
    max-height: 480px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Card Body below the image */
.m3-page-card-body {
    padding: 36px 40px !important;
}

.m3-page-main-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    color: var(--md-sys-color-on-surface) !important;
    margin: 0 0 22px 0 !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
}

html[data-theme="light"] .m3-page-main-title {
    color: #0f172a !important;
    border-bottom-color: #f1f5f9 !important;
}

html[data-theme="dark"] .m3-page-main-title {
    color: #f8fafc !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.m3-page-content-text {
    font-size: 16px !important;
    line-height: 2.1 !important;
    color: var(--md-sys-color-on-surface) !important;
}

html[data-theme="light"] .m3-page-content-text {
    color: #334155 !important;
}

html[data-theme="dark"] .m3-page-content-text {
    color: #cbd5e1 !important;
}

.m3-page-content-text p {
    margin-bottom: 20px !important;
    font-size: 16px !important;
    line-height: 2.1 !important;
    text-align: justify !important;
}

.m3-page-content-text p:last-child {
    margin-bottom: 0 !important;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .m3-page-content-card {
        border-radius: 20px !important;
        margin-bottom: 30px !important;
    }

    .m3-page-featured-media {
        max-height: 260px !important;
    }

    .m3-page-featured-img {
        max-height: 260px !important;
    }

    .m3-page-card-body {
        padding: 24px 18px !important;
    }

    .m3-page-main-title {
        font-size: 21px !important;
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }

    .m3-page-content-text,
    .m3-page-content-text p {
        font-size: 15px !important;
        line-height: 2.0 !important;
        margin-bottom: 16px !important;
    }
}

#about.section-title h2,
#about > .container > .row > .col-md-12 > .section-title h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

/* =========================================================================
   6. Global MDL Card Modernization & Theme Harmonization
   ========================================================================= */
.mdl-card {
    background-color: var(--md-sys-color-surface) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    transition: all var(--md-motion-duration-medium) var(--md-motion-easing-standard) !important;
}

/* Portfolio / Company Gallery Images - Preserving Background Images */
.portfolio-item .dh-container,
.portfolio-item .dh-container.mdl-card {
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}

/* Company Images / Portfolio Responsive Layout (3 per row on Desktop, 2 on Tablet, 1 on Mobile) */
@media (min-width: 992px) {
    #portfolio .portfolio-items .portfolio-item {
        width: 33.333333% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #portfolio .portfolio-items .portfolio-item {
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    #portfolio .portfolio-items .portfolio-item {
        width: 100% !important;
    }
}

.mdl-card__supporting-text {
    color: var(--md-sys-color-on-surface-variant) !important;
}

.mdl-card__actions {
    border-top: 1px solid var(--md-sys-color-outline-variant) !important;
}

/* Section titles */
.section-title h2 {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 800 !important;
}

.section-title p {
    color: var(--md-sys-color-on-surface-variant) !important;
}

/* Services (Why Us) Section */
#services {
    background: var(--md-sys-color-surface-container-low);
    padding: 90px 0;
}

.service-item .mdl-card:hover {
    border-color: var(--md-sys-color-primary) !important;
}

.service-item .icon {
    background: var(--md-sys-color-primary-container) !important;
    color: var(--md-sys-color-primary) !important;
    border-radius: var(--md-shape-corner-full) !important;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--md-motion-duration-short) ease;
}

.service-item .mdl-card:hover .icon {
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
}

.service-item h2 {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 700 !important;
}

.service-item p {
    color: var(--md-sys-color-on-surface-variant) !important;
    line-height: 1.8 !important;
}

/* =========================================================================
   6.1 Services (Why Us) Page Cards & Theme Harmonization
   ========================================================================= */
#services.page,
.services-page #services.page,
.products-page #services.page {
    margin-top: 60px !important;
    padding-top: 24px !important;
    padding-bottom: 70px !important;
    background-color: var(--md-sys-color-background) !important;
}

body.has-admin-bar #services.page,
body.has-admin-bar.services-page #services.page,
body.has-admin-bar.products-page #services.page {
    margin-top: 60px !important;
    padding-top: 24px !important;
}

html[data-theme="light"] #services.page {
    background-color: #f8fafc !important;
}

html[data-theme="dark"] #services.page {
    background-color: #0b0f19 !important;
}

/* Why Us Service Item Cards */
#services.page .service-item {
    background-color: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease !important;
}

html[data-theme="light"] #services.page .service-item {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="dark"] #services.page .service-item {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

#services.page .service-item:hover {
    border-color: var(--md-sys-color-primary) !important;
}

#services.page .service-description {
    padding: 36px !important;
}

#services.page .service-description h2 {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

html[data-theme="dark"] #services.page .service-description h2 {
    color: #f1f5f9 !important;
}

#services.page .service-description hr {
    border: none !important;
    border-top: 3px solid var(--md-sys-color-primary) !important;
    width: 44px !important;
    margin: 12px 0 18px !important;
    border-radius: 2px !important;
}

#services.page .service-description p {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 14.5px !important;
    line-height: 1.8 !important;
}

html[data-theme="dark"] #services.page .service-description p {
    color: #cbd5e1 !important;
}

#services.page .services-image {
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#services.page .services-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    min-height: 240px !important;
    transition: transform 300ms ease !important;
}


/* =========================================================================
   6.2 Portfolio Filter Menu M3 Rounded Corner Radius & Theming
   ========================================================================= */
.portfolio-filter-menu {
    text-align: center !important;
    margin-bottom: 50px !important;
}

.portfolio-filter-menu ul {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px !important;
    gap: 6px !important;
    border-radius: 9999px !important;
    background: var(--md-sys-color-surface-container) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    overflow: hidden !important;
    list-style: none !important;
    margin: 0 auto !important;
}

html[data-theme="light"] .portfolio-filter-menu ul {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="dark"] .portfolio-filter-menu ul {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.portfolio-filter-menu li {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 24px !important;
    margin: 0 !important;
    border-radius: 9999px !important;
    border: none !important;
    border-bottom: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    text-transform: none !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Inactive items in Light Mode */
html[data-theme="light"] .portfolio-filter-menu li:not(.active) {
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] .portfolio-filter-menu li:not(.active):hover {
    color: var(--md-sys-color-primary) !important;
    background: rgba(33, 150, 243, 0.12) !important;
    border: none !important;
    border-bottom: none !important;
}

/* Inactive items in Dark Mode */
html[data-theme="dark"] .portfolio-filter-menu li:not(.active) {
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .portfolio-filter-menu li:not(.active):hover {
    color: #60a5fa !important;
    background: rgba(33, 150, 243, 0.18) !important;
    border: none !important;
    border-bottom: none !important;
}

/* Active item in both Light & Dark Mode */
.portfolio-filter-menu li.active,
.portfolio-filter-menu li.active:hover,
html[data-theme="light"] .portfolio-filter-menu li.active,
html[data-theme="light"] .portfolio-filter-menu li.active:hover,
html[data-theme="dark"] .portfolio-filter-menu li.active,
html[data-theme="dark"] .portfolio-filter-menu li.active:hover {
    background: #2196F3 !important;
    background-color: #2196F3 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.45) !important;
}

/* =========================================================================
   6.3 Products Card Modernization (Single M3 Surface Card)
   ========================================================================= */
#projects, #team, #portfolio {
    background: var(--md-sys-color-background);
    padding: 90px 0;
}

.project-item {
    background-color: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    overflow: hidden !important;
    transition: all var(--md-motion-duration-short) ease !important;
    height: 100%;
}

.project-item:hover {
    border-color: var(--md-sys-color-primary) !important;
}

.project-item .mdl-card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

.project-item-content {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--md-sys-color-on-surface) !important;
}

.project-item h2 a {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 700 !important;
    transition: color var(--md-motion-duration-short) ease;
}

.project-item h2 a:hover {
    color: var(--md-sys-color-primary) !important;
}

.project-item p {
    color: var(--md-sys-color-on-surface-variant) !important;
}

.project-item .action-bar {
    border-top: 1px solid var(--md-sys-color-outline-variant) !important;
    background: transparent !important;
}

.project-item .action-bar .read-more {
    background-color: var(--md-sys-color-surface-container) !important;
    color: var(--md-sys-color-on-surface) !important;
    border-radius: var(--md-shape-corner-full) !important;
    font-weight: 600 !important;
    transition: all var(--md-motion-duration-short) ease;
}

.project-item:hover .action-bar .read-more,
.project-item.active .action-bar .read-more {
    background-color: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
}

.project-item .action-bar .icon {
    border-color: var(--md-sys-color-outline-variant) !important;
}

.project-item .action-bar .icon a {
    color: var(--md-sys-color-on-surface-variant) !important;
}

.project-item:hover .action-bar .icon a,
.project-item .action-bar .icon a:hover {
    color: var(--md-sys-color-primary) !important;
}

.team-item .mdl-card:hover {
    border-color: var(--md-sys-color-primary) !important;
}

.team-item h2 {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.team-item p {
    color: var(--md-sys-color-primary) !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
}

/* Testimonials & Brands */
#testimonial {
    position: relative;
    padding: 90px 0;
}

.testimonial-item {
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    box-shadow: var(--md-sys-elevation-level2) !important;
    padding: 30px !important;
}

.testimonial-item p {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
}

.testimonial-item h3 {
    color: var(--md-sys-color-primary) !important;
    font-weight: 700 !important;
}

#brands {
    background: var(--md-sys-color-surface-container-low);
    padding: 60px 0;
}

.brand-item img {
    filter: grayscale(80%) opacity(0.7);
    transition: all var(--md-motion-duration-medium) ease;
    max-height: 55px;
    object-fit: contain;
}

.brand-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* About Plato & About Motor Cards */
#about {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 0;
}

#about .mdl-card {
    background: var(--md-sys-color-surface) !important;
    color: var(--md-sys-color-on-surface) !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    box-shadow: var(--md-sys-elevation-level3) !important;
    padding: 40px 50px !important;
}

#about #about-text {
    color: var(--md-sys-color-on-surface) !important;
    line-height: 2 !important;
    font-size: 15.5px !important;
}

/* Contact Us Window & Form */
#contact {
    position: relative;
}

.contact-window {
    background-color: var(--md-sys-color-surface) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    box-shadow: var(--md-sys-elevation-level3) !important;
    padding: 50px 0 70px !important;
}

.contact-address h2 {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

.contact-address p,
.contact-address span {
    color: var(--md-sys-color-on-surface-variant) !important;
}

.contact-address i.fa {
    color: var(--md-sys-color-primary) !important;
}

/* Social Icons Harmonization (Hover color fix) */
.social-links li a,
.team-social-links li a,
.social-share li a,
.mainNav-social-links li a {
    background: var(--md-sys-color-surface-container) !important;
    color: var(--md-sys-color-on-surface) !important;
    border-radius: 50% !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    transition: all var(--md-motion-duration-short) ease !important;
}

.social-links li a i,
.team-social-links li a i,
.social-share li a i,
.mainNav-social-links li a i {
    color: inherit !important;
}

.social-links li a:hover,
.team-social-links li a:hover,
.social-share li a:hover,
.mainNav-social-links li a:hover {
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border-color: var(--md-sys-color-primary) !important;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.35) !important;
}

.social-links li a:hover i,
.team-social-links li a:hover i,
.social-share li a:hover i,
.mainNav-social-links li a:hover i {
    color: #ffffff !important;
}

/* MDL Form Textfields & Textareas */
.mdl-textfield__input {
    color: var(--md-sys-color-on-surface) !important;
    border-bottom: 1px solid var(--md-sys-color-outline) !important;
    background: transparent !important;
}

.mdl-textfield__label {
    color: var(--md-sys-color-on-surface-variant) !important;
}

.mdl-textfield.is-focused .mdl-textfield__label {
    color: var(--md-sys-color-primary) !important;
}

.mdl-textfield.is-focused .mdl-textfield__input {
    border-bottom-color: var(--md-sys-color-primary) !important;
}

/* Textareas Resizing & Default Large Height */
textarea.mdl-textfield__input,
.contact-form textarea,
.contact-form .mdl-textfield textarea,
textarea {
    resize: vertical !important;
    min-height: 140px !important;
    line-height: 1.6 !important;
}

/* Blog & Sidebar */
#blog,
#blog.page {
    background-color: var(--md-sys-color-background) !important;
}

.blog-page-content,
.blog-page-sidebar {
    padding-top: 0 !important;
}

html[data-theme="light"] #blog,
html[data-theme="light"] #blog.page {
    background-color: #f8fafc !important;
}

html[data-theme="dark"] #blog,
html[data-theme="dark"] #blog.page {
    background-color: #0f172a !important;
}

.blog-item:not(.blog-details) {
    display: flex !important;
    margin-bottom: 30px !important;
}

.blog-item:not(.blog-details) .mdl-card.blog-card,
.blog-item:not(.blog-details) .mdl-card {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    overflow: hidden !important;
    transition: all var(--md-motion-duration-short) ease !important;
}

.blog-item:not(.blog-details):hover .mdl-card.blog-card,
.blog-item:not(.blog-details):hover .mdl-card {
    border-color: var(--md-sys-color-primary) !important;
}

.blog-item:not(.blog-details) .mdl-card__supporting-text {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 24px !important;
    width: 100% !important;
}

.blog-item h2.blog-item-title {
    margin: 0 0 10px 0 !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
}

.blog-item h2.blog-item-title a {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.blog-item h2.blog-item-title a:hover {
    color: var(--md-sys-color-primary) !important;
}

.blog-item:not(.blog-details) .mdl-card__supporting-text p {
    flex-grow: 1 !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.blog-item:not(.blog-details) .mdl-card__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 20px !important;
    border-top: 1px solid var(--md-sys-color-card-border) !important;
    background: transparent !important;
}

/* Read More Button (Pill shaped, matching primary buttons) */
.blog-item a.blog-item-full-post-link,
a.blog-item-full-post-link {
    background-color: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border-radius: var(--md-shape-corner-full) !important;
    padding: 7px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: normal !important;
    height: auto !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3) !important;
    transition: all var(--md-motion-duration-short) ease !important;
    text-decoration: none !important;
    border: none !important;
}

.blog-item a.blog-item-full-post-link:hover,
a.blog-item-full-post-link:hover {
    background-color: #1976D2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.45) !important;
}

.blog-item a.blog-item-comments-link,
a.blog-item-comments-link {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.blog-item a.blog-item-comments-link:hover,
a.blog-item-comments-link:hover {
    color: var(--md-sys-color-primary) !important;
}

/* =========================================================================
   Single Article Details Page (Reading View - Fixed Layout & Theme Adaptation)
   ========================================================================= */
.blog-item.blog-details,
.blog-details {
    display: block !important;
    width: 100% !important;
    float: none !important;
    margin-bottom: 0 !important;
}

.blog-details > .mdl-card {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    margin-bottom: 30px !important;
    overflow: hidden !important;
}

html[data-theme="dark"] .blog-details > .mdl-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.blog-details .mdl-card__supporting-text {
    display: block !important;
    width: 100% !important;
    padding: 32px 30px !important;
    color: var(--md-sys-color-on-surface) !important;
}

.blog-details .post-time-date {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 13.5px !important;
}

.blog-details .post-time-date a,
.blog-details .post-time-date span {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 13px !important;
}

.blog-details .post-time-date a:hover {
    color: var(--md-sys-color-primary) !important;
}

.blog-details .blog-item-img {
    margin-bottom: 24px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.blog-details .blog-item-img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 14px !important;
}

.article-content.entry-content {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 16px !important;
    line-height: 2 !important;
    margin-top: 20px;
    word-break: break-word !important;
}

html[data-theme="dark"] .article-content.entry-content {
    color: #cbd5e1 !important;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 800 !important;
    margin: 28px 0 14px 0 !important;
    line-height: 1.5 !important;
}

html[data-theme="dark"] .article-content h1,
html[data-theme="dark"] .article-content h2,
html[data-theme="dark"] .article-content h3,
html[data-theme="dark"] .article-content h4,
html[data-theme="dark"] .article-content h5,
html[data-theme="dark"] .article-content h6 {
    color: #f8fafc !important;
}

.article-content p {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 16px !important;
    line-height: 2 !important;
    margin-bottom: 18px !important;
}

html[data-theme="dark"] .article-content p {
    color: #cbd5e1 !important;
}

/* =========================================================================
   Article Typography Formatting: Bold, Italic, Underline, Strikethrough
   ========================================================================= */

/* Bold (strong, b) */
.article-content strong,
.article-content b {
    font-weight: 700 !important;
    transition: color 150ms ease;
}

html[data-theme="light"] .article-content strong,
html[data-theme="light"] .article-content b {
    color: #0f172a !important;
}

html[data-theme="dark"] .article-content strong,
html[data-theme="dark"] .article-content b {
    color: #ffffff !important;
}

/* Italic (em, i) */
.article-content em,
.article-content i {
    font-style: italic !important;
    transition: color 150ms ease;
}

html[data-theme="light"] .article-content em,
html[data-theme="light"] .article-content i {
    color: #1e293b !important;
}

html[data-theme="dark"] .article-content em,
html[data-theme="dark"] .article-content i {
    color: #cbd5e1 !important;
}

/* Underline (u) */
.article-content u {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 1.5px !important;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

html[data-theme="light"] .article-content u {
    color: #0f172a !important;
    text-decoration-color: #2196F3 !important;
}

html[data-theme="dark"] .article-content u {
    color: #f8fafc !important;
    text-decoration-color: #60a5fa !important;
}

/* Strikethrough (s, strike, del) */
.article-content s,
.article-content strike,
.article-content del {
    text-decoration: line-through !important;
    text-decoration-thickness: 1.5px !important;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

html[data-theme="light"] .article-content s,
html[data-theme="light"] .article-content strike,
html[data-theme="light"] .article-content del {
    color: #64748b !important;
    text-decoration-color: #ef4444 !important;
}

html[data-theme="dark"] .article-content s,
html[data-theme="dark"] .article-content strike,
html[data-theme="dark"] .article-content del {
    color: #94a3b8 !important;
    text-decoration-color: #f87171 !important;
}

/* Combined formatting (e.g. strong inside em or u) */
html[data-theme="light"] .article-content strong em,
html[data-theme="light"] .article-content em strong,
html[data-theme="light"] .article-content strong u,
html[data-theme="light"] .article-content u strong {
    color: #0f172a !important;
}

html[data-theme="dark"] .article-content strong em,
html[data-theme="dark"] .article-content em strong,
html[data-theme="dark"] .article-content strong u,
html[data-theme="dark"] .article-content u strong {
    color: #ffffff !important;
}

.article-content blockquote {
    background: var(--md-sys-color-surface-container) !important;
    border-right: 4px solid var(--md-sys-color-primary) !important;
    border-left: none !important;
    color: var(--md-sys-color-on-surface) !important;
    padding: 16px 22px !important;
    border-radius: 8px !important;
    font-style: italic !important;
    margin: 24px 0 !important;
}

html[dir="ltr"] .article-content blockquote {
    border-right: none !important;
    border-left: 4px solid var(--md-sys-color-primary) !important;
}

html[data-theme="dark"] .article-content blockquote {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 20px auto !important;
    display: block !important;
}

.article-content img[data-align="center"],
.entry-content img[data-align="center"] {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

.article-content img[data-align="right"],
.entry-content img[data-align="right"] {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: block !important;
}

.article-content img[data-align="left"],
.entry-content img[data-align="left"] {
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
}

.article-content ul,
.article-content ol {
    padding-inline-start: 28px !important;
    padding-inline-end: 0 !important;
    margin: 18px 0 24px !important;
}

.article-content ul {
    list-style-type: disc !important;
}

.article-content ol {
    list-style-type: decimal !important;
}

.article-content li {
    margin-bottom: 10px !important;
    line-height: 1.85 !important;
    font-size: 15px;
}

/* Light Theme: crisp slate text, signature Plato blue bullet marker */
html[data-theme="light"] .article-content ul,
html[data-theme="light"] .article-content ol,
html[data-theme="light"] .article-content li {
    color: #334155 !important;
}

html[data-theme="light"] .article-content li::marker {
    color: #2196F3 !important;
}

/* Dark Theme: vibrant off-white text, glowing blue bullet marker */
html[data-theme="dark"] .article-content ul,
html[data-theme="dark"] .article-content ol,
html[data-theme="dark"] .article-content li {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .article-content li::marker {
    color: #60a5fa !important;
}

/* Plato Editor Links */
.article-content a {
    color: var(--md-sys-color-primary) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 150ms ease;
}

.article-content a:hover {
    color: var(--md-sys-color-primary-hover) !important;
}

html[data-theme="dark"] .article-content a {
    color: #60a5fa !important;
}

html[data-theme="dark"] .article-content a:hover {
    color: #93c5fd !important;
}

/* Plato Editor Code Blocks & Inline Code */
.article-content pre {
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    direction: ltr !important;
    text-align: left !important;
    overflow-x: auto !important;
    margin: 20px 0 !important;
}

html[data-theme="dark"] .article-content pre {
    background-color: #0b0f19 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #38bdf8 !important;
}

.article-content code {
    background-color: rgba(33, 150, 243, 0.1) !important;
    color: #0284c7 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-family: 'Consolas', 'Monaco', monospace !important;
    font-size: 13.5px !important;
    direction: ltr !important;
    display: inline-block;
}

html[data-theme="dark"] .article-content code {
    background-color: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}

.article-content pre code {
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
    border-radius: 0 !important;
    display: block;
}

/* Plato Editor Horizontal Divider */
.article-content hr {
    border: 0 !important;
    border-top: 1px solid var(--md-sys-color-outline-variant) !important;
    margin: 28px 0 !important;
}

html[data-theme="light"] .article-content hr {
    border-top-color: #e2e8f0 !important;
}

html[data-theme="dark"] .article-content hr {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Plato Editor Figures & Captions */
.article-content figure,
.article-content .pe-image-box {
    margin: 24px auto !important;
    text-align: center;
    max-width: 100%;
}

.article-content figcaption {
    font-size: 13px !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    margin-top: 8px !important;
    font-style: italic;
    text-align: center;
}

/* =========================================================================
   Aparat & Video Embeds (Iframe, Script, AMP & Responsive Wrappers)
   ========================================================================= */

.article-content .h_iframe-aparat_embed_frame,
.h_iframe-aparat_embed_frame,
.article-content .pe-video-wrapper,
.pe-video-wrapper,
.article-content .plato-video-wrapper,
.plato-video-wrapper,
.responsive-video-embed {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 28px 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #000000 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* When child ratio span is present (Aparat standard ratio) */
.h_iframe-aparat_embed_frame span.ratio,
.h_iframe-aparat_embed_frame span[style*="padding-top"],
.pe-video-wrapper span.ratio,
.pe-video-wrapper > span[style*="padding-top"],
.responsive-video-embed > span[style*="padding-top"] {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    pointer-events: none;
}

/* If the wrapper has a child span, ensure parent does not double padding */
.h_iframe-aparat_embed_frame,
.pe-video-wrapper:has(span),
.plato-video-wrapper:has(span),
.responsive-video-embed:has(span) {
    padding-bottom: 0 !important;
    height: auto !important;
}

/* If no child span is present, fall back to container padding-bottom */
.pe-video-wrapper:not(:has(span)),
.plato-video-wrapper:not(:has(span)),
.responsive-video-embed:not(:has(span)) {
    padding-bottom: 56.25% !important;
    height: 0 !important;
}

/* Video & Iframe Fill */
.h_iframe-aparat_embed_frame iframe,
.pe-video-wrapper iframe,
.plato-video-wrapper iframe,
.responsive-video-embed iframe,
.pe-video-wrapper video,
.plato-video-wrapper video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 16px !important;
}

html[data-theme="dark"] .h_iframe-aparat_embed_frame,
html[data-theme="dark"] .pe-video-wrapper {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .h_iframe-aparat_embed_frame,
html[data-theme="light"] .pe-video-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Plato Editor Tables Container */
.pe-table-responsive {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 12px;
}

/* Post Metadata (Category Row) */
.post-metadata {
    background: var(--md-sys-color-surface-container) !important;
    border-top: 1px solid var(--md-sys-color-card-border) !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    padding: 16px 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

html[data-theme="dark"] .post-metadata {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.post-metadata .post-category {
    margin: 0 !important;
    font-size: 14px !important;
}

.post-metadata .post-category .link {
    color: var(--md-sys-color-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Post Author & Social Share Row */
.author-social {
    margin-bottom: 24px !important;
}

.post-author.mdl-card {
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    border-radius: var(--md-shape-corner-large) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    width: 100% !important;
    padding: 14px 20px !important;
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
}

html[data-theme="dark"] .post-author.mdl-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.post-author .mdl-card__supporting-text {
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.post-author img {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 48px !important;
    height: 48px !important;
    border: 2px solid var(--md-sys-color-outline-variant) !important;
}

.post-author a.post-author-name {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    margin-inline-start: 12px !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .post-author a.post-author-name {
    color: #f1f5f9 !important;
}

.post-author .social-share {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    color: var(--md-sys-color-on-surface-variant) !important;
}

.post-author .social-share li a,
.post-author .social-share li button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: var(--md-sys-color-surface-container) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .post-author .social-share li a,
html[data-theme="dark"] .post-author .social-share li button {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.post-author .social-share li a:hover,
.post-author .social-share li button:hover {
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border-color: var(--md-sys-color-primary) !important;
    transform: none !important;
}

.post-author .social-share li a.social-btn-telegram:hover {
    background: #0088cc !important;
    border-color: #0088cc !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.35) !important;
}

.post-author .social-share li a.social-btn-whatsapp:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35) !important;
}

.post-author .social-share li a.social-btn-twitter:hover {
    background: #1da1f2 !important;
    border-color: #1da1f2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(29, 161, 242, 0.35) !important;
}

.post-author .social-share li a.social-btn-linkedin:hover {
    background: #0077b5 !important;
    border-color: #0077b5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 119, 181, 0.35) !important;
}

/* Comments Section */
.post-comments {
    margin: 30px 0 !important;
}

.post-comments h2.post-comments-title,
.post-comment-form h2.post-comments-title {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    margin: 0 0 14px 0 !important;
}

html[data-theme="dark"] .post-comments h2.post-comments-title,
html[data-theme="dark"] .post-comment-form h2.post-comments-title {
    color: #f1f5f9 !important;
}

.post-comments hr {
    border-color: var(--md-sys-color-outline-variant) !important;
    margin-bottom: 20px !important;
}

html[data-theme="dark"] .post-comments hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.post-comments ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.post-comments > ul > li {
    margin-bottom: 16px !important;
}

.single-comment.mdl-card {
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    border-radius: var(--md-shape-corner-large) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    padding: 20px 24px !important;
    width: 100% !important;
}

html[data-theme="dark"] .single-comment.mdl-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.single-comment .comment-thumb {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    width: 100% !important;
}

.single-comment .comment-thumb img {
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    object-fit: cover !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
}

.single-comment .comment-meta {
    margin: 0 !important;
    font-size: 14px !important;
    color: var(--md-sys-color-on-surface) !important;
}

.single-comment .comment-meta a {
    color: var(--md-sys-color-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.single-comment .comment-meta .date {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 12px !important;
    margin-top: 2px !important;
}

.single-comment .comment-text p {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 14.5px !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}

html[data-theme="dark"] .single-comment .comment-text p {
    color: #cbd5e1 !important;
}

/* Nested replies */
.post-comments ul ul {
    padding-inline-start: 32px !important;
    border-inline-start: 3px solid var(--md-sys-color-primary) !important;
    margin-top: 12px !important;
}

/* Comment Form */
.post-comment-form.mdl-card {
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    padding: 28px !important;
    width: 100% !important;
    margin-top: 28px !important;
}

html[data-theme="dark"] .post-comment-form.mdl-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.post-comment-form .mdl-card__title {
    padding: 0 0 14px 0 !important;
}

.post-comment-form .post-comment-form-group {
    padding: 0 !important;
    width: 100% !important;
}

.post-comment-form .mdl-textfield {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
}

.post-comment-form textarea.mdl-textfield__input {
    background: var(--md-sys-color-surface-container) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    color: var(--md-sys-color-on-surface) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: 14.5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 120px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

html[data-theme="dark"] .post-comment-form textarea.mdl-textfield__input {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}

.post-comment-form textarea.mdl-textfield__input:focus {
    border-color: var(--md-sys-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2) !important;
}

.post-comment-form input[type="submit"],
.post-comment-form button[type="submit"],
.post-comment-form a.mdl-button {
    background-color: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border-radius: var(--md-shape-corner-full) !important;
    padding: 0 32px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.post-comment-form input[type="submit"]:hover,
.post-comment-form button[type="submit"]:hover,
.post-comment-form a.mdl-button:hover {
    background-color: var(--md-sys-color-primary-hover) !important;
}

/* =========================================================================
   Blog Sidebar Area (M3 Cards, Light/Dark Surface, Clean Widgets)
   ========================================================================= */
.blog-page-sidebar {
    padding-top: 0;
}

.blog-page-sidebar .mdl-card {
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    border-radius: var(--md-shape-corner-extra-large) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
    width: 100% !important;
    min-height: 0 !important;
    transition: background-color var(--md-motion-duration-medium) ease,
                border-color var(--md-motion-duration-medium) ease;
}

html[data-theme="dark"] .blog-page-sidebar .mdl-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.blog-page-sidebar .widget {
    padding: 24px !important;
}

.blog-page-sidebar .widget-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: var(--md-sys-color-on-surface) !important;
    margin: 0 0 18px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--md-sys-color-outline-variant) !important;
    position: relative !important;
    text-transform: none !important;
}

html[data-theme="dark"] .blog-page-sidebar .widget-title {
    color: #f1f5f9 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.blog-page-sidebar .widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 36px;
    height: 2px;
    background-color: var(--md-sys-color-primary) !important;
}

html[dir="ltr"] .blog-page-sidebar .widget-title::after {
    right: auto;
    left: 0;
}

/* Sidebar Search Widget */
.blog-page-sidebar .widget.search {
    padding: 16px 20px !important;
}

.blog-page-sidebar .widget.search .mdl-textfield {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.blog-page-sidebar .widget.search input.mdl-textfield__input {
    background: var(--md-sys-color-surface-container) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 9999px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    color: var(--md-sys-color-on-surface) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

html[data-theme="dark"] .blog-page-sidebar .widget.search input.mdl-textfield__input {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

.blog-page-sidebar .widget.search input.mdl-textfield__input:focus {
    border-color: var(--md-sys-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2) !important;
    outline: none !important;
    border-bottom: 1px solid var(--md-sys-color-primary) !important;
}

/* Eliminate the horizontal line across the middle from MDL textfield */
.blog-page-sidebar .widget.search .mdl-textfield__label:after,
.blog-page-sidebar .widget.search .mdl-textfield.is-focused .mdl-textfield__label:after,
.blog-page-sidebar .widget.search .mdl-textfield:after,
.blog-page-sidebar .widget.search .mdl-textfield::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.blog-page-sidebar .widget.search label.mdl-textfield__label {
    top: 10px !important;
    padding: 0 18px !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 13.5px !important;
    border-bottom: none !important;
}

.blog-page-sidebar .widget.search .mdl-textfield.is-focused label.mdl-textfield__label,
.blog-page-sidebar .widget.search .mdl-textfield.is-dirty label.mdl-textfield__label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Sidebar Recent Items Widget */
.widget.recent-items .footer-thumb .row-holder {
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
}

html[data-theme="dark"] .widget.recent-items .footer-thumb .row-holder {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.widget.recent-items .footer-thumb .row-holder:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.widget.recent-items .left-col {
    flex-shrink: 0 !important;
}

.widget.recent-items .left-col img {
    border-radius: 10px !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    width: 65px !important;
    height: 52px !important;
    object-fit: cover !important;
}

html[data-theme="dark"] .widget.recent-items .left-col img {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.widget.recent-items .right-col {
    flex-grow: 1 !important;
}

.widget.recent-items a.footer-thumb-link {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    display: block !important;
    margin-bottom: 4px !important;
    text-decoration: none !important;
    transition: color 150ms ease !important;
}

html[data-theme="dark"] .widget.recent-items a.footer-thumb-link {
    color: #f1f5f9 !important;
}

.widget.recent-items a.footer-thumb-link:hover {
    color: var(--md-sys-color-primary) !important;
}

.widget.recent-items .footer-thumb-text {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
}

html[data-theme="dark"] .widget.recent-items .footer-thumb-text {
    color: #94a3b8 !important;
}

.widget.recent-items span.footer-thumb-date {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 11.5px !important;
    display: block !important;
}

html[data-theme="dark"] .widget.recent-items span.footer-thumb-date {
    color: #64748b !important;
}

/* Sidebar Categories Widget */
.widget.categories ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget.categories li {
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

html[data-theme="dark"] .widget.categories li {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.widget.categories li:last-child {
    border-bottom: none !important;
}

.widget.categories li a {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 11px 0 !important;
    display: block !important;
    text-decoration: none !important;
    transition: all 150ms ease !important;
}

html[data-theme="dark"] .widget.categories li a {
    color: #cbd5e1 !important;
}

.widget.categories li a:hover {
    color: var(--md-sys-color-primary) !important;
    padding-inline-start: 6px !important;
}

.widget.categories li::before {
    background: var(--md-sys-color-primary) !important;
}
}

.blog-sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--md-sys-color-primary);
}

html[dir="ltr"] .blog-sidebar .widget-title::after {
    right: auto;
    left: 0;
}

.blog-sidebar .widget a {
    color: var(--md-sys-color-on-surface) !important;
}

.blog-sidebar .widget a:hover {
    color: var(--md-sys-color-primary) !important;
}

/* Footer Container & Theming */
#footer {
    background: var(--md-sys-color-surface-container) !important;
    color: var(--md-sys-color-on-surface) !important;
    border-top: 1px solid var(--md-sys-color-outline-variant) !important;
    padding: 70px 0 30px !important;
}

html[data-theme="dark"] #footer {
    background: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#footer h4, #footer .widget-title, #footer .footer-title {
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 700 !important;
}

/* Footer Section Title Dividers & Accent */
.footer-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    position: relative !important;
    padding-bottom: 14px !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
}

.footer-title:before {
    content: " " !important;
    height: 1px !important;
    width: 100% !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    background: var(--md-sys-color-outline-variant) !important;
}

html[data-theme="dark"] .footer-title:before {
    background: rgba(255, 255, 255, 0.1) !important;
}

.footer-title:after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: var(--md-sys-color-primary) !important;
    border-radius: 2px !important;
}

html[dir="ltr"] .footer-title:after {
    right: auto !important;
    left: 0 !important;
}

#footer p, #footer li, #footer a {
    color: var(--md-sys-color-on-surface-variant) !important;
}

#footer a:hover {
    color: var(--md-sys-color-primary) !important;
}

#footer .form-control {
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    color: var(--md-sys-color-on-surface) !important;
    border-radius: var(--md-shape-corner-full) !important;
    padding: 10px 18px !important;
}

#footer .form-control:focus {
    border-color: var(--md-sys-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2) !important;
}

/* Footer Dividers: Links Widget */
.links-widget ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.links-widget li a {
    color: var(--md-sys-color-on-surface-variant) !important;
    display: block !important;
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
    padding: 9px 0 !important;
    text-decoration: none !important;
    transition: color 150ms ease, border-color 150ms ease, padding-right 150ms ease, padding-left 150ms ease !important;
}

html[data-theme="dark"] .links-widget li a {
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.links-widget li:last-child a {
    border-bottom: none !important;
}

.links-widget li a:hover {
    color: var(--md-sys-color-primary) !important;
    border-bottom-color: var(--md-sys-color-primary) !important;
}

/* Footer Dividers: Latest News Widget */
#footer .latest-news-widget .row-holder {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
}

html[data-theme="dark"] #footer .latest-news-widget .row-holder {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#footer .latest-news-widget .row-holder:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#footer .latest-news-widget .left-col {
    width: 75px !important;
    height: 75px !important;
    flex-shrink: 0 !important;
}

#footer .latest-news-widget .left-col img {
    width: 75px !important;
    height: 75px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] #footer .latest-news-widget .left-col img {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#footer .latest-news-widget .right-col {
    flex-grow: 1 !important;
    padding: 0 !important;
}

#footer a.footer-thumb-link {
    color: var(--md-sys-color-on-surface) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    display: block !important;
    margin-bottom: 4px !important;
    text-decoration: none !important;
    transition: color 150ms ease !important;
}

html[data-theme="dark"] #footer a.footer-thumb-link {
    color: #f1f5f9 !important;
}

#footer a.footer-thumb-link:hover {
    color: var(--md-sys-color-primary) !important;
}

#footer .footer-thumb-text {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
}

#footer .footer-thumb-date {
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 11px !important;
}

#footer .footer-thumb-text-italic {
    color: var(--md-sys-color-primary) !important;
}

/* Footer Tags Widget Harmonization */
.tags-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tags-widget ul li {
    display: inline-block;
    margin: 0 4px 8px 0;
}

#footer .tags-widget ul li a,
#footer .tags-widget a,
#footer .tags-widget a.mdl-button--accent.mdl-button--raised,
.tags-widget ul li a,
.tags-widget a.mdl-button--accent.mdl-button--raised {
    background-color: var(--md-sys-color-surface) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: var(--md-shape-corner-full) !important;
    padding: 6px 14px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    box-shadow: none !important;
    display: inline-block !important;
    height: auto !important;
    line-height: normal !important;
    transition: all var(--md-motion-duration-short) ease !important;
}

#footer .tags-widget ul li a:hover,
#footer .tags-widget a:hover,
#footer .tags-widget a.mdl-button--accent.mdl-button--raised:hover,
.tags-widget ul li a:hover,
.tags-widget a.mdl-button--accent.mdl-button--raised:hover {
    background-color: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border-color: var(--md-sys-color-primary) !important;
    transform: none !important;
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.35) !important;
}

html[data-theme="dark"] #footer .tags-widget ul li a,
html[data-theme="dark"] #footer .tags-widget a,
html[data-theme="dark"] .tags-widget ul li a,
html[data-theme="dark"] .tags-widget a.mdl-button--accent.mdl-button--raised {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] #footer .tags-widget ul li a:hover,
html[data-theme="dark"] #footer .tags-widget a:hover,
html[data-theme="dark"] .tags-widget ul li a:hover,
html[data-theme="dark"] .tags-widget a.mdl-button--accent.mdl-button--raised:hover {
    background-color: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border-color: var(--md-sys-color-primary) !important;
}

/* Copyright Bar & Top Divider Harmonization */
#copyright {
    background-color: var(--md-sys-color-surface-container-high) !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    border-top: 1px solid var(--md-sys-color-outline-variant) !important;
    padding: 24px 0 !important;
}

html[data-theme="dark"] #copyright {
    background-color: #0b0f19 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#copyright p {
    color: var(--md-sys-color-on-surface-variant) !important;
    margin: 0 !important;
    font-size: 13.5px;
    text-align: center;
}

#copyright a {
    color: var(--md-sys-color-primary) !important;
    font-weight: 700 !important;
    transition: color 150ms ease;
}

#copyright a:hover {
    color: var(--md-sys-color-primary-hover) !important;
    text-decoration: underline;
}

/* General Footer Divider / hr */
#footer hr,
#footer .divider {
    border: 0 !important;
    border-top: 1px solid var(--md-sys-color-outline-variant) !important;
    margin: 20px 0 !important;
}

html[data-theme="dark"] #footer hr,
html[data-theme="dark"] #footer .divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Dark Mode Specific Tweaks */
html[data-theme="dark"] #header {
    background-color: var(--md-sys-color-background) !important;
}

html[data-theme="dark"] .article-content {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .article-content h1,
html[data-theme="dark"] .article-content h2,
html[data-theme="dark"] .article-content h3,
html[data-theme="dark"] .article-content h4,
html[data-theme="dark"] .article-content h5,
html[data-theme="dark"] .article-content h6 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .article-content blockquote {
    background-color: #1e293b !important;
    border-color: var(--md-sys-color-primary) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .article-content table {
    border-color: #334155 !important;
}

html[data-theme="dark"] .article-content th,
html[data-theme="dark"] .article-content td {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .article-content thead th {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .article-content pre {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #38bdf8 !important;
}

html[data-theme="dark"] .article-content code {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
}

/* =========================================================================
   Preloader M3 Harmonization & Stacking Order
   Navbar & Admin Bar must be strictly BEHIND the Preloader Doors (z-index < 999998)
   ========================================================================= */
#preloader {
    background: transparent !important;
    background-color: transparent !important;
    pointer-events: none !important;
    border: none !important;
    box-shadow: none !important;
}

#preloader .left-door,
#preloader .right-door {
    position: fixed !important;
    top: 0 !important;
    height: 100% !important;
    z-index: 999998 !important;
    background-color: #ffffff !important;
    pointer-events: auto;
}

html[data-theme="dark"] #preloader .left-door,
html[data-theme="dark"] #preloader .right-door {
    background-color: #0b0f19 !important;
}

lottie-player,
#preloader lottie-player {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999 !important;
}

html[data-theme="dark"] .owl-page span {
    border-color: var(--md-sys-color-primary) !important;
}

html[data-theme="dark"] .owl-page.active span {
    background-color: var(--md-sys-color-primary) !important;
}

/* Blog Comments & Post Detail Harmonization */
.single-comment,
.post-author,
.post-comment-form {
    background-color: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-card-border) !important;
    color: var(--md-sys-color-on-surface) !important;
}

.post-comments-title {
    color: var(--md-sys-color-on-surface) !important;
}

.comment-meta a {
    color: var(--md-sys-color-primary) !important;
    font-weight: 700;
}

.comment-meta .date {
    color: var(--md-sys-color-on-surface-variant) !important;
}

.comment-text p {
    color: var(--md-sys-color-on-surface) !important;
}

.social-share li {
    color: var(--md-sys-color-on-surface-variant) !important;
}

.social-share li a {
    color: var(--md-sys-color-on-surface) !important;
}

.social-share li a:hover {
    color: var(--md-sys-color-primary) !important;
}

/* =========================================================================
   Modern 404 Error Page (M3 Design, Uniform Pill Buttons, Light/Dark)
   ========================================================================= */
.error-404-container {
    padding: 20px 0 60px 0;
}

.error-404-card {
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 28px !important;
    box-shadow: var(--md-sys-elevation-level2) !important;
    padding: 60px 30px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    transition: background-color var(--md-motion-duration-medium) ease,
                border-color var(--md-motion-duration-medium) ease;
}

html[data-theme="dark"] .error-404-card {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.error-404-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    user-select: none;
}

.error-digit {
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    color: var(--md-sys-color-primary) !important;
    letter-spacing: -3px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', 'Roboto', sans-serif !important;
}

.error-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.12);
    color: var(--md-sys-color-primary);
    font-size: 46px;
    animation: errorPulse 3s ease-in-out infinite alternate;
}

@keyframes errorPulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(15deg); }
    100% { transform: scale(1) rotate(-10deg); }
}

.error-404-title {
    font-size: 26px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    color: var(--md-sys-color-on-surface) !important;
    margin: 0 0 15px 0;
}

html[data-theme="dark"] .error-404-title {
    color: #f1f5f9 !important;
}

.error-404-desc {
    font-size: 15px;
    line-height: 1.9;
    font-family: 'IRANSansX', 'IRANSansXV', sans-serif !important;
    font-weight: 400 !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    max-width: 620px;
    margin: 0 auto 35px;
}

html[data-theme="dark"] .error-404-desc {
    color: #94a3b8 !important;
}

.error-404-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

.error-search-form {
    display: flex;
    align-items: center;
    background: var(--md-sys-color-surface-container) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 9999px !important;
    padding: 4px;
    transition: all 0.2s ease;
}

html[data-theme="dark"] .error-search-form {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.error-search-form:focus-within {
    border-color: var(--md-sys-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2) !important;
}

.error-search-input {
    flex: 1;
    height: 42px;
    border: none !important;
    background: transparent !important;
    color: var(--md-sys-color-on-surface) !important;
    padding: 0 20px;
    font-size: 14px;
    font-family: 'IRANSansX', 'IRANSansXV', sans-serif !important;
    font-weight: 400 !important;
    outline: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .error-search-input {
    color: #f1f5f9 !important;
}

.error-search-input::placeholder {
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.7;
}

.error-search-btn {
    height: 42px;
    padding: 0 22px;
    border-radius: 9999px !important;
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 14px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.error-search-btn:hover {
    background: var(--md-sys-color-primary-hover) !important;
}

.error-404-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

/* Quick Controls Bar for Error Pages (Language & Theme) */
.error-controls-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--md-sys-color-surface-container, #f1f5f9);
    border: 1px solid var(--md-sys-color-outline-variant, #e2e8f0);
    border-radius: 9999px;
    padding: 4px 14px;
    margin: 0 auto 30px auto;
}

html[data-theme="dark"] .error-controls-bar {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
}

.error-controls-bar .m3-lang-segmented {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: transparent;
    border: none;
    padding: 0;
}

.error-controls-bar .m3-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    color: var(--md-sys-color-on-surface-variant, #64748b);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.error-controls-bar .m3-lang-link.is-active {
    background: var(--md-sys-color-primary, #2196F3);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.error-controls-bar .m3-lang-link:not(.is-active):hover {
    color: var(--md-sys-color-on-surface, #0f172a);
}

html[data-theme="dark"] .error-controls-bar .m3-lang-link:not(.is-active) {
    color: #94a3b8;
}

html[data-theme="dark"] .error-controls-bar .m3-lang-link:not(.is-active):hover {
    color: #f1f5f9;
}

.error-controls-bar .error-divider {
    width: 1px;
    height: 18px;
    background: var(--md-sys-color-outline-variant, #cbd5e1);
}

html[data-theme="dark"] .error-controls-bar .error-divider {
    background: rgba(255, 255, 255, 0.15);
}

.error-controls-bar .m3-theme-segmented {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    padding: 0;
}

.error-controls-bar .m3-theme-segmented button {
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant, #64748b);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-controls-bar .m3-theme-segmented button.active,
.error-controls-bar .m3-theme-segmented button.is-active {
    background: var(--md-sys-color-primary, #2196F3) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

html[data-theme="dark"] .error-controls-bar .m3-theme-segmented button {
    color: #94a3b8;
}

/* Uniform Pill Shape for all 404 Action Buttons */
.error-action-btn {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 26px !important;
    border-radius: 9999px !important;
    font-size: 14px !important;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.error-btn-primary {
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--md-sys-color-primary) !important;
}

.error-btn-primary:hover {
    background: var(--md-sys-color-primary-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35) !important;
}

.error-btn-tonal {
    background: var(--md-sys-color-surface-container) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
}

html[data-theme="dark"] .error-btn-tonal {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.error-btn-tonal:hover {
    background: var(--md-sys-color-primary-container) !important;
    color: var(--md-sys-color-primary) !important;
    border-color: var(--md-sys-color-primary) !important;
}

html[data-theme="dark"] .error-btn-tonal:hover {
    background: rgba(33, 150, 243, 0.15) !important;
    color: #60a5fa !important;
    border-color: #60a5fa !important;
}


/* =========================================================================
   18. Modern Product Showcase & Detail Page Redesign (M3 System)
   ========================================================================= */

.product-detail-wrapper {
    width: 100%;
    margin-bottom: 40px;
}

/* Direction-specific font and alignment */
html[dir="rtl"] .product-detail-wrapper,
.product-detail-wrapper[dir="rtl"] {
    text-align: right;
    font-family: "IRANYekan", "Tahoma", sans-serif;
}

html[dir="ltr"] .product-detail-wrapper,
.product-detail-wrapper[dir="ltr"] {
    text-align: left;
    font-family: "Roboto", sans-serif;
}

/* Breadcrumbs: unified via .m3-breadcrumb */

/* Hero Showcase Card */
.product-hero-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--md-sys-elevation-level1);
    margin-bottom: 36px;
    transition: box-shadow 250ms ease, border-color 250ms ease;
}

.product-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 991px) {
    .product-hero-row {
        display: block;
    }
}

html[data-theme="light"] .product-hero-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .product-hero-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Media Showcase */
.product-media-container {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
}

html[data-theme="light"] .product-media-container {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .product-media-container {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.product-badge-overlay {
    position: absolute;
    top: 14px;
    z-index: 2;
}

.product-detail-wrapper[dir="rtl"] .product-badge-overlay {
    right: 14px;
}

.product-detail-wrapper[dir="ltr"] .product-badge-overlay {
    left: 14px;
}

.product-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #1976D2 100%);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
    letter-spacing: 0.2px;
}

.product-image-wrapper {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* Product Info Panel */
.product-info-panel {
    padding: 8px 16px;
}

.product-category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-category-chip,
.product-factory-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
}

.product-category-chip {
    background: rgba(33, 150, 243, 0.12);
    color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .product-category-chip {
    background: rgba(33, 150, 243, 0.2);
    color: #60a5fa;
}

.product-factory-chip {
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    border: 1px solid var(--md-sys-color-outline-variant);
}

html[data-theme="light"] .product-factory-chip {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .product-factory-chip {
    background: #334155;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Single H1 Product Title */
.product-main-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 16px 0;
}

html[data-theme="light"] .product-main-title {
    color: #0f172a;
}

html[data-theme="dark"] .product-main-title {
    color: #f8fafc;
}

/* Caption Highlight */
.product-caption-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(33, 150, 243, 0.07);
    border-inline-start: 4px solid var(--md-sys-color-primary);
    margin-bottom: 24px;
}

html[data-theme="dark"] .product-caption-highlight {
    background: rgba(33, 150, 243, 0.12);
    border-inline-start-color: #60a5fa;
}

.product-caption-icon {
    font-size: 18px;
    color: var(--md-sys-color-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

html[data-theme="dark"] .product-caption-icon {
    color: #60a5fa;
}

.product-caption-text {
    font-size: 14.5px;
    line-height: 1.7;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

html[data-theme="light"] .product-caption-text {
    color: #334155;
}

html[data-theme="dark"] .product-caption-text {
    color: #e2e8f0;
}

/* Feature grid */
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    transition: background-color 200ms ease;
}

html[data-theme="light"] .feature-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .feature-item {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.06);
}

.feature-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.12);
    color: var(--md-sys-color-primary);
    font-size: 14px;
    flex-shrink: 0;
}

html[data-theme="dark"] .feature-icon-box {
    background: rgba(33, 150, 243, 0.2);
    color: #60a5fa;
}

.feature-text-box strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    display: block;
    line-height: 1.4;
}

html[data-theme="light"] .feature-text-box strong {
    color: #1e293b;
}

html[data-theme="dark"] .feature-text-box strong {
    color: #f1f5f9;
}

/* Action Buttons Bar */
.product-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 250ms ease;
}

.product-cta-primary {
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--md-sys-color-primary) !important;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
}

.product-cta-primary:hover {
    background: var(--md-sys-color-primary-hover) !important;
    color: #ffffff !important;
}

.product-cta-secondary {
    background: var(--md-sys-color-surface-container) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
}

html[data-theme="light"] .product-cta-secondary {
    background: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="dark"] .product-cta-secondary {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.product-cta-secondary:hover {
    background: rgba(33, 150, 243, 0.1) !important;
    color: var(--md-sys-color-primary) !important;
    border-color: var(--md-sys-color-primary) !important;
}

/* Description Card */
.product-description-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--md-sys-elevation-level1);
    margin-bottom: 48px;
}

html[data-theme="light"] .product-description-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .product-description-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.product-section-header {
    margin-bottom: 24px;
}

.product-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

html[data-theme="light"] .product-section-title {
    color: #0f172a;
}

html[data-theme="dark"] .product-section-title {
    color: #f8fafc;
}

.product-section-title i {
    color: var(--md-sys-color-primary);
}

.section-title-line {
    width: 50px;
    height: 3px;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
}

.product-description-body {
    font-size: 15.5px;
    line-height: 2;
    color: var(--md-sys-color-on-surface-variant);
    word-break: break-word;
}

html[data-theme="light"] .product-description-body {
    color: #334155;
}

html[data-theme="dark"] .product-description-body {
    color: #cbd5e1;
}

/* Other Products Section */
.other-products-section {
    margin-top: 48px;
    margin-bottom: 24px;
    scroll-margin-top: 80px;
}

.other-products-header {
    margin-bottom: 36px;
}

.other-products-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 8px 0;
}

html[data-theme="light"] .other-products-title {
    color: #0f172a;
}

html[data-theme="dark"] .other-products-title {
    color: #f8fafc;
}

.other-products-subtitle {
    font-size: 15px;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0 0 16px 0;
}

html[data-theme="light"] .other-products-subtitle {
    color: #64748b;
}

html[data-theme="dark"] .other-products-subtitle {
    color: #94a3b8;
}

.section-title-divider {
    width: 60px;
    height: 3px;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
    margin: 0 auto;
}

/* Other Products Grid & Cards */
.other-products-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -12px;
    margin-right: -12px;
}

.other-products-grid:before,
.other-products-grid:after {
    display: none !important;
    content: none !important;
}

.other-product-col {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
    display: flex !important;
    flex-direction: column !important;
}

.other-product-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 20px;
    overflow: hidden;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: var(--md-sys-elevation-level1);
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

html[data-theme="light"] .other-product-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .other-product-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.other-product-card:hover {
    border-color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .other-product-card:hover {
    border-color: #60a5fa;
}

.other-product-image-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--md-sys-color-surface-container);
    position: relative;
    flex-shrink: 0;
}

html[data-theme="light"] .other-product-image-box {
    background: #f8fafc;
}

html[data-theme="dark"] .other-product-image-box {
    background: #0f172a;
}

.other-product-image-box a {
    display: block;
    width: 100%;
    height: 100%;
}

.other-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}


.other-product-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.other-product-name {
    font-size: 18px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 28px;
}

.other-product-name a {
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    color: var(--md-sys-color-on-surface) !important;
    text-decoration: none !important;
    transition: color 150ms ease;
}

html[data-theme="light"] .other-product-name a {
    color: #0f172a !important;
}

html[data-theme="dark"] .other-product-name a {
    color: #f8fafc !important;
}

.other-product-card:hover .other-product-name a {
    color: var(--md-sys-color-primary) !important;
}

html[data-theme="dark"] .other-product-card:hover .other-product-name a {
    color: #60a5fa !important;
}

.other-product-caption {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0 0 16px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

html[data-theme="light"] .other-product-caption {
    color: #64748b;
}

html[data-theme="dark"] .other-product-caption {
    color: #94a3b8;
}

.other-product-footer {
    padding-top: 14px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    margin-top: auto;
}

html[data-theme="light"] .other-product-footer {
    border-color: #f1f5f9;
}

html[data-theme="dark"] .other-product-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.other-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--md-sys-color-primary) !important;
    text-decoration: none !important;
    transition: gap 200ms ease, color 150ms ease;
}

html[data-theme="dark"] .other-product-link {
    color: #60a5fa !important;
}

.other-product-card:hover .other-product-link {
    gap: 12px;
}

/* Call to action section spacing under products */
.product-details-page #callToAction {
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .product-features-grid {
        grid-template-columns: 1fr;
    }
    .product-image-wrapper {
        height: 300px;
        margin-bottom: 24px;
    }
    .product-info-panel {
        padding: 0;
    }
}

@media (max-width: 767px) {
    .product-hero-card {
        padding: 20px;
    }
    .product-main-title {
        font-size: 22px;
    }
    .product-description-card {
        padding: 22px;
    }
    .product-actions-bar {
        flex-direction: column;
    }
    .product-actions-bar .product-cta-btn {
        width: 100%;
    }
}


/* =========================================================================
   19. Modern "Why Us" / Services Page Redesign (M3 System)
   ========================================================================= */

.why-us-wrapper {
    width: 100%;
    margin-bottom: 50px;
}

/* Direction-specific font and alignment */
html[dir="rtl"] .why-us-wrapper,
.why-us-wrapper[dir="rtl"] {
    text-align: right;
    font-family: "IRANYekan", "Tahoma", sans-serif;
}

html[dir="ltr"] .why-us-wrapper,
.why-us-wrapper[dir="ltr"] {
    text-align: left;
    font-family: "Roboto", sans-serif;
}

/* Breadcrumbs: unified via .m3-breadcrumb */

/* Hero Header Banner */
.why-us-hero-banner {
    margin-bottom: 40px;
    padding: 10px 0 20px;
}

.why-us-hero-badge-wrap {
    margin-bottom: 12px;
}

.why-us-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #1976D2 100%);
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.35);
}

.why-us-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    margin: 8px 0 14px 0;
    line-height: 1.35;
}

html[data-theme="light"] .why-us-hero-title {
    color: #0f172a;
}

html[data-theme="dark"] .why-us-hero-title {
    color: #f8fafc;
}

.why-us-hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 800px;
    margin: 0 auto 20px auto;
}

html[data-theme="light"] .why-us-hero-subtitle {
    color: #475569;
}

html[data-theme="dark"] .why-us-hero-subtitle {
    color: #94a3b8;
}

.why-us-title-divider {
    width: 70px;
    height: 3.5px;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
    margin: 0 auto;
}

/* Metrics / Highlights Ribbon */
.why-us-metrics-ribbon {
    margin-bottom: 48px;
}

.why-us-metrics-ribbon .row {
    display: flex;
    flex-wrap: wrap;
}

.why-us-metrics-ribbon .metric-col {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.why-us-metrics-ribbon .metric-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 20px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--md-sys-elevation-level1);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    flex: 1 1 auto;
    width: 100%;
    min-height: 96px;
    box-sizing: border-box;
}

html[data-theme="light"] .metric-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .metric-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.metric-card:hover {
    border-color: var(--md-sys-color-primary);
}

.metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.12);
    color: var(--md-sys-color-primary);
    font-size: 20px;
    flex-shrink: 0;
}

html[data-theme="dark"] .metric-icon-box {
    background: rgba(33, 150, 243, 0.2);
    color: #60a5fa;
}

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

.metric-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--md-sys-color-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

html[data-theme="dark"] .metric-value {
    color: #60a5fa;
}

.metric-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-top: 3px;
    line-height: 1.4;
}

html[data-theme="light"] .metric-label {
    color: #334155;
}

html[data-theme="dark"] .metric-label {
    color: #e2e8f0;
}

/* Pillar Cards (Why Us Core Services) */
.why-us-pillars-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.why-us-pillar-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-level1);
    transition: border-color 250ms ease;
}

html[data-theme="light"] .why-us-pillar-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .why-us-pillar-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.why-us-pillar-card:hover {
    border-color: var(--md-sys-color-primary);
}

.pillar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Alternating Reverse Row */
.why-us-pillar-card.is-reversed .pillar-row {
    flex-direction: row-reverse;
}

.pillar-content-col {
    flex: 1 1 50%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pillar-content-inner {
    padding: 40px;
}

.pillar-media-col {
    flex: 1 1 50%;
    min-width: 320px;
    display: flex;
}

.pillar-media-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    background: var(--md-sys-color-surface-container);
}

html[data-theme="light"] .pillar-media-wrap {
    background: #f8fafc;
}

html[data-theme="dark"] .pillar-media-wrap {
    background: #0f172a;
}

.pillar-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}


.pillar-image-badge {
    position: absolute;
    top: 16px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.why-us-wrapper[dir="rtl"] .pillar-image-badge {
    right: 16px;
}

.why-us-wrapper[dir="ltr"] .pillar-image-badge {
    left: 16px;
}

/* Pillar Content Elements */
.pillar-top-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pillar-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #1976D2 100%);
    color: #ffffff;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pillar-counter-num {
    background: rgba(255, 255, 255, 0.25);
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 11px;
}

.pillar-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--md-sys-color-outline-variant);
}

html[data-theme="light"] .pillar-type-tag {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .pillar-type-tag {
    background: #334155;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.1);
}

.pillar-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 12px 0;
}

html[data-theme="light"] .pillar-title {
    color: #0f172a;
}

html[data-theme="dark"] .pillar-title {
    color: #f8fafc;
}

.pillar-accent-line {
    width: 44px;
    height: 3px;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
    margin-bottom: 18px;
}

.pillar-description-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 22px;
    word-break: break-word;
}

html[data-theme="light"] .pillar-description-text {
    color: #334155;
}

html[data-theme="dark"] .pillar-description-text {
    color: #cbd5e1;
}

.pillar-highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.pillar-highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--md-sys-color-surface-container);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
}

html[data-theme="light"] .pillar-highlight-tag {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

html[data-theme="dark"] .pillar-highlight-tag {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.pillar-highlight-tag i {
    color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .pillar-highlight-tag i {
    color: #60a5fa;
}

/* Pillar CTA Button Base */
.why-us-wrapper .pillar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode: Normal */
html:not([data-theme="dark"]) .why-us-wrapper .pillar-cta-btn,
html[data-theme="light"] .why-us-wrapper .pillar-cta-btn {
    background: rgba(33, 150, 243, 0.08) !important;
    color: #1976D2 !important;
    border: 1px solid rgba(33, 150, 243, 0.35) !important;
}

html:not([data-theme="dark"]) .why-us-wrapper .pillar-cta-btn span,
html:not([data-theme="dark"]) .why-us-wrapper .pillar-cta-btn i,
html[data-theme="light"] .why-us-wrapper .pillar-cta-btn span,
html[data-theme="light"] .why-us-wrapper .pillar-cta-btn i {
    color: #1976D2 !important;
    transition: color 200ms ease;
}

/* Light Mode: Hover */
html:not([data-theme="dark"]) .why-us-wrapper .pillar-cta-btn:hover,
html[data-theme="light"] .why-us-wrapper .pillar-cta-btn:hover {
    background: #2196F3 !important;
    color: #ffffff !important;
    border-color: #2196F3 !important;
}

html:not([data-theme="dark"]) .why-us-wrapper .pillar-cta-btn:hover span,
html:not([data-theme="dark"]) .why-us-wrapper .pillar-cta-btn:hover i,
html[data-theme="light"] .why-us-wrapper .pillar-cta-btn:hover span,
html[data-theme="light"] .why-us-wrapper .pillar-cta-btn:hover i {
    color: #ffffff !important;
}

/* Dark Mode Pillar CTA */
html[data-theme="dark"] .why-us-wrapper .pillar-cta-btn {
    background: rgba(33, 150, 243, 0.16) !important;
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
}

html[data-theme="dark"] .why-us-wrapper .pillar-cta-btn span,
html[data-theme="dark"] .why-us-wrapper .pillar-cta-btn i {
    color: #60a5fa !important;
    transition: color 200ms ease;
}

html[data-theme="dark"] .why-us-wrapper .pillar-cta-btn:hover {
    background: #2196F3 !important;
    color: #ffffff !important;
    border-color: #2196F3 !important;
}

html[data-theme="dark"] .why-us-wrapper .pillar-cta-btn:hover span,
html[data-theme="dark"] .why-us-wrapper .pillar-cta-btn:hover i {
    color: #ffffff !important;
}

/* Bottom Call-To-Action Banner */
.why-us-bottom-cta {
    margin-top: 54px;
    margin-bottom: 24px;
}

.cta-inner-card {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(25, 118, 210, 0.14) 100%);
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 24px;
    padding: 48px 32px;
}

html[data-theme="dark"] .cta-inner-card {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(96, 165, 250, 0.25);
}

.cta-headline {
    font-size: 26px;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 12px 0;
}

html[data-theme="light"] .cta-headline {
    color: #0f172a;
}

html[data-theme="dark"] .cta-headline {
    color: #f8fafc;
}

.cta-subtext {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 680px;
    margin: 0 auto 26px auto;
}

html[data-theme="light"] .cta-subtext {
    color: #475569;
}

html[data-theme="dark"] .cta-subtext {
    color: #94a3b8;
}

.cta-buttons-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* Primary CTA Button */
.why-us-wrapper .cta-btn-primary,
html[data-theme="light"] .why-us-wrapper .cta-btn-primary,
html[data-theme="dark"] .why-us-wrapper .cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #2196F3 !important;
    color: #ffffff !important;
    border: 1px solid #2196F3 !important;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.why-us-wrapper .cta-btn-primary span,
.why-us-wrapper .cta-btn-primary i,
html[data-theme="light"] .why-us-wrapper .cta-btn-primary span,
html[data-theme="light"] .why-us-wrapper .cta-btn-primary i,
html[data-theme="dark"] .why-us-wrapper .cta-btn-primary span,
html[data-theme="dark"] .why-us-wrapper .cta-btn-primary i {
    color: #ffffff !important;
}

.why-us-wrapper .cta-btn-primary:hover,
html[data-theme="light"] .why-us-wrapper .cta-btn-primary:hover,
html[data-theme="dark"] .why-us-wrapper .cta-btn-primary:hover {
    background: #1976D2 !important;
    color: #ffffff !important;
    border-color: #1976D2 !important;
}

.why-us-wrapper .cta-btn-primary:hover span,
.why-us-wrapper .cta-btn-primary:hover i,
html[data-theme="light"] .why-us-wrapper .cta-btn-primary:hover span,
html[data-theme="light"] .why-us-wrapper .cta-btn-primary:hover i,
html[data-theme="dark"] .why-us-wrapper .cta-btn-primary:hover span,
html[data-theme="dark"] .why-us-wrapper .cta-btn-primary:hover i {
    color: #ffffff !important;
}

/* Tonal CTA Button */
.why-us-wrapper .cta-btn-tonal,
html[data-theme="light"] .why-us-wrapper .cta-btn-tonal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 250ms ease;
}

.why-us-wrapper .cta-btn-tonal span,
.why-us-wrapper .cta-btn-tonal i,
html[data-theme="light"] .why-us-wrapper .cta-btn-tonal span,
html[data-theme="light"] .why-us-wrapper .cta-btn-tonal i {
    color: #1e293b !important;
}

.why-us-wrapper .cta-btn-tonal:hover,
html[data-theme="light"] .why-us-wrapper .cta-btn-tonal:hover {
    background: rgba(33, 150, 243, 0.08) !important;
    color: #1976D2 !important;
    border-color: #2196F3 !important;
}

.why-us-wrapper .cta-btn-tonal:hover span,
.why-us-wrapper .cta-btn-tonal:hover i,
html[data-theme="light"] .why-us-wrapper .cta-btn-tonal:hover span,
html[data-theme="light"] .why-us-wrapper .cta-btn-tonal:hover i {
    color: #1976D2 !important;
}

html[data-theme="dark"] .why-us-wrapper .cta-btn-tonal {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .why-us-wrapper .cta-btn-tonal span,
html[data-theme="dark"] .why-us-wrapper .cta-btn-tonal i {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .why-us-wrapper .cta-btn-tonal:hover {
    background: rgba(33, 150, 243, 0.18) !important;
    color: #60a5fa !important;
    border-color: #60a5fa !important;
}

html[data-theme="dark"] .why-us-wrapper .cta-btn-tonal:hover span,
html[data-theme="dark"] .why-us-wrapper .cta-btn-tonal:hover i {
    color: #60a5fa !important;
}

/* Responsive adjustments for Why Us */
@media (max-width: 991px) {
    .why-us-pillar-card .pillar-row,
    .why-us-pillar-card.is-reversed .pillar-row {
        flex-direction: column !important;
    }
    .pillar-media-col {
        order: -1;
    }
    .pillar-media-wrap {
        min-height: 240px;
    }
    .pillar-content-inner {
        padding: 28px 22px;
    }
    .why-us-hero-title {
        font-size: 26px;
    }
    .metric-col {
        margin-bottom: 12px;
    }
}

@media (max-width: 767px) {
    .why-us-hero-title {
        font-size: 22px;
    }
    .pillar-title {
        font-size: 19px;
    }
    .cta-inner-card {
        padding: 32px 18px;
    }
    .cta-buttons-wrap {
        flex-direction: column;
    }
    .cta-buttons-wrap .btn {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================================
   20. Modern Products Catalog / Index Page Redesign (M3 System)
   ========================================================================= */

.products-catalog-wrapper {
    width: 100%;
    margin-bottom: 50px;
}

/* Direction-specific font and alignment */
html[dir="rtl"] .products-catalog-wrapper,
.products-catalog-wrapper[dir="rtl"] {
    text-align: right;
    font-family: "IRANYekan", "Tahoma", sans-serif;
}

html[dir="ltr"] .products-catalog-wrapper,
.products-catalog-wrapper[dir="ltr"] {
    text-align: left;
    font-family: "Roboto", sans-serif;
}

/* Breadcrumbs: unified via .m3-breadcrumb */

/* Catalog Hero Header */
.products-catalog-header {
    margin-bottom: 40px;
    padding: 10px 0 20px;
}

.products-catalog-badge-wrap {
    margin-bottom: 12px;
}

.products-catalog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #1976D2 100%);
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.35);
}

.products-catalog-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    margin: 8px 0 14px 0;
    line-height: 1.35;
}

html[data-theme="light"] .products-catalog-title {
    color: #0f172a;
}

html[data-theme="dark"] .products-catalog-title {
    color: #f8fafc;
}

.products-catalog-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 820px;
    margin: 0 auto 20px auto;
}

html[data-theme="light"] .products-catalog-subtitle {
    color: #475569;
}

html[data-theme="dark"] .products-catalog-subtitle {
    color: #94a3b8;
}

.products-catalog-divider {
    width: 70px;
    height: 3.5px;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
    margin: 0 auto;
}

/* Products Catalog Grid - Guaranteed Equal Height Cards */
.products-catalog-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
}

.product-grid-col {
    display: flex !important;
    flex-direction: column !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 30px !important;
}

.product-catalog-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 24px;
    overflow: hidden;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    box-shadow: var(--md-sys-elevation-level1);
    transition: border-color 250ms ease;
}

html[data-theme="light"] .product-catalog-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .product-catalog-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.product-catalog-card:hover {
    border-color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .product-catalog-card:hover {
    border-color: #60a5fa;
}

/* Product Media & Image */
.product-catalog-media {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--md-sys-color-surface-container);
}

html[data-theme="light"] .product-catalog-media {
    background: #f8fafc;
}

html[data-theme="dark"] .product-catalog-media {
    background: #0f172a;
}

.product-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-badge {
    position: absolute;
    top: 14px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.products-catalog-wrapper[dir="rtl"] .product-card-badge,
[dir="rtl"] .product-card-badge,
html[dir="rtl"] .product-card-badge {
    right: 14px !important;
    left: auto !important;
}

.products-catalog-wrapper[dir="ltr"] .product-card-badge,
[dir="ltr"] .product-card-badge,
html[dir="ltr"] .product-card-badge {
    left: 14px !important;
    right: auto !important;
}

[dir="rtl"] .product-catalog-card {
    text-align: right;
}

[dir="ltr"] .product-catalog-card {
    text-align: left;
}

.product-catalog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* Product Card Body */
.product-catalog-body {
    padding: 24px;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.product-meta-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(33, 150, 243, 0.12);
    color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .product-tag-chip {
    background: rgba(33, 150, 243, 0.2);
    color: #60a5fa;
}

.product-catalog-name {
    font-size: 20px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.4;
    margin: 0 0 10px 0;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
}

.product-catalog-name a {
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    color: var(--md-sys-color-on-surface) !important;
    text-decoration: none !important;
    transition: color 150ms ease;
}

html[data-theme="light"] .product-catalog-name a {
    color: #0f172a !important;
}

html[data-theme="dark"] .product-catalog-name a {
    color: #f8fafc !important;
}

.product-catalog-card:hover .product-catalog-name a {
    color: var(--md-sys-color-primary) !important;
}

html[data-theme="dark"] .product-catalog-card:hover .product-catalog-name a {
    color: #60a5fa !important;
}

.product-catalog-caption {
    font-size: 14px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 16px;
    min-height: 48px !important;
    flex-grow: 1 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="light"] .product-catalog-caption {
    color: #475569;
}

html[data-theme="dark"] .product-catalog-caption {
    color: #94a3b8;
}

.product-card-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: auto !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--md-sys-color-outline-variant) !important;
}

html[data-theme="light"] .product-card-features {
    border-color: #f1f5f9;
}

html[data-theme="dark"] .product-card-features {
    border-color: rgba(255, 255, 255, 0.08);
}

.card-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface-variant);
}

html[data-theme="light"] .card-feature-item {
    color: #334155;
}

html[data-theme="dark"] .card-feature-item {
    color: #cbd5e1;
}

.card-feature-item i {
    color: var(--md-sys-color-primary);
    font-size: 13px;
}

html[data-theme="dark"] .card-feature-item i {
    color: #60a5fa;
}

/* Product Card Footer */
.product-catalog-footer {
    padding: 18px 24px !important;
    border-top: 1px solid var(--md-sys-color-outline-variant) !important;
    background: var(--md-sys-color-surface-container-low) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
}

html[data-theme="light"] .product-catalog-footer {
    border-color: #f1f5f9;
    background: #fafafa;
}

html[data-theme="dark"] .product-catalog-footer {
    border-color: rgba(255, 255, 255, 0.08);
    background: #141e30;
}

.product-view-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--md-sys-color-primary) !important;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    text-decoration: none !important;
    transition: all 200ms ease;
}

.product-view-btn:hover {
    background: var(--md-sys-color-primary-hover) !important;
    color: #ffffff !important;
}

/* Catalog Bottom CTA Banner */
.products-catalog-cta {
    margin-top: 50px;
    margin-bottom: 24px;
}

.catalog-cta-inner {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(25, 118, 210, 0.14) 100%);
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 24px;
    padding: 48px 32px;
}

html[data-theme="dark"] .catalog-cta-inner {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-color: rgba(96, 165, 250, 0.25);
}

.catalog-cta-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 12px 0;
}

html[data-theme="light"] .catalog-cta-title {
    color: #0f172a;
}

html[data-theme="dark"] .catalog-cta-title {
    color: #f8fafc;
}

.catalog-cta-desc {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 720px;
    margin: 0 auto 26px auto;
}

html[data-theme="light"] .catalog-cta-desc {
    color: #475569;
}

html[data-theme="dark"] .catalog-cta-desc {
    color: #94a3b8;
}

.catalog-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.catalog-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--md-sys-color-primary) !important;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
    transition: all 250ms ease;
}

.catalog-btn-primary:hover {
    background: var(--md-sys-color-primary-hover) !important;
    color: #ffffff !important;
}

.catalog-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--md-sys-color-surface) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 250ms ease;
}

html[data-theme="light"] .catalog-btn-secondary {
    background: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="dark"] .catalog-btn-secondary {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.catalog-btn-secondary:hover {
    background: rgba(33, 150, 243, 0.1) !important;
    color: var(--md-sys-color-primary) !important;
    border-color: var(--md-sys-color-primary) !important;
}

/* Empty State */
.products-empty-state {
    padding: 60px 20px;
    background: var(--md-sys-color-surface);
    border: 1px dashed var(--md-sys-color-outline-variant);
    border-radius: 20px;
    margin-bottom: 40px;
}

.products-empty-state .empty-icon {
    font-size: 48px;
    color: var(--md-sys-color-outline);
    margin-bottom: 16px;
}

/* Responsive adjustments for Products Catalog */
@media (max-width: 991px) {
    .products-catalog-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .products-catalog-title {
        font-size: 22px;
    }
    .product-catalog-name {
        font-size: 18px;
    }
    .catalog-cta-inner {
        padding: 32px 18px;
    }
    .catalog-cta-actions {
        flex-direction: column;
    }
    .catalog-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   21. Plato Responsive Tables for Blog Articles & Pages
   ========================================================================== */

.blog-details,
.blog-item,
.blog-details .mdl-card,
.blog-details .mdl-card__supporting-text,
.article-content,
.entry-content,
.blog-index-wrapper,
.article-show-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Blog 2-Column Grid Layout (Desktop & Mobile) */
@media (min-width: 992px) {
    .blog-page-content {
        width: 66.66666667% !important;
        float: left !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .blog-page-sidebar {
        width: 33.33333333% !important;
        float: left !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    html[dir="rtl"] .blog-page-content {
        float: right !important;
    }
    html[dir="rtl"] .blog-page-sidebar {
        float: left !important;
    }
}

@media (max-width: 991px) {
    .blog-page-content,
    .blog-page-sidebar {
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
    }
    .blog-page-sidebar {
        margin-top: 36px !important;
    }
}

/* =========================================================================
   Section 21: Table Responsive & High-Contrast Dark Mode Styles
   ========================================================================= */

.article-content .pe-table-responsive,
.entry-content .pe-table-responsive,
.page-content .pe-table-responsive,
.pe-table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 28px 0 !important;
    border-radius: 16px !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    background: var(--md-sys-color-surface) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    display: block !important;
    box-sizing: border-box !important;
}

html[data-theme="dark"] .article-content .pe-table-responsive,
html[data-theme="dark"] .entry-content .pe-table-responsive,
html[data-theme="dark"] .page-content .pe-table-responsive,
html[data-theme="dark"] .pe-table-responsive {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: #1e293b !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Custom table scrollbar */
.pe-table-responsive::-webkit-scrollbar {
    height: 7px;
}
.pe-table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 9999px;
}
html[data-theme="dark"] .pe-table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
.pe-table-responsive::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.4);
    border-radius: 9999px;
}
.pe-table-responsive::-webkit-scrollbar-thumb:hover {
    background: #2196F3;
}

/* Base table styles inside articles */
.article-content table,
.entry-content table,
.page-content table,
.plato-table {
    width: 100% !important;
    min-width: 580px;
    border-collapse: collapse !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: var(--md-sys-color-on-surface) !important;
    margin: 0 !important;
}

/* Table Header */
.plato-table thead th,
.article-content table thead th,
.entry-content table thead th,
.page-content table thead th {
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 14px 18px !important;
    white-space: nowrap !important;
    text-align: inherit !important;
    vertical-align: middle !important;
}

html[data-theme="light"] .plato-table thead th,
html[data-theme="light"] .article-content table thead th,
html[data-theme="light"] .entry-content table thead th,
html[data-theme="light"] .page-content table thead th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 3px solid #2196F3 !important;
    border-top: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
}

html[data-theme="dark"] .plato-table thead th,
html[data-theme="dark"] .article-content table thead th,
html[data-theme="dark"] .entry-content table thead th,
html[data-theme="dark"] .page-content table thead th {
    background: #0f172a !important;
    color: #ffffff !important;
    border-bottom: 3px solid #2196F3 !important;
    border-top: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    letter-spacing: 0.3px !important;
}

/* Table Body Cells */
.plato-table tbody td,
.article-content table tbody td,
.entry-content table tbody td,
.page-content table tbody td {
    padding: 12px 18px !important;
    vertical-align: middle !important;
    text-align: inherit !important;
}

html[data-theme="light"] .plato-table tbody td,
html[data-theme="light"] .article-content table tbody td,
html[data-theme="light"] .entry-content table tbody td,
html[data-theme="light"] .page-content table tbody td {
    border-bottom: 1px solid #e2e8f0 !important;
    border-left: 1px solid #f1f5f9 !important;
    border-right: 1px solid #f1f5f9 !important;
    border-top: none !important;
    color: #334155 !important;
}

html[data-theme="dark"] .plato-table tbody td,
html[data-theme="dark"] .article-content table tbody td,
html[data-theme="dark"] .entry-content table tbody td,
html[data-theme="dark"] .page-content table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top: none !important;
    color: #e2e8f0 !important;
}

/* Alternating Striped Rows */
html[data-theme="light"] .plato-table.table-striped tbody tr:nth-of-type(odd),
html[data-theme="light"] .article-content table.table-striped tbody tr:nth-of-type(odd),
html[data-theme="light"] .entry-content table.table-striped tbody tr:nth-of-type(odd),
html[data-theme="light"] .page-content table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8fafc !important;
}

html[data-theme="light"] .plato-table.table-striped tbody tr:nth-of-type(even),
html[data-theme="light"] .article-content table.table-striped tbody tr:nth-of-type(even),
html[data-theme="light"] .entry-content table.table-striped tbody tr:nth-of-type(even),
html[data-theme="light"] .page-content table.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff !important;
}

html[data-theme="dark"] .plato-table.table-striped tbody tr:nth-of-type(odd),
html[data-theme="dark"] .article-content table.table-striped tbody tr:nth-of-type(odd),
html[data-theme="dark"] .entry-content table.table-striped tbody tr:nth-of-type(odd),
html[data-theme="dark"] .page-content table.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.035) !important;
}

html[data-theme="dark"] .plato-table.table-striped tbody tr:nth-of-type(even),
html[data-theme="dark"] .article-content table.table-striped tbody tr:nth-of-type(even),
html[data-theme="dark"] .entry-content table.table-striped tbody tr:nth-of-type(even),
html[data-theme="dark"] .page-content table.table-striped tbody tr:nth-of-type(even) {
    background-color: transparent !important;
}

html[data-theme="dark"] .article-content table td,
html[data-theme="dark"] .article-content table th,
html[data-theme="dark"] .article-content table tr td,
html[data-theme="dark"] .article-content table tr:nth-child(even) td,
html[data-theme="dark"] .article-content table tr:nth-child(odd) td,
html[data-theme="dark"] .entry-content table td,
html[data-theme="dark"] .page-content table td {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
}

html[data-theme="dark"] .article-content table thead th,
html[data-theme="dark"] .entry-content table thead th,
html[data-theme="dark"] .page-content table thead th,
html[data-theme="dark"] .plato-table thead th {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    border-bottom: 3px solid #2196F3 !important;
}

/* Hover effect on rows */
html[data-theme="light"] .plato-table tbody tr:hover,
html[data-theme="light"] .article-content table tbody tr:hover,
html[data-theme="light"] .entry-content table tbody tr:hover,
html[data-theme="light"] .page-content table tbody tr:hover {
    background-color: rgba(33, 150, 243, 0.08) !important;
}

html[data-theme="dark"] .plato-table tbody tr:hover,
html[data-theme="dark"] .article-content table tbody tr:hover,
html[data-theme="dark"] .entry-content table tbody tr:hover,
html[data-theme="dark"] .page-content table tbody tr:hover {
    background-color: rgba(33, 150, 243, 0.16) !important;
}

/* Bordered variant */
html[data-theme="light"] .plato-table.table-bordered th,
html[data-theme="light"] .plato-table.table-bordered td,
html[data-theme="light"] .article-content table.table-bordered th,
html[data-theme="light"] .article-content table.table-bordered td {
    border-color: #e2e8f0 !important;
}

html[data-theme="dark"] .plato-table.table-bordered th,
html[data-theme="dark"] .plato-table.table-bordered td,
html[data-theme="dark"] .article-content table.table-bordered th,
html[data-theme="dark"] .article-content table.table-bordered td {
    border-color: rgba(255, 255, 255, 0.09) !important;
}

/* Explicitly preserve header bottom accent border for bordered tables */
html[data-theme="light"] .plato-table.table-bordered thead th,
html[data-theme="light"] .article-content table.table-bordered thead th {
    border-bottom: 3px solid #2196F3 !important;
}

html[data-theme="dark"] .plato-table.table-bordered thead th,
html[data-theme="dark"] .article-content table.table-bordered thead th {
    border-bottom: 3px solid #2196F3 !important;
}

/* Mobile responsive overflow for unwrapped tables inside articles */
@media (max-width: 767px) {
    .article-content table:not(.pe-table-wrapped),
    .entry-content table:not(.pe-table-wrapped),
    .page-content table:not(.pe-table-wrapped) {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
}

/* =========================================================================
   Section 22: Modern Material Design 3 Blog & Article Redesign
   ========================================================================= */

/* Blog Index Wrapper */
/* Blog Top Header (Full Width Above Content & Sidebar) */
.blog-top-header {
    width: 100%;
    max-width: 100%;
    margin-bottom: 28px;
    box-sizing: border-box;
}

.blog-articles-container,
.blog-index-wrapper,
.article-show-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.blog-main-row {
    margin-top: 0;
}

.blog-main-row > .blog-page-content,
.blog-main-row > .blog-page-sidebar {
    padding-top: 0 !important;
}

/* Breadcrumbs: unified via .m3-breadcrumb */

/* Blog Hero Header */
.blog-hero-header {
    margin-bottom: 0;
}

.blog-hero-badge-wrap {
    margin-bottom: 12px;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(33, 150, 243, 0.1);
    color: var(--md-sys-color-primary);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

html[data-theme="dark"] .blog-hero-badge {
    background: rgba(33, 150, 243, 0.2);
    color: #60a5fa;
    border-color: rgba(33, 150, 243, 0.3);
}

.blog-hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: var(--md-sys-color-on-surface);
    letter-spacing: -0.3px;
}

html[data-theme="dark"] .blog-hero-title {
    color: #ffffff;
}

.blog-hero-subtitle {
    font-size: 15px;
    line-height: 1.8;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    max-width: 720px;
}

html[data-theme="dark"] .blog-hero-subtitle {
    color: #94a3b8;
}

.blog-query-text {
    color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .blog-query-text {
    color: #60a5fa;
}

.blog-filter-bar {
    margin-top: 14px;
}

.blog-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    text-decoration: none;
    transition: all 200ms ease;
}

.blog-filter-chip:hover {
    background: rgba(33, 150, 243, 0.1);
    color: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
}

.blog-hero-divider {
    height: 1px;
    background: var(--md-sys-color-outline-variant);
    margin-top: 24px;
    opacity: 0.6;
}

html[data-theme="dark"] .blog-hero-divider {
    background: rgba(255, 255, 255, 0.08);
}

/* Articles Grid & Column */
.blog-articles-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
}

.blog-grid-col {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 28px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Home Page Blog Grid: 3 cards per row in Desktop, 2 in Tablet, 1 in Mobile */
@media (min-width: 992px) {
    .home-blog-section .blog-grid-col {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .home-blog-section .blog-grid-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    .home-blog-section .blog-grid-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Blog Page Index Grid (/blog): 2 cards per row in Desktop/Tablet, 1 in Mobile */
@media (min-width: 768px) {
    .blog-page-content .blog-grid-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    .blog-page-content .blog-grid-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* M3 Blog Card */
.m3-blog-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-level1);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: border-color 250ms ease;
}

html[data-theme="light"] .m3-blog-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .m3-blog-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.m3-blog-card:hover {
    border-color: var(--md-sys-color-primary);
}

/* Card Media */
.m3-blog-card-media {
    position: relative;
    height: 210px;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
    flex-shrink: 0;
}

.m3-blog-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.m3-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* Floating Date Chip */
.m3-blog-date-chip {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

/* Floating Category Chip */
.m3-blog-cat-chip {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: var(--md-sys-color-primary);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35);
    transition: background-color 200ms ease;
}

.m3-blog-cat-chip:hover {
    background: var(--md-sys-color-primary-hover);
    color: #ffffff !important;
}

/* RTL vs LTR positioning of media chips */
html[dir="rtl"] .m3-blog-date-chip {
    right: 12px;
    left: auto;
}

html[dir="rtl"] .m3-blog-cat-chip {
    left: 12px;
    right: auto;
}

html[dir="ltr"] .m3-blog-date-chip {
    left: 12px;
    right: auto;
}

html[dir="ltr"] .m3-blog-cat-chip {
    right: 12px;
    left: auto;
}

/* Card Body */
.m3-blog-card-body {
    padding: 22px 22px 16px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.m3-blog-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: var(--md-sys-color-on-surface-variant);
}

.m3-author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m3-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--md-sys-color-outline-variant);
}

.m3-author-name {
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
}

html[data-theme="dark"] .m3-author-name {
    color: #e2e8f0;
}

.m3-reading-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

.m3-blog-card-title {
    font-size: 17px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.5;
    margin: 0 0 10px 0;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m3-blog-card-title a {
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    transition: color 150ms ease;
}

.m3-blog-card-title a:hover {
    color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .m3-blog-card-title a {
    color: #f1f5f9;
}

html[data-theme="dark"] .m3-blog-card-title a:hover {
    color: #60a5fa;
}

.m3-blog-card-excerpt {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    min-height: 68px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html[data-theme="dark"] .m3-blog-card-excerpt {
    color: #94a3b8;
}

/* Card Actions / Footer */
.m3-blog-card-actions {
    padding: 14px 22px;
    border-top: 1px solid var(--md-sys-color-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    margin-top: auto;
    flex-shrink: 0;
}

html[data-theme="light"] .m3-blog-card-actions {
    border-top-color: #f1f5f9;
}

html[data-theme="dark"] .m3-blog-card-actions {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.m3-blog-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 9999px;
    background: var(--md-sys-color-primary);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.28);
    transition: all 200ms ease;
}

.m3-blog-read-more-btn:hover {
    background: var(--md-sys-color-primary-hover);
    color: #ffffff !important;
}

.m3-blog-comments-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    transition: color 150ms ease;
}

.m3-blog-comments-counter:hover {
    color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .m3-blog-comments-counter {
    color: #94a3b8;
}

html[data-theme="dark"] .m3-blog-comments-counter:hover {
    color: #60a5fa;
}

/* Empty State Card */
.m3-blog-empty-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-card-border);
    border-radius: 20px;
    padding: 60px 30px;
    margin: 30px 0;
}

html[data-theme="light"] .m3-blog-empty-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .m3-blog-empty-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.m3-blog-empty-icon {
    font-size: 48px;
    color: var(--md-sys-color-primary);
    margin-bottom: 16px;
}

.m3-blog-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 10px 0;
}

.m3-blog-empty-desc {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0 0 20px 0;
}

.btn-m3-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 9999px;
    background: var(--md-sys-color-primary);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* Homepage Blog Section & "Discover More" Button */
.home-blog-section {
    padding: 80px 0 90px;
    background-color: var(--md-sys-color-background) !important;
}

html[data-theme="light"] .home-blog-section {
    background-color: #f8fafc !important;
}

html[data-theme="dark"] .home-blog-section {
    background-color: #0b0f19 !important;
}

.home-blog-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 36px;
    border-radius: 9999px;
    background: var(--md-sys-color-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--md-sys-color-primary) !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.home-blog-more-btn:hover {
    background: var(--md-sys-color-primary-hover) !important;
    border-color: var(--md-sys-color-primary-hover) !important;
    color: #ffffff !important;
}

/* Blog Pagination Wrapper */
.blog-pagination-wrapper {
    margin: 32px 0;
    display: flex;
    justify-content: center;
}

.blog-pagination-wrapper .pagination {
    margin: 0;
    display: inline-flex;
    gap: 6px;
}

html[dir="rtl"] .blog-pagination-wrapper .pagination {
    direction: rtl !important;
}

html[dir="ltr"] .blog-pagination-wrapper .pagination {
    direction: ltr !important;
}

.blog-pagination-wrapper .page-item .page-link {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    background: var(--md-sys-color-surface) !important;
    color: var(--md-sys-color-on-surface) !important;
    font-weight: 600;
    padding: 8px 14px;
    transition: all 150ms ease;
    text-decoration: none !important;
}

.blog-pagination-wrapper .page-item.disabled .page-link {
    opacity: 0.45 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

html[data-theme="light"] .blog-pagination-wrapper .page-item .page-link {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="dark"] .blog-pagination-wrapper .page-item .page-link {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

.blog-pagination-wrapper .page-item.active .page-link,
html[data-theme="light"] .blog-pagination-wrapper .page-item.active .page-link,
html[data-theme="dark"] .blog-pagination-wrapper .page-item.active .page-link {
    background: #2196F3 !important;
    background-color: #2196F3 !important;
    border-color: #2196F3 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.35);
}

.blog-pagination-wrapper .page-item:not(.active):not(.disabled) .page-link:hover,
html[data-theme="light"] .blog-pagination-wrapper .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(33, 150, 243, 0.08) !important;
    border-color: #2196F3 !important;
    color: #2196F3 !important;
}

html[data-theme="dark"] .blog-pagination-wrapper .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(33, 150, 243, 0.16) !important;
    border-color: #60a5fa !important;
    color: #60a5fa !important;
}

/* =========================================================================
   Single Article Redesign
   ========================================================================= */

.m3-article-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-card-border);
    border-radius: 20px;
    box-shadow: var(--md-sys-elevation-level1);
    padding: 36px 32px;
    margin-bottom: 28px;
    overflow: hidden;
}

html[data-theme="light"] .m3-article-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .m3-article-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.m3-article-header {
    margin-bottom: 24px;
}

.article-badge-wrap {
    margin-bottom: 14px;
}

.article-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--md-sys-color-primary);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(33, 150, 243, 0.2);
    transition: all 150ms ease;
}

.article-cat-badge:hover {
    background: var(--md-sys-color-primary);
    color: #ffffff;
}

html[data-theme="dark"] .article-cat-badge {
    background: rgba(33, 150, 243, 0.2);
    color: #60a5fa;
    border-color: rgba(33, 150, 243, 0.3);
}

.article-main-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 18px 0;
    letter-spacing: -0.3px;
}

html[data-theme="dark"] .article-main-title {
    color: #ffffff;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 13.5px;
}

html[data-theme="light"] .article-meta-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

html[data-theme="dark"] .article-meta-bar {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.article-meta-divider {
    width: 1px;
    height: 16px;
    background: var(--md-sys-color-outline-variant);
    opacity: 0.6;
}

html[data-theme="dark"] .article-meta-divider {
    background: rgba(255, 255, 255, 0.12);
}

.article-author-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
}

html[data-theme="dark"] .article-author-chip {
    color: #e2e8f0;
}

.author-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-comments-jump {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease;
}

.article-comments-jump:hover {
    color: var(--md-sys-color-primary);
}

/* Featured Media */
.m3-article-featured-media {
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0 28px;
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .m3-article-featured-media {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

/* Article Footer */
.m3-article-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--md-sys-color-card-border);
}

html[data-theme="light"] .m3-article-footer {
    border-top-color: #f1f5f9;
}

html[data-theme="dark"] .m3-article-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.article-category-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.category-label {
    font-weight: 600;
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-pill-link {
    background: rgba(33, 150, 243, 0.1);
    color: var(--md-sys-color-primary);
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 150ms ease;
}

.category-pill-link:hover {
    background: var(--md-sys-color-primary);
    color: #ffffff;
}

html[data-theme="dark"] .category-pill-link {
    background: rgba(33, 150, 243, 0.2);
    color: #60a5fa;
}

/* Author Bio & Social Share Row */
.author-social-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    margin-bottom: 28px !important;
}

/* Desktop & Tablet: Side-by-Side (50% each) */
@media (min-width: 768px) {
    .author-social-row > div[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        display: flex !important;
        flex-direction: column !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .author-social-row .m3-author-bio-card,
    .author-social-row .m3-social-share-card {
        flex: 1 1 auto !important;
        height: 100% !important;
        margin-bottom: 0 !important;
    }
}

/* Mobile: Stacked Underneath Each Other (100% each) */
@media (max-width: 767px) {
    .author-social-row {
        flex-direction: column !important;
    }
    .author-social-row > div[class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .author-social-row > div:last-child {
        margin-top: 16px !important;
    }
    .author-social-row .m3-author-bio-card,
    .author-social-row .m3-social-share-card {
        width: 100% !important;
    }
}

.m3-author-bio-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-card-border);
    border-radius: 18px;
    padding: 18px 22px;
    height: 100%;
    box-shadow: var(--md-sys-elevation-level1);
}

html[data-theme="light"] .m3-author-bio-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .m3-author-bio-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.bio-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--md-sys-color-primary);
}

.author-bio-role {
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.author-bio-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--md-sys-color-on-surface);
}

html[data-theme="dark"] .author-bio-name {
    color: #f1f5f9;
}

.m3-social-share-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-card-border);
    border-radius: 18px;
    padding: 18px 22px;
    height: 100%;
    box-shadow: var(--md-sys-elevation-level1);
}

html[data-theme="light"] .m3-social-share-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .m3-social-share-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.share-card-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 8px;
}

html[data-theme="dark"] .share-card-title {
    color: #f1f5f9;
}

.share-buttons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
    color: #ffffff !important;
}

.social-share-btn.share-telegram {
    background: #0088cc;
}
.social-share-btn.share-whatsapp {
    background: #25d366;
}
.social-share-btn.share-twitter {
    background: #1da1f2;
}
.social-share-btn.share-linkedin {
    background: #0077b5;
}
.social-share-btn.share-copy-link {
    background: #64748b;
}

.social-share-btn:hover {
    color: #ffffff !important;
}

.social-share-btn.copied {
    background: #10b981 !important;
}

/* Comments Section */
.m3-comments-section {
    margin-top: 36px;
}

.comments-section-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.post-comments-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 10px;
}

html[data-theme="dark"] .post-comments-title {
    color: #ffffff;
}

.comments-header-line {
    flex-grow: 1;
    height: 1px;
    background: var(--md-sys-color-outline-variant);
    opacity: 0.6;
}

html[data-theme="dark"] .comments-header-line {
    background: rgba(255, 255, 255, 0.08);
}

.m3-comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.m3-comment-item {
    margin-bottom: 16px;
}

.m3-comment-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-card-border);
    border-radius: 18px;
    padding: 20px 24px;
    box-shadow: var(--md-sys-elevation-level1);
}

html[data-theme="light"] .m3-comment-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .m3-comment-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--md-sys-color-outline-variant);
}

.comment-user-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--md-sys-color-on-surface);
}

html[data-theme="dark"] .comment-user-name {
    color: #f1f5f9;
}

.comment-date {
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

html[data-theme="dark"] .comment-date {
    color: #94a3b8;
}

.comment-body {
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--md-sys-color-on-surface);
}

html[data-theme="dark"] .comment-body p {
    color: #cbd5e1;
}

/* Nested replies */
.m3-comment-replies {
    list-style: none;
    margin-top: 12px;
}

html[dir="rtl"] .m3-comment-replies {
    padding-right: 32px;
    padding-left: 0;
    border-right: 3px solid var(--md-sys-color-primary);
    border-left: none;
}

html[dir="ltr"] .m3-comment-replies {
    padding-left: 32px;
    padding-right: 0;
    border-left: 3px solid var(--md-sys-color-primary);
    border-right: none;
}

.reply-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-reply-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 9999px;
    background: rgba(33, 150, 243, 0.15);
    color: var(--md-sys-color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

html[data-theme="dark"] .admin-reply-badge {
    background: rgba(33, 150, 243, 0.25);
    color: #60a5fa;
}

.m3-no-comments-box {
    text-align: center;
    padding: 36px 20px;
    background: var(--md-sys-color-surface);
    border: 1px dashed var(--md-sys-color-outline-variant);
    border-radius: 18px;
    margin-bottom: 24px;
    color: var(--md-sys-color-on-surface-variant);
}

html[data-theme="light"] .m3-no-comments-box {
    background: #ffffff;
    border-color: #cbd5e1;
}

html[data-theme="dark"] .m3-no-comments-box {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.m3-no-comments-box i {
    font-size: 32px;
    color: var(--md-sys-color-primary);
    margin-bottom: 10px;
    display: block;
}

/* Comment Form Card */
.m3-comment-form-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-card-border);
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: var(--md-sys-elevation-level1);
    margin-top: 28px;
}

html[data-theme="light"] .m3-comment-form-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="dark"] .m3-comment-form-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.comment-form-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 18px 0;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 8px;
}

html[data-theme="dark"] .comment-form-title {
    color: #ffffff;
}

.m3-textarea {
    width: 100%;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 14.5px;
    line-height: 1.7;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    box-sizing: border-box;
    resize: vertical;
    min-height: 110px;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

html[data-theme="light"] .m3-textarea {
    background: #f8fafc;
    border-color: #cbd5e1;
}

html[data-theme="dark"] .m3-textarea {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}

.m3-textarea:focus {
    border-color: var(--md-sys-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2) !important;
}

.form-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

html[dir="rtl"] .form-actions {
    justify-content: flex-start;
}

.btn-m3-submit-comment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 9999px;
    background: var(--md-sys-color-primary);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
    transition: all 200ms ease;
}

.btn-m3-submit-comment:hover {
    background: var(--md-sys-color-primary-hover);
}

.m3-login-prompt-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
}

html[data-theme="light"] .m3-login-prompt-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

html[data-theme="dark"] .m3-login-prompt-box {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--md-sys-color-on-surface);
}

html[data-theme="dark"] .prompt-text {
    color: #e2e8f0;
}

.btn-m3-signin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 9999px;
    background: var(--md-sys-color-primary);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    transition: all 200ms ease;
}

.btn-m3-signin:hover {
    background: var(--md-sys-color-primary-hover);
}

/* =========================================================================
   Sidebar Widgets Redesign
   ========================================================================= */

.m3-sidebar-widget {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-card-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--md-sys-elevation-level1);
}

html[data-theme="light"] .m3-sidebar-widget {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .m3-sidebar-widget {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.m3-sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
}

html[data-theme="dark"] .m3-sidebar-widget .widget-title {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Search widget */
.search-input-wrap {
    position: relative;
    width: 100%;
}

.m3-search-input {
    width: 100%;
    height: 46px;
    border-radius: 9999px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 200ms ease;
}

html[data-theme="light"] .m3-search-input {
    background: #f8fafc;
    border-color: #cbd5e1;
}

html[data-theme="dark"] .m3-search-input {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
}

.m3-search-input:focus {
    border-color: var(--md-sys-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2) !important;
}

html[dir="rtl"] .m3-search-input {
    padding-right: 18px;
    padding-left: 48px;
}

html[dir="ltr"] .m3-search-input {
    padding-left: 18px;
    padding-right: 48px;
}

.m3-search-submit-btn {
    position: absolute;
    top: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--md-sys-color-primary);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 200ms ease;
}

.m3-search-submit-btn:hover {
    background: var(--md-sys-color-primary-hover);
}

html[dir="rtl"] .m3-search-submit-btn {
    left: 5px;
    right: auto;
}

html[dir="ltr"] .m3-search-submit-btn {
    right: 5px;
    left: auto;
}

/* Recent items */
.sidebar-recent-list {
    display: flex;
    flex-direction: column;
}

.sidebar-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

html[data-theme="dark"] .sidebar-recent-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.sidebar-recent-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-thumb-img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--md-sys-color-outline-variant);
}

html[data-theme="dark"] .recent-thumb-img {
    border-color: rgba(255, 255, 255, 0.08);
}

.recent-item-info {
    flex-grow: 1;
    min-width: 0;
}

.recent-item-title {
    font-size: 14px;
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.5;
    margin: 0 0 6px 0;
}

.recent-item-title a {
    font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
    font-weight: 700 !important;
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    transition: color 150ms ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-item-title a:hover {
    color: var(--md-sys-color-primary);
}

html[data-theme="dark"] .recent-item-title a {
    color: #f1f5f9;
}

html[data-theme="dark"] .recent-item-title a:hover {
    color: #60a5fa;
}

.recent-item-meta {
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    gap: 5px;
}

html[data-theme="dark"] .recent-item-meta {
    color: #94a3b8;
}

/* Categories widget */
.sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 150ms ease;
}

html[data-theme="light"] .category-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

html[data-theme="dark"] .category-link {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.category-link:hover {
    background: rgba(33, 150, 243, 0.1) !important;
    color: var(--md-sys-color-primary) !important;
    border-color: var(--md-sys-color-primary) !important;
}

html[data-theme="dark"] .category-link:hover {
    background: rgba(33, 150, 243, 0.2) !important;
    color: #60a5fa !important;
    border-color: #60a5fa !important;
}

.category-item.active .category-link {
    background: rgba(33, 150, 243, 0.15) !important;
    color: var(--md-sys-color-primary) !important;
    border-color: var(--md-sys-color-primary) !important;
}

html[data-theme="dark"] .category-item.active .category-link {
    background: rgba(33, 150, 243, 0.25) !important;
    color: #60a5fa !important;
    border-color: #60a5fa !important;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-arrow {
    font-size: 13px;
    opacity: 0.6;
    transition: transform 150ms ease;
}

.category-link:hover .cat-arrow {
    opacity: 1;
}

/* =========================================================================
   Strict RTL and LTR Typography & Alignment Rules
   ========================================================================= */

/* Persian and Arabic: strict RTL */
html[lang="fa"] body,
html[lang="ar"] body,
html[dir="rtl"] body,
html[dir="rtl"] .blog-index-wrapper,
html[dir="rtl"] .article-show-wrapper,
html[dir="rtl"] .m3-blog-card,
html[dir="rtl"] .m3-article-card,
html[dir="rtl"] .m3-sidebar-widget {
    font-family: 'IRANSansX', 'IRANSansXV', Tahoma, sans-serif !important;
    text-align: right !important;
    direction: rtl !important;
}

/* English: strict LTR */
html[lang="en"] body,
html[dir="ltr"] body,
html[dir="ltr"] .blog-index-wrapper,
html[dir="ltr"] .article-show-wrapper,
html[dir="ltr"] .m3-blog-card,
html[dir="ltr"] .m3-article-card,
html[dir="ltr"] .m3-sidebar-widget {
    font-family: 'Roboto', sans-serif !important;
    text-align: left !important;
    direction: ltr !important;
}

/* Breadcrumbs RTL vs LTR alignment */
html[dir="rtl"] .breadcrumb > li + li:before {
    content: "/\00a0";
    padding: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .blog-page-sidebar {
        margin-top: 36px;
    }
}

@media (max-width: 767px) {
    .blog-hero-title {
        font-size: 22px;
    }
    .article-main-title {
        font-size: 20px;
    }
    .m3-article-card {
        padding: 24px 18px;
    }
    .m3-blog-card-media {
        height: 180px;
    }
    .author-social-row > div:last-child {
        margin-top: 16px;
    }
}

/* =========================================================================
   22. M3 Interactive FAQ & Dynamic Forms Global Styles
   ========================================================================= */

/* FAQ Page Wrapper */
.m3-faq-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 50px 0 !important;
    padding: 0 !important;
}

/* Category Filter Ribbon */
.m3-faq-categories-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    margin: 28px 0 28px !important;
    padding: 0 !important;
}

.m3-faq-filter-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 20px !important;
    border-radius: 9999px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    background: var(--md-sys-color-surface-container) !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    user-select: none !important;
    line-height: 1.4 !important;
    outline: none !important;
}

.m3-faq-filter-chip:hover {
    background: var(--md-sys-color-surface-container-high) !important;
    color: var(--md-sys-color-on-surface) !important;
    border-color: var(--md-sys-color-outline) !important;
}

.m3-faq-filter-chip.active {
    background: #2196F3 !important;
    color: #ffffff !important;
    border-color: #2196F3 !important;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.35) !important;
}

/* Live Search Input Box */
.m3-faq-search-box {
    max-width: 640px !important;
    margin: 0 auto 32px !important;
    position: relative !important;
}

.m3-faq-search-input {
    width: 100% !important;
    height: 52px !important;
    border-radius: 28px !important;
    padding: 0 50px !important;
    font-size: 15px !important;
    background: var(--md-sys-color-surface) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1.5px solid var(--md-sys-color-outline-variant) !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    transition: all 0.25s ease !important;
    outline: none !important;
}

.m3-faq-search-input:focus {
    border-color: #2196F3 !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18) !important;
}

.m3-faq-search-icon {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    font-size: 17px !important;
    pointer-events: none !important;
}
[dir="rtl"] .m3-faq-search-icon { right: 20px !important; }
[dir="ltr"] .m3-faq-search-icon { left: 20px !important; }

.m3-faq-search-clear {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    cursor: pointer !important;
    padding: 6px !important;
    font-size: 14px !important;
}
[dir="rtl"] .m3-faq-search-clear { left: 18px !important; }
[dir="ltr"] .m3-faq-search-clear { right: 18px !important; }

/* Accordion Item Card */
.m3-faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-bottom: 48px !important;
}

.m3-faq-item {
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.m3-faq-item:hover {
    border-color: var(--md-sys-color-outline) !important;
}

.m3-faq-item.is-open {
    border-color: #2196F3 !important;
    box-shadow: 0 4px 18px rgba(33, 150, 243, 0.12) !important;
}

.m3-faq-header {
    padding: 18px 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    user-select: none !important;
    background: transparent !important;
    transition: background 0.2s ease !important;
}

.m3-faq-item.is-open .m3-faq-header {
    background: rgba(33, 150, 243, 0.04) !important;
}

.m3-faq-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 !important;
}

.m3-faq-badge-num {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    background: var(--md-sys-color-surface-container) !important;
    color: #2196F3 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.m3-faq-item.is-open .m3-faq-badge-num {
    background: #2196F3 !important;
    color: #ffffff !important;
}

.m3-faq-question {
    margin: 0 !important;
    font-size: 16.5px !important;
    font-weight: 600 !important;
    color: var(--md-sys-color-on-surface) !important;
    line-height: 1.55 !important;
}

.m3-faq-toggle-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s !important;
    flex-shrink: 0 !important;
}

.m3-faq-item.is-open .m3-faq-toggle-icon {
    transform: rotate(180deg) !important;
    color: #2196F3 !important;
}

.m3-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.m3-faq-content {
    padding: 0 24px 22px !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    border-top: 1px dashed var(--md-sys-color-outline-variant) !important;
    padding-top: 18px !important;
}

.m3-faq-content p:last-child {
    margin-bottom: 0 !important;
}

/* =========================================================================
   M3 Dynamic Forms Global Styling
   ========================================================================= */

.m3-form-page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 50px 0 !important;
    padding: 0 !important;
}

.m3-form-card {
    max-width: 860px !important;
    margin: 32px auto 0 !important;
    background: var(--md-sys-color-surface) !important;
    border: 1px solid var(--md-sys-color-outline-variant) !important;
    border-radius: 24px !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
    padding: 40px 36px !important;
    transition: box-shadow 0.25s ease !important;
}

.m3-form-group {
    margin-bottom: 24px !important;
}

.m3-form-label {
    display: block !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: var(--md-sys-color-on-surface) !important;
}

.m3-form-required {
    color: #ef4444 !important;
    margin-inline-start: 4px !important;
}

.m3-form-control {
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    background: var(--md-sys-color-surface-container-low) !important;
    color: var(--md-sys-color-on-surface) !important;
    border: 1.5px solid var(--md-sys-color-outline-variant) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    font-family: inherit !important;
}

.m3-form-control:focus {
    border-color: #2196F3 !important;
    background: var(--md-sys-color-surface) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.16) !important;
}

textarea.m3-form-control {
    min-height: 120px !important;
    resize: vertical !important;
}

.m3-form-submit-wrap {
    margin-top: 36px !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.m3-form-submit-btn {
    background: #2196F3 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 40px !important;
    border-radius: 9999px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.3) !important;
    transition: all 0.2s ease !important;
}

.m3-form-submit-btn:hover {
    background: #1976D2 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.45) !important;
}

/* Success Banner */
.m3-form-success-banner {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1.5px solid #22c55e !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    margin-bottom: 28px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    color: var(--md-sys-color-on-surface) !important;
}

/* Dark mode specific overrides */
html[data-theme="dark"] .m3-faq-item {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .m3-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .m3-faq-item.is-open {
    border-color: #2196F3 !important;
    background: #0f172a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .m3-faq-badge-num {
    background: #1e293b !important;
}

html[data-theme="dark"] .m3-faq-search-input {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .m3-faq-filter-chip {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .m3-faq-filter-chip:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .m3-form-card {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .m3-form-control {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* =========================================================================
   Mobile Responsiveness & Centering Enhancements (Turn 10)
   ========================================================================= */

/* 1. Mobile Hamburger Toggle */
.m3-nav-mobile-toggle,
.menu-button > button.m3-nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--md-sys-color-outline-variant, #cbd5e1);
    background: var(--md-sys-color-surface-container, #f8fafc);
    color: var(--md-sys-color-on-surface, #334155) !important;
    cursor: pointer;
    font-size: 16px;
    margin-inline-start: 6px;
    transition: all 180ms ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.m3-nav-mobile-toggle i,
.menu-button > button.m3-nav-mobile-toggle i {
    color: inherit !important;
    font-size: 15px;
    line-height: 1;
}

.m3-nav-mobile-toggle:hover,
.menu-button > button.m3-nav-mobile-toggle:hover {
    background: var(--md-sys-color-primary, #2196F3) !important;
    color: #ffffff !important;
    border-color: var(--md-sys-color-primary, #2196F3) !important;
}

.m3-nav-mobile-toggle:hover i,
.menu-button > button.m3-nav-mobile-toggle:hover i {
    color: #ffffff !important;
}

/* Homepage Hero Transparent state (:not(.sticky)) */
body.home-page #topNav2.navbar:not(.sticky) .m3-nav-mobile-toggle,
body.home-page #topNav2.navbar:not(.sticky) .menu-button > button.m3-nav-mobile-toggle {
    background: rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

body.home-page #topNav2.navbar:not(.sticky) .m3-nav-mobile-toggle i,
body.home-page #topNav2.navbar:not(.sticky) .menu-button > button.m3-nav-mobile-toggle i {
    color: #ffffff !important;
}

/* Sticky Scrolled state in Light Theme: MUST BE VISIBLE DARK ICON AGAINST LIGHT NAVBAR */
html:not([data-theme="dark"]) body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle,
html[data-theme="light"] body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle,
html:not([data-theme="dark"]) body.home-page #topNav2.navbar.sticky .menu-button > button.m3-nav-mobile-toggle,
html[data-theme="light"] body.home-page #topNav2.navbar.sticky .menu-button > button.m3-nav-mobile-toggle {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

html:not([data-theme="dark"]) body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle i,
html[data-theme="light"] body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle i,
html:not([data-theme="dark"]) body.home-page #topNav2.navbar.sticky .menu-button > button.m3-nav-mobile-toggle i,
html[data-theme="light"] body.home-page #topNav2.navbar.sticky .menu-button > button.m3-nav-mobile-toggle i {
    color: #1e293b !important;
}

html:not([data-theme="dark"]) body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle:hover,
html[data-theme="light"] body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle:hover,
html:not([data-theme="dark"]) body.home-page #topNav2.navbar.sticky .menu-button > button.m3-nav-mobile-toggle:hover,
html[data-theme="light"] body.home-page #topNav2.navbar.sticky .menu-button > button.m3-nav-mobile-toggle:hover {
    background: var(--md-sys-color-primary, #2196F3) !important;
    border-color: var(--md-sys-color-primary, #2196F3) !important;
    color: #ffffff !important;
}

html:not([data-theme="dark"]) body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle:hover i,
html[data-theme="light"] body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle:hover i,
html:not([data-theme="dark"]) body.home-page #topNav2.navbar.sticky .menu-button > button.m3-nav-mobile-toggle:hover i,
html[data-theme="light"] body.home-page #topNav2.navbar.sticky .menu-button > button.m3-nav-mobile-toggle:hover i {
    color: #ffffff !important;
}

/* Dark Theme Toggle Styles (both Top and Sticky) */
html[data-theme="dark"] .m3-nav-mobile-toggle,
html[data-theme="dark"] body.home-page #topNav2.navbar .m3-nav-mobile-toggle,
html[data-theme="dark"] body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle,
html[data-theme="dark"] .menu-button > button.m3-nav-mobile-toggle {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .m3-nav-mobile-toggle i,
html[data-theme="dark"] body.home-page #topNav2.navbar .m3-nav-mobile-toggle i,
html[data-theme="dark"] body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle i,
html[data-theme="dark"] .menu-button > button.m3-nav-mobile-toggle i {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .m3-nav-mobile-toggle:hover,
html[data-theme="dark"] body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle:hover,
html[data-theme="dark"] .menu-button > button.m3-nav-mobile-toggle:hover {
    background: var(--md-sys-color-primary, #2196F3) !important;
    border-color: var(--md-sys-color-primary, #2196F3) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .m3-nav-mobile-toggle:hover i,
html[data-theme="dark"] body.home-page #topNav2.navbar.sticky .m3-nav-mobile-toggle:hover i,
html[data-theme="dark"] .menu-button > button.m3-nav-mobile-toggle:hover i {
    color: #ffffff !important;
}

/* 2. Responsive Mobile TopNav & Menu Drawer (<= 991px) */
@media (max-width: 991px) {
    .m3-nav-mobile-toggle {
        display: inline-flex !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        margin: 0 2px !important;
        flex-shrink: 0 !important;
    }

    #topNav2.navbar {
        padding: 0 10px !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    #topNav2 .navbar-custom {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        height: 60px !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    #topNav2 .navbar-header {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    #topNav2 .navbar-brand {
        font-size: 19px !important;
        letter-spacing: 1px !important;
    }

    #topNav2 .menu-button {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        position: static !important;
        right: auto !important;
        left: auto !important;
        gap: 3px !important;
    }

    #topNav2 #demo-menu-lower-left {
        padding: 0 8px !important;
        height: 32px !important;
        line-height: 32px !important;
        font-size: 12.5px !important;
        margin: 0 2px !important;
        min-width: auto !important;
    }

    #topNav2 .m3-theme-segmented {
        padding: 2px !important;
        gap: 2px !important;
        margin: 0 3px !important;
    }

    #topNav2 .m3-theme-segmented button {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
        padding: 0 !important;
    }

    /* By default strictly hide navbar collapse on mobile */
    #topNavbar2:not(.is-open),
    html[dir="rtl"] #topNavbar2:not(.is-open),
    body #topNavbar2:not(.is-open),
    .collapse#topNavbar2:not(.is-open),
    .navbar-collapse#topNavbar2:not(.is-open) {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        border: none !important;
        float: none !important;
    }

    /* When open, modern full-width dropdown/drawer */
    #topNavbar2.is-open {
        display: block !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        background: #ffffff !important;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22) !important;
        border-bottom: 2px solid var(--md-sys-color-primary, #2196F3) !important;
        padding: 16px 20px 24px 20px !important;
        z-index: 9999 !important;
        animation: m3NavSlideDown 200ms cubic-bezier(0, 0, 0.2, 1) forwards;
    }

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

    body.has-admin-bar #topNavbar2.is-open {
        top: 104px !important;
        max-height: calc(100vh - 104px) !important;
    }

    html[data-theme="dark"] #topNavbar2.is-open {
        background: #1e293b !important;
        border-bottom-color: #3b82f6 !important;
    }

    #topNavbar2 ul.navbar-nav,
    html[dir="rtl"] #topNavbar2 ul.navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    #topNavbar2 ul.navbar-nav > li,
    html[dir="rtl"] #topNavbar2 ul.navbar-nav > li {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    #topNavbar2 ul.navbar-nav > li > a,
    #topNavbar2.is-open ul.navbar-nav > li > a,
    body.home-page #topNav2.navbar #topNavbar2.is-open ul.navbar-nav > li > a,
    body.home-page #topNav2.navbar:not(.sticky) #topNavbar2.is-open ul.navbar-nav > li > a,
    body.home-page #topNav2.navbar.sticky #topNavbar2.is-open ul.navbar-nav > li > a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 12px 18px !important;
        font-size: 15px !important;
        font-family: 'IRANSansX-Bold', 'IRANSansX', sans-serif !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        color: #1e293b !important;
        background: transparent !important;
        transition: all 150ms ease !important;
    }

    html[data-theme="dark"] #topNavbar2 ul.navbar-nav > li > a,
    html[data-theme="dark"] #topNavbar2.is-open ul.navbar-nav > li > a,
    html[data-theme="dark"] body.home-page #topNav2.navbar #topNavbar2.is-open ul.navbar-nav > li > a,
    html[data-theme="dark"] body.home-page #topNav2.navbar:not(.sticky) #topNavbar2.is-open ul.navbar-nav > li > a,
    html[data-theme="dark"] body.home-page #topNav2.navbar.sticky #topNavbar2.is-open ul.navbar-nav > li > a {
        color: #e2e8f0 !important;
    }

    #topNavbar2 ul.navbar-nav > li > a:hover,
    #topNavbar2.is-open ul.navbar-nav > li > a:hover,
    body.home-page #topNav2.navbar #topNavbar2.is-open ul.navbar-nav > li > a:hover,
    body.home-page #topNav2.navbar:not(.sticky) #topNavbar2.is-open ul.navbar-nav > li > a:hover,
    body.home-page #topNav2.navbar.sticky #topNavbar2.is-open ul.navbar-nav > li > a:hover {
        background: rgba(33, 150, 243, 0.1) !important;
        color: #2196F3 !important;
    }

    #topNavbar2 ul.navbar-nav > li.active > a,
    #topNavbar2.is-open ul.navbar-nav > li.active > a,
    body.home-page #topNav2.navbar #topNavbar2.is-open ul.navbar-nav > li.active > a,
    body.home-page #topNav2.navbar:not(.sticky) #topNavbar2.is-open ul.navbar-nav > li.active > a,
    body.home-page #topNav2.navbar.sticky #topNavbar2.is-open ul.navbar-nav > li.active > a {
        background: var(--md-sys-color-primary, #2196F3) !important;
        color: #ffffff !important;
        font-weight: 700 !important;
    }

    #topNav2 .products-dropdown-menu {
        display: block !important;
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 10px !important;
        margin-top: 6px !important;
        padding: 4px !important;
        background: #f8fafc !important;
    }

    html[data-theme="dark"] #topNav2 .products-dropdown-menu {
        background: #0f172a !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    #topNav2 .products-dropdown-item {
        padding: 8px 14px !important;
        font-size: 13.5px !important;
        border-radius: 8px !important;
    }
}

/* 3. Section Titles Centering Everywhere (Desktop & Mobile, LTR & RTL) */
.section-title,
html[dir="rtl"] .section-title,
html[dir="ltr"] .section-title {
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 35px !important;
    display: block !important;
    float: none !important;
}

.section-title h1,
.section-title h2,
.section-title h3,
.section-title p,
html[dir="rtl"] .section-title h1,
html[dir="rtl"] .section-title h2,
html[dir="rtl"] .section-title h3,
html[dir="rtl"] .section-title p,
html[dir="ltr"] .section-title h1,
html[dir="ltr"] .section-title h2,
html[dir="ltr"] .section-title h3,
html[dir="ltr"] .section-title p {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.section-title h1::before,
.section-title h2::before,
.section-title h1::after,
.section-title h2::after,
html[dir="rtl"] .section-title h1::before,
html[dir="rtl"] .section-title h2::before,
html[dir="rtl"] .section-title h1::after,
html[dir="rtl"] .section-title h2::after,
html[dir="ltr"] .section-title h1::before,
html[dir="ltr"] .section-title h2::before,
html[dir="ltr"] .section-title h1::after,
html[dir="ltr"] .section-title h2::after {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 4. Call to Action Responsive Behavior */
#callToAction,
.site-cta-wrapper {
    position: relative !important;
    padding: 60px 0 !important;
    width: 100% !important;
}

#main-content.has-cta-section,
#main-content:has(#callToAction),
#main-content:has(.site-cta-wrapper) {
    padding-bottom: 0 !important;
}

.site-cta-wrapper {
    margin-top: 50px !important;
}

.cta-row,
#callToAction .cta-row,
#callToAction .row,
.site-cta-wrapper .cta-row,
.site-cta-wrapper .row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Desktop: Side-by-Side (Heading on one side, button on the other) */
@media (min-width: 992px) {
    .cta-row,
    #callToAction .cta-row,
    #callToAction .row,
    .site-cta-wrapper .cta-row,
    .site-cta-wrapper .row {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    html[dir="rtl"] .cta-row,
    html[dir="rtl"] #callToAction .cta-row,
    html[dir="rtl"] #callToAction .row,
    html[dir="rtl"] .site-cta-wrapper .cta-row,
    html[dir="rtl"] .site-cta-wrapper .row {
        direction: rtl !important;
    }

    html[dir="rtl"] .cta-text-col,
    html[dir="rtl"] #callToAction .cta-text-col,
    html[dir="rtl"] #callToAction .col-md-10,
    html[dir="rtl"] #callToAction .col-md-9,
    html[dir="rtl"] #callToAction .col-md-8,
    html[dir="rtl"] .site-cta-wrapper .cta-text-col {
        text-align: right !important;
        float: none !important;
    }

    html[dir="rtl"] .cta-btn-col,
    html[dir="rtl"] #callToAction .cta-btn-col,
    html[dir="rtl"] #callToAction .col-md-2,
    html[dir="rtl"] #callToAction .col-md-3,
    html[dir="rtl"] #callToAction .col-md-4,
    html[dir="rtl"] .site-cta-wrapper .cta-btn-col {
        text-align: left !important;
        float: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    html[dir="ltr"] .cta-text-col,
    html[dir="ltr"] #callToAction .cta-text-col,
    html[dir="ltr"] #callToAction .col-md-10,
    html[dir="ltr"] #callToAction .col-md-9,
    html[dir="ltr"] #callToAction .col-md-8,
    html[dir="ltr"] .site-cta-wrapper .cta-text-col {
        text-align: left !important;
        float: none !important;
    }

    html[dir="ltr"] .cta-btn-col,
    html[dir="ltr"] #callToAction .cta-btn-col,
    html[dir="ltr"] #callToAction .col-md-2,
    html[dir="ltr"] #callToAction .col-md-3,
    html[dir="ltr"] #callToAction .col-md-4,
    html[dir="ltr"] .site-cta-wrapper .cta-btn-col {
        text-align: right !important;
        float: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    #callToAction h2,
    .site-cta-wrapper h2 {
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 1.4 !important;
        text-align: inherit !important;
    }

    #callToAction a.buy-now-btn,
    .site-cta-wrapper a.buy-now-btn {
        margin: 0 !important;
        white-space: nowrap !important;
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        border-radius: 9999px !important;
    }
}

/* Mobile & Tablet: Stacked & Centered */
@media (max-width: 991px) {
    .cta-row,
    #callToAction .cta-row,
    #callToAction .row,
    .site-cta-wrapper .cta-row,
    .site-cta-wrapper .row {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .cta-text-col,
    #callToAction .cta-text-col,
    #callToAction .col-md-10,
    #callToAction .col-md-9,
    #callToAction .col-md-8,
    .site-cta-wrapper .cta-text-col {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 22px !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cta-text-col h2,
    #callToAction h2,
    .site-cta-wrapper h2 {
        text-align: center !important;
        font-size: 20px !important;
        line-height: 1.5 !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    .cta-btn-col,
    #callToAction .cta-btn-col,
    #callToAction .col-md-2,
    #callToAction .col-md-3,
    #callToAction .col-md-4,
    .site-cta-wrapper .cta-btn-col {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #callToAction a.buy-now-btn,
    .site-cta-wrapper a.buy-now-btn {
        margin: 0 auto !important;
        white-space: nowrap !important;
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        border-radius: 9999px !important;
        float: none !important;
        text-align: center !important;
    }
}

/* 5. Mobile Centered Action Buttons */
.section-footer-link-wrap,
#projects .section-footer-link-wrap,
#services .section-footer-link-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-footer-link,
a.section-footer-link {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    float: none !important;
}

@media (max-width: 991px) {
    .section-footer-link,
    a.section-footer-link,
    .home-blog-more-btn,
    #about a.read-more,
    #contact input[type="submit"] {
        margin-left: auto !important;
        margin-right: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        float: none !important;
    }
}

/* =========================================================================
   Owl Carousel Universal LTR & RTL Parity Guarantee
   ========================================================================= */
.owl-carousel,
.owl-carousel .owl-wrapper-outer,
.owl-carousel .owl-wrapper,
.header-items.owl-carousel,
.team-items.owl-carousel,
.testimonial-slider.owl-carousel,
.brands-slider.owl-carousel {
    direction: ltr !important;
    left: 0 !important;
    right: auto !important;
}

.owl-carousel .owl-item,
.owl-carousel .owl-wrapper > .owl-item,
.header-items.owl-carousel .owl-item,
.team-items .owl-item,
.testimonial-slider .owl-item,
.brands-slider .owl-item,
.brands-slider .owl-wrapper > .owl-item {
    direction: ltr !important;
    float: left !important;
    display: block !important;
}

/* 1. Team Section Card Parity (Equal Sizing, Full-Width Photo, Centered Text) */
#team .col-md-12,
#team .team-items,
.team-items {
    width: 100% !important;
    float: none !important;
    display: block !important;
}

.team-item {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    text-align: center !important;
}

html[dir="rtl"] .team-item {
    direction: rtl !important;
}

.team-item .mdl-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 390px !important;
    min-height: 390px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.team-item .mdl-card__title-text {
    width: 100% !important;
    align-self: stretch !important;
    height: 270px !important;
    overflow: hidden !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.team-item .mdl-card__title-text img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

#team .mdl-card__supporting-text,
.team-item .mdl-card__supporting-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 120px !important;
    box-sizing: border-box !important;
    padding: 10px 15px !important;
    text-align: center !important;
}

.team-item .mdl-card__supporting-text h2,
.team-item h2 {
    font-size: 17px !important;
    line-height: 22px !important;
    margin-top: 5px !important;
    margin-bottom: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    width: 100% !important;
}

.team-item .mdl-card__supporting-text h4,
.team-item h4 {
    font-size: 13px !important;
    line-height: 18px !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
    overflow: hidden !important;
    text-align: center !important;
    width: 100% !important;
}

.team-item h4:last-child {
    min-height: 18px !important;
    font-size: 12px !important;
}

/* 2. Testimonials Parity */
.testimonial-item {
    text-align: center !important;
}

html[dir="rtl"] .testimonial-item {
    direction: rtl !important;
}

.testimonial-item .recommender-comment,
.testimonial-item .recommender-info {
    text-align: center !important;
}

.testimonial-slider .owl-controls {
    direction: ltr !important;
    text-align: center !important;
}

.testimonial-slider .owl-pagination {
    direction: ltr !important;
    text-align: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 3. Brands Slider Parity Across LTR and RTL (Matched Exactly to platopkg.com) */
#brands {
    position: relative !important;
    padding: 90px 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#brands:before {
    content: " " !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(48, 48, 48, 0.8) !important;
}

.brands-slider {
    direction: ltr !important;
    position: relative !important;
    z-index: 2 !important;
}

.brands-slider .owl-item,
.brands-slider .owl-wrapper > .owl-item {
    display: table-cell !important;
    vertical-align: middle !important;
    float: none !important;
    text-align: center !important;
}

.brands-slider .col-md-12,
.brands-slider .col-sm-12,
.brands-slider .col-xs-12 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 120px !important;
    width: 100% !important;
    float: none !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.brands-slider img {
    max-height: 90px !important;
    max-width: 190px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    filter: none !important;
    opacity: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
}

.brands-slider img:hover {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.06) !important;
}

/* Brands Slider Responsive Sizing */
@media (max-width: 767px) {
    #brands {
        padding: 60px 0 !important;
    }
    .brands-slider .col-md-12,
    .brands-slider .col-sm-12,
    .brands-slider .col-xs-12 {
        height: 100px !important;
    }
    .brands-slider img {
        max-height: 80px !important;
        max-width: 180px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #brands {
        padding: 80px 0 !important;
    }
    .brands-slider .col-md-12,
    .brands-slider .col-sm-12,
    .brands-slider .col-xs-12 {
        height: 110px !important;
    }
    .brands-slider img {
        max-height: 85px !important;
        max-width: 185px !important;
    }
}

/* 4. Header Slider Parity */
.header-items .owl-controls {
    direction: ltr !important;
}

.header-items .owl-pagination {
    direction: ltr !important;
    text-align: center !important;
}

html[dir="rtl"] .header-items .header-slider-content {
    direction: rtl !important;
}

/* 6. Portfolio Filter Menu Centering on Mobile */
@media (max-width: 991px) {
    .portfolio-filter-menu {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 30px !important;
        float: none !important;
    }

    .portfolio-filter-menu ul,
    html[dir="rtl"] .portfolio-filter-menu ul {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 auto !important;
        padding: 6px !important;
        max-width: 100% !important;
        border-radius: 9999px !important;
        float: none !important;
    }

    .portfolio-filter-menu li,
    html[dir="rtl"] .portfolio-filter-menu li {
        display: inline-block !important;
        padding: 8px 16px !important;
        margin: 2px !important;
        font-size: 13px !important;
        border-radius: 9999px !important;
        float: none !important;
    }
}

/* 7. Contact Section Mobile Responsiveness */
@media (max-width: 991px) {
    #contact .contact-window {
        padding: 40px 16px 60px !important;
    }

    #contact .contact-window .container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #contact .row:nth-child(2),
    html[dir="rtl"] #contact .row:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .contact-address {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-bottom: 32px !important;
        padding: 0 !important;
    }

    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
    }

    .contact-form .row {
        margin: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .contact-form [class*="col-"] {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .contact-form .contact-submit-col,
    .contact-form .row:last-child [class*="col-"] {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        margin-top: 16px !important;
    }

    .contact-form .mdl-textfield {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .contact-form .mdl-textfield__input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-form input[type="submit"] {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 44px !important;
        line-height: 44px !important;
        border-radius: 9999px !important;
    }

    .social-links ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 0 !important;
    }
}

/* Accessibility Utility for Screen Readers & SEO */
.sr-only {
    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;
}

/* =========================================================================
   Star Rating & Reviews System (M3 Styled)
   ========================================================================= */

.star-gold {
    color: #f59e0b !important;
}

.star-dim {
    color: #cbd5e1 !important;
}

/* Article Header Rating Chip */
.article-rating-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: opacity 0.2s ease;
}

.article-rating-chip:hover {
    opacity: 0.85;
}

.star-rating-icons {
    display: inline-flex;
    gap: 2px;
    font-size: 13px;
}

.rating-number {
    font-size: 13px;
    color: var(--md-sys-color-on-surface);
}

.rating-count-text {
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
}

/* Comments Header Summary Badge */
.comments-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-comments-avg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px;
}

.article-comments-avg-badge .stars-gold {
    font-size: 13px;
    color: #f59e0b;
    display: inline-flex;
    gap: 2px;
}

.article-comments-avg-badge .avg-score {
    font-size: 13px;
    color: #b45309;
}

html[data-theme="dark"] .article-comments-avg-badge .avg-score {
    color: #fbbf24;
}

.article-comments-avg-badge .score-sub {
    font-size: 11.5px;
    color: var(--md-sys-color-on-surface-variant);
}

/* Comment Item Rating */
.comment-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-user-rating-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 12px;
}

/* Interactive Star Picker */
.comment-rating-picker-box {
    background: var(--md-sys-color-surface-container-low, #f8fafc);
    border: 1px solid var(--md-sys-color-outline-variant, #e2e8f0);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 14px;
}

html[data-theme="dark"] .comment-rating-picker-box {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.comment-rating-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 6px;
}

.interactive-star-picker {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.star-picker-stars {
    display: inline-flex;
    gap: 4px;
}

.star-picker-stars .star-btn {
    background: transparent;
    border: none;
    padding: 4px;
    font-size: 20px;
    color: #cbd5e1;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
}

html[data-theme="dark"] .star-picker-stars .star-btn {
    color: #475569;
}

.star-picker-stars .star-btn:hover {
    transform: scale(1.22);
}

.star-picker-stars .star-btn.active {
    color: #f59e0b !important;
}

.star-picker-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
}

/* Product Rating Overview Badge */
.product-rating-overview-wrap {
    margin: 8px 0 16px 0;
}

.product-rating-overview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 9999px;
    padding: 5px 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.product-rating-overview-badge:hover {
    background: rgba(245, 158, 11, 0.18);
    transform: translateY(-1px);
}

.product-rating-overview-badge .stars-gold {
    display: inline-flex;
    gap: 2px;
    font-size: 13px;
}

.product-rating-overview-badge .rating-avg-score {
    font-size: 14px;
    color: #b45309;
}

html[data-theme="dark"] .product-rating-overview-badge .rating-avg-score {
    color: #fbbf24;
}

.product-rating-overview-badge .rating-count-label {
    font-size: 12.5px;
    color: var(--md-sys-color-on-surface-variant);
}

/* Product Reviews Card */
.product-reviews-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--md-sys-elevation-level1);
    margin-bottom: 48px;
}

html[data-theme="light"] .product-reviews-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .product-reviews-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.reviews-summary-row {
    margin-bottom: 24px;
}

.reviews-aggregate-box {
    text-align: center;
    padding: 26px 20px;
    background: var(--md-sys-color-surface-container-low, #f8fafc);
    border: 1px solid var(--md-sys-color-outline-variant, #e2e8f0);
    border-radius: 20px;
    height: 100%;
}

html[data-theme="dark"] .reviews-aggregate-box {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.aggregate-score-badge {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: var(--md-sys-color-on-surface);
}

.aggregate-denom {
    font-size: 18px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
}

.aggregate-stars {
    font-size: 18px;
    margin: 10px 0 6px 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.aggregate-count-text {
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 20px;
}

/* Rating Breakdown */
.rating-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.breakdown-label {
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
}

.breakdown-progress-track {
    flex-grow: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

html[data-theme="dark"] .breakdown-progress-track {
    background: #334155;
}

.breakdown-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.breakdown-count {
    min-width: 28px;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 600;
}

/* Rate Form Card */
.product-rate-form-card {
    background: var(--md-sys-color-surface-container-low, #f8fafc);
    border: 1px solid var(--md-sys-color-outline-variant, #e2e8f0);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
}

html[data-theme="dark"] .product-rate-form-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.rate-form-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-form-title i {
    color: var(--md-sys-color-primary);
}

.m3-input-field {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--md-sys-color-outline-variant, #cbd5e1);
    background: var(--md-sys-color-surface, #ffffff);
    color: var(--md-sys-color-on-surface);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .m3-input-field {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

.m3-input-field:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18);
}

.btn-m3-submit-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 12px;
    background: var(--md-sys-color-primary);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.btn-m3-submit-rating:hover {
    background: var(--md-sys-color-primary-hover);
    transform: translateY(-1px);
}

/* Reviews List Section */
.product-reviews-list-wrap {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

html[data-theme="dark"] .product-reviews-list-wrap {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.reviews-list-heading {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-list-heading i {
    color: var(--md-sys-color-primary);
}

.product-review-item-card {
    background: var(--md-sys-color-surface-container-low, #f8fafc);
    border: 1px solid var(--md-sys-color-outline-variant, #e2e8f0);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    min-height: 100px;
}

html[data-theme="dark"] .product-review-item-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--md-sys-color-surface-container-high, #e2e8f0);
    color: var(--md-sys-color-on-surface-variant, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

html[data-theme="dark"] .review-avatar-placeholder {
    background: #334155;
    color: #94a3b8;
}

.review-author-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-buyer-badge {
    font-size: 10.5px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 7px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.review-item-date {
    font-size: 11.5px;
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 2px;
}

.review-item-stars {
    font-size: 13px;
    color: #f59e0b;
    display: inline-flex;
    gap: 2px;
}

.review-item-body {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--md-sys-color-on-surface);
}

html[data-theme="dark"] .review-item-body {
    color: #cbd5e1;
}

@media (max-width: 767px) {
    .product-reviews-card {
        padding: 20px 16px;
    }
    .reviews-summary-row > div:first-child {
        margin-bottom: 20px;
    }
}


